mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
28 lines
415 B
Plaintext
28 lines
415 B
Plaintext
## setMoneyCheck
|
|
|
|
Override the built-in money check.
|
|
|
|
```lua
|
|
exports.ox_fuel:setMoneyCheck(method)
|
|
```
|
|
|
|
### Parameters
|
|
|
|
- method: `function(): number`
|
|
|
|
### Example
|
|
|
|
```lua
|
|
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)
|
|
```
|