{"hash":"0xF91DF93B","ns":"CFX","name":"TASK_GO_TO_COORD_ANY_MEANS","slug":"TASK_GO_TO_COORD_ANY_MEANS","official":true,"named":true,"luaName":"TaskGoToCoordAnyMeans","game":"cfx","apiset":"server","returnType":"void","params":[{"name":"ped","type":"Ped","description":"The `Ped` Handle."},{"name":"x","type":"float","description":"The goto target coordinate."},{"name":"y","type":"float","description":"The goto target coordinate."},{"name":"z","type":"float","description":"The goto target coordinate."},{"name":"fMoveBlendRatio","type":"float","description":"0.0 = still, 1.0 = walk, 2.0 = run, 3.0 = sprint."},{"name":"vehicle","type":"Vehicle","description":"If defined, the pedestrian will only move if said vehicle exists. If you don't want any sort of association, just set it to `0`."},{"name":"bUseLongRangeVehiclePathing","type":"BOOL","description":"Setting to `true` tells the vehicle to use longrange vehicle pathing."},{"name":"drivingFlags","type":"int","description":"See `eDrivingMode` enum."},{"name":"fMaxRangeToShootTargets","type":"float","description":"Determines the maximum distance at which the `Ped` will engage in combat with threatening targets."}],"summary":"Tells a ped to go to a coord by any means.","descriptions":[{"source":"cfx","format":"md","body":"Tells a ped to go to a coord by any means.\n\n```cpp\nenum eDrivingMode {\nDF_StopForCars = 1,\nDF_StopForPeds = 2,\nDF_SwerveAroundAllCars = 4,\nDF_SteerAroundStationaryCars = 8,\nDF_SteerAroundPeds = 16,\nDF_SteerAroundObjects = 32,\nDF_DontSteerAroundPlayerPed = 64,\nDF_StopAtLights = 128,\nDF_GoOffRoadWhenAvoiding = 256,\nDF_DriveIntoOncomingTraffic = 512,\nDF_DriveInReverse = 1024,\n// If pathfinding fails, cruise randomly instead of going on a straight line\nDF_UseWanderFallbackInsteadOfStraightLine = 2048,\nDF_AvoidRestrictedAreas = 4096,\n// These only work on MISSION_CRUISE\nDF_PreventBackgroundPathfinding = 8192,\nDF_AdjustCruiseSpeedBasedOnRoadSpeed = 16384,\nDF_UseShortCutLinks =  262144,\nDF_ChangeLanesAroundObstructions = 524288,\n// cruise tasks ignore this anyway--only used for goto's\nDF_UseSwitchedOffNodes =  2097152,\n// if you're going to be primarily driving off road\nDF_PreferNavmeshRoute =  4194304,\n// Only works for planes using MISSION_GOTO, will cause them to drive along the ground instead of fly\nDF_PlaneTaxiMode =  8388608,\nDF_ForceStraightLine = 16777216,\nDF_UseStringPullingAtJunctions = 33554432,\nDF_AvoidHighways = 536870912,\nDF_ForceJoinInRoadDirection = 1073741824,\n// Standard driving mode. stops for cars, peds, and lights, goes around stationary obstructions\nDRIVINGMODE_STOPFORCARS = 786603, // DF_StopForCars|DF_StopForPeds|DF_SteerAroundObjects|DF_SteerAroundStationaryCars|DF_StopAtLights|DF_UseShortCutLinks|DF_ChangeLanesAroundObstructions,\t\t// Obey lights too\n// Like the above, but doesn't steer around anything in its way - will only wait instead.\nDRIVINGMODE_STOPFORCARS_STRICT = 262275, // DF_StopForCars|DF_StopForPeds|DF_StopAtLights|DF_UseShortCutLinks, // Doesn't deviate an inch.\n// Default \"alerted\" driving mode. drives around everything, doesn't obey lights\nDRIVINGMODE_AVOIDCARS = 786469, // DF_SwerveAroundAllCars|DF_SteerAroundObjects|DF_UseShortCutLinks|DF_ChangeLanesAroundObstructions|DF_StopForCars,\n// Very erratic driving. difference between this and AvoidCars is that it doesn't use the brakes at ALL to help with steering\nDRIVINGMODE_AVOIDCARS_RECKLESS = 786468, // DF_SwerveAroundAllCars|DF_SteerAroundObjects|DF_UseShortCutLinks|DF_ChangeLanesAroundObstructions,\n// Smashes through everything\nDRIVINGMODE_PLOUGHTHROUGH = 262144, // DF_UseShortCutLinks\n// Drives normally except for the fact that it ignores lights\nDRIVINGMODE_STOPFORCARS_IGNORELIGHTS = 786475, // DF_StopForCars|DF_SteerAroundStationaryCars|DF_StopForPeds|DF_SteerAroundObjects|DF_UseShortCutLinks|DF_ChangeLanesAroundObstructions\n// Try to swerve around everything, but stop for lights if necessary\nDRIVINGMODE_AVOIDCARS_OBEYLIGHTS = 786597, // DF_SwerveAroundAllCars|DF_StopAtLights|DF_SteerAroundObjects|DF_UseShortCutLinks|DF_ChangeLanesAroundObstructions|DF_StopForCars\n// Swerve around cars, be careful around peds, and stop for lights\nDRIVINGMODE_AVOIDCARS_STOPFORPEDS_OBEYLIGHTS = 786599 // DF_SwerveAroundAllCars|DF_StopAtLights|DF_StopForPeds|DF_SteerAroundObjects|DF_UseShortCutLinks|DF_ChangeLanesAroundObstructions|DF_StopForCars\n};\n```\n\n**This is the server-side RPC native equivalent of the client native [TASK_GO_TO_COORD_ANY_MEANS](?\\_0x5BC448CB78FA3E88).**"}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/TASK_GO_TO_COORD_ANY_MEANS","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/TASK_GO_TO_COORD_ANY_MEANS.md","snippets":{"lua":"TaskGoToCoordAnyMeans(ped, x, y, z, fMoveBlendRatio, vehicle, bUseLongRangeVehiclePathing, drivingFlags, fMaxRangeToShootTargets)","luaInvoke":"Citizen.InvokeNative(0xf91df93b, ped, x, y, z, fMoveBlendRatio, vehicle, bUseLongRangeVehiclePathing, drivingFlags, fMaxRangeToShootTargets)","js":"TaskGoToCoordAnyMeans(ped, x, y, z, fMoveBlendRatio, vehicle, bUseLongRangeVehiclePathing, drivingFlags, fMaxRangeToShootTargets);","jsInvoke":"Citizen.invokeNative('0xf91df93b', ped, x + 0.0000001, y + 0.0000001, z + 0.0000001, fMoveBlendRatio + 0.0000001, vehicle, bUseLongRangeVehiclePathing, drivingFlags, fMaxRangeToShootTargets + 0.0000001);","csharp":"Function.Call((Hash)0xf91df93b, ped, x, y, z, fMoveBlendRatio, vehicle, bUseLongRangeVehiclePathing, drivingFlags, fMaxRangeToShootTargets);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason."]}}