27 lines
828 B
Lua
27 lines
828 B
Lua
if GetResourceState('okokBanking') ~= '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['okokBanking']:GetAccount(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['okokBanking']: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['okokBanking']:RemoveMoney(account, amount)
|
|
end
|
|
|
|
return Managment |