Hooks/Shared/addLaw

From Official DarkRP Wiki
Jump to: navigation, search
Hook
Hook name addLaw(number index, string law)
Description:
Called when a law is added.
Returns: nil
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Shared/addLaw]addLaw hook[/url][/b]

Parameters

  1. index (number)
  2. Index of the law

  3. law (string)
  4. Law string

Return values

This hook does not accept return values. You can still return a value to override the default implementation of this hook.