{"hash":"0x345EC3B7EBDE1CB5","ns":"TASK","name":"GET_SCENARIO_POINTS_IN_AREA","slug":"GET_SCENARIO_POINTS_IN_AREA","official":true,"named":true,"luaName":"GetScenarioPointsInArea","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"posX","type":"float"},{"name":"posY","type":"float"},{"name":"posZ","type":"float"},{"name":"radius","type":"float"},{"name":"scenariosInRadius","type":"Any*"},{"name":"size","type":"int"}],"summary":"","descriptions":[{"source":"alloc8or","format":"text","body":"Note: scenariosInRadius is an array, and its size and values should be aligned to 8 bytes."}],"examples":[],"aliases":[],"enums":[],"related":["0x4161648394262FDF"],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/GET_SCENARIO_POINTS_IN_AREA","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/GET_SCENARIO_POINTS_IN_AREA.md","snippets":{"lua":"local retval, scenariosInRadius = GetScenarioPointsInArea(posX, posY, posZ, radius, size)","luaInvoke":"local retval, scenariosInRadius = Citizen.InvokeNative(0x345EC3B7EBDE1CB5, posX, posY, posZ, radius, Citizen.PointerValueInt(), size, Citizen.ResultAsInteger())","js":"const [retval, scenariosInRadius] = GetScenarioPointsInArea(posX, posY, posZ, radius, size);","jsInvoke":"const [retval, scenariosInRadius] = Citizen.invokeNative('0x345EC3B7EBDE1CB5', posX + 0.0000001, posY + 0.0000001, posZ + 0.0000001, radius + 0.0000001, Citizen.pointerValueInt(), size, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var scenariosInRadius = new OutputArgument();\nint retval = Function.Call<int>((Hash)0x345EC3B7EBDE1CB5, posX, posY, posZ, radius, scenariosInRadius, size);\n// scenariosInRadius.GetResult<int>()","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.","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."]}}