Fix notify, add var in progbar
This commit is contained in:
1 parent
1035c209e3
commit
24431d1bf4
3 files changed
+8
-6
No files matched your search
@@ -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")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Notify = {}
|
||||
Notify = Notify or {}
|
||||
|
||||
Notify.SendNotify = function(src, message, type, time)
|
||||
TriggerClientEvent('community_bridge:Client:Notify', src, message, type, time)
|
||||
Notify.SendNotify = function(src, message, _type, time)
|
||||
TriggerClientEvent('community_bridge:Client:Notify', src, message, _type, time)
|
||||
end
|
||||
@@ -37,7 +37,7 @@ ProgressBar.StartProgressBar = function(time, label, whiledead, cancancel, disab
|
||||
local canceled = canceledAction or function() print("Cancelled") end
|
||||
local repackedTable = convertOxToQB(disable, animTable)
|
||||
exports['progressbar']:Progress({
|
||||
name = "random_task",
|
||||
name = textLabel,
|
||||
duration = runTime,
|
||||
label = textLabel,
|
||||
useWhileDead = deadBool,
|
||||
|
||||
Reference in new issue
Block a user