The Lab
MISC native

SET_RANDOM_SEED

returns void1 parambuild 1207

Seeds the random number generator with seed.

Signature

C
void SET_RANDOM_SEED(int seed); // 0x5CD7A49104AFCB6B b1207

Parameters

#NameType
1seedint

Facts

Facts about SET_RANDOM_SEED
Name
SET_RANDOM_SEED
Hash
0x5CD7A49104AFCB6B
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x5CD7A49104AFCB6B, -- SET_RANDOM_SEED
  0 -- int seed
)
JavaScript
Citizen.invokeNative("0x5CD7A49104AFCB6B", // SET_RANDOM_SEED
  0 // int seed
);
C#
Function.Call((Hash)0x5CD7A49104AFCB6B, // SET_RANDOM_SEED
  0 // int seed
);
All MISC natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.