#Whit3^ Posted June 3, 2013 Posted June 3, 2013 setTimer(function() triggerServerEvent("Ridex",getLocalPlayer()); end,3000,1) Client Server addEvent("Ridex",true) addEventHandler("Ridex",root, function() triggerLatentClientEvent(source,"Serversend",100000,false,source,fine); Client Triggered serverside event Ridex, but event in not added serverside
Castillo Posted June 3, 2013 Posted June 3, 2013 addEvent ( "Ridex", true ) addEventHandler ( "Ridex", root, function ( ) triggerLatentClientEvent(source,"Serversend",100000,false,source,fine); end ) You forgot to close the function with a parentheses and an 'end'. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
#Whit3^ Posted June 4, 2013 Author Posted June 4, 2013 not work same error Client Triggered serverside event Ridex, but event in not added serverside server addEvent("Rydex",true) addEventHandler("Rydex",root, function() triggerLatentClientEvent(source,"ServerSend",100000,false,source,fine); end ) client setTimer(function() triggerServerEvent("Rydex",getLocalPlayer()); end,3000,1)
Castillo Posted June 4, 2013 Posted June 4, 2013 Errors on the debugscript? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Moderators IIYAMA Posted June 5, 2013 Moderators Posted June 5, 2013 Make sure: - server script did started. - Client and server are in the same folder. - server script has been written in the meta.xml - server script is server side... more mistakes that can lead to this result? Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
#Whit3^ Posted June 6, 2013 Author Posted June 6, 2013 Make sure:- server script did started. - Client and server are in the same folder. - server script has been written in the meta.xml - server script is server side... more mistakes that can lead to this result? already done ..
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