setMarkerIcon | Multi Theft Auto: Wiki Skip to content

setMarkerIcon

Client-side
Server-side
Shared

Pair: getMarkerIcon

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function allows changing the icon of a checkpoint marker.

Syntax

setMarkerIcon ( )

Code Examples

server

This example creates a finish marker as you'd expect for the end of a race.

local newMarker = createMarker ( 0, 0, 2, "checkpoint", 1, 255, 0, 0)
setMarkerIcon ( newMarker, "finish" )