Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //For the 6th arg in TASK_VEHICLE_DRIVE_TO_COORD
- enum DrivingMode
- {
- Rushed,
- Obey,
- Fast,
- Stop,
- Avoid,
- Overtake,
- Expert,
- };
- void spawnChauffer()
- {
- int WaypointHandle = GET_FIRST_BLIP_INFO_ID(8);
- if(DOES_BLIP_EXIST(WaypointHandle))
- {
- Vector3 waypoint1 = GET_BLIP_COORDS(WaypointHandle);
- int veh = spawnCar::spawnVehicle("stretch");
- if (veh != 0)
- {
- int Driver = CREATE_RANDOM_PED_AS_DRIVER(veh,false);
- PED::SET_PED_INTO_VEHICLE(Driver , veh, -1);
- TASK_VEHICLE_DRIVE_TO_COORD_LONGRANGE(Driver, veh, waypoint1.x, waypoint1.y, waypoint1.z, 40, Rushed, -1);
- set_status_text("Spawned!");
- }
- }
- else
- print("Please choose a waypoint");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement