{"hash":"0xF7AC7DC0DEE7C9BE","ns":"MISC","name":"COPY_SCRIPT_STRUCT","slug":"COPY_SCRIPT_STRUCT","official":true,"named":true,"luaName":"CopyScriptStruct","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"dst","type":"Any*"},{"name":"src","type":"Any*"},{"name":"size","type":"int"}],"summary":"Old name: _COPY_MEMORY","descriptions":[{"source":"alloc8or","format":"text","body":"Old name: _COPY_MEMORY"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x213AEB2B90CBA7AC","gtaJhash":"","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/MISC/COPY_SCRIPT_STRUCT","markdownUrl":"https://natives.borderlinerp.com/natives/MISC/COPY_SCRIPT_STRUCT.md","snippets":{"lua":"local dst, src = CopyScriptStruct(size)","luaInvoke":"local dst, src = Citizen.InvokeNative(0xF7AC7DC0DEE7C9BE, Citizen.PointerValueInt(), Citizen.PointerValueInt(), size)","js":"const [dst, src] = CopyScriptStruct(size);","jsInvoke":"const [dst, src] = Citizen.invokeNative('0xF7AC7DC0DEE7C9BE', Citizen.pointerValueInt(), Citizen.pointerValueInt(), size);","csharp":"var dst = new OutputArgument();\nvar src = new OutputArgument();\nFunction.Call((Hash)0xF7AC7DC0DEE7C9BE, dst, src, size);\n// dst.GetResult<int>()\n// src.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."]}}