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
if GetResourceState('lb-tablet') == 'missing' then return end
|
|
Dispatch = Dispatch or {}
|
|
|
|
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 |