Notify

Custom notify system


To set up a custom notification system, navigate to the file /utils/cl_UTILS.lua. It should look like the example below.

/utils/cl_UTILS.lua
RegisterNetEvent('fm-garage:client:Notify')
AddEventHandler('fm-garage:client:Notify', function(content, time, type)
    ESX.ShowNotification(content, type, time)
end)

Types that are sent to the event:

  • success

  • error

Time is provided in milliseconds.

Here, you can change the export to your custom notification script.

Last updated