mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
18 lines
322 B
Markdown
18 lines
322 B
Markdown
### setMoneyCheck
|
|
|
|
Replaces the standard inventory search for "money".
|
|
|
|
```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)
|
|
```
|