The Lab
TASK native

_GET_LINKED_SCENARIO_POINTS

returns int3 paramsbuild 1207

Writes up to maxPoints scenario points linked to scenarioPoint into outPoints and returns how many were written.

Signature

C
int _GET_LINKED_SCENARIO_POINTS(int scenarioPoint, int* outPoints, int maxPoints); // 0xE7BBC4E56B989449 b1207

Parameters

#NameType
1scenarioPointint
2outPointsint* (out pointer)
3maxPointsint

Facts

Facts about _GET_LINKED_SCENARIO_POINTS
Name
_GET_LINKED_SCENARIO_POINTS
Hash
0xE7BBC4E56B989449
Namespace
Returns
int
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, outPoints = Citizen.InvokeNative(0xE7BBC4E56B989449, -- _GET_LINKED_SCENARIO_POINTS
  0, -- int scenarioPoint
  Citizen.PointerValueInt(), -- int* outPoints
  0, -- int maxPoints
  Citizen.ResultAsInteger()
)
print(result, outPoints)
JavaScript
const [result, outPoints] = Citizen.invokeNative("0xE7BBC4E56B989449", // _GET_LINKED_SCENARIO_POINTS
  0, // int scenarioPoint
  Citizen.pointerValueInt(), // int* outPoints
  0, // int maxPoints
  Citizen.resultAsInteger()
);
console.log(result, outPoints)
C#
var outPointsArg = new OutputArgument();
int result = Function.Call<int>((Hash)0xE7BBC4E56B989449, // _GET_LINKED_SCENARIO_POINTS
  0, // int scenarioPoint
  outPointsArg, // int* outPoints
  0 // int maxPoints
);
int outPoints = outPointsArg.GetResult<int>();
All TASK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.