VehicleClient

setRenderTrainAsDerailed

SET_RENDER_TRAIN_AS_DERAILED0x317B11A312DF5534

The GTA V native SET_RENDER_TRAIN_AS_DERAILED of the VEHICLE namespace, as LS:MP client scripts call it: the global function setRenderTrainAsDerailed, in JavaScript and in Lua.

SignatureJavaScript
setRenderTrainAsDerailed(train: Vehicle, toggle: boolean): void
SignatureLua
setRenderTrainAsDerailed(train: Vehicle, toggle: boolean)

Usage

JavaScript
setRenderTrainAsDerailed(train, toggle);
Lua
setRenderTrainAsDerailed(train, toggle)

Parameters

ParameterTypeJavaScriptLua
trainVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Makes the train all jumbled up and derailed as it moves on the tracks (though that wont stop it from its normal operations)

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_RENDER_TRAIN_AS_DERAILED(Vehicle train, BOOL toggle)
Hash
0x317B11A312DF5534

Open in the interactive natives reference