Hugos Posted August 26, 2019 Posted August 26, 2019 All hi, such here problem arose: when I use "triggerEvent" in one resource, it starts function necessary to me in a resource necessary to me, but at the same time and in other resource where there is a function with the same name. Which 2 argument must be specified to run on only one resource? Говорю на русском. Sorry for bad english.
Moderators IIYAMA Posted August 26, 2019 Moderators Posted August 26, 2019 1 hour ago, Hugos said: Which 2 argument must be specified to run on only one resource? For both resources. A https://wiki.multitheftauto.com/wiki/TriggerEvent Set the base element to resourceRoot. B https://wiki.multitheftauto.com/wiki/AddEventHandler Set the attachedTo element to resourceRoot as well. And they will not interfere with each other, even when the event name is the same. 1 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