GetMarkerIcon

From Multi Theft Auto: Wiki
Revision as of 10:53, 24 September 2006 by MrJax (talk | contribs)
Jump to navigation Jump to search

This function returns the icon name for a marker.

Syntax

string getMarkerIcon ( marker theMarker )

Required Arguments

  • theMarker: A marker element referencing the specified marker.

Returns

Returns false if the marker passed is invalid or a string containing one of the following:

  • "none": No icon
  • "arrow": Arrow icon
  • "finish": Finish (end-race) icon

Example

marker = createMarker ( 1000, 1000,1000, "checkpoint", 255, 0, 0 )
icon = getMarkerIcon (marker)
outputChatBox ( "The default marker icon is " .. icon )

See Also