DATADICT_GET_INT
Hash
0x9D896A3B87D96E2BRuntime name
DatadictGetIntNamespaceDATAFILE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x78F06F6B1FB5A80CSignature
int DATADICT_GET_INT(Any* objectData, const char* key);Parameters
| Name | Type | Description |
|---|---|---|
objectData | Any* | — |
key | const char* | — |
Returns int
Usage
local retval, objectData = DatadictGetInt(key)
-- always works, by hash
local retval, objectData = Citizen.InvokeNative(0x9D896A3B87D96E2B, Citizen.PointerValueInt(), key, Citizen.ResultAsInteger())JavaScript and C#
const [retval, objectData] = DatadictGetInt(key);
// by hash
const [retval, objectData] = Citizen.invokeNative('0x9D896A3B87D96E2B', Citizen.pointerValueInt(), key, Citizen.returnResultAnyway(), Citizen.resultAsInteger());var objectData = new OutputArgument();
int retval = Function.Call<int>((Hash)0x9D896A3B87D96E2B, 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.