Hooks/Server/canEditLaws

From Official DarkRP Wiki
Jump to navigation Jump to search
Hook
Hook name canEditLaws(Player player, string action, table arguments)
Description:
Whether someone can edit laws.
Returns: boolean canEdit, string message
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/canEditLaws]canEditLaws hook[/url][/b]

Parameters

  1. player (Player)
  2. The player trying to edit laws.

  3. action (string)
  4. How the player is trying to edit laws.

  5. arguments (table)
  6. Arguments related to editing laws.

Return values

  1. canEdit (boolean)
  2. A yes or no as to whether the player can edit the law.

  3. message (string)
  4. The message that is shown when they can't edit the law.