Resource:Gang Manager/setPlayerLevel: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Server client function}} Sets player's level if the player is currently in a gang. ==Syntax== <section name="Server" class="server" show="true"> <syntaxhighlight lang="lua">setPlayerLevel...") |
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">setPlayerLevel ( player Player, integer Level )</syntaxhighlight> | <syntaxhighlight lang="lua">bool setPlayerLevel ( player Player, integer Level )</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">setPlayerLevel ( player Player, integer Level )</syntaxhighlight> | <syntaxhighlight lang="lua">bool setPlayerLevel ( player Player, integer Level )</syntaxhighlight> | ||
==Required Arguments== | ==Required Arguments== | ||
Line 19: | Line 19: | ||
==Returns== | ==Returns== | ||
*'''Success:''' Boolean that is true if the level was changed successfully or false otherwise |
Latest revision as of 23:33, 23 June 2014
Sets player's level if the player is currently in a gang.
Syntax
Click to collapse [-]
Serverbool setPlayerLevel ( player Player, integer Level )
Required Arguments
- Player: Player whose level you want to change
- Level: Integer of the level you want to set as player's level from 1 to 5
Click to collapse [-]
Clientbool setPlayerLevel ( player Player, integer Level )
Required Arguments
- Player: Player whose level you want to change
- Level: Integer of the level you want to set as player's level from 1 to 5
Returns
- Success: Boolean that is true if the level was changed successfully or false otherwise