Functions/Player/Shared/canKeysLock

From Official DarkRP Wiki
Jump to: navigation, search
Function
Function name Player:canKeysLock(Entity door)
Description:
Whether the player can lock a given door.
Returns: boolean allowed
Part of Library: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/Player/Shared/canKeysLock]Player:canKeysLock[/url][/b]

Function parameters

  1. door (Entity)
  2. The door


Function return values

  1. allowed (boolean)
  2. Whether the player is allowed to lock the door.