Config file

--[[ 
    - this script needs tgiann-core script to work, you can download the script from your keymaster account
      Start tgiann-core script after es_extented/qb-core script and before tgiann-* scripts
      Adjust the tgiann-core config file according to the framework you are using

    Client Export 
    open | exports["tgiann-trade"]:open(targetPlayerServerId)

    Client Event
    tgiann-trade:client:open | TriggerEvent("tgiann-trade:client:open", targetPlayerServerId) | TriggerClientEvent("tgiann-trade:client:open", soruce, targetPlayerServerId)
]]

tgiCoreExports = exports["tgiann-core"]
config = tgiCoreExports:getConfig()

-- Max inventory slots for a player
-- QB: https://github.com/qbcore-framework/qb-inventory/blob/cab2ee40d67d532db7132016565574702dee6fee/config.lua#L6)
-- ESX: https://overextended.github.io/docs/ox_inventory/Getting%20Started/config -- setr inventory:slots 50
config.playerInventorySlot = 50 -- Default QB: 41, Default ESX: 50

-- Max weight a player can carry
-- QB: https://github.com/qbcore-framework/qb-inventory/blob/cab2ee40d67d532db7132016565574702dee6fee/config.lua#L5
-- ESX: You don't need to change this value for esx ox_inventory
config.MaxInventoryWeight = 120000 -- Default QB: 120000

config.tradeSlots = 10

--Only Works on ESX (set this to true if you are not using a slot based inventory)
--Example
--ox_inventory - config.useNoneSlotBaseInventorySystem = false 
--qb_inventory - config.useNoneSlotBaseInventorySystem = false 
--qs-inventory - config.useNoneSlotBaseInventorySystem = true 
config.useNoneSlotBaseInventorySystem = true 

if config.framework == "qb" then
    config.itemIMGLocation = "qb-inventory/html/images"
elseif config.framework == "esx" then
    config.itemIMGLocation = "ox_inventory/web/images"
end
config.moneyType = "bank"

config.blacklistItems = {
    "itemname",
}

config.lang = "en" -- "en"  -  "tr"  -  "de"
config.langs = {
    tr = {
        noNearBy = "Yakınlarda Kimse Yok",
        noFoundTargetPlayer = "Target Oyuncu Belirlenmedi!",
        alreadyTrade1 = "Zaten Şuan Bir Başkası İle Takas Yapıyorsun",
        alreadyTrade2 = "Oyuncu Bir Başkası İle Takas Yapıyor",
        cantAddItem = "Daha Fazla Eşya Ekleyemezsin!",
        newItemAdded = "Karşı Taraf Yeni Bir Eşya Ekledi",
        notFoundItem = "Kaldırmak İstediğin Kadar Eşyaya Sahip Değilsin",
        itemRemoved = "Karşı Taraf Bir Eşyayı Kaldırdı",
        playerIsReady = "Karşı Taraf Hazır Verdi",
        fullWeight = "Üzeriniz Fazla Ağır",
        otherFullWeight = "Karşı Tarafın Üzeri Fazla Ağır",
        tradeComplated = "Takas Gerçekleştirildi",
        tradeCancelled = "Takas İptal Edildi",
        noMoney = "Yeterli Miktarda Paran Yok!",
        moneyUpdated = "Karşı Taraf Parayı Güncelledi",
        notReady = "Hazır Değil",
        ready = "Hazır",
        html = {
            add = "Ekle",
            remove = "Kaldır",
            addItem = "Eşyayı Ekle",
            removeItem = "Eşyayı Kaldır",
            updateMoney = "Parayı Güncelle",
            dollar = "$"
        }
    },
    en = {
        noNearBy = "No One Nearby",
        noFoundTargetPlayer = "Target Player Not Found!",
        alreadyTrade1 = "You Are Already Trading with Someone Else",
        alreadyTrade2 = "Player is Already Trading with Someone Else",
        cantAddItem = "You Can't Add Anymore Items!",
        newItemAdded = "Other Player Added a New Item",
        notFoundItem = "You Don't Have Enough Items to Remove",
        itemRemoved = "Other Player Removed an Item",
        playerIsReady = "Other Player is Ready",
        fullWeight = "You're Overweight",
        otherFullWeight = "Other Player is Overweight",
        tradeComplated = "Trade Completed",
        tradeCancelled = "Trade Cancelled",
        noMoney = "Not Enough Money!",
        moneyUpdated = "Other Player Updated the Money",
        notReady = "Not Ready",
        ready = "Ready",
        html = {
            add = "Add",
            remove = "Remove",
            addItem = "Add Item",
            removeItem = "Remove Item",
            updateMoney = "Update Money",
            dollar = "$"
        }
    },
    de = { -- Transleted by ChatGPT
        noNearBy = "Keiner in der Nähe",
        noFoundTargetPlayer = "Ziel Spieler nicht gefunden!",
        alreadyTrade1 = "Du handelst bereits mit jemand anderem",
        alreadyTrade2 = "Spieler handelt bereits mit jemand anderem",
        cantAddItem = "Du kannst keine weiteren Gegenstände hinzufügen!",
        newItemAdded = "Anderer Spieler hat einen neuen Gegenstand hinzugefügt",
        notFoundItem = "Du hast nicht genug Gegenstände, um sie zu entfernen",
        itemRemoved = "Anderer Spieler hat einen Gegenstand entfernt",
        playerIsReady = "Anderer Spieler ist bereit",
        fullWeight = "Du bist überladen",
        otherFullWeight = "Anderer Spieler ist überladen",
        tradeComplated = "Handel abgeschlossen",
        tradeCancelled = "Handel abgebrochen",
        noMoney = "Nicht genug Geld!",
        moneyUpdated = "Anderer Spieler hat das Geld aktualisiert",
        notReady = "Nicht bereit",
        ready = "Bereit",
        html = {
            add = "Hinzufügen",
            remove = "Entfernen",
            addItem = "Gegenstand hinzufügen",
            removeItem = "Gegenstand entfernen",
            updateMoney = "Geld aktualisieren",
            dollar = "$"
        }
    },
}

config.startSlot = 0 --Don't Touch

Last updated