Resource:Gang Manager/createGang: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
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">createGang ( string GangName )</syntaxhighlight>
<syntaxhighlight lang="lua">string createGang ( string GangName )</syntaxhighlight>


==Required Arguments==
==Required Arguments==
Line 10: Line 10:
</section>
</section>
<section name="Client" class="client" show="true">
<section name="Client" class="client" show="true">
<syntaxhighlight lang="lua">createGang ( string GangName )</syntaxhighlight>
<syntaxhighlight lang="lua">string createGang ( string GangName )</syntaxhighlight>


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


==Returns==
==Returns==
Returns gang ID if the gang was created successfully or returns ''false'' otherwise.
*'''Gang:''' ID of the gang that was created

Latest revision as of 23:11, 23 June 2014

Creates gang with chosen name in the database.

Syntax

Click to collapse [-]
Server
string createGang ( string GangName )

Required Arguments

  • GangName: Name of the gang you wish to create
Click to collapse [-]
Client
string createGang ( string GangName )

Required Arguments

  • GangName: Name of the gang you wish to create

Returns

  • Gang: ID of the gang that was created