The Lab
VEHICLE native

_SET_TRAIN_DESTRUCTION_ENABLED

returns void2 paramsbuild 1207

Enables or disables destruction of train.

Signature

C
void _SET_TRAIN_DESTRUCTION_ENABLED(Vehicle train, BOOL enabled); // 0x07E2E21E799080A0 b1207

Parameters

#NameType
1trainVehicle
2enabledBOOL

Facts

Facts about _SET_TRAIN_DESTRUCTION_ENABLED
Name
_SET_TRAIN_DESTRUCTION_ENABLED
Hash
0x07E2E21E799080A0
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x07E2E21E799080A0, -- _SET_TRAIN_DESTRUCTION_ENABLED
  0, -- Vehicle train
  false -- BOOL enabled
)
JavaScript
Citizen.invokeNative("0x07E2E21E799080A0", // _SET_TRAIN_DESTRUCTION_ENABLED
  0, // Vehicle train
  false // BOOL enabled
);
C#
Function.Call((Hash)0x07E2E21E799080A0, // _SET_TRAIN_DESTRUCTION_ENABLED
  0, // Vehicle train
  false // BOOL enabled
);
All VEHICLE natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.