- Documentation
- Shared functions
- setBlipColor
Function
setBlipColor
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)