Garry's Mod Wiki

Revision Difference

permissions.IsGranted#546134

<function name="IsGranted" parent="permissions" type="libraryfunc"> <description> Returns whether the player has granted the current server a specific permission. </description> <added>2021.06.09</added> <realm>Client</realm> <realm>Client and Menu</realm> <args> <arg name="permission" type="string">The permission to poll. Currently only 1 permission is valid: * "connect"</arg> <arg name="permission" type="string">The permission to poll. Currently only 2 permission is valid: * "connect" * "voicerecord"</arg> </args> <rets> <ret name="" type="boolean">Whether the permission is granted or not.</ret> </rets> </function>