The Lab
TASK native

_TASK_USE_SCENARIO_POINT_2

returns void8 paramsbuild 1207

Based on its name and signature, here is our best reading:

Variant that tasks ped to use a scenario point.

Signature

C
void _TASK_USE_SCENARIO_POINT_2(Ped ped, Ped ped2, Any p2, const char* p3, int p4, Hash p5, float p6, BOOL p7); // 0x0F6641449DD86FBE b1207

Parameters

#NameType
1pedPed
2ped2Ped
3p2Any
4p3const char*
5p4int
6p5Hash
7p6float
8p7BOOL

Facts

Facts about _TASK_USE_SCENARIO_POINT_2
Name
_TASK_USE_SCENARIO_POINT_2
Hash
0x0F6641449DD86FBE
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(0x0F6641449DD86FBE, -- _TASK_USE_SCENARIO_POINT_2
  PlayerPedId(), -- Ped ped
  PlayerPedId(), -- Ped ped2
  0, -- Any p2
  "text", -- const char* p3
  0, -- int p4
  GetHashKey("name"), -- Hash p5
  0.0, -- float p6
  false -- BOOL p7
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x0F6641449DD86FBE", // _TASK_USE_SCENARIO_POINT_2
  PlayerPedId(), // Ped ped
  PlayerPedId(), // Ped ped2
  0, // Any p2
  "text", // const char* p3
  0, // int p4
  GetHashKey("name"), // Hash p5
  0.0, // float p6
  false // BOOL p7
);
C#
Function.Call((Hash)0x0F6641449DD86FBE, // _TASK_USE_SCENARIO_POINT_2
  API.PlayerPedId(), // Ped ped
  API.PlayerPedId(), // Ped ped2
  0, // Any p2
  "text", // const char* p3
  0, // int p4
  (uint)API.GetHashKey("name"), // Hash p5
  0.0f, // float p6
  false // BOOL p7
);
All TASK natives

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