Resource:Gang Manager/setPlayerGang

From Multi Theft Auto: Wiki
Revision as of 22:36, 23 June 2014 by ADCX (talk | contribs) (Created page with "{{Server client function}} Sets player's gang if the player is not currently in a gang. ==Syntax== <section name="Server" class="server" show="true"> <syntaxhighlight lang="lua">setPlayerGa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sets player's gang if the player is not currently in a gang.

Syntax

Click to collapse [-]
Server
setPlayerGang ( player Player, string Gang )

Required Arguments

  • Player: Player element whose gang you want to set
  • Gang: ID of the gang that you want to set as the player's gang
Click to collapse [-]
Client
setPlayerGang ( player Player, string Gang )

Required Arguments

  • Player: Player element whose gang you want to set
  • Gang: ID of the gang that you want to set as the player's gang

Returns

Returns true if player's gang was successfully get or returns false otherwise.