Configuration
config.lua
Config = {}
Config.Position = { top = '3vh', right = '2vw' }
Config.HideNative = true
Config.Hidden = {
`weapon_unarmed`,
}
Config.Icons = {
'gadget_parachute',
'weapon_advancedrifle',
-- ... 101 names in total
}
| Key | Type | Default | What it does |
|---|---|---|---|
Config.Position | table | { top = '3vh', right = '2vw' } | Offsets of the block from the top and right edges, in any CSS unit. Sent to the NUI at start. 3vh / 2vw is the anchor gta6_hud uses for its money block |
Config.HideNative | boolean | true | Calls HideHudComponentThisFrame(2) every frame, which removes the game's own weapon icon and ammo counter |
Config.Hidden | table of hashes | weapon_unarmed | Weapon hashes (Lua backtick hashes) for which the block is not shown. WEAPON_UNARMED is hidden regardless of this table |
Config.Icons | table of strings | 101 names | Weapons with an icon in html/icons/<name>.png. A weapon that is not listed shows its ammo without an icon. Add a custom weapon by appending its spawn name and adding a PNG with that name |