2025-05-30 03:46:26 -04:00
|
|
|
---@diagnostic disable: duplicate-set-field
|
|
|
|
|
if GetResourceState('Renewed-Banking') == 'missing' then return end
|
2025-07-25 02:51:14 -05:00
|
|
|
Banking = Banking or {}
|
2025-05-30 03:46:26 -04:00
|
|
|
|
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
|
2025-07-25 02:51:14 -05:00
|
|
|
Banking.GetManagmentName = function()
|
2025-06-05 02:56:01 -04:00
|
|
|
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-07-25 02:51:14 -05:00
|
|
|
Banking.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
|
2025-07-25 02:51:14 -05:00
|
|
|
Banking.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
|
2025-07-25 02:51:14 -05:00
|
|
|
Banking.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
|
|
|
|
|
|
2025-07-25 02:51:14 -05:00
|
|
|
return Banking
|