Configurations

You can configure the script in shared/config.lua

For adding a different target script, you can edit open/client.lua

Other server configurations can be added in open/server.lua

Using other currencies

If you want to use item currencies, other other currencies, such as the black_money item, you should modify this function in open/client.lua:

function GetPlayerMoney()
    return exports.ox_inventory:GetItemCount("black_money") or 0
    -- return Core.Functions.GetPlayerData().money and Core.Functions.GetPlayerData().money[Config.Money] or 0
end

also, this functions in open/server.lua

function GetPlayerMoney(playerId)
    -- local Player = Core.Functions.GetPlayer(playerId)
    return exports.ox_inventory:GetItemCount(playerId, "black_money") or 0
    -- return Player.Functions.GetMoney(Config.Money) or 0
end

function RemovePlayerMoney(playerId, amount)
    -- local Player = Core.Functions.GetPlayer(playerId)

    -- if Player then
    --     return Player.Functions.RemoveMoney(Config.Money, amount)
    -- end

    -- return false

    return exports.ox_inventory:RemoveItem(playerId, "black_money", amount)
end

Any questions you can ask on discord https://discord.gg/EVcvvkBahy

Last updated