The Lab
TASK native

TASK_START_SCENARIO_IN_PLACE_HASH

returns void7 paramsbuild 1207

Tasks ped to play the scenario scenarioHash where it stands, for duration.

Pass -1 as duration to keep it running until the task is cleared.

Signature

C
void TASK_START_SCENARIO_IN_PLACE_HASH(Ped ped, Hash scenarioHash, int duration, BOOL playEnterAnim, Hash conditionalHash, float heading, BOOL p6); // 0x524B54361229154F b1207

Parameters

#NameType
1pedPed
2scenarioHashHash
3durationint
4playEnterAnimBOOL
5conditionalHashHash
6headingfloat
7p6BOOL

Facts

Facts about TASK_START_SCENARIO_IN_PLACE_HASH
Name
TASK_START_SCENARIO_IN_PLACE_HASH
Hash
0x524B54361229154F
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(0x524B54361229154F, -- TASK_START_SCENARIO_IN_PLACE_HASH
  PlayerPedId(), -- Ped ped
  GetHashKey("name"), -- Hash scenarioHash
  0, -- int duration
  false, -- BOOL playEnterAnim
  GetHashKey("name"), -- Hash conditionalHash
  0.0, -- float heading
  false -- BOOL p6
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x524B54361229154F", // TASK_START_SCENARIO_IN_PLACE_HASH
  PlayerPedId(), // Ped ped
  GetHashKey("name"), // Hash scenarioHash
  0, // int duration
  false, // BOOL playEnterAnim
  GetHashKey("name"), // Hash conditionalHash
  0.0, // float heading
  false // BOOL p6
);
C#
Function.Call((Hash)0x524B54361229154F, // TASK_START_SCENARIO_IN_PLACE_HASH
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("name"), // Hash scenarioHash
  0, // int duration
  false, // BOOL playEnterAnim
  (uint)API.GetHashKey("name"), // Hash conditionalHash
  0.0f, // float heading
  false // BOOL p6
);
All TASK natives

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