⁉️Frequently Asked Questions

chevron-right1 - How to Make Bet Profits Go to Your Company ?hashtag

under server/bridge/qb/main.lua :

Find this function:

function AddMoney(src, amount, reason)
    local Player = GetPlayer(src)
    if reason == 'sports-wallet-withdrawal' then
        amount = math.floor(amount * (1 - Config.Betting.cashoutFee))
        Player.Functions.AddMoney('cash', amount, reason)
    else
        Player.Functions.AddMoney('cash', amount, reason)
    end
    -- REMOVE these money from the company example Casino account
    -- UpdateJobFunds('casino', amount, 'withdraw', 'Bet cash addition')
end

What to change:

  • Uncomment this line UpdateJobFunds('casino', amount, 'withdraw', 'Bet cash addition')

  • Change 'casino' to your company/job name

  • Example: UpdateJobFunds('bahamas', amount, 'withdraw', 'Bet payout')

Find this function:

function RemoveMoney(src, amount, reason)
    local Player = GetPlayer(src)
    Player.Functions.RemoveMoney('cash', amount, reason)
    -- ADD these money to the company example Casino account
    -- UpdateJobFunds('casino', amount, 'deposit', 'Bet cash removal')
end

What to change:

  • Uncomment this line UpdateJobFunds('casino', amount, 'deposit', 'Bet cash removal')

  • Change 'casino' to your company/job name (must match the one in AddMoney)

  • Example: UpdateJobFunds('bahamas', amount, 'deposit', 'Bet placed')

chevron-right2- How to Add a new Team or a new League ?hashtag

2-1- Add the new league or the new team to the config

2-2- While the script running, go to the TX ADMIN CMD (server CMD) and type

clearallsportsbetsdata

THIS WILL DELETE ALL THE BET DATA IN THE SQL INCLUDING PLAYER WALLETS

you can adjust what to wipe under server/commands.lua

2-3- Restart the resource zat-sportsbet !

chevron-right3- Can I add a new sport ?hashtag

Short answer : NO

chevron-rightNo valid Banking System ?hashtag

to add a banking system just go to server/bridge/banking/main.lua and add your banking system in there .

Default supported banking systems : qb-banking, esx_addonaccount, okokbanking and qs-banking

Last updated