_SET_TRAIN_DESTRUCTION_ENABLED
Trains only. Enables/disables damage/explosion flags on the engine and all attached cars; typically set true before EXPLODE_VEHICLE.
Hash
0x07E2E21E799080A0Runtime name
SetTrainDestructionEnabledNamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _SET_TRAIN_DESTRUCTION_ENABLED(Vehicle train, BOOL enabled);Parameters
| Name | Type | Description |
|---|---|---|
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
SetTrainDestructionEnabled(train, enabled)
-- always works, by hash
Citizen.InvokeNative(0x07E2E21E799080A0, train, enabled)JavaScript and C#
SetTrainDestructionEnabled(train, enabled);
// by hash
Citizen.invokeNative('0x07E2E21E799080A0', train, enabled);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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.