Skraund Posted April 10, 2018 Posted April 10, 2018 Hello, getRootElement - this is the same as root?
Moderators Patrick Posted April 10, 2018 Moderators Posted April 10, 2018 Yes. community profile | map converters | map images | pDownloader | pAttach | model encrypter
Moderators Popular Post IIYAMA Posted April 10, 2018 Moderators Popular Post Posted April 10, 2018 (edited) No.no.no getRootElement is a function. root is a predefined variable that contains the root element. When you execute getRootElement it will return the value: root element: getRootElement == root -- false -- call the getRootElement function getRootElement() == root -- true So yes, in the end it doesn't matter which one you use. Except that with getRootElement you have to make one function call more before you have access to the value.(performance) Edited April 10, 2018 by IIYAMA 4 Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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