Ezio Baggins Posted February 21, 2018 Share Posted February 21, 2018 Hi, I am trying to create and drive a vehicle. As of now, I create a vehicle, and a ped. ped.SetIntoVehicle(vehicle, VehicleSeat.Driver); ped.Task.CruiseWithVehicle(vehicle, speed, style);ped.VehicleDrivingFlags = flags; However, this creates a static vehicle, and then the ped starts the engine and drives the car. Basically, the car is not moving when I create it. However, I want to create a moving vehicle. Any help is appreciated, Thank you ! Link to comment Share on other sites More sharing options...
Jitnaught Posted February 22, 2018 Share Posted February 22, 2018 (edited) Turn on the engine and set the speed. vehicle.EngineRunning = true;vehicle.ForwardSpeed = speed;ped.SetIntoVehicle(vehicle, VehicleSeat.Driver);ped.Task.CruiseWithVehicle(vehicle, speed, style);ped.VehicleDrivingFlags = flags; Edited February 22, 2018 by Jitnaught Ezio Baggins 1 Link to comment Share on other sites More sharing options...
Ezio Baggins Posted February 22, 2018 Author Share Posted February 22, 2018 Turn on the engine and set the speed. vehicle.EngineRunning = true;vehicle.Speed = speed;ped.SetIntoVehicle(vehicle, VehicleSeat.Driver);ped.Task.CruiseWithVehicle(vehicle, speed, style);ped.VehicleDrivingFlags = flags; I set vehicle.Speed = speed; // didnt work for me vehicle.ForwardSpeed = speed; //instead this worked Thank you ! Jitnaught 1 Link to comment Share on other sites More sharing options...
Jitnaught Posted February 22, 2018 Share Posted February 22, 2018 Sorry about that. I edited my post for future viewers Ezio Baggins 1 Link to comment Share on other sites More sharing options...