HUD
Step by step installation guide, common issues & solutions, code snippets, error codes, config previews, locales previews, SQL previews, and changelogs; all in 1 easily accessible place.
Config = {}
Config.MainColor = '#00ACFF' -- Main Color of UI
Config.HungerColor = '#49FF5B' -- Hunger Bar color
Config.ThirstColor = '#15a3db' -- Thirst Bar color
Config.WeaponName = { --Weapon List and there label
[GetHashKey('weapon_pistol')] = 'Pistol',
[GetHashKey('weapon_assaultrifle')] = 'Assault Rifle',
[GetHashKey('weapon_assaultrifle_mk2')] = 'Assault Rifle MK ||',
}
Config.Keybinds = { --Keybind List. Icons should be placed under /html/assets/keybind-icons
{
icon = 'mic.svg',
name = 'U',
},
{
icon = 'mic.svg',
name = 'U',
},
}
Usage
--- Create's a DrawText
---@param title string Title of the DrawText
---@param key string Key of the DrawText
---@param msg string Message of DrawText
--Client Side Usage
TriggerEvent('hud:showHelpNotify', 'Press', 'E', 'To Open Shop')
--Server Side Usage
---@param source number Source of the Player
TriggerEvent('hud:showHelpNotify', source, 'Press', 'E', 'To Open Shop')

Usage
Add Money Notification
--- Create's a Money Notification
---@param money number Amount that has been added
--Client Side Usage
TriggerEvent('fadcloud_hud:client:AddMoneyNotification', 1000)
--Server Side Usage
---@param source number Source of the Player
TriggerEvent('fadcloud_hud:client:AddMoneyNotification', source, 1000)
Remove Money Notification
Add Money Notification
--- Create's a Money Notification
---@param money number Amount that has been Removed
--Client Side Usage
TriggerEvent('fadcloud_hud:client:RemoveMoneyNotification', 1000)
--Server Side Usage
---@param source number Source of the Player
TriggerEvent('fadcloud_hud:client:RemoveMoneyNotification', source, 1000)

Last updated