Send client event for everyone


#1

Hello everyone, is it possible to send a client event for everyone on the server, when a client do an action ? By example press a key ? It would help me to update a table server side for everyone , thank you :grinning:


#2

Use -1 as the client ID.
TriggerClientEvent('eventName', -1)


#3

Oh ok ! Thank you very much, I love you again Salty <3 <3


#4

And I said it again, if you want my unique script in ESX that I made, I will give u this one :wink:


#5

itโ€™s a realistic weed system :slight_smile:


#6

Appreciate it. Iโ€™ve actually coded my own drug harvesting mod as well :slight_smile: Good luck with the server build!