Resource:Gang Manager/setPlayerGang: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(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...")
 
No edit summary
 
Line 4: Line 4:
==Syntax==
==Syntax==
<section name="Server" class="server" show="true">
<section name="Server" class="server" show="true">
<syntaxhighlight lang="lua">setPlayerGang ( player Player, string Gang )</syntaxhighlight>
<syntaxhighlight lang="lua">bool setPlayerGang ( player Player, string Gang )</syntaxhighlight>


==Required Arguments==
==Required Arguments==
Line 11: Line 11:
</section>
</section>
<section name="Client" class="client" show="true">
<section name="Client" class="client" show="true">
<syntaxhighlight lang="lua">setPlayerGang ( player Player, string Gang )</syntaxhighlight>
<syntaxhighlight lang="lua">bool setPlayerGang ( player Player, string Gang )</syntaxhighlight>


==Required Arguments==
==Required Arguments==
Line 19: Line 19:


==Returns==
==Returns==
Returns ''true'' if player's gang was successfully get or returns ''false'' otherwise.
*'''Success:''' Boolean that is true if the player's gang has been set or false if the player already is in the gang

Latest revision as of 23:33, 23 June 2014

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