use GTAIV .Net ScriptHook
I make a ped in my group , add a task to enter vehicle.
| CODE |
GudList[z].Task.ClearAll(); GudList[z].Task.AlwaysKeepTask = true; GudList[z].Task.EnterVehicle(GudCar[0], VehicleSeat.Driver); |
and make he drive vehicle to a point.
| CODE |
if (GudList[z].isInVehicle(GudCar[0])) GudList[z].Task.DriveTo(endpoint, sspeed, false); |
but , in game, the ped get in car, get out ,get in ,get out , get in , get out ....
he can't stay in the vehicle.
how make he stay in the car , still i give he command?