💬

Community answer

Collected from the ACE community Discord archive around 2022-10-22. It may be informal or outdated — anyone can edit this page to improve it. This topic changes between game versions — double-check before relying on it. Original discussion

Using the PreDrawViewModels hook in SF

🌙 LuaUpdated 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.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.