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'
end
---This will return a table with account details
---This will return a number
---@param account string
---@return table
---@return number
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
---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'
end
---This will return a table with account details
---This will return a number
---@param account string
---@return table
---@return number
Managment.GetAccountMoney = function(account)
return fd_banking:GetAccount(account)
end
+2 -2
View File
@@ -10,9 +10,9 @@ Managment.GetManagmentName = function()
return 'okokBanking'
end
---This will return a table with account details
---This will return a number
---@param account string
---@return table
---@return number
Managment.GetAccountMoney = function(account)
return okokBanking:GetAccount(account)
end
+2 -2
View File
@@ -10,9 +10,9 @@ Managment.GetManagmentName = function()
return 'qb-banking'
end
---This will return a table with account details
---This will return a number
---@param account string
---@return table
---@return number
Managment.GetAccountMoney = function(account)
return qbBanking:GetAccountBalance(account)
end
+2 -2
View File
@@ -10,9 +10,9 @@ Managment.GetManagmentName = function()
return 'Renewed-Banking'
end
---This will return a table with account details
---This will return a number
---@param account string
---@return table
---@return number
Managment.GetAccountMoney = function(account)
return renewed:getAccountMoney(account)
end
+2 -2
View File
@@ -10,9 +10,9 @@ Managment.GetManagmentName = function()
return 'tgiann-bank'
end
---This will return a table with account details
---This will return a number
---@param account string
---@return table
---@return number
Managment.GetAccountMoney = function(account)
return tgiann:GetJobAccountBalance(account)
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