HUDClientChecked by LS:MP

showHudComponentThisFrame

SHOW_HUD_COMPONENT_THIS_FRAME0x0B4DF1FA60C0E664

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

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

Usage

JavaScript
showHudComponentThisFrame(id);
Lua
showHudComponentThisFrame(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 hideHudComponentThisFrame native, but instead hides the HUD Component.

Reference

Namespace
HUD HUD
In the game
void SHOW_HUD_COMPONENT_THIS_FRAME(int id)
Hash
0x0B4DF1FA60C0E664

Open in the interactive natives reference