Jump to content

triggerClientEvent


#Paper

Recommended Posts

Posted

Omg, i have a stupid problem, i start my script and in the debugscript i see that it triggers an event but it's not added on clientside, i restart the script and it triggers the event whitout any error, how to make it trigger the event always whitout errors? :S

Posted

bk i think you added the server side onResource start but the client event only then start downlaoding when oyu restarted it you got no error bk you client side it was downloaded or try to add a timer on server side after the resource start or trigger the server from client when its downlaoded and then from the server again the client

Posted

mhh, and is there an event that triggers when the download is completed?

And i was thinking, if i use onClientPlayerSpawn, is the same?

Posted

Anyway, i analized the code and there is not any triggerClientEvent into an onResourceStart, they are on:

onGamemodeMapStart

onPlayerWasted

And another triggerClientEvent is in a function called by onPlayerWasted

So, the problem can't be fixed whit onClientResourceStart :S

  • MTA Team
Posted
either server calls a clientside event while your client is still downloading or your clientside code lacks

addEvent('blahblah', true)

Posted

It doesn't have to be onResourceStart, it might be on an event, that is executed too early.

"onGamemodeMapStart" , maybe that?

Posted
It doesn't have to be onResourceStart, it might be on an event, that is executed too early.

"onGamemodeMapStart" , maybe that?

Whit what event i can sostitute this? :S

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