From Garry's Mod
Called when an NWVar is changed.
|NOTE||Currently this hook only works for the NW2Var system (accessed by adding a 2 in between NW and Var for most NWVar functions), which will replace the original one at some point in the future|
The owner entity of changed NWVar
The name if changed NWVar
The old value of the NWVar
The new value of the NWVar
Example usage of the hook. Prints out all NWVar changes.
hook.Add("EntityNetworkedVarChanged","printchange", print ) -- Trigger a change! Entity(1):SetNWString( "UserGroup", "owner" )
Player [Player1] UserGroup superadmin owner