DarkRP.Player.GrantPriv
From GMod Wiki
This page has been nominated for deletion. Deletion is due within approximately 30 days from nomination, unless the deletion has been disputed on the talk page. See more pages nominated for deletion here. Reason for deletion: Not what Garry wants the wiki to be used for Last Edit was made on 11/16/2011 |
Gamemode Function: DarkRP.Player.GrantPriv | |
---|---|
DarkRP.Player.GrantPriv is a function that is defined in the DarkRP Gamemode and its derivatives. |
Function | |
Syntax |
Player:GrantPriv( String priv ) Where is this used? |
Description: | |
Grants the player a privilege. | |
Returns: | nil |
Part of Library: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DarkRP.Player.GrantPriv]DarkRP.Player.GrantPriv [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Give every player the toolgun privilege. |
---|---|
Used on | |
Code | function GiveAllToolgunPriv ) for k, v in pairs(player.GetAll()) do v:GrantPriv("tool") end end |
Output | N/A |
Additional Notes
- Possible privileges are: admin, mayor, cp, tool, phys and prop
- Deprecated, possibly not working and will be replaced with FAdmin when it's released - FPtje