OnRenderHUD: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | <syntaxhighlight lang="Lua"> | ||
AddEvent("OnRenderHUD", function () | |||
-- code | |||
end) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
[[Template:ClientEvents]] | [[Template:ClientEvents]] |
Revision as of 10:44, 6 January 2020
Description
This function is called every time the HUD is rendered for the player. This function can be used as a game tick event.
Syntax
OnRenderHUD()
Example
AddEvent("OnRenderHUD", function ()
-- code
end)