_READ_INT_AS_FLOAT
Reinterprets the bits of the integer value as a float and returns it.
Signature
float _READ_INT_AS_FLOAT(int value); // 0xD2C9126410DFA1B2 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | value | int |
Facts
| Name | _READ_INT_AS_FLOAT |
|---|---|
| Hash | 0xD2C9126410DFA1B2 |
| 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(0xD2C9126410DFA1B2, -- _READ_INT_AS_FLOAT
0, -- int value
Citizen.ResultAsFloat()
)
print(result)const result = Citizen.invokeNative("0xD2C9126410DFA1B2", // _READ_INT_AS_FLOAT
0, // int value
Citizen.resultAsFloat()
);
console.log(result)float result = Function.Call<float>((Hash)0xD2C9126410DFA1B2, // _READ_INT_AS_FLOAT
0 // int value
);Related MISC natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.