Skip to main content

Ui::applyShowHudComponentsThisFrameBatch

Not available on SYNC MP yet

This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Client-side JavaScript). Calling it does nothing or throws.

Client-side function

JavaScript​

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()
});