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.
14 lines
434 B
Lua
14 lines
434 B
Lua
---@diagnostic disable: duplicate-set-field
|
|
if GetResourceState('illenium-appearance') == 'missing' then return end
|
|
if GetResourceState('rcore_clothing') ~= 'missing' then return end
|
|
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 |