From DarkRP
Jump to navigation Jump to search
Hook name DarkRPVarChanged(Player ply, string varname, any oldValue, any newvalue)
Called when a DarkRPVar was changed.
Returns: nil
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Shared/DarkRPVarChanged]DarkRPVarChanged hook[/url][/b]


  1. ply (Player)
  2. The player for whom the DarkRPVar changed.

  3. varname (string)
  4. The name of the variable that has changed.

  5. oldValue (any)
  6. The old value of the DarkRPVar.

  7. newvalue (any)
  8. The new value of the DarkRPVar.

Return values[edit]

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