Client · JavaScript & Lua

GTA V Pathfinding natives (PATHFIND)

Road nodes, the navigation mesh and GPS routes.

The 60 natives of the game’s PATHFIND namespace, as LS:MP client scripts call them: global functions with the same arguments in JavaScript and in Lua. Each one has its own page, with its signature, a call in both languages, its parameters and what it returns.

NativeGame nameHash
setRoadsInAreaSET_ROADS_IN_AREA0xBF1A602B5BA52FEE
setRoadsInAngledAreaSET_ROADS_IN_ANGLED_AREA0x1A5AA1208AF5DB59
setPedPathsInAreaSET_PED_PATHS_IN_AREA0x34F060F4BF92E018
getSafeCoordForPedGET_SAFE_COORD_FOR_PED0xB61C8E878A4199CA
getClosestVehicleNodeGET_CLOSEST_VEHICLE_NODE0x240A18690AE96513
getClosestMajorVehicleNodeGET_CLOSEST_MAJOR_VEHICLE_NODE0x2EABE3B06F58C1BE
getClosestVehicleNodeWithHeadingGET_CLOSEST_VEHICLE_NODE_WITH_HEADING0xFF071FB798B803B0
getNthClosestVehicleNodeGET_NTH_CLOSEST_VEHICLE_NODE0xE50E52416CCF948B
getNthClosestVehicleNodeIdGET_NTH_CLOSEST_VEHICLE_NODE_ID0x22D7275A79FE8215
getNthClosestVehicleNodeWithHeadingGET_NTH_CLOSEST_VEHICLE_NODE_WITH_HEADING0x80CA6A8B6C094CC4
getNthClosestVehicleNodeIdWithHeadingGET_NTH_CLOSEST_VEHICLE_NODE_ID_WITH_HEADING0x6448050E9C2A7207
getNthClosestVehicleNodeFavourDirectionGET_NTH_CLOSEST_VEHICLE_NODE_FAVOUR_DIRECTION0x45905BE8654AE067
getVehicleNodePropertiesGET_VEHICLE_NODE_PROPERTIES0x0568566ACBB5DEDC
isVehicleNodeIdValidIS_VEHICLE_NODE_ID_VALID0x1EAF30FCFBF5AF74
getVehicleNodePositionGET_VEHICLE_NODE_POSITION0x703123E5E7D429C2
getVehicleNodeIsGpsAllowedGET_VEHICLE_NODE_IS_GPS_ALLOWED0xA2AE5C478B96E3B6
getVehicleNodeIsSwitchedOffGET_VEHICLE_NODE_IS_SWITCHED_OFF0x4F5070AA58F69279
getClosestRoadGET_CLOSEST_ROAD0x132F52BBA570FE92
loadAllPathNodesLOAD_ALL_PATH_NODES0xC2AB6BFE34E92F8B
setAllowStreamPrologueNodesSET_ALLOW_STREAM_PROLOGUE_NODES0x228E5C6AD4D74BFD
setAllowStreamHeistIslandNodesSET_ALLOW_STREAM_HEIST_ISLAND_NODES0xF74B1FFA4A15FBEA
areNodesLoadedForAreaARE_NODES_LOADED_FOR_AREA0xF7B79A50B905A30D
requestPathNodesInAreaThisFrameREQUEST_PATH_NODES_IN_AREA_THIS_FRAME0x07FB139B592FA687
setRoadsBackToOriginalSET_ROADS_BACK_TO_ORIGINAL0x1EE7063B80FFC77C
setRoadsBackToOriginalInAngledAreaSET_ROADS_BACK_TO_ORIGINAL_IN_ANGLED_AREA0x0027501B9F3B407E
setAmbientPedRangeMultiplierThisFrameSET_AMBIENT_PED_RANGE_MULTIPLIER_THIS_FRAME0x0B919E1FB47CC4E0
adjustAmbientPedSpawnDensitiesThisFrameADJUST_AMBIENT_PED_SPAWN_DENSITIES_THIS_FRAME0xAA76052DDA9BFC3E
setPedPathsBackToOriginalSET_PED_PATHS_BACK_TO_ORIGINAL0xE04B48F2CC926253
getRandomVehicleNodeGET_RANDOM_VEHICLE_NODE0x93E0DB8440B73A7D
getSpawnCoordsForVehicleNodeNot in this buildGET_SPAWN_COORDS_FOR_VEHICLE_NODE0x809549AFC7AEC597
getStreetNameAtCoordGET_STREET_NAME_AT_COORD0x2EB41072B4C1E4C0
generateDirectionsToCoordGENERATE_DIRECTIONS_TO_COORD0xF90125F1F79ECDF8
setIgnoreNoGpsFlagSET_IGNORE_NO_GPS_FLAG0x72751156E7678833
setIgnoreNoGpsFlagUntilFirstNormalNodeSET_IGNORE_NO_GPS_FLAG_UNTIL_FIRST_NORMAL_NODE0x1FC289A0C3FF470F
setGpsDisabledZoneSET_GPS_DISABLED_ZONE0xDC20483CD3DD5201
getGpsBlipRouteLengthGET_GPS_BLIP_ROUTE_LENGTH0xBBB45C3CF5C8AA85
getPosAlongGpsTypeRouteGET_POS_ALONG_GPS_TYPE_ROUTE0xF3162836C28F9DA5
getGpsBlipRouteFoundGET_GPS_BLIP_ROUTE_FOUND0x869DAACBBE9FA006
getRoadBoundaryUsingHeadingGET_ROAD_BOUNDARY_USING_HEADING0xA0F8A7517A273C05
getPositionBySideOfRoadGET_POSITION_BY_SIDE_OF_ROAD0x16F46FB18C8009E4
isPointOnRoadIS_POINT_ON_ROAD0x125BF4ABFC536B09
getNextGpsDisabledZoneIndexGET_NEXT_GPS_DISABLED_ZONE_INDEX0xD3A6A0EF48823A8C
setGpsDisabledZoneAtIndexSET_GPS_DISABLED_ZONE_AT_INDEX0xD0BC1C6FB18EE154
clearGpsDisabledZoneAtIndexCLEAR_GPS_DISABLED_ZONE_AT_INDEX0x2801D0012266DF07
addNavmeshRequiredRegionADD_NAVMESH_REQUIRED_REGION0x387EAD7EE42F6685
removeNavmeshRequiredRegionsREMOVE_NAVMESH_REQUIRED_REGIONS0x916F0A3CDEC3445E
isNavmeshRequiredRegionInUseIS_NAVMESH_REQUIRED_REGION_IN_USE0x705A844002B39DC0
disableNavmeshInAreaDISABLE_NAVMESH_IN_AREA0x4C8872D8CDBE1B8B
areAllNavmeshRegionsLoadedARE_ALL_NAVMESH_REGIONS_LOADED0x8415D95B194A3AEA
isNavmeshLoadedInAreaIS_NAVMESH_LOADED_IN_AREA0xF813C7E63F9062A5
getNumNavmeshesExistingInAreaGET_NUM_NAVMESHES_EXISTING_IN_AREA0x01708E8DD3FF8C65
addNavmeshBlockingObjectADD_NAVMESH_BLOCKING_OBJECT0xFCD5C8E06E502F5A
updateNavmeshBlockingObjectUPDATE_NAVMESH_BLOCKING_OBJECT0x109E99373F290687
removeNavmeshBlockingObjectREMOVE_NAVMESH_BLOCKING_OBJECT0x46399A7895957C0E
doesNavmeshBlockingObjectExistDOES_NAVMESH_BLOCKING_OBJECT_EXIST0x0EAEB0DB4B132399
getApproxHeightForPointGET_APPROX_HEIGHT_FOR_POINT0x29C24BFBED8AB8FB
getApproxHeightForAreaGET_APPROX_HEIGHT_FOR_AREA0x8ABE8608576D9CE3
getApproxFloorForPointGET_APPROX_FLOOR_FOR_POINT0x336511A34F2E5185
getApproxFloorForAreaGET_APPROX_FLOOR_FOR_AREA0x3599D741C9AC6310
calculateTravelDistanceBetweenPointsCALCULATE_TRAVEL_DISTANCE_BETWEEN_POINTS0xADD95C7005C4A197

