# VEHICLE::SET_DONT_ALLOW_PLAYER_TO_ENTER_VEHICLE_IF_LOCKED_FOR_PLAYER

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

## Signature

```c
void SET_DONT_ALLOW_PLAYER_TO_ENTER_VEHICLE_IF_LOCKED_FOR_PLAYER(Vehicle vehicle, BOOL p1);
```

## Parameters

- `vehicle` (`Vehicle`)
- `p1` (`BOOL`)

## Returns

`void`

## Usage

### Lua

```lua
SetDontAllowPlayerToEnterVehicleIfLockedForPlayer(vehicle, p1)

-- always available, by hash
Citizen.InvokeNative(0x63DC1F22C903B709, vehicle, p1)
```

### JavaScript

```js
SetDontAllowPlayerToEnterVehicleIfLockedForPlayer(vehicle, p1);

// by hash
Citizen.invokeNative('0x63DC1F22C903B709', vehicle, p1);
```

### C#

```csharp
Function.Call((Hash)0x63DC1F22C903B709, vehicle, p1);
```

*Sources: alloc8or RDR3 NativeDB.*
