VehicleClient

setDisableRandomTrainsThisFrame

SET_DISABLE_RANDOM_TRAINS_THIS_FRAME0xD4B8E3D1917BC86B

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

SignatureJavaScript
setDisableRandomTrainsThisFrame(toggle: boolean): void
SignatureLua
setDisableRandomTrainsThisFrame(toggle: boolean)

Usage

JavaScript
setDisableRandomTrainsThisFrame(toggle);
Lua
setDisableRandomTrainsThisFrame(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_DISABLE_RANDOM_TRAINS_THIS_FRAME(BOOL toggle)
Hash
0xD4B8E3D1917BC86B
Formerly
_SET_SOMETHING_MULTIPLIER_THIS_FRAME

Open in the interactive natives reference