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.
24 lines
742 B
Lua
24 lines
742 B
Lua
---@diagnostic disable: duplicate-set-field
|
|
HelpText = HelpText or {}
|
|
|
|
---This will show a help text message to the specified player at the screen position passed
|
|
---@param src number
|
|
---@param message string
|
|
---@param position string
|
|
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)
|
|
TriggerClientEvent('community_bridge:Client:HideHelpText', src)
|
|
end
|
|
|
|
return HelpText |