Garry's Mod Wiki

Revision Difference

permissions.GetAll#546137

<function name="GetAll" parent="permissions" type="libraryfunc">⤶ <description>⤶ Returns all permissions per server. Permanent permissions are stored in `settings/permissions.bin`.⤶ </description>⤶ <realm>Menu</realm>⤶ <rets>⤶ <ret name="permissions" type="table">A table of permanent and temporary permissions granted for servers.⤶ ⤶ Example structure:⤶ ```lua⤶ 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⤶ }⤶ ```⤶ </ret>⤶ </rets>⤶ </function>