GetMarkerIcon: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(No difference)

Revision as of 10:28, 24 September 2006

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

Shared