{"hash":"0xE7BBC4E56B989449","ns":"TASK","name":"_GET_LINKED_SCENARIO_POINTS","slug":"_GET_LINKED_SCENARIO_POINTS","official":false,"named":true,"luaName":"GetLinkedScenarioPoints","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"scenarioPoint","type":"int"},{"name":"outPoints","type":"int*"},{"name":"maxPoints","type":"int"}],"summary":"Fills an output array with scenario points linked (\"chained\") to a given parent scenario point.","descriptions":[{"source":"alloc8or","format":"text","body":"Fills an output array with scenario points linked (\"chained\") to a given parent scenario point. Returns the number of linked points found. Writes up to maxPoints and zeroes remaining entries. Useful for flows like chained put-down scenarios.\n\nParams:\n- scenarioPoint: Parent scenario point handle.\n- outPoints: Pointer to an int array that receives the linked scenario point handles.\n- maxPoints: Capacity of outPoints.\n\nReturns: Count of linked scenario points written (0 if none)."},{"source":"vorp","format":"text","body":"Fills an output array with scenario points linked (chained) to a given parent scenario point. Returns the number of linked points found. Writes up to maxPoints and zeroes remaining entries. Useful for flows like chained put-down scenarios."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/_GET_LINKED_SCENARIO_POINTS","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/_GET_LINKED_SCENARIO_POINTS.md","snippets":{"lua":"local retval, outPoints = GetLinkedScenarioPoints(scenarioPoint, maxPoints)","luaInvoke":"local retval, outPoints = Citizen.InvokeNative(0xE7BBC4E56B989449, scenarioPoint, Citizen.PointerValueInt(), maxPoints, Citizen.ResultAsInteger())","js":"const [retval, outPoints] = GetLinkedScenarioPoints(scenarioPoint, maxPoints);","jsInvoke":"const [retval, outPoints] = Citizen.invokeNative('0xE7BBC4E56B989449', scenarioPoint, Citizen.pointerValueInt(), maxPoints, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var outPoints = new OutputArgument();\nint retval = Function.Call<int>((Hash)0xE7BBC4E56B989449, scenarioPoint, outPoints, maxPoints);\n// outPoints.GetResult<int>()","notes":["Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}