# VEHICLE::_SET_TRAIN_DESTRUCTION_ENABLED

- **Hash:** `0x07E2E21E799080A0`
- **Namespace:** VEHICLE
- **Runtime name (Lua/JS):** `SetTrainDestructionEnabled`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/VEHICLE/_SET_TRAIN_DESTRUCTION_ENABLED

## Signature

```c
void _SET_TRAIN_DESTRUCTION_ENABLED(Vehicle train, BOOL enabled);
```

## Parameters

- `train` (`Vehicle`)
- `enabled` (`BOOL`)

## Returns

`void`

## Description

Trains only. Enables/disables damage/explosion flags on the engine and all attached cars; typically set true before EXPLODE_VEHICLE.

## Usage

### Lua

```lua
SetTrainDestructionEnabled(train, enabled)

-- always available, by hash
Citizen.InvokeNative(0x07E2E21E799080A0, train, enabled)
```

### JavaScript

```js
SetTrainDestructionEnabled(train, enabled);

// by hash
Citizen.invokeNative('0x07E2E21E799080A0', train, enabled);
```

### C#

```csharp
Function.Call((Hash)0x07E2E21E799080A0, train, enabled);
```

- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

*Sources: alloc8or RDR3 NativeDB.*
