SixL client API / world-entities / MarkerMp
Interface: MarkerMp
A marker: a shape drawn in the world, one that the server created for this client or one a script made with mp.markers.new.
Remarks
Drawn by SixL's overlay: the shape's type, colour, scale, direction and rotation are shown. The properties of a marker the server made are the server's: assigning them changes nothing. The properties of a marker a script made can be assigned, and the overlay follows.
Example
mp.markers.forEach((marker) => mp.console.logInfo(String(marker.scale)));
Properties
position
position: Vector3
The marker's position, in metres.
Example
const where = marker.position;
scale
scale: number
The marker's scale, as it was set.
Example
const size = marker.scale;
visible
visible: boolean
Whether the marker is shown. A hidden marker is not drawn.
Example
if (marker.visible) { }
Methods
destroy()
destroy(): void
Removes a marker a script made. Does nothing for a marker the server made.
Returns
void
Example
marker.destroy();