// TaskOpenVehicleDoor
void TASK_OPEN_VEHICLE_DOOR(Ped ped, Vehicle vehicle, int timeOut, int seat, float speed);
Parameters:- ped:
The ped to do the task
- vehicle:
The vehicle whose doors the ped shoud open
- timeOut:
Sets a timeout to the task; doesn't work for 0
- seat:
The seat index - the ped will attempt to open doors to get to the specified seat
- speed:
The given ped will try to open the nearest door to 'seat'.
Example: telling the ped to open the door for the driver seat does not necessarily mean it will open the driver door, it may choose to open the passenger door instead if that one is closer.