TASK_START_SCENARIO_IN_PLACE_HASH
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
void TASK_START_SCENARIO_IN_PLACE_HASH(Ped ped, Hash scenarioHash, int duration, BOOL playEnterAnim, Hash conditionalHash, float heading, BOOL p6); // 0x524B54361229154F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | scenarioHash | Hash |
| 3 | duration | int |
| 4 | playEnterAnim | BOOL |
| 5 | conditionalHash | Hash |
| 6 | heading | float |
| 7 | p6 | BOOL |
Facts
| 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.
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
)// 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
);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
);Related TASK natives
- TASK_START_SCENARIO_AT_POSITION
- _TASK_START_SCENARIO_IN_PLACE_2
- TASK_USE_RANDOM_SCENARIO_IN_GROUP
- DOES_SCENARIO_OF_TYPE_EXIST_IN_AREA_HASH
- TASK_STAY_IN_COVER
- TASK_COMBAT_HATED_TARGETS_IN_AREA
- TASK_EVERYONE_LEAVE_VEHICLE_IN_ORDER
- TASK_MOVE_BE_IN_FORMATION
- TASK_MOVE_IN_TRAFFIC
- TASK_MOVE_IN_TRAFFIC_AWAY_FROM_ENTITY
- TASK_MOVE_IN_TRAFFIC_TO_DESTINATION
- TASK_PLACE_CARRIED_ENTITY_AT_COORD
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.