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

38 lines
1.1 KiB
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-06-05 03:08:18 -04:00
---This will get the name of the Managment system being being used.
2025-06-05 02:56:01 -04:00
---@return string
Managment.GetManagmentName = function()
return 'Renewed-Banking'
end
2025-06-28 17:12:56 -04:00
---This will return a number
2025-05-30 03:46:26 -04:00
---@param account string
2025-06-28 17:12:56 -04:00
---@return number
2025-05-30 03:46:26 -04:00
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