[This is preliminary documentation and is subject to change.]
Assembly: RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
public Task EnterVehicle( Vehicle vehicle, int seatIndex )
Public Function EnterVehicle ( vehicle As Vehicle, seatIndex As Integer ) As Task
public: Task^ EnterVehicle( Vehicle^ vehicle, int seatIndex )
- Type: RageVehicle
The Vehicle to enter.
- Type: SystemInt32
The index of the seat the Ped should get onto.
If the specified index is -1, the Ped will get into the driver's seat.
If the specified index is -2, the Ped will get into any free seat (TODO: VERIFY!).
For regular cars, usually the seats are indexed as follows:
Index Seat 0 Passenger seat 1 Left rear 2 Right rear
Return ValueType: Task
An instance of Task that can be used to retrieve information about the task.