Garry's Mod Wiki

permissions.IsGranted

  boolean permissions.IsGranted( string permission )

Description

Returns whether the player has granted the current server a specific permission.

Arguments

1 string permission
The permission to poll. Currently only 2 permission are valid:
  • "connect"
  • "voicerecord"

Returns

1 boolean
Whether the permission is granted or not.