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

mtaubluascripter.png

My skype: skiper964

I helped you? Help me! ^^

Help me bro! ^^

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

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

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

mtaubluascripter.png

My skype: skiper964

I helped you? Help me! ^^

Help me bro! ^^

  • 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?

Whit what event i can sostitute this? :S

mtaubluascripter.png

My skype: skiper964

I helped you? Help me! ^^

Help me bro! ^^

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