Pathfind::getStreetNameAtCoord

From RAGE Multiplayer Wiki
Revision as of 20:35, 6 May 2017 by Marty uploader (talk | contribs) (yay)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Determines the name of the street which is the closest to the given coordinates.

x,y,z - the coordinates of the street
streetName - returns a hash to the name of the street the coords are on
crossingRoad - if the coordinates are on an intersection, a hash to the name of the crossing road

Note: the names are returned as hashes, the strings can be returned using the function UI::GET_STREET_NAME_FROM_HASH_KEY.

Syntax

pathfind.getStreetNameAtCoord(x, y, z, streetName, crossingRoad);

Required Arguments

  • x: float
  • y: float
  • z: float
  • streetName: Hash
  • crossingRoad: Hash

Return value

  • object: streetName, crossingRoad

Example

todo

See also

Template:Pathfind function c