toColour

From GTA Connected
Jump to navigation Jump to search

Function Server and Client All Games Online and Offline

Server 1.0.0, Client 1.0.0

int toColour(int red, int green, int blue, [ int alpha = 255 ])

Description

The toColour function is used to convert a colour from individual RGB[A] components to one RGB[A] integer.

Parameters

Type Name Presence Default Value Description
int
red
required n/a The red colour component.
int
green
required n/a The green colour component.
int
blue
required n/a The blue colour component.
int
alpha
optional
255
The alpha colour component.

Returns

Success Returns

Type Description
int
A colour represented as one integer.

Failure Returns

Type Value
int
0

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

Server Related

inPoly
platform
toColour


Client Related

getRandomSkin
gta.getRandomSkin
gta.getSurfaceTraction
gta.processLineOfSight
gta.setDefaultInteriors
gta.setGangWeapons
gta.setIsland
gta.setIslands
gta.setSurfaceTraction
gta.showHelpBox
gta.tickCount
inPoly
platform
setWindSpeed
toColour