GetMarkerIcon

From Multi Theft Auto: Wiki
Revision as of 10:28, 24 September 2006 by MrJax (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function returns the icon of a marker.

Syntax

int getMarkerType ( 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:

  • 0: No icon
  • 1: Arrow icon
  • 2: Finish icon

Example

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

See Also