- Documentation
- Shared functions
- createBlip
Function
createBlip
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,
0is 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
createBlipAttachedToCreates a blip attached to an element. The blip moves with it, for example with a vehicle or player.destroyElementDestroys an element together with its children. On the client it also destroys GUI elements.setBlipColorChanges the blip's colour. The colour shows on the plain square (icon0).