Перейти к содержанию

Player::setIntoVehicle

Материал из RAGE MP Wiki Archive
Версия от 00:14, 17 сентября 2021; imported>Shr0x (Example)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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

<syntaxhighlight lang="javascript">player.setIntoVehicle(vehicle, seatIndex);</syntaxhighlight>

Required Arguments

  • vehicle: Vehicle handle or object
  • seatIndex: int

Return value

  • Undefined

Example

Client-Side

{{{1}}}

See also