{"hash":"0x6A885BF69239E539","ns":"DATAFILE","name":"DATAARRAY_GET_COUNT","slug":"DATAARRAY_GET_COUNT","official":true,"named":true,"luaName":"DataarrayGetCount","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"arrayData","type":"Any*"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x065DB281590CEA2D","gtaJhash":"0xA8A21766","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/DATAFILE/DATAARRAY_GET_COUNT","markdownUrl":"https://natives.borderlinerp.com/natives/DATAFILE/DATAARRAY_GET_COUNT.md","snippets":{"lua":"local retval, arrayData = DataarrayGetCount(arrayData)","luaInvoke":"local retval, arrayData = Citizen.InvokeNative(0x6A885BF69239E539, Citizen.PointerValueIntInitialized(arrayData), Citizen.ResultAsInteger())","js":"const [retval, arrayData] = DataarrayGetCount(arrayData);","jsInvoke":"const [retval, arrayData] = Citizen.invokeNative('0x6A885BF69239E539', Citizen.pointerValueIntInitialized(arrayData), Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var arrayData = new OutputArgument();\nint retval = Function.Call<int>((Hash)0x6A885BF69239E539, arrayData);\n// arrayData.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.","`Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below."]}}