GET_FRAME_TIME
Returns the duration of the last frame in seconds.
Multiply speeds by it to make movement frame-rate independent.
Signature
float GET_FRAME_TIME(); // 0x5E72022914CE3C38 b1207Parameters
This native takes no parameters.
Facts
| Name | GET_FRAME_TIME |
|---|---|
| Hash | 0x5E72022914CE3C38 |
| 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(0x5E72022914CE3C38, -- GET_FRAME_TIME
Citizen.ResultAsFloat()
)
print(result)const result = Citizen.invokeNative("0x5E72022914CE3C38", // GET_FRAME_TIME
Citizen.resultAsFloat()
);
console.log(result)float result = Function.Call<float>((Hash)0x5E72022914CE3C38); // GET_FRAME_TIMERelated MISC natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.