Resource:Gang Manager/setPlayerGang

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

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

Syntax

Click to collapse [-]
Server
bool 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
bool 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

  • Success: Boolean that is true if the player's gang has been set or false if the player already is in the gang