# PLAYER::SET_PLAYER_MAY_ONLY_ENTER_THIS_VEHICLE

- **Hash:** `0xDA35A134038557EC`
- **Namespace:** PLAYER
- **Runtime name (Lua/JS):** `SetPlayerMayOnlyEnterThisVehicle`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PLAYER/SET_PLAYER_MAY_ONLY_ENTER_THIS_VEHICLE

## Signature

```c
void SET_PLAYER_MAY_ONLY_ENTER_THIS_VEHICLE(Player player, Vehicle vehicle);
```

## Parameters

- `player` (`Player`)
- `vehicle` (`Vehicle`)

## Returns

`void`

## Usage

### Lua

```lua
SetPlayerMayOnlyEnterThisVehicle(player, vehicle)

-- always available, by hash
Citizen.InvokeNative(0xDA35A134038557EC, player, vehicle)
```

### JavaScript

```js
SetPlayerMayOnlyEnterThisVehicle(player, vehicle);

// by hash
Citizen.invokeNative('0xDA35A134038557EC', player, vehicle);
```

### C#

```csharp
Function.Call((Hash)0xDA35A134038557EC, player, vehicle);
```

*Sources: alloc8or RDR3 NativeDB.*
