Garry's Mod Wiki

GM:PreDrawViewModel

Description

Called before the view model has been drawn. This hook by default also calls this on weapons, so you can use WEAPON:PreDrawViewModel.

This is a rendering hook which provides a 3d rendering context.
This is also called once a frame with no arguments.

Arguments

1 Entity vm
This is the view model entity before it is drawn. On server-side, this entity is the predicted view model.
2 Player ply
The the owner of the view model.
3 Weapon weapon
This is the weapon that is from the view model.

Returns

1 boolean
Return true to prevent the default view model rendering. This also affects GM:PostDrawViewModel.

Page Links


Special Pages


Wikis

?

Render Time: 37ms

Session 0
DB GetPage 3
Generate Html 14
SaveChanges 8
Render Body 0
Render Sidebar 11