Garry's Mod Wiki



  GM:PostDrawViewModel( Entity viewmodel, Player player, Weapon weapon )


Called after view model is drawn.

This is a rendering hook which provides a 3d rendering context.
The 3D rendering context in this event is different from the main view. Every render operation will only be accurate with the view model entity.


1 Entity viewmodel
Players view model
2 Player player
The owner of the weapon/view model
3 Weapon weapon
The weapon the player is currently holding

Special Pages



Render Time: 36ms

DB GetPage 3
Generate Html 4
SaveChanges (1) 20
Render Body 0
Render Sidebar 7