RedM Natives

SET_RANDOM_TRAINS

Hash0x1156C6EE7E82A98A
Runtime nameSetRandomTrains
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x80D9F74197EA47D9

Signature

void SET_RANDOM_TRAINS(BOOL toggle);

Parameters

NameTypeDescription
toggleBOOL—

Returns void

Usage

Lua
SetRandomTrains(toggle)

-- always works, by hash
Citizen.InvokeNative(0x1156C6EE7E82A98A, toggle)
JavaScript and C#
JavaScript
SetRandomTrains(toggle);

// by hash
Citizen.invokeNative('0x1156C6EE7E82A98A', toggle);
C#
Function.Call((Hash)0x1156C6EE7E82A98A, toggle);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.