DATADICT_GET_BOOL
Hash
0x175E915A486EE548Runtime name
DatadictGetBoolNamespaceDATAFILE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x1186940ED72FFEECSignature
BOOL DATADICT_GET_BOOL(Any* objectData, const char* key);Parameters
| Name | Type | Description |
|---|---|---|
objectData | Any* | — |
key | const char* | — |
Returns BOOL
Usage
local retval, objectData = DatadictGetBool(key)
-- always works, by hash
local retval, objectData = Citizen.InvokeNative(0x175E915A486EE548, Citizen.PointerValueInt(), key, Citizen.ReturnResultAnyway())JavaScript and C#
const [retval, objectData] = DatadictGetBool(key);
// by hash
const [retval, objectData] = Citizen.invokeNative('0x175E915A486EE548', Citizen.pointerValueInt(), key, Citizen.returnResultAnyway());var objectData = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x175E915A486EE548, 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.