STKrush Posted March 14, 2016 Share Posted March 14, 2016 (edited) Can i sync wheel position with server? P.S. Sorry for my eng, hope you understand me. Edited March 14, 2016 by Guest Link to comment
ALw7sH Posted March 14, 2016 Share Posted March 14, 2016 What do you mean by sync it with server side? do you mean you want to use it in server side or you want everybody to see it In both you'll have to use triggerClientEvent Link to comment
STKrush Posted March 14, 2016 Author Share Posted March 14, 2016 What do you mean by sync it with server side? do you mean you want to use it in server side or you want everybody to see itIn both you'll have to use triggerClientEvent I want to sync wheel position, to other players see changed wheel position. Link to comment
ALw7sH Posted March 14, 2016 Share Posted March 14, 2016 What do you mean by sync it with server side? do you mean you want to use it in server side or you want everybody to see itIn both you'll have to use triggerClientEvent I want to sync wheel position, to other players see changed wheel position. use trigger e.g server addCommandHandler("wheels", function(plr) triggerClientEvent(root,"changeWheelPos",plr) end ) client addEvent("changeWheelPos",true) addEventHandler("changeWheelPos",root, function() -- your code -- player = source end ) 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