Jump to content

triggerEvent [help]


Hugos

Recommended Posts

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?

Link to comment
  • Moderators
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.

 

 

 

  • Thanks 1
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...