This commit is contained in:
gononono64 committed 2025-06-30 02:07:23 -05:00
commit 5dc99e4004
7 files changed
+52 -13

No files matched your search

+3 -3
View File
@@ -7,11 +7,11 @@ Managment.GetManagmentName = function()
return 'default' return 'default'
end end
---This will return a table with account details ---This will return a number
---@param account string ---@param account string
---@return table ---@return number
Managment.GetAccountMoney = function(account) Managment.GetAccountMoney = function(account)
return {}, print("The resource you are using does not support this function.") return 0, print("The resource you are using does not support this function.")
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
+2 -2
View File
@@ -10,9 +10,9 @@ Managment.GetManagmentName = function()
return 'fd_banking' return 'fd_banking'
end end
---This will return a table with account details ---This will return a number
---@param account string ---@param account string
---@return table ---@return number
Managment.GetAccountMoney = function(account) Managment.GetAccountMoney = function(account)
return fd_banking:GetAccount(account) return fd_banking:GetAccount(account)
end end
+2 -2
View File
@@ -10,9 +10,9 @@ Managment.GetManagmentName = function()
return 'okokBanking' return 'okokBanking'
end end
---This will return a table with account details ---This will return a number
---@param account string ---@param account string
---@return table ---@return number
Managment.GetAccountMoney = function(account) Managment.GetAccountMoney = function(account)
return okokBanking:GetAccount(account) return okokBanking:GetAccount(account)
end end
+2 -2
View File
@@ -10,9 +10,9 @@ Managment.GetManagmentName = function()
return 'qb-banking' return 'qb-banking'
end end
---This will return a table with account details ---This will return a number
---@param account string ---@param account string
---@return table ---@return number
Managment.GetAccountMoney = function(account) Managment.GetAccountMoney = function(account)
return qbBanking:GetAccountBalance(account) return qbBanking:GetAccountBalance(account)
end end
+2 -2
View File
@@ -10,9 +10,9 @@ Managment.GetManagmentName = function()
return 'Renewed-Banking' return 'Renewed-Banking'
end end
---This will return a table with account details ---This will return a number
---@param account string ---@param account string
---@return table ---@return number
Managment.GetAccountMoney = function(account) Managment.GetAccountMoney = function(account)
return renewed:getAccountMoney(account) return renewed:getAccountMoney(account)
end end
+2 -2
View File
@@ -10,9 +10,9 @@ Managment.GetManagmentName = function()
return 'tgiann-bank' return 'tgiann-bank'
end end
---This will return a table with account details ---This will return a number
---@param account string ---@param account string
---@return table ---@return number
Managment.GetAccountMoney = function(account) Managment.GetAccountMoney = function(account)
return tgiann:GetJobAccountBalance(account) return tgiann:GetJobAccountBalance(account)
end end
@@ -0,0 +1,39 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('wasabi_banking') == 'missing' then return end
Managment = Managment or {}
local wasabi_banking = exports['wasabi_banking']
---This will get the name of the Managment system being being used.
---@return string
Managment.GetManagmentName = function()
return 'wasabi_banking'
end
---This will return a number
---@param account string
---@return number
Managment.GetAccountMoney = function(account)
local balance = wasabi_banking:GetAccountBalance(account, 'society')
return balance or 0
end
---This will add money to the specified account of the passed amount
---@param account string
---@param amount number
---@param reason string
---@return boolean
Managment.AddAccountMoney = function(account, amount, reason)
return wasabi_banking:AddMoney('society', account, amount)
end
---This will remove money from the specified account of the passed amount
---@param account string
---@param amount number
---@param reason string
---@return boolean
Managment.RemoveAccountMoney = function(account, amount, reason)
return wasabi_banking:RemoveMoney('society', account, amount)
end
return Managment