{"hash":"0x92E11E3CA4C7CDF0","ns":"DATAFILE","name":"DATADICT_GET_TYPE","slug":"DATADICT_GET_TYPE","official":true,"named":true,"luaName":"DatadictGetType","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"objectData","type":"Any*"},{"name":"key","type":"const char*"}],"summary":"","descriptions":[{"source":"alloc8or","format":"text","body":"Types:\n1 = Boolean\n2 = Integer\n3 = Float\n4 = String\n5 = Vector3\n6 = Object\n7 = Array"}],"examples":[],"aliases":[],"enums":[],"related":["0x151DAFE6B3B9888F"],"build":"1207","gtaHash":"0x031C55ED33227371","gtaJhash":"0x2678342A","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/DATAFILE/DATADICT_GET_TYPE","markdownUrl":"https://natives.borderlinerp.com/natives/DATAFILE/DATADICT_GET_TYPE.md","snippets":{"lua":"local retval, objectData = DatadictGetType(key)","luaInvoke":"local retval, objectData = Citizen.InvokeNative(0x92E11E3CA4C7CDF0, Citizen.PointerValueInt(), key, Citizen.ResultAsInteger())","js":"const [retval, objectData] = DatadictGetType(key);","jsInvoke":"const [retval, objectData] = Citizen.invokeNative('0x92E11E3CA4C7CDF0', Citizen.pointerValueInt(), key, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var objectData = new OutputArgument();\nint retval = Function.Call<int>((Hash)0x92E11E3CA4C7CDF0, objectData, key);\n// objectData.GetResult<int>()","notes":["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."]}}