Yamamoto Posted May 8, 2020 Share Posted May 8, 2020 which way is more efficient for a trigger triggerClientEvent(root, "....", root) or for k, player in ipairs(getElementsByType("player")) do triggerClientEvent(player, "....", player) end Link to comment
Tekken Posted May 8, 2020 Share Posted May 8, 2020 The first one, for sure. Also you may see on the wiki page of triggerClientEvent Note: It is marginally more efficient to pass one large event than two smallers ones. Btw triggerClientEvent ("name", elm) you don't need to specify the first root as it's already by default. Hope this helped you. 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now