Garry's Mod Wiki

permissions.GetAll

Description

Returns all permissions per server. Permanent permissions are stored in settings/permissions.bin.

Returns

1 table permissions
A table of permanent and temporary permissions granted for servers.

Example structure:

permanent = { ["123.123.123.123"] = "connect" -- this server has a permission to connect player to any server even after restarting the game }, temporary = { ["111.111.111.111"] = "voicerecord" -- this server can enable voice activity on player during this game session }