DarkRP.DarkRPVarChanged
Jump to navigation
Jump to search
ply (Player)
var (string)
OldValue (any)
NewValue (any)
This page refers to DarkRP 2.4.3. This information may be incorrect as of later versions. Check here for a up-to-date list of hooks. |
---|
Syntax[edit]
Description | Called when a player's DarkRPVar changes |
---|---|
Syntax |
GAMEMODE:DarkRPVarChanged(Player ply, string var, any OldValue, any NewValue)
|
Returns | nil |
Arguments
The player who got paid
name of the variable that changed ("money", "salary", "rpname" or w/e)
The previous value of the variable
The new value of this DarkRPVar
Examples[edit]
Description | prints DarkRPVar changes, useful for debugging |
---|---|
Code | hook.Add( "DarkRPVarChanged", "example", function(ply, var, oldvar, newvalue)
print(ply, var, oldvar, newvalue)
end)
|
Output | a print message |