TaskBoatMission — FiveM Natives
0x15C86013127CE63F · TASK · all
All parameters except ped and boat 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 and other int parameters, and -1.0f for the remaining float parameters. ``cpp enum eBoatMissionFlags { None = 0, StopAtEnd = 1, StopAtShore = 2, AvoidShore = 4, PreferForward = 8, NeverStop = 16, NeverNavMesh = 32, NeverRoute = 64, ForceBeached = 128, UseWanderRoute = 256, UseFleeRoute = 512, NeverPause = 1024, // StopAtEnd | StopAtShore | AvoidShore DefaultSettings = 7, // StopAtEnd | StopAtShore | AvoidShore | PreferForward | NeverNavMesh | NeverRoute OpenOceanSettings = 111, // StopAtEnd | StopAtShore | AvoidShore | PreferForward | NeverNavMesh | NeverPause BoatTaxiSettings = 1071, } ``
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | The ped to be tasked. |
| boat | Vehicle | The boats' 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 | int | The mission type (default is 0) (see [TaskVehicleMission](#\_0x659427E0EF36BCDE)). |