Resource:Gang Manager/setGangColor: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Server function}} Sets color of the gang. ==Syntax== <syntaxhighlight lang="lua"> setGangColor ( string Gang, integer R, integer G, integer B ) </syntaxhighlight> ===Required Arguments=== *'''Gang:...")
 
No edit summary
 
Line 4: Line 4:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
setGangColor ( string Gang, integer R, integer G, integer B )
bool setGangColor ( string Gang, integer R, integer G, integer B )
</syntaxhighlight>
</syntaxhighlight>


Line 14: Line 14:


===Returns===
===Returns===
Returns ''true'' if gang color was successfully set or ''false'' otherwise.
*'''Success:''' Boolean that is true if gang's color was successfully changed

Latest revision as of 23:28, 23 June 2014

Sets color of the gang.

Syntax

bool setGangColor ( string Gang, integer R, integer G, integer B )

Required Arguments

  • Gang: ID of the gang you want to change the color of
  • R: Amount of red from 0 to 255
  • G: Amount of green from 0 to 255
  • B: Amount of blue from 0 to 255

Returns

  • Success: Boolean that is true if gang's color was successfully changed