Native referenceFiveM

GET_POS_ALONG_GPS_TYPE_ROUTE

0xF3162836C28F9DA5 PATHFIND
FUNCTION SIGNATURE
BOOL GET_POS_ALONG_GPS_TYPE_ROUTE(Vector3* result, BOOL bStartAtPlayerPos, float fDistanceAlongRoute, int slotType);
Property Value
Native Name GET_POS_ALONG_GPS_TYPE_ROUTE
Hash 0xF3162836C28F9DA5
Return Type BOOL
Parameters result (Vector3*), bStartAtPlayerPos (BOOL), fDistanceAlongRoute (float), slotType (int)

Description: Native to get a position along current player GPS route using supplied slot. This native was previously named GET_GPS_WAYPOINT_ROUTE_END, but its named changed.

enum eGpsSlotType {
	GPS_SLOT_WAYPOINT = 0,
	GPS_SLOT_RADAR_BLIP = 1,
	GPS_SLOT_DISCRETE = 2
}

Parameters

  • result (Vector3*) — Coordinates of waypoint marker
  • bStartAtPlayerPos (BOOL) — Should we project distance from the player position or from next node.
  • fDistanceAlongRoute (float) — Distance we want to get the position along the route.
  • slotType (int) — Type of gps route to check against. See eGpsSlotType.
Back to PATHFIND