Hooks/Shared/DarkRPVarChanged

From Official DarkRP Wiki
Jump to: navigation, search
Hook
Hook name DarkRPVarChanged(Player ply, string varname, any oldValue, any newvalue)
Description:
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]

Parameters

  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

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