setPedStayInVehicleWhenJacked
SET_PED_STAY_IN_VEHICLE_WHEN_JACKED0xEDF4079F9D54C9A1The 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.
setPedStayInVehicleWhenJacked(ped: Ped, toggle: boolean): voidsetPedStayInVehicleWhenJacked(ped: Ped, toggle: boolean)Usage
JavaScript
setPedStayInVehicleWhenJacked(ped, toggle);Lua
setPedStayInVehicleWhenJacked(ped, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
toggle | BOOL | boolean | boolean |
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