RegisterNetEvent('Notification')
AddEventHandler('Notification', function(msg, duration)
Citizen.CreateThread(function()
 SetNotificationTextEntry("STRING")
 AddTextComponentSubstringPlayerName(msg)
 if duration then 
 local Notification = DrawNotification(true, true)
 Citizen.Wait(duration)
 RemoveNotification(Notification)
 else DrawNotification(false, false) end
 end)
end)
1 Like