Documentation added, deprecated old points, removed incomplete clothing bridge. I migrated the points into the new system and added deprecation notices. Cleaned some white spaces because they made me unhappy. Added GetStreetNameAtCoords as it may be useful to return a string for others. Added support for lb-tablet dispatch alerts (thank you loaf)
25 lines
813 B
Lua
25 lines
813 B
Lua
if GetResourceState('qb-banking') ~= 'started' then return end
|
|
Managment = Managment or {}
|
|
|
|
---This will return a table with account details
|
|
---@param account string
|
|
---@return table
|
|
Managment.GetAccountMoney = function(account)
|
|
return exports['qb-banking']:GetAccountBalance(account)
|
|
end
|
|
|
|
---This will add money to the specified account of the passed amount
|
|
---@param account string
|
|
---@param amount number
|
|
---@return boolean
|
|
Managment.AddAccountMoney = function(account, amount)
|
|
return exports['qb-banking']:AddMoney(account, amount)
|
|
end
|
|
|
|
---This will remove money from the specified account of the passed amount
|
|
---@param account string
|
|
---@param amount number
|
|
---@return boolean
|
|
Managment.RemoveAccountMoney = function(account, amount)
|
|
return exports['qb-banking']:RemoveMoney(account, amount)
|
|
end |