Jump to content

onMapStart / onMapStarting


'LinKin

Recommended Posts

Posted

Hello,

When using these two events server-side, do I need to add them like this?

addEventHandler(evName, true) ?

Or simply addEventHandler(evName)

Also, a small off-topic note:

They changed luac.multitheftauto.com Encryption option to Extra Obfuscation; Why?

Thanks.

Posted

I tried, it worked adding the 2nd argument to true,

But why? Isn't that argument for enabling the event being triggered from client to server and viceversa?

Posted
Hello,

When using these two events server-side, do I need to add them like this?

addEventHandler(evName, true) ?

Or simply addEventHandler(evName)

Also, a small off-topic note:

They changed luac.multitheftauto.com Encryption option to Extra Obfuscation; Why?

Thanks.

Hello , if it's a custom event you need to do it like this ,

addEvent('Linkin', true) 
addEventHandler('Linkin', root,  
function ( ) 
---- 

if it's an mta function like onPlayerChat, onPlayerJoin ... etc

no need ,

about the Encryption they added Extra because Obfuscation it's hard to decompile

Posted

Yeah Max, I know that, but look at the post that I made before yours.

addEvent from Wiki:

allowRemoteTrigger: A boolean specifying whether this event can be called remotely using triggerClientEvent / triggerServerEvent or not.

So onMapStarting would be being triggered from client?.. Kinda wierd.

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