Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TaskVehicleDriveToCoordLongrange.md #942

Merged
merged 5 commits into from
Aug 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions TASK/TaskVehicleDriveToCoordLongrange.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,38 @@ You can let your character drive to the destination at the speed and driving sty
* **driveMode**: More info can be found [here](https://vespura.com/fivem/drivingstyle/)
* **stopRange**: Stops in the specific range near the destination. 20.0 works fine.


## Flags:
Wetter42 marked this conversation as resolved.
Show resolved Hide resolved
* DF_StopForCars = 1,
* DF_StopForPeds = 2,
* DF_SwerveAroundAllCars = 4,
* DF_SteerAroundStationaryCars = 8,
* DF_SteerAroundPeds = 16,
* DF_SteerAroundObjects = 32,
* DF_DontSteerAroundPlayerPed = 64,
* DF_StopAtLights = 128,
* DF_GoOffRoadWhenAvoiding = 256,
* DF_DriveIntoOncomingTraffic = 512,
* DF_DriveInReverse = 1024,
* DF_UseWanderFallbackInsteadOfStraightLine = 2048,
* DF_AvoidRestrictedAreas = 4096,

**These only work on MISSION_CRUISE**

* DF_PreventBackgroundPathfinding = 8192,
* DF_AdjustCruiseSpeedBasedOnRoadSpeed = 16384,

* DF_UseShortCutLinks = 262144,
* DF_ChangeLanesAroundObstructions = 524288,
* DF_UseSwitchedOffNodes = 2097152, //cruise tasks ignore this anyway--only used for goto's
* DF_PreferNavmeshRoute = 4194304, //if you're going to be primarily driving off road
* DF_PlaneTaxiMode = 8388608, // Only works for planes using MISSION_GOTO, will cause them to drive along the ground instead of fly
* DF_ForceStraightLine = 16777216,
* DF_UseStringPullingAtJunctions = 33554432,
* DF_AvoidHighways = 536870912,
* DF_ForceJoinInRoadDirection = 1073741824,


## Examples
```cs
// A short example showcasing how this native works with map marks.
Expand Down
Loading