setDontAllowPlayerToEnterVehicleIfLockedForPlayer
SET_DONT_ALLOW_PLAYER_TO_ENTER_VEHICLE_IF_LOCKED_FOR_PLAYER0xDBC631F109350B8CThe GTA V native SET_DONT_ALLOW_PLAYER_TO_ENTER_VEHICLE_IF_LOCKED_FOR_PLAYER of the VEHICLE namespace, as LS:MP client scripts call it: the global function setDontAllowPlayerToEnterVehicleIfLockedForPlayer, in JavaScript and in Lua.
setDontAllowPlayerToEnterVehicleIfLockedForPlayer(
vehicle: Vehicle,
p1: boolean
): voidsetDontAllowPlayerToEnterVehicleIfLockedForPlayer(
vehicle: Vehicle,
p1: boolean
)Usage
JavaScript
setDontAllowPlayerToEnterVehicleIfLockedForPlayer(vehicle, p1);Lua
setDontAllowPlayerToEnterVehicleIfLockedForPlayer(vehicle, p1)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
p1 | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_DONT_ALLOW_PLAYER_TO_ENTER_VEHICLE_IF_LOCKED_FOR_PLAYER(Vehicle vehicle, BOOL p1)- Hash
0xDBC631F109350B8C