Files
community_bridge/modules/managment/renewed-banking/server.lua
T

32 lines
938 B
Lua
Raw Normal View History

2025-05-30 03:46:26 -04:00
---@diagnostic disable: duplicate-set-field
if GetResourceState('Renewed-Banking') == 'missing' then return end
Managment = Managment or {}
2025-05-30 04:07:39 -04:00
local renewed = exports['Renewed-Banking']
2025-05-30 03:46:26 -04:00
---This will return a table with account details
---@param account string
---@return table
Managment.GetAccountMoney = function(account)
2025-05-30 04:07:39 -04:00
return renewed:getAccountMoney(account)
2025-05-30 03:46:26 -04:00
end
---This will add money to the specified account of the passed amount
---@param account string
---@param amount number
---@param _ string
---@return boolean
Managment.AddAccountMoney = function(account, amount, _)
2025-05-30 04:07:39 -04:00
return renewed:addAccountMoney(account, amount)
2025-05-30 03:46:26 -04:00
end
---This will remove money from the specified account of the passed amount
---@param account string
---@param amount number
---@param _ string
---@return boolean
Managment.RemoveAccountMoney = function(account, amount, _)
2025-05-30 04:07:39 -04:00
return renewed:removeAccountMoney(account, amount)
2025-05-30 03:46:26 -04:00
end
return Managment