DATADICT_GET_FLOAT
Hash
0x814643ECA258ADF5Runtime name
DatadictGetFloatNamespaceDATAFILE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x06610343E73B9727Signature
float DATADICT_GET_FLOAT(Any* objectData, const char* key);Parameters
| Name | Type | Description |
|---|---|---|
objectData | Any* | — |
key | const char* | — |
Returns float
Usage
local retval, objectData = DatadictGetFloat(key)
-- always works, by hash
local retval, objectData = Citizen.InvokeNative(0x814643ECA258ADF5, Citizen.PointerValueInt(), key, Citizen.ResultAsFloat())JavaScript and C#
const [retval, objectData] = DatadictGetFloat(key);
// by hash
const [retval, objectData] = Citizen.invokeNative('0x814643ECA258ADF5', Citizen.pointerValueInt(), key, Citizen.returnResultAnyway(), Citizen.resultAsFloat());var objectData = new OutputArgument();
float retval = Function.Call<float>((Hash)0x814643ECA258ADF5, objectData, key);
// objectData.GetResult<int>()- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
Any*arguments are often structs. Build them with a DataView buffer and pass it with:Buffer()— see the examples and notes below.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.