setMarkerTarget | Multi Theft Auto: Wiki Skip to content

setMarkerTarget

Client-side
Server-side
Shared

Pair: getMarkerTarget

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 sets the 'target' for a marker. Only the checkpoint and ring marker types can have a target.

Syntax

setMarkerTarget ( )

Code Examples

server

Creates a marker in the center of the map and points it north.

local newMarker = createMarker(0, 0, 5, "ring", 2, 255, 0, 0, 255) --Creates a marker
setMarkerTarget(newMarker, 3000, 0, 0) --Face the marker north