The Lab
TASK native

TASK_USE_SCENARIO_POINT

returns void10 paramsbuild 1207

Tasks ped to use the scenario point scenario, optionally with the conditional animation conditionalAnim.

Signature

C
void TASK_USE_SCENARIO_POINT(Ped ped, int scenario, const char* conditionalAnim, int p3, BOOL p4, BOOL p5, Hash p6, BOOL p7, float p8, BOOL p9); // 0xCCDAE6324B6A821C b1207

Parameters

#NameType
1pedPed
2scenarioint
3conditionalAnimconst char*
4p3int
5p4BOOL
6p5BOOL
7p6Hash
8p7BOOL
9p8float
10p9BOOL

Facts

Facts about TASK_USE_SCENARIO_POINT
Name
TASK_USE_SCENARIO_POINT
Hash
0xCCDAE6324B6A821C
Namespace
Returns
void
Game build
1207

Examples

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

Lua
Citizen.InvokeNative(0xCCDAE6324B6A821C, -- TASK_USE_SCENARIO_POINT
  PlayerPedId(), -- Ped ped
  0, -- int scenario
  "text", -- const char* conditionalAnim
  0, -- int p3
  false, -- BOOL p4
  false, -- BOOL p5
  GetHashKey("name"), -- Hash p6
  false, -- BOOL p7
  0.0, -- float p8
  false -- BOOL p9
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xCCDAE6324B6A821C", // TASK_USE_SCENARIO_POINT
  PlayerPedId(), // Ped ped
  0, // int scenario
  "text", // const char* conditionalAnim
  0, // int p3
  false, // BOOL p4
  false, // BOOL p5
  GetHashKey("name"), // Hash p6
  false, // BOOL p7
  0.0, // float p8
  false // BOOL p9
);
C#
Function.Call((Hash)0xCCDAE6324B6A821C, // TASK_USE_SCENARIO_POINT
  API.PlayerPedId(), // Ped ped
  0, // int scenario
  "text", // const char* conditionalAnim
  0, // int p3
  false, // BOOL p4
  false, // BOOL p5
  (uint)API.GetHashKey("name"), // Hash p6
  false, // BOOL p7
  0.0f, // float p8
  false // BOOL p9
);
All TASK natives

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