Jump to content

Simple question


SkatCh

Recommended Posts

root is the predefined word for getRootElement()

It's an other word for "everything". For example, when you use outputChatBox, you have to specify the player element or you can use getRootElement() to display the very same message to every single player.

An other example:

At triggerClientEvent() the first argument is the sendTo -> which is the player you want the function to run on.

But, if you use getRootElement() as the sendTo element, it will run for every single player.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...