Skip to content

onHudEvent beta ​

Function of @v12-engine/client/hud

ts
export declare function onHudEvent<K extends HudEventName>(client: HudClient, name: K, listener: HudEventListener<K>): () => void;

Listens to a HUD event (client.hud.on) for as long as the component that asked lives: stopped with it. Outside a component, it gives back what stops it, as client.hud.on does