# VEHICLE::SET_DOOR_ALLOWED_TO_BE_BROKEN_OFF

- **Hash:** `0x081FB9D6422F804C`
- **Namespace:** VEHICLE
- **Runtime name (Lua/JS):** `SetDoorAllowedToBeBrokenOff`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/VEHICLE/SET_DOOR_ALLOWED_TO_BE_BROKEN_OFF

## Signature

```c
void SET_DOOR_ALLOWED_TO_BE_BROKEN_OFF(Vehicle vehicle, int doorId, BOOL isBreakable);
```

## Parameters

- `vehicle` (`Vehicle`)
- `doorId` (`int`)
- `isBreakable` (`BOOL`)

## Returns

`void`

## Description

doorId: see SET_VEHICLE_DOOR_SHUT

Old name: _SET_VEHICLE_DOOR_CAN_BREAK

## Usage

### Lua

```lua
SetDoorAllowedToBeBrokenOff(vehicle, doorId, isBreakable)

-- always available, by hash
Citizen.InvokeNative(0x081FB9D6422F804C, vehicle, doorId, isBreakable)
```

### JavaScript

```js
SetDoorAllowedToBeBrokenOff(vehicle, doorId, isBreakable);

// by hash
Citizen.invokeNative('0x081FB9D6422F804C', vehicle, doorId, isBreakable);
```

### C#

```csharp
Function.Call((Hash)0x081FB9D6422F804C, vehicle, doorId, isBreakable);
```

## Related enums

- [eDoorId](https://natives.borderlinerp.com/enums/eDoorId.md) — 13 values

*Sources: alloc8or RDR3 NativeDB.*
