RedM Natives

SET_SRL_TIME

Hash0x18231AEF458BCFF2
Runtime nameSetSrlTime
NamespaceSTREAMING
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xA74A541C6884E7B8

Signature

void SET_SRL_TIME(float p0);

Parameters

NameTypeDescription
p0float—

Returns void

Usage

Lua
SetSrlTime(p0)

-- always works, by hash
Citizen.InvokeNative(0x18231AEF458BCFF2, p0)
JavaScript and C#
JavaScript
SetSrlTime(p0);

// by hash
Citizen.invokeNative('0x18231AEF458BCFF2', p0 + 0.0000001);
C#
Function.Call((Hash)0x18231AEF458BCFF2, p0);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB

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