mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
* refactor: Add h1 headers to all pages missing it * refactor: missed example h3 * change hooks example heading to bold text --------- Co-authored-by: Luke <[email protected]>
30 lines
428 B
Plaintext
30 lines
428 B
Plaintext
# Functions
|
|
|
|
## 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)
|
|
```
|