VehicleClient

setCheckForEnoughRoomForPed

SET_CHECK_FOR_ENOUGH_ROOM_FOR_PED0xEF9D388F8D377F44

The GTA V native SET_CHECK_FOR_ENOUGH_ROOM_FOR_PED of the VEHICLE namespace, as LS:MP client scripts call it: the global function setCheckForEnoughRoomForPed, in JavaScript and in Lua.

SignatureJavaScript
setCheckForEnoughRoomForPed(vehicle: Vehicle, p1: boolean): void
SignatureLua
setCheckForEnoughRoomForPed(vehicle: Vehicle, p1: boolean)

Usage

JavaScript
setCheckForEnoughRoomForPed(vehicle, p1);
Lua
setCheckForEnoughRoomForPed(vehicle, p1)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
p1BOOLbooleanboolean

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.

Only used in R* Script fm_content_cargo

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_CHECK_FOR_ENOUGH_ROOM_FOR_PED(Vehicle vehicle, BOOL p1)
Hash
0xEF9D388F8D377F44
Introduced
Game build 2699 legacy numbering

Open in the interactive natives reference