PedClient

setPedStayInVehicleWhenJacked

SET_PED_STAY_IN_VEHICLE_WHEN_JACKED0xEDF4079F9D54C9A1

The GTA V native SET_PED_STAY_IN_VEHICLE_WHEN_JACKED of the PED namespace, as LS:MP client scripts call it: the global function setPedStayInVehicleWhenJacked, in JavaScript and in Lua.

SignatureJavaScript
setPedStayInVehicleWhenJacked(ped: Ped, toggle: boolean): void
SignatureLua
setPedStayInVehicleWhenJacked(ped: Ped, toggle: boolean)

Usage

JavaScript
setPedStayInVehicleWhenJacked(ped, toggle);
Lua
setPedStayInVehicleWhenJacked(ped, toggle)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Ped PED
In the game
void SET_PED_STAY_IN_VEHICLE_WHEN_JACKED(Ped ped, BOOL toggle)
Hash
0xEDF4079F9D54C9A1

Open in the interactive natives reference