HUDClientChecked by LS:MP

hideHudComponentThisFrame

HIDE_HUD_COMPONENT_THIS_FRAME0x6806C51AD12B83B8

The GTA V native HIDE_HUD_COMPONENT_THIS_FRAME of the HUD namespace, as LS:MP client scripts call it: the global function hideHudComponentThisFrame, in JavaScript and in Lua.

SignatureJavaScript
hideHudComponentThisFrame(id: number): void
SignatureLua
hideHudComponentThisFrame(id: integer)

Usage

JavaScript
hideHudComponentThisFrame(id);
Lua
hideHudComponentThisFrame(id)

Parameters

ParameterTypeJavaScriptLua
idintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

On LS:MP

ℹ
Checked by LS:MP

id must be between 0 and 160. Otherwise the call is ignored: nothing reaches the game, and no error is raised.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

This function hides various HUD (Heads-up Display) components.
Listed below are the integers and the corresponding HUD component.
- 1 : WANTED_STARS
- 2 : WEAPON_ICON
- 3 : CASH
- 4 : MP_CASH
- 5 : MP_MESSAGE
- 6 : VEHICLE_NAME
- 7 : AREA_NAME
- 8 : VEHICLE_CLASS
- 9 : STREET_NAME
- 10 : HELP_TEXT
- 11 : FLOATING_HELP_TEXT_1
- 12 : FLOATING_HELP_TEXT_2
- 13 : CASH_CHANGE
- 14 : RETICLE
- 15 : SUBTITLE_TEXT
- 16 : RADIO_STATIONS
- 17 : SAVING_GAME
- 18 : GAME_STREAM
- 19 : WEAPON_WHEEL
- 20 : WEAPON_WHEEL_STATS
- 21 : HUD_COMPONENTS
- 22 : HUD_WEAPONS

These integers also work for the showHudComponentThisFrame native, but instead shows the HUD Component.

Reference

Namespace
HUD HUD
In the game
void HIDE_HUD_COMPONENT_THIS_FRAME(int id)
Hash
0x6806C51AD12B83B8

Open in the interactive natives reference