RedM Natives

SET_RANDOM_SEED

Hash0x5CD7A49104AFCB6B
Runtime nameSetRandomSeed
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x444D98F98C11F3EC

Signature

void SET_RANDOM_SEED(int seed);

Parameters

NameTypeDescription
seedint—

Returns void

Usage

Lua
SetRandomSeed(seed)

-- always works, by hash
Citizen.InvokeNative(0x5CD7A49104AFCB6B, seed)
JavaScript and C#
JavaScript
SetRandomSeed(seed);

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

Sources

alloc8or RDR3 NativeDB

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