Garry's Mod Wiki

PLAYER:ViewModelChanged

  PLAYER:ViewModelChanged( Entity viewmodel, string old, string new )

Description

Called when the player changes their weapon to another one causing their viewmodel model to change

Arguments

1 Entity viewmodel
The viewmodel that is changing
2 string old
The old model
3 string new
The new model