Garry's Mod Wiki

WEAPON:PostDrawViewModel

  WEAPON:PostDrawViewModel( Entity vm, Weapon weapon, Player ply, number flags )

Description

Called after the view model has been drawn while the weapon in use. This hook is called from the default implementation of GM:PostDrawViewModel, and as such, will not occur if it has been overridden.

WEAPON:ViewModelDrawn is an alternative hook which is always called before GM:PostDrawViewModel.

Arguments

1 Entity vm
This is the view model entity after it is drawn
2 Weapon weapon
This is the weapon that is from the view model (same as self)
3 Player ply
The owner of the view model
4 number flags
The STUDIO_ flags for this render operation.
This was recently added in version (2025.12.16). It might only be available on the Dev Branch right now.