- Documentation
- Markers
Category
Markers
All Lua functions and events in the Markers category, on the server and the client.

cylinder, checkpoint and corona types.Server functions 8
getReturns the marker icon set withMarker Icon setMarkerIcon("none","arrow","finish").getReturns the marker's target point set withMarker Target setMarkerTarget.getReturns the arrow look stored withMarker Target Arrow Properties setMarkerTargetArrowProperties.isReturns the value fromCorona Reflection Enabled setCoronaReflectionEnabled.setStores whether a corona (glowing marker) should reflect in water and on wet roads.Corona Reflection Enabled setSets the icon of a ring or checkpoint:Marker Icon "none","arrow"(arrow to the next point) or"finish"(finish flag).setSets the point a ring or checkpoint points at (in races - the next point on the route). Without coordinates it removes the target.Marker Target setStores the look of the arrow above a checkpoint that points to the target: size and colour.Marker Target Arrow Properties
Shared functions 8
createCreates a marker in the world: a coloured cylinder to step into (e.g. a job entrance), an arrow above a spot, a corona or a ring. When a player enters it, the server firesMarker onMarkerHitwith the player as the first argument, andonMarkerLeaveon exit. Types:"cylinder","checkpoint","arrow","corona"(a soft ball of light facing the camera),"ring". The size is the diameter in metres.getReturns a marker's colour.Marker Color getReturns the number of all markers on the server.Marker Count getReturns a marker's size (diameter in metres).Marker Size getReturns the marker type (Marker Type "cylinder","checkpoint","arrow","corona","ring").setChanges a marker's colour and alpha, e.g. green when a job is available and red when it is not.Marker Color setChanges a marker's size (diameter in metres). The entry zone (Marker Size onMarkerHit) changes along with it.setChanges a marker's type without recreating it (e.g. a cylinder becomes an arrow).Marker Type