[Solved] TriggerClientEvent to all players?


#1

Hello, how I can trigger client event from server to do an action to all connected players ?
Thanks


#2
TriggerClientEvent("eventName", targetPlayer, eventParam1, eventParam2)
-- Use -1 for "targetPlayer" if you want the event to trigger on all connected clients.

https://docs.fivem.net/events/triggering-events/#triggering-client-events


#3

Thanks for your time