# VEHICLE::_DETACH_WAGON_ENTITY_FROM_TRAIN

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

## Signature

```c
void _DETACH_WAGON_ENTITY_FROM_TRAIN(Entity entity);
```

## Parameters

- `entity` (`Entity`)

## Returns

`void`

## Description

Only used in train_robbery4 R* Script
_C* - _DEL*

## Usage

### Lua

```lua
DetachWagonEntityFromTrain(entity)

-- always available, by hash
Citizen.InvokeNative(0x54CBDD6E1B4CB4DF, entity)
```

### JavaScript

```js
DetachWagonEntityFromTrain(entity);

// by hash
Citizen.invokeNative('0x54CBDD6E1B4CB4DF', entity);
```

### C#

```csharp
Function.Call((Hash)0x54CBDD6E1B4CB4DF, entity);
```

- 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.*
