mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
739 B
739 B
title
| title |
|---|
| Methods |
These functions are inherited by instances of CVehicle.
local accounts = Ox.GetAccounts(owner)
accounts.get
Gets the current balance for an account.
local account = 'fleeca'
local balance = accounts.get(account)
accounts.set
Sets the balance of an account to the given amount.
local account, newBalance = 'fleeca', 200
accounts.set(account, newBalance)
accounts.add
Increases the balance of an account by the given amount.
local account, amount = 'fleeca', 100
accounts.add(account, amount)
accounts.remove
Decreases the balance of an account by the given amount.
local account, amount = 'fleeca', 100
accounts.remove(account, amount)