getMarkerIcon
Client-side
Server-side
Shared
Pair: setMarkerIcon
Manual Review Required
Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.
This function returns the icon name for a marker.
OOP Syntax Help! I don't understand this!
- Method:marker:getIcon(...)
- Variable: .icon
Syntax
string getMarkerIcon ( marker theMarker )Required Arguments
- theMarker: A marker element referencing the specified marker.
Returns
- string: value
Returns false if the marker passed is invalid or a string containing one of the following:
Code Examples
shared
newmarker = createMarker ( 1000, 1000,1000, "checkpoint", 255, 0, 0 )icon = getMarkerIcon ( newmarker )outputChatBox ( "The default marker icon is " .. icon )