migrated management to banking

also fixed loadmodel typo
This commit is contained in:
Mr.Crowley committed 2025-07-25 02:51:14 -05:00
1 parent ca11f2954e
commit 0970bdd604
12 files changed
+56 -56

No files matched your search

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