Garry's Mod Wiki

Revision Difference

GM:PostDrawViewModel#553095

<function name="PostDrawViewModel" parent="GM" type="hook"> <ishook>yes</ishook>⤶ <description> Called after view model is drawn. <rendercontext hook="true" type="3D"></rendercontext> <note>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.</note> </description> <realm>Client</realm> <predicted>No</predicted>⤶ <args> <arg name="viewmodel" type="Entity">Players view model</arg> <arg name="player" type="Player">The owner of the weapon/view model</arg> <arg name="weapon" type="Weapon">The weapon the player is currently holding</arg> </args> </function>