Resource:Gang Manager/getGangColor: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Server function}} Gets color of the gang. ==Syntax== <syntaxhighlight lang="lua"> getGangColor ( string Gang ) </syntaxhighlight> ===Required Arguments=== *'''Gang:''' ID of the gang that you want ...")
 
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
getGangColor ( string Gang )
int int int getGangColor ( string Gang )
</syntaxhighlight>
</syntaxhighlight>


Line 11: Line 11:


===Returns===
===Returns===
Returns R, G and B integers if gang color was successfully get or ''false'' otherwise.
*'''R:''' Amount of red from 0 to 255
*'''G:''' Amount of green from 0 to 255
*'''B:''' Amount of blue from 0 to 255

Latest revision as of 23:15, 23 June 2014

Gets color of the gang.

Syntax

int int int getGangColor ( string Gang )

Required Arguments

  • Gang: ID of the gang that you want to get colors of

Returns

  • R: Amount of red from 0 to 255
  • G: Amount of green from 0 to 255
  • B: Amount of blue from 0 to 255