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

Function

setBlipColor

Server and clientBlipsIdentical to MTA:SA

Changes the blip's colour. The colour shows on the plain square (icon 0).

Syntax

bool setBlipColor(blip blip, int r, int g, int b [, int a = 255])

Arguments

blipblip
The blip.
rint
Red 0-255.
gint
Green 0-255.
bint
Blue 0-255.
aint, optional = 255
Opacity 0-255.

Returns

true on success.

Example

local blip = createBlip(1000, -1500, 13, 0)
setBlipColor(blip, 0, 128, 255, 255)

See also