The Lab
MISC native

_READ_INT_AS_FLOAT

returns float1 parambuild 1207

Reinterprets the bits of the integer value as a float and returns it.

Signature

C
float _READ_INT_AS_FLOAT(int value); // 0xD2C9126410DFA1B2 b1207

Parameters

#NameType
1valueint

Facts

Facts about _READ_INT_AS_FLOAT
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.

Lua
local result = Citizen.InvokeNative(0xD2C9126410DFA1B2, -- _READ_INT_AS_FLOAT
  0, -- int value
  Citizen.ResultAsFloat()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xD2C9126410DFA1B2", // _READ_INT_AS_FLOAT
  0, // int value
  Citizen.resultAsFloat()
);
console.log(result)
C#
float result = Function.Call<float>((Hash)0xD2C9126410DFA1B2, // _READ_INT_AS_FLOAT
  0 // int value
);
All MISC natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.