From DarkRP
Jump to navigation Jump to search
Hook name canEditLaws(Player player, string action, table arguments)
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]


  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[edit]

  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.