Garry's Mod Wiki
Used to ask player for various potentially dangerous permissions.
Methods
permissions.AskToConnect( string address )
Requests the player to connect to a specified server. The player will be prompted with a confirmation window.
Connects player to the server. This is what permissions. AskToConnect uses internally.
permissions.EnableVoiceChat( boolean enable )
Activates player's microphone as if they pressed the speak button themself. The player will be prompted with a confirmation window which grants permission temporarily/permanently(depending on checkbox state) for the connected server (revokable).
This is used for TTT's traitor voice channel.
Returns all permissions per server. Permanent permissions are stored in settings/permissions. bin.
Grants permission to the current connected server.
Returns whether the player has granted the current server a specific permission.
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated twice a day. Edits and history are not available.
Last Parsed: Loading...