Fix notify, add var in progbar

This commit is contained in:
MrNewb committed 2025-01-08 13:01:47 -05:00
1 parent 1035c209e3
commit 24431d1bf4
3 files changed
+8 -6

No files matched your search

+4 -2
View File
@@ -27,14 +27,16 @@ Notify.SendNotify = function(message, type, time)
end
end
Notify.ShowHelpText = function(message, position)
Notify.ShowHelpText = function(message, _position)
if BridgeClientConfig == nil or BridgeClientConfig.ShowHelpText == nil then return Prints.error("You have not configured a compatable helptext in community_bridge") end
local helptextType = BridgeClientConfig.ShowHelpText
if helptextType == 'ox' then
return exports.ox_lib:showTextUI(message, { position = 'left-center' })
if _position == nil then _position = 'left-center' end
return exports.ox_lib:showTextUI(message, { position = _position })
elseif helptextType == 'jg' then
return exports['jg-textui']:DrawText(message)
elseif helptextType == 'qb' then
if _position == nil then _position = 'left' end
return exports['qb-core']:DrawText(message, 'left')
elseif helptextType == 'lab' then
return exports['lab-HintUI']:Show(message, "Hint Text")