This commit is contained in:
Nordi98 2025-08-06 16:37:06 +02:00
parent 510e3ffcf2
commit f43cf424cf
305 changed files with 34683 additions and 0 deletions

View file

@ -0,0 +1,35 @@
---@diagnostic disable: duplicate-set-field
Managment = Managment or {}
---This will get the name of the Managment system being being used.
---@return string
Managment.GetManagmentName = function()
return 'default'
end
---This will return a number
---@param account string
---@return number
Managment.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
Managment.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
Managment.RemoveAccountMoney = function(account, amount, reason)
return false, print("The resource you are using does not support this function.")
end
return Managment

View file

@ -0,0 +1,38 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('fd_banking') == 'missing' then return end
Managment = Managment or {}
local fd_banking = exports['fd_banking']
---This will get the name of the Managment system being being used.
---@return string
Managment.GetManagmentName = function()
return 'fd_banking'
end
---This will return a number
---@param account string
---@return number
Managment.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
Managment.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
Managment.RemoveAccountMoney = function(account, amount, reason)
return fd_banking:RemoveMoney(account, amount, reason)
end
return Managment

View file

@ -0,0 +1,39 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('kartik-banking') == 'missing' then return end
Managment = Managment or {}
local kartik = exports['kartik-banking']
---This will get the name of the Managment system being being used.
---@return string
Managment.GetManagmentName = function()
return 'kartik-banking'
end
---This will return a number
---@param account string
---@return number
Managment.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
Managment.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
Managment.RemoveAccountMoney = function(account, amount, reason)
return kartik:RemoveAccountMoney(account, amount, reason)
end
return Managment

View file

@ -0,0 +1,38 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('okokBanking') == 'missing' then return end
Managment = Managment or {}
local okokBanking = exports['okokBanking']
---This will get the name of the Managment system being being used.
---@return string
Managment.GetManagmentName = function()
return 'okokBanking'
end
---This will return a number
---@param account string
---@return number
Managment.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
Managment.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
Managment.RemoveAccountMoney = function(account, amount, _)
return okokBanking:RemoveMoney(account, amount)
end
return Managment

View file

@ -0,0 +1,38 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('qb-banking') == 'missing' then return end
Managment = Managment or {}
local qbBanking = exports['qb-banking']
---This will get the name of the Managment system being being used.
---@return string
Managment.GetManagmentName = function()
return 'qb-banking'
end
---This will return a number
---@param account string
---@return number
Managment.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
Managment.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
Managment.RemoveAccountMoney = function(account, amount, reason)
return qbBanking:RemoveMoney(account, amount, reason)
end
return Managment

View file

@ -0,0 +1,38 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('Renewed-Banking') == 'missing' then return end
Managment = Managment or {}
local renewed = exports['Renewed-Banking']
---This will get the name of the Managment system being being used.
---@return string
Managment.GetManagmentName = function()
return 'Renewed-Banking'
end
---This will return a number
---@param account string
---@return number
Managment.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
Managment.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
Managment.RemoveAccountMoney = function(account, amount, _)
return renewed:removeAccountMoney(account, amount)
end
return Managment

View file

@ -0,0 +1,38 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('tgg-banking') == 'missing' then return end
Managment = Managment or {}
local tgg = exports['tgg-banking']
---This will get the name of the Managment system being being used.
---@return string
Managment.GetManagmentName = function()
return 'tgg-banking'
end
---This will return a number
---@param account string
---@return number
Managment.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
Managment.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
Managment.RemoveAccountMoney = function(account, amount, _)
return tgg:RemoveSocietyMoney(account, amount)
end
return Managment

View file

@ -0,0 +1,38 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('tgiann-bank') == 'missing' then return end
Managment = Managment or {}
local tgiann = exports["tgiann-bank"]
---This will get the name of the Managment system being being used.
---@return string
Managment.GetManagmentName = function()
return 'tgiann-bank'
end
---This will return a number
---@param account string
---@return number
Managment.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
Managment.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
Managment.RemoveAccountMoney = function(account, amount, _)
return tgiann:RemoveJobMoney(account, amount)
end
return Managment

View file

@ -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