Other namespaces

Built-in25Script VM basics: timers, maths helpers, thread control.App data17Data blocks shared with the game's companion apps.Audio280Sounds, speech, music, radio, audio scenes and scripted conversations.Script brains11Script brains attached to objects, peds and world points.Camera248Scripted cameras, the gameplay camera, shakes, cinematic and hint cameras.Clock16In-game time and date, and the real-world clock.Cutscenes56Loading, playing and controlling cutscenes.Data files57Cloud data files and their dictionary and array structures.Decorators12Typed key/value decorators attached to entities.DLC14Presence and state of downloadable content.Entity189Anything placed in the world: position, rotation, health, attachment, collision, visibility.Events13AI and shocking events: adding, blocking and suppressing them.Shop metadata49Shop items, outfits, tattoos and weapon data declared by DLC metadata.Fire19Script fires and explosions.Graphics403Drawing: markers, lines, sprites, lights, particle effects, scaleform movies, timecycles and screen effects.HUD518Text, help and notifications, blips and the minimap, pause-menu and frontend components.IIS1The initial interactive screen shown when the game starts.Interior45Interiors, rooms and entity sets.Item sets9Script-side collections of entities and other items.Landing page4The game's landing page.Lobby8Legacy lobby state of the game's own multiplayer menu.Localization3Language and region of the game.Misc345Everything without a better home: weather, ground and area checks, maths, hashing, strings, game flow.Mobile phone25The in-game phone prop: position, rotation, scale and camera.Money357The game's online economy: earn and spend records, balances.Net shopping42The game's online catalog, baskets and transactions.Network883The game's own network layer: sessions, players, network ids, entity control, cloud content.Object166Props: creation, doors, pickups, breakable and animated objects.Controls50Player input: reading and disabling control actions, vibration, look inversion.Ped614Characters: creation, appearance, health, groups, relationships, ragdoll, config flags.Physics49Ropes, and the physics state of entities.Player250The local player: wanted level, abilities, targeting, control, model, invincibility.Recording17Rockstar Editor recording control.Replay6Rockstar Editor replay and clip state.Save migration8Transfer of a saved game between platforms and accounts.Script38Game script threads and script events.Security3Tamper protection of script variables.Shape tests11Raycasts and the other world probes.Social Club84Social Club inbox, profanity checks, licence plates and presence.Stats338Player statistics, leaderboards and telemetry.Streaming121Loading assets: models, animation and texture dictionaries, particle assets, IPLs, focus.Tasks313AI tasks: movement, combat, animations, driving, scenarios and sequences.Vehicle774Vehicles: creation, mods, colours, doors, damage, handling flags.Water12Water height, waves and water probes.Weapon123Weapons, ammunition, components and weapon objects.Zones9Map zones and population schedules.

Search them in the interactive natives reference