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