Revision Difference
GM:PreDrawViewModel#527435
<function name="PreDrawViewModel" parent="GM" type="hook">
	<ishook>yes</ishook>
	<description>
Called before the view model has been drawn. This hook by default also calls this on weapons, so you can use <page>WEAPON:PreDrawViewModel</page>.
You can use <page>GM:PreDrawEffects</page> as a "PostDrawViewModel" hook as it is called just after the view model(s) are drawn.
<rendercontext hook="true" type="3D"></rendercontext>
⤶
<bug issue="3024">This is also called once a frame with no arguments.</bug>⤶
	</description>
	<realm>Client</realm>
	<predicted>No</predicted>
	<args>
		<arg name="vm" type="Entity">This is the view model entity before it is drawn. On server-side, this entity is the predicted view model.</arg>
		<arg name="ply" type="Player">The the owner of the view model.</arg>
		<arg name="weapon" type="Weapon">This is the weapon that is from the view model.</arg>
	</args>
	<rets>
		<ret name="" type="boolean">Return true to prevent the default view model rendering. This also affects <page>GM:PostDrawViewModel</page>.</ret>
	</rets>
</function>
			Garry's Mod 
		
			Rust 
		
			Steamworks 
		
			Wiki Help