2025-06-06 18:46:32 -04:00
|
|
|
---@diagnostic disable: duplicate-set-field
|
|
|
|
|
if GetResourceState('tgiann-bank') == 'missing' then return end
|
2025-07-25 02:51:14 -05:00
|
|
|
Banking = Banking or {}
|
2025-06-06 18:46:32 -04:00
|
|
|
|
|
|
|
|
local tgiann = exports["tgiann-bank"]
|
|
|
|
|
|
|
|
|
|
---This will get the name of the Managment system being being used.
|
|
|
|
|
---@return string
|
2025-07-25 02:51:14 -05:00
|
|
|
Banking.GetManagmentName = function()
|
2025-06-06 18:46:32 -04:00
|
|
|
return 'tgiann-bank'
|
|
|
|
|
end
|
|
|
|
|
|
2025-06-28 17:12:56 -04:00
|
|
|
---This will return a number
|
2025-06-06 18:46:32 -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-06-06 18:46:32 -04:00
|
|
|
return tgiann:GetJobAccountBalance(account)
|
|
|
|
|
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-06-06 18:46:32 -04:00
|
|
|
return tgiann:AddJobMoney(account, amount)
|
|
|
|
|
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-06-06 18:46:32 -04:00
|
|
|
return tgiann:RemoveJobMoney(account, amount)
|
|
|
|
|
end
|
|
|
|
|
|
2025-07-25 02:51:14 -05:00
|
|
|
return Banking
|