Player::setIntoVehicle: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 1: Line 1:
Ped: The ped to warp.<br>vehicle: The vehicle to warp the ped into.<br>
This function puts ped into vehicle.


More info of Seat Index<br>DriverSeat = 0<br>Passenger = 1<br>Left Rear = 2<br>RightRear = 3
Seats:
* -1 - driver seat
* 0 - passenger seat 1
* 1 - passenger seat 2
* 2 - passenger seat 3


<b>(note this is for normal vehicles with 4 seats)</b>
<b>(note this is for normal vehicles with 4 seats)</b>

Revision as of 21:59, 19 December 2020

This function puts ped into vehicle.

Seats:

  • -1 - driver seat
  • 0 - passenger seat 1
  • 1 - passenger seat 2
  • 2 - passenger seat 3

(note this is for normal vehicles with 4 seats)

Syntax

player.setIntoVehicle(vehicle, seatIndex);

Required Arguments

  • vehicle: Vehicle handle or object
  • seatIndex: int

Return value

  • Undefined

Example

// todo

See also