RedM Natives

SET_TIME_SCALE

Maximum value is 1.0f At a value of 0.0f the game will still run at a minimum time scale.

Hash0x9682AF6050854856
Runtime nameSetTimeScale
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x1D408577D440E81E

Signature

void SET_TIME_SCALE(float timeScale);

Parameters

NameTypeDescription
timeScalefloat—

Returns void

Description

Maximum value is 1.0f
At a value of 0.0f the game will still run at a minimum time scale.

Usage

Lua
SetTimeScale(timeScale)

-- always works, by hash
Citizen.InvokeNative(0x9682AF6050854856, timeScale)
JavaScript and C#
JavaScript
SetTimeScale(timeScale);

// by hash
Citizen.invokeNative('0x9682AF6050854856', timeScale + 0.0000001);
C#
Function.Call((Hash)0x9682AF6050854856, timeScale);
  • 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.