RedM Natives

_GET_LINKED_SCENARIO_POINTS

Fills an output array with scenario points linked ("chained") to a given parent scenario point.

Hash0xE7BBC4E56B989449
Runtime nameGetLinkedScenarioPoints
NamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

int _GET_LINKED_SCENARIO_POINTS(int scenarioPoint, int* outPoints, int maxPoints);

Parameters

NameTypeDescription
scenarioPointint—
outPointsint*—
maxPointsint—

Returns int

Description

alloc8or RDR3 NativeDB

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.

Params:
- scenarioPoint: Parent scenario point handle.
- outPoints: Pointer to an int array that receives the linked scenario point handles.
- maxPoints: Capacity of outPoints.

Returns: Count of linked scenario points written (0 if none).

VORPCORE RDR3natives

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.

Usage

Lua
local retval, outPoints = GetLinkedScenarioPoints(scenarioPoint, maxPoints)

-- always works, by hash
local retval, outPoints = Citizen.InvokeNative(0xE7BBC4E56B989449, scenarioPoint, Citizen.PointerValueInt(), maxPoints, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const [retval, outPoints] = GetLinkedScenarioPoints(scenarioPoint, maxPoints);

// by hash
const [retval, outPoints] = Citizen.invokeNative('0xE7BBC4E56B989449', scenarioPoint, Citizen.pointerValueInt(), maxPoints, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
var outPoints = new OutputArgument();
int retval = Function.Call<int>((Hash)0xE7BBC4E56B989449, scenarioPoint, outPoints, maxPoints);
// outPoints.GetResult<int>()
  • 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.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.