Using the PreDrawViewModels hook in SF
🌙 Lua•Updated 2 days ago•0 views
It's a 3D render-context hook - use it instead of drawhud for drawing things that must appear over the viewmodel; anything hooked earlier lets props/world draw …
How to add the PreDrawViewModels gamemode hook in Starfall
It's a 3D render-context hook - use it instead of drawhud for drawing things that must appear over the viewmodel; anything hooked earlier lets props/world draw over it. Wire it with SF.hookAdd("PreDrawViewModels", ...) plus hudPrepareSafeArgs/cleanupRender-style helpers, and you may need pushViewMatrix with a 2D type inside.