Update server.lua

This commit is contained in:
MrNewb committed 2025-05-30 04:07:39 -04:00
1 parent 3d40084640
commit 19a835a9f4
1 file changed
+5 -3
+5 -3
View File
@@ -2,11 +2,13 @@
if GetResourceState('Renewed-Banking') == 'missing' then return end if GetResourceState('Renewed-Banking') == 'missing' then return end
Managment = Managment or {} Managment = Managment or {}
local renewed = exports['Renewed-Banking']
---This will return a table with account details ---This will return a table with account details
---@param account string ---@param account string
---@return table ---@return table
Managment.GetAccountMoney = function(account) Managment.GetAccountMoney = function(account)
return exports['Renewed-Banking']:getAccountMoney(account) return renewed:getAccountMoney(account)
end end
---This will add money to the specified account of the passed amount ---This will add money to the specified account of the passed amount
@@ -15,7 +17,7 @@ end
---@param _ string ---@param _ string
---@return boolean ---@return boolean
Managment.AddAccountMoney = function(account, amount, _) Managment.AddAccountMoney = function(account, amount, _)
return exports['Renewed-Banking']:addAccountMoney(account, amount) return renewed:addAccountMoney(account, amount)
end end
---This will remove money from the specified account of the passed amount ---This will remove money from the specified account of the passed amount
@@ -24,7 +26,7 @@ end
---@param _ string ---@param _ string
---@return boolean ---@return boolean
Managment.RemoveAccountMoney = function(account, amount, _) Managment.RemoveAccountMoney = function(account, amount, _)
return exports['Renewed-Banking']:removeAccountMoney(account, amount) return renewed:removeAccountMoney(account, amount)
end end
return Managment return Managment