ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. createBlip

Function

createBlip

Server and clientBlipsIdentical to MTA:SA

Creates a blip, an icon on the radar and map, at the given point.

Syntax

blip createBlip(float x, float y, float z [, int icon = 0, int size = 2, int r = 255, int g = 0, int b = 0, int a = 255, int ordering = 0, float visibleDistance = 16383, element visibleTo = root])

Arguments

xfloat
X position.
yfloat
Y position.
zfloat
Z position.
iconint, optional = 0
Icon number, 0 is a plain square.
sizeint, optional = 2
Square size (for icon 0).
rint, optional = 255
Colour: red 0-255.
gint, optional = 0
Colour: green.
bint, optional = 0
Colour: blue.
aint, optional = 255
Opacity.
orderingint, optional = 0
Draw order, higher is on top.
visibleDistancefloat, optional = 16383
How far away the blip shows on the radar.
visibleToelement, optional = root
Who sees the blip (a player, team or root).

Returns

The new blip or false.

Example

local bank = createBlip(1462.0, -1011.0, 26.8, 52)
local meet = createBlip(2495.0, -1687.0, 13.5, 0, 3, 0, 255, 0)

See also