setRenderTrainAsDerailed
SET_RENDER_TRAIN_AS_DERAILED0x317B11A312DF5534The 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.
setRenderTrainAsDerailed(train: Vehicle, toggle: boolean): voidsetRenderTrainAsDerailed(train: Vehicle, toggle: boolean)Usage
JavaScript
setRenderTrainAsDerailed(train, toggle);Lua
setRenderTrainAsDerailed(train, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
train | Vehicle | number | integer |
toggle | BOOL | boolean | boolean |
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