WEAPON:PreDrawViewModel
Description
Allows you to modify viewmodel while the weapon in use before it is drawn. This hook only works if you haven't overridden GM:PreDrawViewModel.
Arguments
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.
Returns
1 boolean
Return
true to prevent the default action of rendering the view model. PostDrawViewModel will NOT be called in this scenario.
Garry's Mod
Rust
Steamworks
Wiki Help