{"hash":"0x07E2E21E799080A0","ns":"VEHICLE","name":"_SET_TRAIN_DESTRUCTION_ENABLED","slug":"_SET_TRAIN_DESTRUCTION_ENABLED","official":false,"named":true,"luaName":"SetTrainDestructionEnabled","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"train","type":"Vehicle"},{"name":"enabled","type":"BOOL"}],"summary":"Trains only. Enables/disables damage/explosion flags on the engine and all attached cars; typically set true before EXPLODE_VEHICLE.","descriptions":[{"source":"alloc8or","format":"text","body":"Trains only. Enables/disables damage/explosion flags on the engine and all attached cars; typically set true before EXPLODE_VEHICLE."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/VEHICLE/_SET_TRAIN_DESTRUCTION_ENABLED","markdownUrl":"https://natives.borderlinerp.com/natives/VEHICLE/_SET_TRAIN_DESTRUCTION_ENABLED.md","snippets":{"lua":"SetTrainDestructionEnabled(train, enabled)","luaInvoke":"Citizen.InvokeNative(0x07E2E21E799080A0, train, enabled)","js":"SetTrainDestructionEnabled(train, enabled);","jsInvoke":"Citizen.invokeNative('0x07E2E21E799080A0', train, enabled);","csharp":"Function.Call((Hash)0x07E2E21E799080A0, train, enabled);","notes":["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."]}}