The Lab
TASK native

_TASK_START_SCENARIO_IN_PLACE_2

returns void7 paramsbuild 1207

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

Variant that starts a scenario in place for ped.

Signature

C
void _TASK_START_SCENARIO_IN_PLACE_2(Ped ped, Any p1, const char* p2, int p3, BOOL p4, float p5, BOOL p6); // 0xA917E39F2CEFD215 b1207

Parameters

#NameType
1pedPed
2p1Any
3p2const char*
4p3int
5p4BOOL
6p5float
7p6BOOL

Facts

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

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