Garry's Mod Wiki

permissions.IsGranted

permissions.IsGranted

boolean permissions.IsGranted( string permission )

Just Added

This was just added in the latest version (2021.06.09). It might only be available on the Dev Branch right now.

Description

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

Arguments

1 string permission
The permission to poll. Currently only 1 permission is valid:

  • "connect"

Returns

1 boolean
Whether the permission is granted or not.

Special Pages


Wikis

?

Render Time: 120ms

DB GetPage 59
Generate Html 3
SaveChanges (1) 50
Render Body 0
Render Sidebar 6