Drakath Posted January 24, 2015 Share Posted January 24, 2015 How can I prevent this error: "Server triggered clientside event eventName, but event is not added clientside" with onMarkerHit which triggers a client event? Link to comment
Gallardo9944 Posted January 24, 2015 Share Posted January 24, 2015 addEvent(name,true) clientside and then attach this event to a function. Make sure the player has downloaded all the files and scripts, so the event can actually be triggered. Link to comment
Drakath Posted January 24, 2015 Author Share Posted January 24, 2015 I think you understood me wrong. I scripted everything correctly and it works but sometimes when player hasn't finished downloading the client script, this error appears for him. How can I check if the download of my client script is finished and loaded? Link to comment
Gallardo9944 Posted January 24, 2015 Share Posted January 24, 2015 You can make a table of available players on the server, and when the client finishes downloading (when your script starts, onClientResourceStart with resourceRoot as the element) simply trigger server to add the client into the table. Link to comment
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