SET_TIME_SCALE
Maximum value is 1.0f At a value of 0.0f the game will still run at a minimum time scale.
Hash
0x9682AF6050854856Runtime name
SetTimeScaleNamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x1D408577D440E81ESignature
void SET_TIME_SCALE(float timeScale);Parameters
| Name | Type | Description |
|---|---|---|
timeScale | float | — |
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
SetTimeScale(timeScale)
-- always works, by hash
Citizen.InvokeNative(0x9682AF6050854856, timeScale)JavaScript and C#
SetTimeScale(timeScale);
// by hash
Citizen.invokeNative('0x9682AF6050854856', timeScale + 0.0000001);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.