Hooks/Shared/DarkRPVarChanged
Jump to navigation
Jump to search
Hook | |
Hook name | DarkRPVarChanged(Player ply, string varname, any oldValue, any newvalue) |
Description: | |
Called when a DarkRPVar was changed. | |
Returns: | nil |
Realm: |
![]() |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Shared/DarkRPVarChanged]DarkRPVarChanged hook[/url][/b] |
Parameters[edit]
- ply (Player)
- varname (string)
- oldValue (any)
- newvalue (any)
The player for whom the DarkRPVar changed.
The name of the variable that has changed.
The old value of the DarkRPVar.
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.