TaskHeliMission — FiveM Natives
0xDAD029E187A2BEB4 · TASK · all
All parameters except ped, heli and speed are optional, with pedTarget, vehicleTarget, x, y, z being dependent on missionType (ie. Attack/Flee mission types require a target ped/vehicle, whereas GoTo mission types require either x, y, z or a target ped/vehicle). If you don't want to use a parameter; pass 0.0f for x, y and z, 0 for pedTarget, vehicleTarget, 0 for other int parameters, and -1.0f for the remaining float parameters. ``cpp enum eHeliMissionFlags { None = 0, AttainRequestedOrientation = 1, DontModifyOrientation = 2, DontModifyPitch = 4, DontModifyThrottle = 8, DontModifyRoll = 16, LandOnArrival = 32, DontDoAvoidance = 64, StartEngineImmediately = 128, ForceHeightMapAvoidance = 256, DontClampProbesToDestination = 512, EnableTimeslicingWhenPossible = 1024, CircleOppositeDirection = 2048, MaintainHeightAboveTerrain = 4096, IgnoreHiddenEntitiesDuringLand = 8192, DisableAllHeightMapAvoidance = 16384, // ForceHeightMapAvoidance | DontDoAvoidance HeightMapOnlyAvoidance = 320, } ``
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | The ped to be tasked. |
| heli | Vehicle | The helicopters' entity handle. |
| vehicleTarget | Vehicle | The target vehicle (default is 0). |
| pedTarget | Ped | The target ped (default is 0). |
| x | float | The x coordinate of the target (default is 0.0f). |
| y | float | The y coordinate of the target (default is 0.0f). |
| z | float | The z coordinate of the target (default is 0.0f). |
| missionType |