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.
17 lines
455 B
Lua
17 lines
455 B
Lua
if GetResourceState('qb-houses') == 'missing' then return end
|
|
|
|
Housing = Housing or {}
|
|
|
|
RegisterNetEvent('qb-houses:server:SetInsideMeta', function(insideId, bool)
|
|
local src = source
|
|
insideId = bool and insideId or nil
|
|
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 |