RedM Natives

_SET_TRAIN_DESTRUCTION_ENABLED

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

Hash0x07E2E21E799080A0
Runtime nameSetTrainDestructionEnabled
NamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_TRAIN_DESTRUCTION_ENABLED(Vehicle train, BOOL enabled);

Parameters

NameTypeDescription
trainVehicle—
enabledBOOL—

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
SetTrainDestructionEnabled(train, enabled)

-- always works, by hash
Citizen.InvokeNative(0x07E2E21E799080A0, train, enabled)
JavaScript and C#
JavaScript
SetTrainDestructionEnabled(train, enabled);

// by hash
Citizen.invokeNative('0x07E2E21E799080A0', train, enabled);
C#
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

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.