#Paper Posted September 7, 2011 Posted September 7, 2011 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?
bandi94 Posted September 7, 2011 Posted September 7, 2011 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
#Paper Posted September 7, 2011 Author Posted September 7, 2011 mhh, and is there an event that triggers when the download is completed? And i was thinking, if i use onClientPlayerSpawn, is the same?
#Paper Posted September 8, 2011 Author Posted September 8, 2011 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
BinSlayer1 Posted September 8, 2011 Posted September 8, 2011 either server calls a clientside event while your client is still downloading or your clientside code lacks addEvent('blahblah', true)
MTA Team qaisjp Posted September 8, 2011 MTA Team Posted September 8, 2011 either server calls a clientside event while your client is still downloading or your clientside code lacks addEvent('blahblah', true)
JR10 Posted September 8, 2011 Posted September 8, 2011 It doesn't have to be onResourceStart, it might be on an event, that is executed too early. "onGamemodeMapStart" , maybe that?
#Paper Posted September 8, 2011 Author Posted September 8, 2011 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?
BinSlayer1 Posted September 8, 2011 Posted September 8, 2011 It's not something you can "substitute" .. You need to find and match the logic of your program If you want us to help you more, you'll have to post the code
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now