{"hash":"0x151DAFE6B3B9888F","ns":"DATAFILE","name":"DATAARRAY_GET_TYPE","slug":"DATAARRAY_GET_TYPE","official":true,"named":true,"luaName":"DataarrayGetType","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"arrayData","type":"Any*"},{"name":"arrayIndex","type":"int"}],"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":["0x92E11E3CA4C7CDF0"],"build":"1207","gtaHash":"0x3A0014ADB172A3C5","gtaJhash":"0xFA2402C8","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/DATAFILE/DATAARRAY_GET_TYPE","markdownUrl":"https://natives.borderlinerp.com/natives/DATAFILE/DATAARRAY_GET_TYPE.md","snippets":{"lua":"local retval, arrayData = DataarrayGetType(arrayIndex)","luaInvoke":"local retval, arrayData = Citizen.InvokeNative(0x151DAFE6B3B9888F, Citizen.PointerValueInt(), arrayIndex, Citizen.ResultAsInteger())","js":"const [retval, arrayData] = DataarrayGetType(arrayIndex);","jsInvoke":"const [retval, arrayData] = Citizen.invokeNative('0x151DAFE6B3B9888F', Citizen.pointerValueInt(), arrayIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var arrayData = new OutputArgument();\nint retval = Function.Call<int>((Hash)0x151DAFE6B3B9888F, arrayData, arrayIndex);\n// arrayData.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."]}}