Jump to content

triggerEvent, call, direct call? Best thing?


SayMyName

Recommended Posts

Posted

Hello guys.

What is the correct variant to invoke another function in another script?

triggerEvent, call (func) or direct call from exports table? :o

UP: interested in speed, if possible.

  • Moderators
Posted

triggerEvent's are slow, so call function or exports. Yet I recommend exports. , because you don't have to use the function getResourceFromName(less code to write). Every function in your code is a delay. > "UP: interested in speed, if possible."

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...