setMoneyCheck
Override the built-in money check.
exports.ox_fuel:setMoneyCheck(method)
Parameters
- method:
function(): number
Example
exports.ox_fuel:setMoneyCheck(function()
local accounts = ESX.GetPlayerData().accounts
for i = 1, #accounts do
if accounts[i].name == 'bank' then
return accounts[i].money
end
end
return 0
end)