Resource:Gang Manager/getPlayerGang: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Server client function}} Deletes gang from the database. ==Syntax== <section name="Server" class="server" show="true"> <syntaxhighlight lang="lua">getPlayerGang ( player Player )</syntaxhighlight> ...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Server client function}}
{{Server client function}}
Deletes gang from the database.
Gets player's level from database.


==Syntax==
==Syntax==
<section name="Server" class="server" show="true">
<section name="Server" class="server" show="true">
<syntaxhighlight lang="lua">getPlayerGang ( player Player )</syntaxhighlight>
<syntaxhighlight lang="lua">string getPlayerGang ( player Player )</syntaxhighlight>


==Required Arguments==
==Required Arguments==
*'''Gang:''' ID of the gang you wish to delete
*'''Player:''' Player element whose gang ID you want to get
</section>
</section>
<section name="Client" class="client" show="true">
<section name="Client" class="client" show="true">
<syntaxhighlight lang="lua">getPlayerGang ( player Player )</syntaxhighlight>
<syntaxhighlight lang="lua">string getPlayerGang ( player Player )</syntaxhighlight>


==Required Arguments==
==Required Arguments==
Line 17: Line 17:


==Returns==
==Returns==
Returns gang ID of the player's gang or returns ''false'' otherwise.
*'''Gang:''' ID of the gang the player is currently in

Latest revision as of 23:24, 23 June 2014

Gets player's level from database.

Syntax

Click to collapse [-]
Server
string getPlayerGang ( player Player )

Required Arguments

  • Player: Player element whose gang ID you want to get
Click to collapse [-]
Client
string getPlayerGang ( player Player )

Required Arguments

  • Player: Player element whose gang ID you want to get

Returns

  • Gang: ID of the gang the player is currently in