Resource:Gang Manager/setPlayerLevel

From Multi Theft Auto: Wiki
Revision as of 22:38, 23 June 2014 by ADCX (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Syntax

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

Returns true if player's level was successfully get or returns false otherwise.