ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setMarkerTargetArrowProperties

Function

setMarkerTargetArrowProperties

Stores the look of the arrow above a checkpoint that points to the target: size and colour.

Syntax

bool setMarkerTargetArrowProperties(marker theMarker, float size [, int r = 255, int g = 255, int b = 255, int a = 255])

Arguments

theMarkermarker
The marker.
sizefloat
Arrow size.Optional in MTA:SA: int r = 255
rint, optional = 255
Red.
gint, optional = 255
Green.
bint, optional = 255
Blue.
aint, optional = 255
Alpha.

Differences from MTA:SA

  • Arguments in a different colour differ from MTA:SA.

In MTA:SA

setMarkerTargetArrowProperties(element marker, int r = 255, int g = 64, int b = 64, int a = 255, float size = markerSize * 0.625)

Returns

true on success.

Example

local marker = createMarker(0, 0, 3, "checkpoint", 4)
setMarkerTargetArrowProperties(marker, 1.5, 255, 0, 0, 200)

Notes

State for scripts. The game does not draw this arrow yet.

See also