Summary

Functions

Checks whether the player held in the current_player global may perform an action.

Functions

can(action, object)

shared plugins/admin/plugin/lib/sh_admin.lua:677

On the server

Checks whether the player held in the current_player global may perform an action. Server-side variant; returns false when that global is not a valid player.

Parameters

  • action String permission ID
  • object String optional, defaults to nil object name the permission was allowed for

Returns

  • Boolean

On the client

Checks whether the local player may perform an action. Client-side variant.

Parameters

  • action String permission ID
  • object String optional, defaults to nil object name the permission was allowed for

Returns

  • Boolean

Defined in

Defined in