Server guide
Framework functions
tryPayment
-- This is an example from the brnx-iceorinksystem qb.lua file
-- @param player: number | string
-- @param value: number
local function tryPayment(player, value)
if (value) and value >= 0 then
if (player?.Functions.GetMoney('cash') >= value) then
player?.Functions.RemoveMoney('cash', value, 'Ice O Rink - Store')
return true
else
if (player?.Functions.GetMoney('bank') >= value) then
player?.Functions.RemoveMoney('bank', value, 'Ice O Rink - Store')
return true
end
end
end
return false
endbuyItem
hasTicket
canAcessTablet
Last updated