toColour
(Redirected from ToColour)
Jump to navigation
Jump to search
Function
Server and Client
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
collectAllGarbage
getConsole
gta.ssvBridgeEnabled
inPoly
platform
toColour
Client Related
collectAllGarbage
debugMode
getConsole
getRandomSkin
gta.gameSpeed
gta.getRandomSkin
gta.getSurfaceTraction
gta.processLineOfSight
gta.setDefaultInteriors
gta.setSurfaceTraction
gta.setWindSpeed
gta.showHelpBox
gta.tickCount
inPoly
platform
toColour