TIMESTEP
Returns the duration of the last frame in seconds, useful for frame-rate independent movement or interpolation.
Signature
float TIMESTEP(); // 0x0000000050597EE2 b1207Parameters
This native takes no parameters.
Facts
| Name | TIMESTEP |
|---|---|
| Hash | 0x0000000050597EE2 |
| Namespace | |
| Returns | float |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x0000000050597EE2, -- TIMESTEP
Citizen.ResultAsFloat()
)
print(result)const result = Citizen.invokeNative("0x0000000050597EE2", // TIMESTEP
Citizen.resultAsFloat()
);
console.log(result)float result = Function.Call<float>((Hash)0x0000000050597EE2); // TIMESTEPRelated BUILTIN natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.