toColour

From GTA Connected
Revision as of 15:24, 24 August 2019 by Mex (talk | contribs) (Mex moved page ToColour to toColour)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Server and Client icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Server 1.0.0, Client 1.0.0

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

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

Parameters

1) int red The red colour component.
2) int green The green colour component.
3) int blue The blue colour component.
4) int alpha Optional, defaults to 255. The alpha colour component.

Return

int A colour represented as one integer.

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

icon-iii.png icon-vc.png icon-sa.png icon-iv.png collectAllGarbage
icon-iii.png icon-vc.png icon-sa.png icon-iv.png getConsole
icon-iii.png icon-vc.png icon-sa.png icon-iv.png gta.ssvBridgeEnabled
icon-iii.png icon-vc.png icon-sa.png icon-iv.png inPoly
icon-iii.png icon-vc.png icon-sa.png icon-iv.png platform
icon-iii.png icon-vc.png icon-sa.png icon-iv.png toColour


Client Related

icon-iii.png icon-vc.png icon-sa.png icon-iv.png collectAllGarbage
icon-iii.png icon-vc.png icon-sa.png icon-iv.png debugMode
icon-iii.png icon-vc.png icon-sa.png icon-iv.png getConsole
icon-iii.png icon-vc.png icon-sa.png getRandomSkin
icon-iii.png icon-vc.png icon-sa.png icon-iv.png gta.gameSpeed
icon-iii.png icon-vc.png icon-sa.png gta.getRandomSkin
icon-iii.png gta.getSurfaceTraction
icon-iii.png icon-vc.png gta.processLineOfSight
icon-sa.png gta.setDefaultInteriors
icon-iii.png gta.setSurfaceTraction
icon-iv.png gta.setWindSpeed
icon-iii.png icon-vc.png icon-sa.png gta.showHelpBox
icon-iii.png icon-vc.png icon-sa.png icon-iv.png gta.tickCount
icon-iii.png icon-vc.png icon-sa.png icon-iv.png inPoly
icon-iii.png icon-vc.png icon-sa.png icon-iv.png platform
icon-iii.png icon-vc.png icon-sa.png icon-iv.png toColour