QBOX
if you are going to do this make sure that all players have a cash value of 0, if players have a cash value higher than 0 set them all to 0
Open qbx_core/server/player.lua file
Find function SetMoney(identifier, moneyType, amount, reason)
Replace with the following
function SetMoney(identifier, moneyType, amount, reason, forInventory)
Find emitMoneyEvents(player.PlayerData.source, player.PlayerData.money, moneyType, amount, 'set', reason, difference)
Replace with the following
emitMoneyEvents(player.PlayerData.source, player.PlayerData.money, moneyType, amount, 'set', reason, difference, forInventory)
Find local function emitMoneyEvents(source, playerMoney, moneyType, amount, actionType, reason, difference)
Replace with the following
local function emitMoneyEvents(source, playerMoney, moneyType, amount, actionType, reason, difference, forInventory)
Find this code block
if accountsAsItems[oxMoneyType] then
exports.ox_inventory:SetItem(source, oxMoneyType, playerMoney[moneyType])
end
Replace with the following
if not forInventory then
local isMoneyItem, moneyItemName = exports["tgiann-inventory"]:IsMoneyItem(moneyType)
if isMoneyItem then
exports["tgiann-inventory"]:SetItem(source, moneyItemName, playerMoney[moneyType])
end
end
Add the following item to the itemlist
money_item = { name = 'money_item', label = 'Money', weight = 0, type = 'item', image = 'money.webp', unique = false, useable = false, shouldClose = false, description = 'Green Paper' },


Last updated