The Lab
BUILTIN native

TO_FLOAT

returns float1 parambuild 1207

Converts the integer value to a float and returns it.

Signature

C
float TO_FLOAT(int value); // 0xBBDA792448DB5A89 b1207

Parameters

#NameType
1valueint

Facts

Facts about TO_FLOAT
Name
TO_FLOAT
Hash
0xBBDA792448DB5A89
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(0xBBDA792448DB5A89, -- TO_FLOAT
  0, -- int value
  Citizen.ResultAsFloat()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xBBDA792448DB5A89", // TO_FLOAT
  0, // int value
  Citizen.resultAsFloat()
);
console.log(result)
C#
float result = Function.Call<float>((Hash)0xBBDA792448DB5A89, // TO_FLOAT
  0 // int value
);
All BUILTIN natives

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