SweetyWolf Posted May 3, 2012 Share Posted May 3, 2012 (edited) Hi everyone. I need to create a car in client side and this car must simply drive forward. My ideas: 1. Create ped and use setPedControlState. But we can't put ped into vehicle in client side (or can we?). 2. Use setElementVelocity, but there is a problem with finding correct velocity values. So i have 2 questions: How to get car moving forward in client side? How to calculate velocity values for car for moving forward? Edited May 3, 2012 by Guest Link to comment
arezu Posted May 3, 2012 Share Posted May 3, 2012 You can create a ped and warp it into vehicle (or, make it enter the vehicle with control states). Link to comment
BinSlayer1 Posted May 4, 2012 Share Posted May 4, 2012 Why do you want it completely clientside? Create vehicle serverside, create ped serverside. Upon creation of both, trigger some client event, pass both ped and vehicle elements to client and use setPedControlState clientside 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