ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. setMarkerType

Function

setMarkerType

Server and clientMarkersIdentical to MTA:SA

Changes a marker's type without recreating it (e.g. a cylinder becomes an arrow).

Syntax

bool setMarkerType(marker theMarker, string markerType)

Arguments

theMarkermarker
The marker.
markerTypestring
"cylinder", "checkpoint", "arrow", "corona" or "ring".

Returns

true on success.

Example

local marker = createMarker(0, 0, 3, "cylinder")
setMarkerType(marker, "arrow")

See also