π§Installation
Follow the steps on this page in detail to get the HUD working correctly on your server, let's go through the steps!
1. Resource Installation
β οΈDependenciesensure oxmysql
ensure es_extended
ensure ox_lib
ensure pma-voice
ensure jgs-hudensure oxmysql
ensure qb-core
ensure ox_lib
ensure pma-voice
ensure jgs-hudfunction ESX.ShowHelpNotification(text, customKey)
local key, textAfter = text:match('[~rgbycfnztopqsmld]*%[?([%a%d])%]?~?[~rgbycfnztopqsmld]*%s*(.*)$')
return exports['jgs-hud']:ShowHelp(customKey or key, textAfter ~= '' and textAfter or text)
end
function ESX.ShowNotification(...)
return exports['jgs-hud']:AddNotify(...)
end
local helpNotifications = {}
function ESX.HideUI()
for text, key in pairs(helpNotifications) do
exports['jgs-hud']:RemoveHelp(key)
helpNotifications[text] = nil
end
end
function ESX.TextUI(message)
if helpNotifications[text] then return end
local key, textAfter = text:match('[~rgbycfnztopqsmld]*%[?([%a%d])%]?~?[~rgbycfnztopqsmld]*%s*(.*)$')
helpNotifications[text] = exports['jgs-hud']:CreateHelp(key or '', textAfter ~= '' and textAfter or text)
return helpNotifications[text]
end
function ESX.ShowAdvancedNotification(sender, subject, msg, textureDict, iconType, flash, saveToBrief, hudColorIndex)
local __type = textureDict and textureDict == 'CHAR_BANK_MAZE' and 'bank' or 'info'
TriggerEvent('jgs:notification', msg, __type, sender, iconType, saveToBrief, flash, hudColorIndex)
end2. Progress System Installation
Last updated