Replace default notifications

Triggered after notifying player client side

Event

AddEventHandler("luxury_clothes_theft:notify", function(message, uncoloredMessage)

end)

Parameters

NameData TypeDescription

message

string

Message of the notification

uncoloredMessage

string

Message of the notification but without ~r~, ~g~, etc.

Example

RegisterNetEvent("luxury_clothes_theft:framework:ready", function() 
    -- Disables the default script notification (otherwise there would be 2 notifications)
    exports["luxury_clothes_theft"]:disableScriptEvent("luxury_clothes_theft:notify")
end)

RegisterNetEvent("luxury_clothes_theft:notify", function(message, uncoloredMessage)
    TriggerEvent("external_script:notify", message)
end)

Where to insert the code?

You can place it in the file integrations/cl_integrations.lua of the script, at the bottom of the file on new lines

Last updated