- Documentation
- Shared functions
- setMarkerColor
Function
setMarkerColor
Changes a marker's colour and alpha, e.g. green when a job is available and red when it is not.
Syntax
bool setMarkerColor(marker theMarker, int r, int g, int b [, int a = 255])Arguments
theMarkermarker- The marker.
rint- Red 0-255, or a whole colour from
tocolor(then without g, b, a). gint- Green 0-255.
bint- Blue 0-255.
aint, optional = 255- Alpha 0-255.
Returns
true on success.
Example
local marker = createMarker(2495, -1670, 12.5, "cylinder", 1.5)
setMarkerColor(marker, 0, 255, 0, 150)