TaskStartScenarioAtPosition — FiveM Natives
0xFA4EFC79F69D4F07 · TASK · all
The ped will move or warp to the position and heading given, then start the scenario passed. See TASK_START_SCENARIO_IN_PLACE for a list of scenarios.
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | The ped handle. |
| scenarioName | char* | The name of the scenario to start. |
| x | float | The x coordinate to start at. |
| y | float | The y coordinate to start at. |
| z | float | The z coordinate to start at. Should be the ground position plus the ped's ground to root offset. |
| heading | float | The heading to start at. |
| timeToLeave | int | Sets the timeout on the scenario point to the specified time in milliseconds. If less than 0, sets the `IdleForever` flag. |
| playIntro | BOOL | If the ped should play the scenarios enter animation. Sets the `SkipEnterClip` flag. |
| warp | BOOL | If the ped should be warped to the position. Sets the `Warp` flag. |
Returns
void