_TASK_USE_SCENARIO_POINT_2
Based on its name and signature, here is our best reading:
Variant that tasks ped to use a scenario point.
Signature
void _TASK_USE_SCENARIO_POINT_2(Ped ped, Ped ped2, Any p2, const char* p3, int p4, Hash p5, float p6, BOOL p7); // 0x0F6641449DD86FBE b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | ped2 | Ped |
| 3 | p2 | Any |
| 4 | p3 | const char* |
| 5 | p4 | int |
| 6 | p5 | Hash |
| 7 | p6 | float |
| 8 | p7 | BOOL |
Facts
| 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.
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
)// 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
);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
);Related TASK natives
- _TASK_USE_NEAREST_SCENARIO_TO_COORD
- TASK_USE_SCENARIO_POINT
- _TASK_START_SCENARIO_IN_PLACE_2
- _TASK_VEHICLE_DRIVE_TO_POINT_2
- PED_HAS_USE_SCENARIO_TASK
- TASK_USE_NEAREST_SCENARIO_CHAIN_TO_COORD
- TASK_USE_NEAREST_SCENARIO_CHAIN_TO_COORD_WARP
- TASK_USE_NEAREST_SCENARIO_TO_COORD_WARP
- TASK_USE_NEAREST_TRAIN_SCENARIO_TO_COORD_WARP
- TASK_USE_RANDOM_SCENARIO_IN_GROUP
- _TASK_BOARD_VEHICLE_2
- _TASK_CLIMB_2
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.