setPlayerMayOnlyEnterThisVehicle
SET_PLAYER_MAY_ONLY_ENTER_THIS_VEHICLE0x8026FF78F208978AThe GTA V native SET_PLAYER_MAY_ONLY_ENTER_THIS_VEHICLE of the PLAYER namespace, as LS:MP client scripts call it: the global function setPlayerMayOnlyEnterThisVehicle, in JavaScript and in Lua.
setPlayerMayOnlyEnterThisVehicle(player: Player, vehicle: Vehicle): voidsetPlayerMayOnlyEnterThisVehicle(player: Player, vehicle: Vehicle)Usage
JavaScript
setPlayerMayOnlyEnterThisVehicle(player, vehicle);Lua
setPlayerMayOnlyEnterThisVehicle(player, vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
player | Player | number | integer |
vehicle | Vehicle | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Player PLAYER
- In the game
void SET_PLAYER_MAY_ONLY_ENTER_THIS_VEHICLE(Player player, Vehicle vehicle)- Hash
0x8026FF78F208978A