{"hash":"0xB6790A8FF80F889F","ns":"DATAFILE","name":"DATAARRAY_GET_STRING","slug":"DATAARRAY_GET_STRING","official":true,"named":true,"luaName":"DataarrayGetString","game":"rdr3","apiset":"client","returnType":"const char*","params":[{"name":"arrayData","type":"Any*"},{"name":"arrayIndex","type":"int"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":["0xE37B38C0B4E95DFA"],"build":"1207","gtaHash":"0xD3F2FFEB8D836F52","gtaJhash":"0x93F985A6","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/DATAFILE/DATAARRAY_GET_STRING","markdownUrl":"https://natives.borderlinerp.com/natives/DATAFILE/DATAARRAY_GET_STRING.md","snippets":{"lua":"local retval, arrayData = DataarrayGetString(arrayIndex)","luaInvoke":"local retval, arrayData = Citizen.InvokeNative(0xB6790A8FF80F889F, Citizen.PointerValueInt(), arrayIndex, Citizen.ResultAsString())","js":"const [retval, arrayData] = DataarrayGetString(arrayIndex);","jsInvoke":"const [retval, arrayData] = Citizen.invokeNative('0xB6790A8FF80F889F', Citizen.pointerValueInt(), arrayIndex, Citizen.returnResultAnyway(), Citizen.resultAsString());","csharp":"var arrayData = new OutputArgument();\nstring retval = Function.Call<string>((Hash)0xB6790A8FF80F889F, 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."]}}