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

OnRenderHUD

Type: Event
Context: Client
Introduced: v1.0

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)

See also

Template:ClientEvents