Having an issue with a client event running multiple times after character switches. Server-side I'm only emitting once (confirmed through debug prints), but after switching characters a couple times, I start getting duplicate notifications.
The duplicates keep piling up - first switch gives me 2, second switch gives me 3, etc. Only way to reset it is a full reconnect.
I'm registering the event handler inside the esx:playerLoaded callback since I need it tied to character data:
AddEventHandler('esx:playerLoaded', function(playerData)
RegisterNetEvent('garage:notify', function(message)
ESX.ShowNotification(message)
end)
end)This is on a multichar server. My gut says the handlers aren't getting cleaned up properly when switching chars, but not sure what the proper approach should be here.
DarkKnight · 27/08/2026
Sign in to reply.