Ui::applyShowHudComponentsThisFrameBatch
Client-Side Function
![]() |
---|
JavaScript Syntax

Hides, shows, or resets component based on [setShowHudComponentsThisFrameBatch]
Return Value
- void void
Syntax
mp.game.hud.applyShowHudComponentsThisFrameBatch();
Example
Client-Side
const hudComponents = {
HUD_WANTED_STARS: 1,
HUD_WEAPON_ICON: 2,
HUD_CASH: 3,
HUD_MP_CASH: 4
}
mp.game.hud.setShowHudComponentsThisFrameBatch(
false,
[hudComponents.HUD_CASH, hudComponents.HUD_MP_CASH, hudComponents.HUD_WANTED_STARS, hudComponents.HUD_WEAPON_ICON]
);
mp.events.add('render', () => {
mp.game.hud.applyShowHudComponentsThisFrameBatch()
});