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:
MrNewb committed 2025-09-10 12:27:12 -04:00
1 parent cd16291038
commit 90c65dc55e
142 files changed
+784 -25

No files matched your search

+6
View File
@@ -7,6 +7,12 @@ Banking.GetManagmentName = function()
return 'default'
end
---This will get the name of the in use resource.
---@return string
Banking.GetResourceName = function()
return 'default'
end
---This will return a number
---@param account string
---@return number
+6
View File
@@ -10,6 +10,12 @@ Banking.GetManagmentName = function()
return 'fd_banking'
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
---@param account string
---@return number
@@ -10,6 +10,12 @@ Banking.GetManagmentName = function()
return 'kartik-banking'
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
---@param account string
---@return number
+6
View File
@@ -10,6 +10,12 @@ Banking.GetManagmentName = function()
return 'okokBanking'
end
---This will get the name of the in use resource.
---@return string
Banking.GetResourceName = function()
return 'okokBanking'
end
---This will return a number
---@param account string
---@return number
+6
View File
@@ -10,6 +10,12 @@ Banking.GetManagmentName = function()
return 'qb-banking'
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
---@param account string
---@return number
@@ -10,6 +10,12 @@ Banking.GetManagmentName = function()
return 'Renewed-Banking'
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
---@param account string
---@return number
+6
View File
@@ -10,6 +10,12 @@ Banking.GetManagmentName = function()
return 'tgg-banking'
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
---@param account string
---@return number
+6
View File
@@ -10,6 +10,12 @@ Banking.GetManagmentName = function()
return 'tgiann-bank'
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
---@param account string
---@return number
@@ -10,6 +10,12 @@ Banking.GetManagmentName = function()
return 'wasabi_banking'
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
---@param account string
---@return number
+7
View File
@@ -16,6 +16,13 @@ function Clothing.IsMale()
return false
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
---@param entity number
---@return table
+6
View File
@@ -9,6 +9,12 @@ function Clothing.IsMale(src)
return GetEntityModel(ped) == `mp_m_freemode_01`
end
---This will get the name of the in use resource.
---@return string
Clothing.GetResourceName = function()
return 'default'
end
function Clothing.GetAppearance(src)
return Callback.Trigger('community_bridge:cb:GetAppearance', src)
end
+6
View File
@@ -6,3 +6,9 @@ Clothing = Clothing or {}
function Clothing.OpenMenu()
TriggerEvent('esx_skin:openMenu', function() end, function() end, true)
end
---This will get the name of the in use resource.
---@return string
Clothing.GetResourceName = function()
return 'esx_skin'
end
+6
View File
@@ -35,6 +35,12 @@ function Clothing.GetFullAppearanceData(src)
return Clothing.Players[citId]
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
---@param src number The server ID of the player
---@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()
TriggerEvent('qb-clothing:client:openMenu')
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]
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
---@param src number The server ID of the player
---@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()
TriggerEvent('qb-clothing:client:openMenu')
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]
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
---@param src number The server ID of the player
---@param fullData boolean Optional - If true, returns the full data object including skin and model
+6
View File
@@ -6,3 +6,9 @@ Clothing = Clothing or {}
function Clothing.OpenMenu()
TriggerEvent('qb-clothing:client:openMenu')
end
---This will get the name of the in use resource.
---@return string
Clothing.GetResourceName = function()
return 'qb-clothing'
end
+6
View File
@@ -38,6 +38,12 @@ function Clothing.GetFullAppearanceData(src)
return Clothing.Players[citId]
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
---@param src number The server ID of the player
---@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()
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
@@ -30,4 +30,10 @@ RegisterNetEvent('community_bridge:Client:DispatchAlert', function(alert)
Bridge.Utility.RemoveBlip(blip)
end)
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'default'
end
return Dispatch
@@ -10,4 +10,10 @@ RegisterNetEvent("community_bridge:Server:DispatchAlert", function(data)
end
end)
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'default'
end
return Dispatch
@@ -16,4 +16,10 @@ Dispatch.SendAlert = function(data)
exports["bub-mdt"]:CustomAlert(alertData)
end
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'bub-mdt'
end
return Dispatch
@@ -1,4 +1,10 @@
if GetResourceState('bub-mdt') == 'missing' then return end
Dispatch = Dispatch or {}
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'bub-mdt'
end
return Dispatch
@@ -24,4 +24,10 @@ Dispatch.SendAlert = function(data)
})
end
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'cd_dispatch'
end
return Dispatch
@@ -1,4 +1,10 @@
if GetResourceState('cd_dispatch') == 'missing' then return end
Dispatch = Dispatch or {}
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'cd_dispatch'
end
return Dispatch
@@ -27,4 +27,10 @@ Dispatch.SendAlert = function(data)
exports['kartik-mdt']:CustomAlert(alertOptions)
end
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'kartik-mdt'
end
return Dispatch
@@ -1,4 +1,10 @@
if GetResourceState('kartik-mdt') == 'missing' then return end
Dispatch = Dispatch or {}
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'kartik-mdt'
end
return Dispatch
@@ -40,4 +40,10 @@ Dispatch.SendAlert = function(data)
TriggerServerEvent("community_bridge:server:dispatch:sendAlert", alertData)
end
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'lb-tablet'
end
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.
end)
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'lb-tablet'
end
return Dispatch
@@ -19,4 +19,10 @@ Dispatch.SendAlert = function(data)
})
end
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'linden_outlawalert'
end
return Dispatch
@@ -1,4 +1,10 @@
if GetResourceState('linden_outlawalert') == 'missing' then return end
Dispatch = Dispatch or {}
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'linden_outlawalert'
end
return Dispatch
@@ -1,4 +1,10 @@
if GetResourceState('origen_police') == 'missing' then return end
Dispatch = Dispatch or {}
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'origen_police'
end
return Dispatch
@@ -7,4 +7,10 @@ Dispatch.SendAlert = function(data)
TriggerServerEvent('community_bridge:Server:piotreq_gpt', data)
end
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'piotreq_gpt'
end
return Dispatch
@@ -36,4 +36,10 @@ RegisterNetEvent('community_bridge:Server:piotreq_gpt', function(data)
Dispatch.SendAlert(src, data)
end)
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'piotreq_gpt'
end
return Dispatch
@@ -27,4 +27,10 @@ Dispatch.SendAlert = function(data)
exports["ps-dispatch"]:CustomAlert(alertData)
end
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'ps-dispatch'
end
return Dispatch
@@ -2,4 +2,10 @@ if GetResourceState('ps-dispatch') == 'missing' then return end
if GetResourceState('lb-tablet') == 'started' then return end
Dispatch = Dispatch or {}
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'ps-dispatch'
end
return Dispatch
@@ -38,4 +38,11 @@ Dispatch.SendAlert = function(data)
end)
end
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'qs-dispatch'
end
return Dispatch
@@ -1,4 +1,11 @@
if GetResourceState('qs-dispatch') == 'missing' then return end
Dispatch = Dispatch or {}
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'qs-dispatch'
end
return Dispatch
@@ -14,4 +14,11 @@ Dispatch.SendAlert = function(data)
TriggerServerEvent("community_bridge:server:dispatch:sendAlert", alertData)
end
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'redutzu-mdt'
end
return Dispatch
@@ -11,4 +11,10 @@ RegisterNetEvent("community_bridge:server:dispatch:sendAlert", function(data)
})
end)
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'redutzu-mdt'
end
return Dispatch
@@ -20,4 +20,10 @@ Dispatch.SendAlert = function(data)
})
end
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'tk_dispatch'
end
return Dispatch
@@ -1,4 +1,10 @@
if GetResourceState('tk_dispatch') == 'missing' then return end
Dispatch = Dispatch or {}
---This will get the name of the in use resource.
---@return string
Dispatch.GetResourceName = function()
return 'tk_dispatch'
end
return Dispatch
+6
View File
@@ -10,4 +10,10 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
return true
end
---This will get the name of the in use resource.
---@return string
Doorlock.GetResourceName = function()
return 'default'
end
return Doorlock
@@ -9,4 +9,10 @@ Doorlock.GetClosestDoor = function()
return exports["doors_creator"]:getClosestActiveDoor()
end
---This will get the name of the in use resource.
---@return string
Doorlock.GetResourceName = function()
return 'doors_creator'
end
return Doorlock
@@ -18,4 +18,10 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
return true
end
---This will get the name of the in use resource.
---@return string
Doorlock.GetResourceName = function()
return 'doors_creator'
end
return Doorlock
+6
View File
@@ -11,4 +11,10 @@ Doorlock.GetClosestDoor = function()
return tostring(doorData.id) or nil
end
---This will get the name of the in use resource.
---@return string
Doorlock.GetResourceName = function()
return 'ox_doorlock'
end
return Doorlock
+6
View File
@@ -20,4 +20,10 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
return true
end
---This will get the name of the in use resource.
---@return string
Doorlock.GetResourceName = function()
return 'ox_doorlock'
end
return Doorlock
+6
View File
@@ -23,4 +23,10 @@ Doorlock.GetClosestDoor = function()
return door
end
---This will get the name of the in use resource.
---@return string
Doorlock.GetResourceName = function()
return 'qb-doorlock'
end
return Doorlock
+6
View File
@@ -12,4 +12,10 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
return true
end
---This will get the name of the in use resource.
---@return string
Doorlock.GetResourceName = function()
return 'qb-doorlock'
end
return Doorlock
@@ -21,4 +21,10 @@ Doorlock.GetClosestDoor = function()
return door
end
---This will get the name of the in use resource.
---@return string
Doorlock.GetResourceName = function()
return 'rcore_doorlock'
end
return Doorlock
@@ -16,4 +16,11 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
end
return true
end
---This will get the name of the in use resource.
---@return string
Doorlock.GetResourceName = function()
return 'rcore_doorlock'
end
return Doorlock
+6
View File
@@ -8,6 +8,12 @@ AddStateBagChangeHandler('jobcounts', 'global', function(bagName, key, value)
currentJobCounts = value
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.
---@param jobName string
---@return number
+6
View File
@@ -7,6 +7,12 @@ local globalState = GlobalState
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.
---@param jobName string
---@return number
+6
View File
@@ -22,6 +22,12 @@ Framework.GetFrameworkName = function()
return 'es_extended'
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.
--- This could be useful in scripts that rely on player loaded events and offer a debug mode to hit this function
--- @return boolean
+6
View File
@@ -16,6 +16,12 @@ Framework.GetFrameworkName = function()
return 'es_extended'
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
Framework.ItemList = function()
if cachedItemList then return cachedItemList end
+6
View File
@@ -14,6 +14,12 @@ Framework.GetFrameworkName = function()
return 'qb-core'
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 could be useful in scripts that rely on player loaded events and offer a debug mode to hit this function.
---@return boolean
+6
View File
@@ -14,6 +14,12 @@ Framework.GetFrameworkName = function()
return 'qb-core'
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.
---@param src any
---@return boolean
+6
View File
@@ -11,6 +11,12 @@ Framework.GetFrameworkName = function()
return 'qbx_core'
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 could be useful in scripts that rely on player loaded events and offer a debug mode to hit this function.
---@return boolean
+6
View File
@@ -11,6 +11,12 @@ Framework.GetFrameworkName = function()
return 'qbx_core'
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.
---@param src any
---@return boolean
+1
View File
@@ -8,6 +8,7 @@ Fuel = Fuel or {}
Fuel.GetResourceName = function()
return 'default'
end
---Returns the current fuel level of a vehicle.
---@param vehicle number The vehicle entity handle.
---@return number The vehicle fuel level.
+6
View File
@@ -9,6 +9,12 @@ HelpText.ShowHelpText = function(message, _position)
return Framework.ShowHelpText(message, _position)
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
---@return nil
HelpText.HideHelpText = function()
+6
View File
@@ -9,6 +9,12 @@ HelpText.ShowHelpText = function(src, message, position)
TriggerClientEvent('community_bridge:Client:ShowHelpText', src, message, position)
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
---@param src number
HelpText.HideHelpText = function(src)
@@ -13,6 +13,12 @@ HelpText.ShowHelpText = function(message, _position)
return TriggerEvent('cd_drawtextui:ShowUI', 'show', message)
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
---@return nil
HelpText.HideHelpText = function()
+6
View File
@@ -12,6 +12,12 @@ HelpText.ShowHelpText = function(message, _position)
return exports['jg-textui']:DrawText(message)
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
---@return nil
HelpText.HideHelpText = function()
+6
View File
@@ -12,6 +12,12 @@ HelpText.ShowHelpText = function(message, _position)
return exports['lab-HintUI']:Show(message, "Hint Text")
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
---@return nil
HelpText.HideHelpText = function()
+6
View File
@@ -12,6 +12,12 @@ HelpText.ShowHelpText = function(message, position)
return exports.lation_ui:showText({description = tostring(message), position = position or 'right-center'})
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
---@return nil
HelpText.HideHelpText = function()
+6
View File
@@ -12,6 +12,12 @@ HelpText.ShowHelpText = function(message, _position)
return exports['okokTextUI']:Open(message, 'darkblue', _position, false)
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
---@return nil
HelpText.HideHelpText = function()
+6
View File
@@ -14,6 +14,12 @@ HelpText.ShowHelpText = function(message, position)
})
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
---@return nil
HelpText.HideHelpText = function()
+6
View File
@@ -1,3 +1,9 @@
Housing = Housing or {}
---This will get the name of the in use resource.
---@return string
Housing.GetResourceName = function()
return "default"
end
return Housing
+6
View File
@@ -11,4 +11,10 @@ RegisterNetEvent('community_bridge:Server:_OnPlayerInside', function(src, inside
TriggerEvent('community_bridge:Client:OnPlayerInside', src, insideId, currentBucket, playerCoords)
end)
---This will get the name of the in use resource.
---@return string
Housing.GetResourceName = function()
return "default"
end
return Housing
+6
View File
@@ -10,4 +10,10 @@ RegisterNetEvent("Housing:client:DeleteFurnitures", function()
TriggerServerEvent('community_bridge:Server:_OnPlayerInside', false)
end)
---This will get the name of the in use resource.
---@return string
Housing.GetResourceName = function()
return "bcs-housing"
end
return Housing
+6
View File
@@ -2,4 +2,10 @@ if GetResourceState('bcs-housing') == 'missing' then return end
Housing = Housing or {}
---This will get the name of the in use resource.
---@return string
Housing.GetResourceName = function()
return "bcs-housing"
end
return Housing
+6
View File
@@ -2,4 +2,10 @@ if GetResourceState('esx_property') == 'missing' then return end
Housing = Housing or {}
---This will get the name of the in use resource.
---@return string
Housing.GetResourceName = function()
return "esx_property"
end
return Housing
+6
View File
@@ -12,4 +12,10 @@ RegisterNetEvent('esx_property:leave', function(insideId)
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
end)
---This will get the name of the in use resource.
---@return string
Housing.GetResourceName = function()
return "esx_property"
end
return Housing
+6
View File
@@ -2,4 +2,10 @@ if GetResourceState('ps-housing') == 'missing' then return end
Housing = Housing or {}
---This will get the name of the in use resource.
---@return string
Housing.GetResourceName = function()
return "ps-housing"
end
return Housing
+6
View File
@@ -12,4 +12,10 @@ RegisterNetEvent('ps-housing:server:leaveProperty', function(insideId)
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
end)
---This will get the name of the in use resource.
---@return string
Housing.GetResourceName = function()
return "ps-housing"
end
return Housing
@@ -2,4 +2,10 @@ if GetResourceState('qb-appartments') == 'missing' then return end
Housing = Housing or {}
---This will get the name of the in use resource.
---@return string
Housing.GetResourceName = function()
return "qb-appartments"
end
return Housing
@@ -8,4 +8,11 @@ RegisterNetEvent('qb-apartments:server:SetInsideMeta', function(house, insideId,
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
end)
---This will get the name of the in use resource.
---@return string
Housing.GetResourceName = function()
return "qb-appartments"
end
return Housing
+6
View File
@@ -2,4 +2,10 @@ if GetResourceState('qb-houses') == 'missing' then return end
Housing = Housing or {}
---This will get the name of the in use resource.
---@return string
Housing.GetResourceName = function()
return "qb-houses"
end
return Housing
+6
View File
@@ -8,4 +8,10 @@ RegisterNetEvent('qb-houses:server:SetInsideMeta', function(insideId, bool)
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
end)
---This will get the name of the in use resource.
---@return string
Housing.GetResourceName = function()
return "qb-houses"
end
return Housing
+6
View File
@@ -8,6 +8,12 @@ Inventory.GetItemInfo = function(item)
return Framework.GetItemInfo(item)
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.
---@param item string
---@return boolean
+7
View File
@@ -13,6 +13,13 @@ Inventory.AddItem = function(src, item, count, slot, metadata)
return Framework.AddItem(src, item, count, slot, metadata)
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
---@param src number
---@param item string
@@ -21,6 +21,13 @@ Inventory.GetItemInfo = function(item)
}
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.
---@return table
Inventory.Items = function()
@@ -18,6 +18,13 @@ Inventory.AddItem = function(src, item, count, slot, metadata)
return codem:AddItem(src, item, count, slot, metadata)
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
---@param src number
---@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) }
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.
---@return table
Inventory.Items = function()
@@ -18,6 +18,14 @@ Inventory.AddItem = function(src, item, count, slot, metadata)
return core:addItem(src, item, count, metadata)
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
---@param src number
---@param item string
@@ -20,6 +20,14 @@ Inventory.GetItemInfo = function(item)
}
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.
---@param item string
---@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')
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
---@param src number
---@param item string
@@ -19,6 +19,12 @@ Inventory.GetItemInfo = function(item)
}
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.
---@return table
Inventory.Items = function()
@@ -18,6 +18,12 @@ Inventory.AddItem = function(src, item, count, slot, metadata)
return origin:AddItem(src, item, count, metadata, slot, true)
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
---@param src number
---@param item string
@@ -23,6 +23,12 @@ Inventory.GetItemInfo = function(item)
}
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.
---@return table
Inventory.Items = function()
@@ -22,6 +22,12 @@ Inventory.AddItem = function(src, item, count, slot, metadata)
return ox_inventory:AddItem(src, item, count, metadata)
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
---@param src number
---@param item string
@@ -20,6 +20,12 @@ Inventory.GetItemInfo = function(item)
}
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.
---@return table
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')
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
---@param src number
---@param item string
@@ -20,6 +20,12 @@ Inventory.GetItemInfo = function(item)
}
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.
---@return table
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')
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
---@param src number
---@param item string
@@ -22,6 +22,12 @@ Inventory.GetItemInfo = function(item)
}
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.
---@return table
Inventory.Items = function()
@@ -19,6 +19,12 @@ Inventory.AddItem = function(src, item, count, slot, metadata)
return quasar:AddItem(src, item, count, slot, metadata)
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
---@param src number
---@param item string
@@ -21,6 +21,12 @@ Inventory.GetItemInfo = function(item)
}
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.
---@param item string
---@return boolean
Loaded 100 of 142 files, more files were not shown because too many files have changed in this diff. Show more