TasksClient

taskShuffleToNextVehicleSeat

TASK_SHUFFLE_TO_NEXT_VEHICLE_SEAT0x7AA80209BDA643EB

The GTA V native TASK_SHUFFLE_TO_NEXT_VEHICLE_SEAT of the TASK namespace, as LS:MP client scripts call it: the global function taskShuffleToNextVehicleSeat, in JavaScript and in Lua.

SignatureJavaScript
taskShuffleToNextVehicleSeat(
  ped: Ped,
  vehicle: Vehicle,
  useAlternateShuffle: boolean
): void
SignatureLua
taskShuffleToNextVehicleSeat(
  ped: Ped,
  vehicle: Vehicle,
  useAlternateShuffle: boolean
)

Usage

JavaScript
taskShuffleToNextVehicleSeat(ped, vehicle, useAlternateShuffle);
Lua
taskShuffleToNextVehicleSeat(ped, vehicle, useAlternateShuffle)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
vehicleVehiclenumberinteger
useAlternateShuffleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Makes the specified ped shuffle to the next vehicle seat.
The ped MUST be in a vehicle and the vehicle parameter MUST be the ped's current vehicle.

Reference

Namespace
Tasks TASK
In the game
void TASK_SHUFFLE_TO_NEXT_VEHICLE_SEAT(Ped ped, Vehicle vehicle, BOOL useAlternateShuffle)
Hash
0x7AA80209BDA643EB

Open in the interactive natives reference