Replace default notifications
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Triggered after notifying player client side
AddEventHandler("shops_creator:notify", function(message, uncoloredMessage)
end)
message
string
Message of the notification
uncoloredMessage
string
Message of the notification but without ~r~, ~g~, etc.
RegisterNetEvent("shops_creator:framework:ready", function()
-- Disables the default script notification (otherwise there would be 2 notifications)
exports["shops_creator"]:disableScriptEvent("shops_creator:notify")
end)
RegisterNetEvent("shops_creator:notify", function(message, uncoloredMessage)
TriggerEvent("external_script:notify", message)
-- OR if you DON'T want ~r~, ~g~ you can use
--TriggerEvent("external_script:notify", uncoloredMessage)
end)
You can place it in the file integrations/cl_integrations.lua
of the script, at the bottom of the file on new lines