Tete omar Posted November 13, 2012 Share Posted November 13, 2012 (edited) Hello , i've made a ped following the player , but i really got sick of something does not work here's code Code removed the ped is following the player and everything is fine except warping the ped into vehicle when the player enters the vehicle. Edited November 14, 2012 by Guest Link to comment
DiSaMe Posted November 13, 2012 Share Posted November 13, 2012 You seem to call triggerServerEvent with other arguments than I would expect. The first argument is the source and the following ones are passed as parameters to the handler function. So 'localPlayer' on the client becomes 'source' on the server, 'test' becomes 'cop', and 'cop' is ignored. Maybe localPlayer isn't supposed to be passed to triggerServerEvent, so that 'test' would become 'source' and 'cop' would remain 'cop'? Link to comment
Tete omar Posted November 14, 2012 Author Share Posted November 14, 2012 You seem to call triggerServerEvent with other arguments than I would expect. The first argument is the source and the following ones are passed as parameters to the handler function. So 'localPlayer' on the client becomes 'source' on the server, 'test' becomes 'cop', and 'cop' is ignored. Maybe localPlayer isn't supposed to be passed to triggerServerEvent, so that 'test' would become 'source' and 'cop' would remain 'cop'? Didn't work , hey can you fix the code on your own , maybe i missed something , and thanks. Link to comment
DiSaMe Posted November 14, 2012 Share Posted November 14, 2012 Why don't you try to fix it yourself, like checking what are the values of the variables? Link to comment
Tete omar Posted November 14, 2012 Author Share Posted November 14, 2012 I've already found a simple and something more and more and more comfortable , it's setElementSyncer That's the greatest follow function ever 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