Add GetResourceName function to all modules
Introduces a standardized GetResourceName function to banking, clothing, dispatch, doorlock, framework, fuel, helptext, housing, and other modules. This function returns the name of the in-use resource, improving resource identification and interoperability across the codebase.
This commit is contained in:
1 parent
cd16291038
commit
90c65dc55e
142 files changed
+784
-25
No files matched your search
@@ -7,6 +7,12 @@ Banking.GetManagmentName = function()
|
|||||||
return 'default'
|
return 'default'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Banking.GetResourceName = function()
|
||||||
|
return 'default'
|
||||||
|
end
|
||||||
|
|
||||||
---This will return a number
|
---This will return a number
|
||||||
---@param account string
|
---@param account string
|
||||||
---@return number
|
---@return number
|
||||||
|
|||||||
@@ -10,6 +10,12 @@ Banking.GetManagmentName = function()
|
|||||||
return 'fd_banking'
|
return 'fd_banking'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Banking.GetResourceName = function()
|
||||||
|
return 'fd_banking'
|
||||||
|
end
|
||||||
|
|
||||||
---This will return a number
|
---This will return a number
|
||||||
---@param account string
|
---@param account string
|
||||||
---@return number
|
---@return number
|
||||||
|
|||||||
@@ -10,6 +10,12 @@ Banking.GetManagmentName = function()
|
|||||||
return 'kartik-banking'
|
return 'kartik-banking'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Banking.GetResourceName = function()
|
||||||
|
return 'kartik-banking'
|
||||||
|
end
|
||||||
|
|
||||||
---This will return a number
|
---This will return a number
|
||||||
---@param account string
|
---@param account string
|
||||||
---@return number
|
---@return number
|
||||||
|
|||||||
@@ -10,6 +10,12 @@ Banking.GetManagmentName = function()
|
|||||||
return 'okokBanking'
|
return 'okokBanking'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Banking.GetResourceName = function()
|
||||||
|
return 'okokBanking'
|
||||||
|
end
|
||||||
|
|
||||||
---This will return a number
|
---This will return a number
|
||||||
---@param account string
|
---@param account string
|
||||||
---@return number
|
---@return number
|
||||||
|
|||||||
@@ -10,6 +10,12 @@ Banking.GetManagmentName = function()
|
|||||||
return 'qb-banking'
|
return 'qb-banking'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Banking.GetResourceName = function()
|
||||||
|
return 'qb-banking'
|
||||||
|
end
|
||||||
|
|
||||||
---This will return a number
|
---This will return a number
|
||||||
---@param account string
|
---@param account string
|
||||||
---@return number
|
---@return number
|
||||||
|
|||||||
@@ -10,6 +10,12 @@ Banking.GetManagmentName = function()
|
|||||||
return 'Renewed-Banking'
|
return 'Renewed-Banking'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Banking.GetResourceName = function()
|
||||||
|
return 'Renewed-Banking'
|
||||||
|
end
|
||||||
|
|
||||||
---This will return a number
|
---This will return a number
|
||||||
---@param account string
|
---@param account string
|
||||||
---@return number
|
---@return number
|
||||||
|
|||||||
@@ -10,6 +10,12 @@ Banking.GetManagmentName = function()
|
|||||||
return 'tgg-banking'
|
return 'tgg-banking'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Banking.GetResourceName = function()
|
||||||
|
return 'tgg-banking'
|
||||||
|
end
|
||||||
|
|
||||||
---This will return a number
|
---This will return a number
|
||||||
---@param account string
|
---@param account string
|
||||||
---@return number
|
---@return number
|
||||||
|
|||||||
@@ -10,6 +10,12 @@ Banking.GetManagmentName = function()
|
|||||||
return 'tgiann-bank'
|
return 'tgiann-bank'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Banking.GetResourceName = function()
|
||||||
|
return 'tgiann-bank'
|
||||||
|
end
|
||||||
|
|
||||||
---This will return a number
|
---This will return a number
|
||||||
---@param account string
|
---@param account string
|
||||||
---@return number
|
---@return number
|
||||||
|
|||||||
@@ -10,6 +10,12 @@ Banking.GetManagmentName = function()
|
|||||||
return 'wasabi_banking'
|
return 'wasabi_banking'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Banking.GetResourceName = function()
|
||||||
|
return 'wasabi_banking'
|
||||||
|
end
|
||||||
|
|
||||||
---This will return a number
|
---This will return a number
|
||||||
---@param account string
|
---@param account string
|
||||||
---@return number
|
---@return number
|
||||||
|
|||||||
@@ -16,6 +16,13 @@ function Clothing.IsMale()
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Clothing.GetResourceName = function()
|
||||||
|
return 'default'
|
||||||
|
end
|
||||||
|
|
||||||
---Get the skin data of a ped
|
---Get the skin data of a ped
|
||||||
---@param entity number
|
---@param entity number
|
||||||
---@return table
|
---@return table
|
||||||
|
|||||||
@@ -9,6 +9,12 @@ function Clothing.IsMale(src)
|
|||||||
return GetEntityModel(ped) == `mp_m_freemode_01`
|
return GetEntityModel(ped) == `mp_m_freemode_01`
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Clothing.GetResourceName = function()
|
||||||
|
return 'default'
|
||||||
|
end
|
||||||
|
|
||||||
function Clothing.GetAppearance(src)
|
function Clothing.GetAppearance(src)
|
||||||
return Callback.Trigger('community_bridge:cb:GetAppearance', src)
|
return Callback.Trigger('community_bridge:cb:GetAppearance', src)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -6,3 +6,9 @@ Clothing = Clothing or {}
|
|||||||
function Clothing.OpenMenu()
|
function Clothing.OpenMenu()
|
||||||
TriggerEvent('esx_skin:openMenu', function() end, function() end, true)
|
TriggerEvent('esx_skin:openMenu', function() end, function() end, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Clothing.GetResourceName = function()
|
||||||
|
return 'esx_skin'
|
||||||
|
end
|
||||||
@@ -35,6 +35,12 @@ function Clothing.GetFullAppearanceData(src)
|
|||||||
return Clothing.Players[citId]
|
return Clothing.Players[citId]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Clothing.GetResourceName = function()
|
||||||
|
return 'esx_skin'
|
||||||
|
end
|
||||||
|
|
||||||
---Retrieves a player's converted appearance data for easy use across modules
|
---Retrieves a player's converted appearance data for easy use across modules
|
||||||
---@param src number The server ID of the player
|
---@param src number The server ID of the player
|
||||||
---@param fullData boolean Optional - If true, returns the full data object including skin and model
|
---@param fullData boolean Optional - If true, returns the full data object including skin and model
|
||||||
|
|||||||
@@ -6,3 +6,9 @@ Clothing = Clothing or {}
|
|||||||
function Clothing.OpenMenu()
|
function Clothing.OpenMenu()
|
||||||
TriggerEvent('qb-clothing:client:openMenu')
|
TriggerEvent('qb-clothing:client:openMenu')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Clothing.GetResourceName = function()
|
||||||
|
return 'fivem-appearance'
|
||||||
|
end
|
||||||
@@ -44,6 +44,12 @@ function Clothing.GetFullAppearanceData(src)
|
|||||||
return Clothing.Players[citId]
|
return Clothing.Players[citId]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Clothing.GetResourceName = function()
|
||||||
|
return 'fivem-appearance'
|
||||||
|
end
|
||||||
|
|
||||||
--- Retrieves a player's converted appearance data for easy use across modules
|
--- Retrieves a player's converted appearance data for easy use across modules
|
||||||
---@param src number The server ID of the player
|
---@param src number The server ID of the player
|
||||||
---@param fullData boolean Optional - If true, returns the full data object including skin and model
|
---@param fullData boolean Optional - If true, returns the full data object including skin and model
|
||||||
|
|||||||
@@ -6,3 +6,9 @@ Clothing = Clothing or {}
|
|||||||
function Clothing.OpenMenu()
|
function Clothing.OpenMenu()
|
||||||
TriggerEvent('qb-clothing:client:openMenu')
|
TriggerEvent('qb-clothing:client:openMenu')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Clothing.GetResourceName = function()
|
||||||
|
return 'illenium-appearance'
|
||||||
|
end
|
||||||
@@ -35,6 +35,12 @@ function Clothing.GetFullAppearanceData(src)
|
|||||||
return Clothing.Players[citId]
|
return Clothing.Players[citId]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Clothing.GetResourceName = function()
|
||||||
|
return 'illenium-appearance'
|
||||||
|
end
|
||||||
|
|
||||||
--- Retrieves a player's converted appearance data for easy use across modules
|
--- Retrieves a player's converted appearance data for easy use across modules
|
||||||
---@param src number The server ID of the player
|
---@param src number The server ID of the player
|
||||||
---@param fullData boolean Optional - If true, returns the full data object including skin and model
|
---@param fullData boolean Optional - If true, returns the full data object including skin and model
|
||||||
|
|||||||
@@ -6,3 +6,9 @@ Clothing = Clothing or {}
|
|||||||
function Clothing.OpenMenu()
|
function Clothing.OpenMenu()
|
||||||
TriggerEvent('qb-clothing:client:openMenu')
|
TriggerEvent('qb-clothing:client:openMenu')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Clothing.GetResourceName = function()
|
||||||
|
return 'qb-clothing'
|
||||||
|
end
|
||||||
@@ -38,6 +38,12 @@ function Clothing.GetFullAppearanceData(src)
|
|||||||
return Clothing.Players[citId]
|
return Clothing.Players[citId]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Clothing.GetResourceName = function()
|
||||||
|
return 'qb-clothing'
|
||||||
|
end
|
||||||
|
|
||||||
--- Retrieves a player's converted appearance data for easy use across modules
|
--- Retrieves a player's converted appearance data for easy use across modules
|
||||||
---@param src number The server ID of the player
|
---@param src number The server ID of the player
|
||||||
---@param fullData boolean Optional - If true, returns the full data object including skin and model
|
---@param fullData boolean Optional - If true, returns the full data object including skin and model
|
||||||
|
|||||||
@@ -4,4 +4,10 @@ Clothing = Clothing or {}
|
|||||||
|
|
||||||
function Clothing.OpenMenu()
|
function Clothing.OpenMenu()
|
||||||
TriggerEvent('qb-clothing:client:openMenu')
|
TriggerEvent('qb-clothing:client:openMenu')
|
||||||
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Clothing.GetResourceName = function()
|
||||||
|
return 'rcore_clothing'
|
||||||
end
|
end
|
||||||
@@ -30,4 +30,10 @@ RegisterNetEvent('community_bridge:Client:DispatchAlert', function(alert)
|
|||||||
Bridge.Utility.RemoveBlip(blip)
|
Bridge.Utility.RemoveBlip(blip)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'default'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -10,4 +10,10 @@ RegisterNetEvent("community_bridge:Server:DispatchAlert", function(data)
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'default'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -16,4 +16,10 @@ Dispatch.SendAlert = function(data)
|
|||||||
exports["bub-mdt"]:CustomAlert(alertData)
|
exports["bub-mdt"]:CustomAlert(alertData)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'bub-mdt'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -1,4 +1,10 @@
|
|||||||
if GetResourceState('bub-mdt') == 'missing' then return end
|
if GetResourceState('bub-mdt') == 'missing' then return end
|
||||||
Dispatch = Dispatch or {}
|
Dispatch = Dispatch or {}
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'bub-mdt'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -24,4 +24,10 @@ Dispatch.SendAlert = function(data)
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'cd_dispatch'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -1,4 +1,10 @@
|
|||||||
if GetResourceState('cd_dispatch') == 'missing' then return end
|
if GetResourceState('cd_dispatch') == 'missing' then return end
|
||||||
Dispatch = Dispatch or {}
|
Dispatch = Dispatch or {}
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'cd_dispatch'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -27,4 +27,10 @@ Dispatch.SendAlert = function(data)
|
|||||||
exports['kartik-mdt']:CustomAlert(alertOptions)
|
exports['kartik-mdt']:CustomAlert(alertOptions)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'kartik-mdt'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -1,4 +1,10 @@
|
|||||||
if GetResourceState('kartik-mdt') == 'missing' then return end
|
if GetResourceState('kartik-mdt') == 'missing' then return end
|
||||||
Dispatch = Dispatch or {}
|
Dispatch = Dispatch or {}
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'kartik-mdt'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -40,4 +40,10 @@ Dispatch.SendAlert = function(data)
|
|||||||
TriggerServerEvent("community_bridge:server:dispatch:sendAlert", alertData)
|
TriggerServerEvent("community_bridge:server:dispatch:sendAlert", alertData)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'lb-tablet'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -5,4 +5,10 @@ RegisterNetEvent("community_bridge:server:dispatch:sendAlert", function(data)
|
|||||||
exports["lb-tablet"]:AddDispatch(data) -- this has a return value but we dont really have a use for it atm.
|
exports["lb-tablet"]:AddDispatch(data) -- this has a return value but we dont really have a use for it atm.
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'lb-tablet'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -19,4 +19,10 @@ Dispatch.SendAlert = function(data)
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'linden_outlawalert'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -1,4 +1,10 @@
|
|||||||
if GetResourceState('linden_outlawalert') == 'missing' then return end
|
if GetResourceState('linden_outlawalert') == 'missing' then return end
|
||||||
Dispatch = Dispatch or {}
|
Dispatch = Dispatch or {}
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'linden_outlawalert'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -1,4 +1,10 @@
|
|||||||
if GetResourceState('origen_police') == 'missing' then return end
|
if GetResourceState('origen_police') == 'missing' then return end
|
||||||
Dispatch = Dispatch or {}
|
Dispatch = Dispatch or {}
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'origen_police'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -7,4 +7,10 @@ Dispatch.SendAlert = function(data)
|
|||||||
TriggerServerEvent('community_bridge:Server:piotreq_gpt', data)
|
TriggerServerEvent('community_bridge:Server:piotreq_gpt', data)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'piotreq_gpt'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -36,4 +36,10 @@ RegisterNetEvent('community_bridge:Server:piotreq_gpt', function(data)
|
|||||||
Dispatch.SendAlert(src, data)
|
Dispatch.SendAlert(src, data)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'piotreq_gpt'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -27,4 +27,10 @@ Dispatch.SendAlert = function(data)
|
|||||||
exports["ps-dispatch"]:CustomAlert(alertData)
|
exports["ps-dispatch"]:CustomAlert(alertData)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'ps-dispatch'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -2,4 +2,10 @@ if GetResourceState('ps-dispatch') == 'missing' then return end
|
|||||||
if GetResourceState('lb-tablet') == 'started' then return end
|
if GetResourceState('lb-tablet') == 'started' then return end
|
||||||
Dispatch = Dispatch or {}
|
Dispatch = Dispatch or {}
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'ps-dispatch'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -38,4 +38,11 @@ Dispatch.SendAlert = function(data)
|
|||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'qs-dispatch'
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -1,4 +1,11 @@
|
|||||||
if GetResourceState('qs-dispatch') == 'missing' then return end
|
if GetResourceState('qs-dispatch') == 'missing' then return end
|
||||||
Dispatch = Dispatch or {}
|
Dispatch = Dispatch or {}
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'qs-dispatch'
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -14,4 +14,11 @@ Dispatch.SendAlert = function(data)
|
|||||||
TriggerServerEvent("community_bridge:server:dispatch:sendAlert", alertData)
|
TriggerServerEvent("community_bridge:server:dispatch:sendAlert", alertData)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'redutzu-mdt'
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -11,4 +11,10 @@ RegisterNetEvent("community_bridge:server:dispatch:sendAlert", function(data)
|
|||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'redutzu-mdt'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -20,4 +20,10 @@ Dispatch.SendAlert = function(data)
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'tk_dispatch'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -1,4 +1,10 @@
|
|||||||
if GetResourceState('tk_dispatch') == 'missing' then return end
|
if GetResourceState('tk_dispatch') == 'missing' then return end
|
||||||
Dispatch = Dispatch or {}
|
Dispatch = Dispatch or {}
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Dispatch.GetResourceName = function()
|
||||||
|
return 'tk_dispatch'
|
||||||
|
end
|
||||||
|
|
||||||
return Dispatch
|
return Dispatch
|
||||||
@@ -10,4 +10,10 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Doorlock.GetResourceName = function()
|
||||||
|
return 'default'
|
||||||
|
end
|
||||||
|
|
||||||
return Doorlock
|
return Doorlock
|
||||||
@@ -9,4 +9,10 @@ Doorlock.GetClosestDoor = function()
|
|||||||
return exports["doors_creator"]:getClosestActiveDoor()
|
return exports["doors_creator"]:getClosestActiveDoor()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Doorlock.GetResourceName = function()
|
||||||
|
return 'doors_creator'
|
||||||
|
end
|
||||||
|
|
||||||
return Doorlock
|
return Doorlock
|
||||||
@@ -18,4 +18,10 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Doorlock.GetResourceName = function()
|
||||||
|
return 'doors_creator'
|
||||||
|
end
|
||||||
|
|
||||||
return Doorlock
|
return Doorlock
|
||||||
@@ -11,4 +11,10 @@ Doorlock.GetClosestDoor = function()
|
|||||||
return tostring(doorData.id) or nil
|
return tostring(doorData.id) or nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Doorlock.GetResourceName = function()
|
||||||
|
return 'ox_doorlock'
|
||||||
|
end
|
||||||
|
|
||||||
return Doorlock
|
return Doorlock
|
||||||
@@ -20,4 +20,10 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Doorlock.GetResourceName = function()
|
||||||
|
return 'ox_doorlock'
|
||||||
|
end
|
||||||
|
|
||||||
return Doorlock
|
return Doorlock
|
||||||
@@ -23,4 +23,10 @@ Doorlock.GetClosestDoor = function()
|
|||||||
return door
|
return door
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Doorlock.GetResourceName = function()
|
||||||
|
return 'qb-doorlock'
|
||||||
|
end
|
||||||
|
|
||||||
return Doorlock
|
return Doorlock
|
||||||
@@ -12,4 +12,10 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Doorlock.GetResourceName = function()
|
||||||
|
return 'qb-doorlock'
|
||||||
|
end
|
||||||
|
|
||||||
return Doorlock
|
return Doorlock
|
||||||
@@ -21,4 +21,10 @@ Doorlock.GetClosestDoor = function()
|
|||||||
return door
|
return door
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Doorlock.GetResourceName = function()
|
||||||
|
return 'rcore_doorlock'
|
||||||
|
end
|
||||||
|
|
||||||
return Doorlock
|
return Doorlock
|
||||||
@@ -16,4 +16,11 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
|
|||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Doorlock.GetResourceName = function()
|
||||||
|
return 'rcore_doorlock'
|
||||||
|
end
|
||||||
|
|
||||||
return Doorlock
|
return Doorlock
|
||||||
@@ -8,6 +8,12 @@ AddStateBagChangeHandler('jobcounts', 'global', function(bagName, key, value)
|
|||||||
currentJobCounts = value
|
currentJobCounts = value
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Framework.GetResourceName = function()
|
||||||
|
return 'default'
|
||||||
|
end
|
||||||
|
|
||||||
---This is an internal function that will be used to retrieve job counts later.
|
---This is an internal function that will be used to retrieve job counts later.
|
||||||
---@param jobName string
|
---@param jobName string
|
||||||
---@return number
|
---@return number
|
||||||
|
|||||||
@@ -7,6 +7,12 @@ local globalState = GlobalState
|
|||||||
|
|
||||||
globalState.jobcounts = {}
|
globalState.jobcounts = {}
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Framework.GetResourceName = function()
|
||||||
|
return 'default'
|
||||||
|
end
|
||||||
|
|
||||||
---This is an internal function that will be used to retrieve job counts later.
|
---This is an internal function that will be used to retrieve job counts later.
|
||||||
---@param jobName string
|
---@param jobName string
|
||||||
---@return number
|
---@return number
|
||||||
|
|||||||
@@ -22,6 +22,12 @@ Framework.GetFrameworkName = function()
|
|||||||
return 'es_extended'
|
return 'es_extended'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Framework.GetResourceName = function()
|
||||||
|
return 'es_extended'
|
||||||
|
end
|
||||||
|
|
||||||
--- @description This will return true if the player is loaded, false otherwise.
|
--- @description This will return true if the player is loaded, false otherwise.
|
||||||
--- This could be useful in scripts that rely on player loaded events and offer a debug mode to hit this function
|
--- This could be useful in scripts that rely on player loaded events and offer a debug mode to hit this function
|
||||||
--- @return boolean
|
--- @return boolean
|
||||||
|
|||||||
@@ -16,6 +16,12 @@ Framework.GetFrameworkName = function()
|
|||||||
return 'es_extended'
|
return 'es_extended'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Framework.GetResourceName = function()
|
||||||
|
return 'es_extended'
|
||||||
|
end
|
||||||
|
|
||||||
--- @description This is an internal function, its here to attempt to emulate qbs shared items mainly
|
--- @description This is an internal function, its here to attempt to emulate qbs shared items mainly
|
||||||
Framework.ItemList = function()
|
Framework.ItemList = function()
|
||||||
if cachedItemList then return cachedItemList end
|
if cachedItemList then return cachedItemList end
|
||||||
|
|||||||
@@ -14,6 +14,12 @@ Framework.GetFrameworkName = function()
|
|||||||
return 'qb-core'
|
return 'qb-core'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Framework.GetResourceName = function()
|
||||||
|
return 'qb-core'
|
||||||
|
end
|
||||||
|
|
||||||
---This will return true if the player is loaded, false otherwise.
|
---This will return true if the player is loaded, false otherwise.
|
||||||
---This could be useful in scripts that rely on player loaded events and offer a debug mode to hit this function.
|
---This could be useful in scripts that rely on player loaded events and offer a debug mode to hit this function.
|
||||||
---@return boolean
|
---@return boolean
|
||||||
|
|||||||
@@ -14,6 +14,12 @@ Framework.GetFrameworkName = function()
|
|||||||
return 'qb-core'
|
return 'qb-core'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Framework.GetResourceName = function()
|
||||||
|
return 'qb-core'
|
||||||
|
end
|
||||||
|
|
||||||
---This will return if the player is an admin in the framework.
|
---This will return if the player is an admin in the framework.
|
||||||
---@param src any
|
---@param src any
|
||||||
---@return boolean
|
---@return boolean
|
||||||
|
|||||||
@@ -11,6 +11,12 @@ Framework.GetFrameworkName = function()
|
|||||||
return 'qbx_core'
|
return 'qbx_core'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Framework.GetResourceName = function()
|
||||||
|
return 'qbx_core'
|
||||||
|
end
|
||||||
|
|
||||||
---This will return true if the player is loaded, false otherwise.
|
---This will return true if the player is loaded, false otherwise.
|
||||||
---This could be useful in scripts that rely on player loaded events and offer a debug mode to hit this function.
|
---This could be useful in scripts that rely on player loaded events and offer a debug mode to hit this function.
|
||||||
---@return boolean
|
---@return boolean
|
||||||
|
|||||||
@@ -11,6 +11,12 @@ Framework.GetFrameworkName = function()
|
|||||||
return 'qbx_core'
|
return 'qbx_core'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Framework.GetResourceName = function()
|
||||||
|
return 'qbx_core'
|
||||||
|
end
|
||||||
|
|
||||||
---This will return if the player is an admin in the framework.
|
---This will return if the player is an admin in the framework.
|
||||||
---@param src any
|
---@param src any
|
||||||
---@return boolean
|
---@return boolean
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ Fuel = Fuel or {}
|
|||||||
Fuel.GetResourceName = function()
|
Fuel.GetResourceName = function()
|
||||||
return 'default'
|
return 'default'
|
||||||
end
|
end
|
||||||
|
|
||||||
---Returns the current fuel level of a vehicle.
|
---Returns the current fuel level of a vehicle.
|
||||||
---@param vehicle number The vehicle entity handle.
|
---@param vehicle number The vehicle entity handle.
|
||||||
---@return number The vehicle fuel level.
|
---@return number The vehicle fuel level.
|
||||||
|
|||||||
@@ -9,6 +9,12 @@ HelpText.ShowHelpText = function(message, _position)
|
|||||||
return Framework.ShowHelpText(message, _position)
|
return Framework.ShowHelpText(message, _position)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
HelpText.GetResourceName = function()
|
||||||
|
return "default"
|
||||||
|
end
|
||||||
|
|
||||||
---This will hide the help text message on the screen
|
---This will hide the help text message on the screen
|
||||||
---@return nil
|
---@return nil
|
||||||
HelpText.HideHelpText = function()
|
HelpText.HideHelpText = function()
|
||||||
|
|||||||
@@ -9,6 +9,12 @@ HelpText.ShowHelpText = function(src, message, position)
|
|||||||
TriggerClientEvent('community_bridge:Client:ShowHelpText', src, message, position)
|
TriggerClientEvent('community_bridge:Client:ShowHelpText', src, message, position)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
HelpText.GetResourceName = function()
|
||||||
|
return "default"
|
||||||
|
end
|
||||||
|
|
||||||
---This will hide the help text message on the screen for the specified player
|
---This will hide the help text message on the screen for the specified player
|
||||||
---@param src number
|
---@param src number
|
||||||
HelpText.HideHelpText = function(src)
|
HelpText.HideHelpText = function(src)
|
||||||
|
|||||||
@@ -13,6 +13,12 @@ HelpText.ShowHelpText = function(message, _position)
|
|||||||
return TriggerEvent('cd_drawtextui:ShowUI', 'show', message)
|
return TriggerEvent('cd_drawtextui:ShowUI', 'show', message)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
HelpText.GetResourceName = function()
|
||||||
|
return resourceName
|
||||||
|
end
|
||||||
|
|
||||||
---This will hide the help text message on the screen
|
---This will hide the help text message on the screen
|
||||||
---@return nil
|
---@return nil
|
||||||
HelpText.HideHelpText = function()
|
HelpText.HideHelpText = function()
|
||||||
|
|||||||
@@ -12,6 +12,12 @@ HelpText.ShowHelpText = function(message, _position)
|
|||||||
return exports['jg-textui']:DrawText(message)
|
return exports['jg-textui']:DrawText(message)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
HelpText.GetResourceName = function()
|
||||||
|
return resourceName
|
||||||
|
end
|
||||||
|
|
||||||
---This will hide the help text message on the screen
|
---This will hide the help text message on the screen
|
||||||
---@return nil
|
---@return nil
|
||||||
HelpText.HideHelpText = function()
|
HelpText.HideHelpText = function()
|
||||||
|
|||||||
@@ -12,6 +12,12 @@ HelpText.ShowHelpText = function(message, _position)
|
|||||||
return exports['lab-HintUI']:Show(message, "Hint Text")
|
return exports['lab-HintUI']:Show(message, "Hint Text")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
HelpText.GetResourceName = function()
|
||||||
|
return resourceName
|
||||||
|
end
|
||||||
|
|
||||||
---This will hide the help text message on the screen
|
---This will hide the help text message on the screen
|
||||||
---@return nil
|
---@return nil
|
||||||
HelpText.HideHelpText = function()
|
HelpText.HideHelpText = function()
|
||||||
|
|||||||
@@ -12,6 +12,12 @@ HelpText.ShowHelpText = function(message, position)
|
|||||||
return exports.lation_ui:showText({description = tostring(message), position = position or 'right-center'})
|
return exports.lation_ui:showText({description = tostring(message), position = position or 'right-center'})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
HelpText.GetResourceName = function()
|
||||||
|
return resourceName
|
||||||
|
end
|
||||||
|
|
||||||
---This will hide the help text message on the screen
|
---This will hide the help text message on the screen
|
||||||
---@return nil
|
---@return nil
|
||||||
HelpText.HideHelpText = function()
|
HelpText.HideHelpText = function()
|
||||||
|
|||||||
@@ -12,6 +12,12 @@ HelpText.ShowHelpText = function(message, _position)
|
|||||||
return exports['okokTextUI']:Open(message, 'darkblue', _position, false)
|
return exports['okokTextUI']:Open(message, 'darkblue', _position, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
HelpText.GetResourceName = function()
|
||||||
|
return resourceName
|
||||||
|
end
|
||||||
|
|
||||||
---This will hide the help text message on the screen
|
---This will hide the help text message on the screen
|
||||||
---@return nil
|
---@return nil
|
||||||
HelpText.HideHelpText = function()
|
HelpText.HideHelpText = function()
|
||||||
|
|||||||
@@ -14,6 +14,12 @@ HelpText.ShowHelpText = function(message, position)
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
HelpText.GetResourceName = function()
|
||||||
|
return resourceName
|
||||||
|
end
|
||||||
|
|
||||||
---This will hide the help text message on the screen
|
---This will hide the help text message on the screen
|
||||||
---@return nil
|
---@return nil
|
||||||
HelpText.HideHelpText = function()
|
HelpText.HideHelpText = function()
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
Housing = Housing or {}
|
Housing = Housing or {}
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Housing.GetResourceName = function()
|
||||||
|
return "default"
|
||||||
|
end
|
||||||
|
|
||||||
return Housing
|
return Housing
|
||||||
@@ -11,4 +11,10 @@ RegisterNetEvent('community_bridge:Server:_OnPlayerInside', function(src, inside
|
|||||||
TriggerEvent('community_bridge:Client:OnPlayerInside', src, insideId, currentBucket, playerCoords)
|
TriggerEvent('community_bridge:Client:OnPlayerInside', src, insideId, currentBucket, playerCoords)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Housing.GetResourceName = function()
|
||||||
|
return "default"
|
||||||
|
end
|
||||||
|
|
||||||
return Housing
|
return Housing
|
||||||
@@ -10,4 +10,10 @@ RegisterNetEvent("Housing:client:DeleteFurnitures", function()
|
|||||||
TriggerServerEvent('community_bridge:Server:_OnPlayerInside', false)
|
TriggerServerEvent('community_bridge:Server:_OnPlayerInside', false)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Housing.GetResourceName = function()
|
||||||
|
return "bcs-housing"
|
||||||
|
end
|
||||||
|
|
||||||
return Housing
|
return Housing
|
||||||
@@ -2,4 +2,10 @@ if GetResourceState('bcs-housing') == 'missing' then return end
|
|||||||
|
|
||||||
Housing = Housing or {}
|
Housing = Housing or {}
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Housing.GetResourceName = function()
|
||||||
|
return "bcs-housing"
|
||||||
|
end
|
||||||
|
|
||||||
return Housing
|
return Housing
|
||||||
@@ -2,4 +2,10 @@ if GetResourceState('esx_property') == 'missing' then return end
|
|||||||
|
|
||||||
Housing = Housing or {}
|
Housing = Housing or {}
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Housing.GetResourceName = function()
|
||||||
|
return "esx_property"
|
||||||
|
end
|
||||||
|
|
||||||
return Housing
|
return Housing
|
||||||
@@ -12,4 +12,10 @@ RegisterNetEvent('esx_property:leave', function(insideId)
|
|||||||
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Housing.GetResourceName = function()
|
||||||
|
return "esx_property"
|
||||||
|
end
|
||||||
|
|
||||||
return Housing
|
return Housing
|
||||||
@@ -2,4 +2,10 @@ if GetResourceState('ps-housing') == 'missing' then return end
|
|||||||
|
|
||||||
Housing = Housing or {}
|
Housing = Housing or {}
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Housing.GetResourceName = function()
|
||||||
|
return "ps-housing"
|
||||||
|
end
|
||||||
|
|
||||||
return Housing
|
return Housing
|
||||||
@@ -12,4 +12,10 @@ RegisterNetEvent('ps-housing:server:leaveProperty', function(insideId)
|
|||||||
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Housing.GetResourceName = function()
|
||||||
|
return "ps-housing"
|
||||||
|
end
|
||||||
|
|
||||||
return Housing
|
return Housing
|
||||||
@@ -2,4 +2,10 @@ if GetResourceState('qb-appartments') == 'missing' then return end
|
|||||||
|
|
||||||
Housing = Housing or {}
|
Housing = Housing or {}
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Housing.GetResourceName = function()
|
||||||
|
return "qb-appartments"
|
||||||
|
end
|
||||||
|
|
||||||
return Housing
|
return Housing
|
||||||
@@ -8,4 +8,11 @@ RegisterNetEvent('qb-apartments:server:SetInsideMeta', function(house, insideId,
|
|||||||
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Housing.GetResourceName = function()
|
||||||
|
return "qb-appartments"
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
return Housing
|
return Housing
|
||||||
@@ -2,4 +2,10 @@ if GetResourceState('qb-houses') == 'missing' then return end
|
|||||||
|
|
||||||
Housing = Housing or {}
|
Housing = Housing or {}
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Housing.GetResourceName = function()
|
||||||
|
return "qb-houses"
|
||||||
|
end
|
||||||
|
|
||||||
return Housing
|
return Housing
|
||||||
@@ -8,4 +8,10 @@ RegisterNetEvent('qb-houses:server:SetInsideMeta', function(insideId, bool)
|
|||||||
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Housing.GetResourceName = function()
|
||||||
|
return "qb-houses"
|
||||||
|
end
|
||||||
|
|
||||||
return Housing
|
return Housing
|
||||||
@@ -8,6 +8,12 @@ Inventory.GetItemInfo = function(item)
|
|||||||
return Framework.GetItemInfo(item)
|
return Framework.GetItemInfo(item)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "default"
|
||||||
|
end
|
||||||
|
|
||||||
---Will return boolean if the player has the item.
|
---Will return boolean if the player has the item.
|
||||||
---@param item string
|
---@param item string
|
||||||
---@return boolean
|
---@return boolean
|
||||||
|
|||||||
@@ -13,6 +13,13 @@ Inventory.AddItem = function(src, item, count, slot, metadata)
|
|||||||
return Framework.AddItem(src, item, count, slot, metadata)
|
return Framework.AddItem(src, item, count, slot, metadata)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "default"
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
---This will remove an item, and return true or false based on success
|
---This will remove an item, and return true or false based on success
|
||||||
---@param src number
|
---@param src number
|
||||||
---@param item string
|
---@param item string
|
||||||
|
|||||||
@@ -21,6 +21,13 @@ Inventory.GetItemInfo = function(item)
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "codem-inventory"
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
---This will return the entire items table from the inventory.
|
---This will return the entire items table from the inventory.
|
||||||
---@return table
|
---@return table
|
||||||
Inventory.Items = function()
|
Inventory.Items = function()
|
||||||
|
|||||||
@@ -18,6 +18,13 @@ Inventory.AddItem = function(src, item, count, slot, metadata)
|
|||||||
return codem:AddItem(src, item, count, slot, metadata)
|
return codem:AddItem(src, item, count, slot, metadata)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "codem-inventory"
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
---This will remove an item, and return true or false based on success
|
---This will remove an item, and return true or false based on success
|
||||||
---@param src number
|
---@param src number
|
||||||
---@param item string
|
---@param item string
|
||||||
|
|||||||
@@ -24,6 +24,13 @@ Inventory.GetItemInfo = function(item)
|
|||||||
return {name = dataRepack.name, label = dataRepack.label, stack = dataRepack.stack, weight = dataRepack.weight, description = dataRepack.description, image = Inventory.GetImagePath(dataRepack.name) }
|
return {name = dataRepack.name, label = dataRepack.label, stack = dataRepack.stack, weight = dataRepack.weight, description = dataRepack.description, image = Inventory.GetImagePath(dataRepack.name) }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "core_inventory"
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
---This will return the entire items table from the inventory.
|
---This will return the entire items table from the inventory.
|
||||||
---@return table
|
---@return table
|
||||||
Inventory.Items = function()
|
Inventory.Items = function()
|
||||||
|
|||||||
@@ -18,6 +18,14 @@ Inventory.AddItem = function(src, item, count, slot, metadata)
|
|||||||
return core:addItem(src, item, count, metadata)
|
return core:addItem(src, item, count, metadata)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "core_inventory"
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
---This will remove an item, and return true or false based on success
|
---This will remove an item, and return true or false based on success
|
||||||
---@param src number
|
---@param src number
|
||||||
---@param item string
|
---@param item string
|
||||||
|
|||||||
@@ -20,6 +20,14 @@ Inventory.GetItemInfo = function(item)
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "jpr-inventory"
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
---Will return boolean if the player has the item.
|
---Will return boolean if the player has the item.
|
||||||
---@param item string
|
---@param item string
|
||||||
---@return boolean
|
---@return boolean
|
||||||
|
|||||||
@@ -19,6 +19,12 @@ Inventory.AddItem = function(src, item, count, slot, metadata)
|
|||||||
return exports['jpr-inventory']:AddItem(src, item, count, slot, metadata, 'community_bridge Item added')
|
return exports['jpr-inventory']:AddItem(src, item, count, slot, metadata, 'community_bridge Item added')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "jpr-inventory"
|
||||||
|
end
|
||||||
|
|
||||||
---This will remove an item, and return true or false based on success
|
---This will remove an item, and return true or false based on success
|
||||||
---@param src number
|
---@param src number
|
||||||
---@param item string
|
---@param item string
|
||||||
|
|||||||
@@ -19,6 +19,12 @@ Inventory.GetItemInfo = function(item)
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "origen_inventory"
|
||||||
|
end
|
||||||
|
|
||||||
---This will return the entire items table from the inventory.
|
---This will return the entire items table from the inventory.
|
||||||
---@return table
|
---@return table
|
||||||
Inventory.Items = function()
|
Inventory.Items = function()
|
||||||
|
|||||||
@@ -18,6 +18,12 @@ Inventory.AddItem = function(src, item, count, slot, metadata)
|
|||||||
return origin:AddItem(src, item, count, metadata, slot, true)
|
return origin:AddItem(src, item, count, metadata, slot, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "origen_inventory"
|
||||||
|
end
|
||||||
|
|
||||||
---This will remove an item, and return true or false based on success
|
---This will remove an item, and return true or false based on success
|
||||||
---@param src number
|
---@param src number
|
||||||
---@param item string
|
---@param item string
|
||||||
|
|||||||
@@ -23,6 +23,12 @@ Inventory.GetItemInfo = function(item)
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "ox_inventory"
|
||||||
|
end
|
||||||
|
|
||||||
---This will return the entire items table from the inventory.
|
---This will return the entire items table from the inventory.
|
||||||
---@return table
|
---@return table
|
||||||
Inventory.Items = function()
|
Inventory.Items = function()
|
||||||
|
|||||||
@@ -22,6 +22,12 @@ Inventory.AddItem = function(src, item, count, slot, metadata)
|
|||||||
return ox_inventory:AddItem(src, item, count, metadata)
|
return ox_inventory:AddItem(src, item, count, metadata)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "ox_inventory"
|
||||||
|
end
|
||||||
|
|
||||||
---This will remove an item, and return true or false based on success
|
---This will remove an item, and return true or false based on success
|
||||||
---@param src number
|
---@param src number
|
||||||
---@param item string
|
---@param item string
|
||||||
|
|||||||
@@ -20,6 +20,12 @@ Inventory.GetItemInfo = function(item)
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "ps-inventory"
|
||||||
|
end
|
||||||
|
|
||||||
---This will return the entire items table from the inventory.
|
---This will return the entire items table from the inventory.
|
||||||
---@return table
|
---@return table
|
||||||
Inventory.Items = function()
|
Inventory.Items = function()
|
||||||
|
|||||||
@@ -19,6 +19,12 @@ Inventory.AddItem = function(src, item, count, slot, metadata)
|
|||||||
return sloth:AddItem(src, item, count, slot, metadata, 'community_bridge')
|
return sloth:AddItem(src, item, count, slot, metadata, 'community_bridge')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "ps-inventory"
|
||||||
|
end
|
||||||
|
|
||||||
---This will remove an item, and return true or false based on success
|
---This will remove an item, and return true or false based on success
|
||||||
---@param src number
|
---@param src number
|
||||||
---@param item string
|
---@param item string
|
||||||
|
|||||||
@@ -20,6 +20,12 @@ Inventory.GetItemInfo = function(item)
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "qb-inventory"
|
||||||
|
end
|
||||||
|
|
||||||
---This will return the entire items table from the inventory.
|
---This will return the entire items table from the inventory.
|
||||||
---@return table
|
---@return table
|
||||||
Inventory.Items = function()
|
Inventory.Items = function()
|
||||||
|
|||||||
@@ -27,6 +27,12 @@ Inventory.AddItem = function(src, item, count, slot, metadata)
|
|||||||
return qbInventory:AddItem(src, item, count, slot, metadata, 'community_bridge')
|
return qbInventory:AddItem(src, item, count, slot, metadata, 'community_bridge')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "qb-inventory"
|
||||||
|
end
|
||||||
|
|
||||||
---This will remove an item, and return true or false based on success
|
---This will remove an item, and return true or false based on success
|
||||||
---@param src number
|
---@param src number
|
||||||
---@param item string
|
---@param item string
|
||||||
|
|||||||
@@ -22,6 +22,12 @@ Inventory.GetItemInfo = function(item)
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "qs-inventory"
|
||||||
|
end
|
||||||
|
|
||||||
---This will return the entire items table from the inventory.
|
---This will return the entire items table from the inventory.
|
||||||
---@return table
|
---@return table
|
||||||
Inventory.Items = function()
|
Inventory.Items = function()
|
||||||
|
|||||||
@@ -19,6 +19,12 @@ Inventory.AddItem = function(src, item, count, slot, metadata)
|
|||||||
return quasar:AddItem(src, item, count, slot, metadata)
|
return quasar:AddItem(src, item, count, slot, metadata)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "qs-inventory"
|
||||||
|
end
|
||||||
|
|
||||||
---This will remove an item, and return true or false based on success
|
---This will remove an item, and return true or false based on success
|
||||||
---@param src number
|
---@param src number
|
||||||
---@param item string
|
---@param item string
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ Inventory.GetItemInfo = function(item)
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---This will get the name of the in use resource.
|
||||||
|
---@return string
|
||||||
|
Inventory.GetResourceName = function()
|
||||||
|
return "tgiann-inventory"
|
||||||
|
end
|
||||||
|
|
||||||
---Will return boolean if the player has the item.
|
---Will return boolean if the player has the item.
|
||||||
---@param item string
|
---@param item string
|
||||||
---@return boolean
|
---@return boolean
|
||||||
|
|||||||
Loaded 100 of 142 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user