So ive got a problem with the Function DriveTO. In my Script i want that two cops drive to my location with their police vehicle. But everytime i add the function driveTO in my script, one of the cops is not beeing teleported in the vehicle and the driver does generally not drive to me. So what should i do ?
The Driver Peds code :
await World.CreatePed(PedHash.Cop01SMY, CopCarPosition + new Vector3(0f, 0f, 7f)).ContinueWith(
cop1task =>
{
cop1 = cop1task.Result;
cop1task.Result.Weapons.Give(WeaponHash.Pistol, 9999, false, true);
//cop1task.Result.IsPersistent = true;
cop1task.Result.AlwaysKeepTask = true;
cop1task.Result.Task.WarpIntoVehicle(cartask.Result, VehicleSeat.Driver);
cop1task.Result.Task.DriveTo(cartask.Result, PlayerPosition, 5f, 40f, 5);
}).ContinueWith(
Thank you for reading !
If you have any further questions, please ask.
- Kolopsel