- update consumables
This commit is contained in:
1 parent
addce12081
commit
c3aaf67421
6 files changed
+156
-114
No files matched your search
@@ -1,6 +1,7 @@
|
||||
|
||||
|
||||
Bridge.Callback.Register('md-drugs:client:consumedrugs', function(time, effect, anim, progresstext, status, item)
|
||||
Bridge.Anim.RequestDict(anim.dict)
|
||||
if not progressbar(progresstext .. Bridge.Inventory.GetItemInfo(item).label.. "!", time, anim ) then return end
|
||||
for k, v in pairs (status) do
|
||||
if k == 'health' then
|
||||
|
||||
@@ -212,7 +212,7 @@ CreateThread(function()
|
||||
Bridge.Point.Register(
|
||||
'MDDRUGNOSELLZONE'..k,
|
||||
v.loc,
|
||||
(v.width or 10.0 + v.length or 10.0) / 2,
|
||||
((v.width or 10.0) + (v.length or 10.0)) / 2,
|
||||
nil,
|
||||
function()
|
||||
inZone = true
|
||||
|
||||
@@ -305,12 +305,19 @@ else
|
||||
end
|
||||
|
||||
function progressbar(text, time, emote, cancel)
|
||||
if emote.prop then
|
||||
if not emote.prop.model then
|
||||
emote.prop = nil
|
||||
end
|
||||
end
|
||||
print(json.encode(emote))
|
||||
local success = Bridge.ProgressBar.Open({
|
||||
duration = time or 5000,
|
||||
label = text or 'LAZY AF DEVS',
|
||||
canCancel = true,
|
||||
disable = cancel or Config.ProgressBar.Disables,
|
||||
anim = emote or Config.DefaultAnimation,
|
||||
prop = emote and emote.prop or nil
|
||||
})
|
||||
return success
|
||||
end
|
||||
|
||||
@@ -53,7 +53,6 @@ local function spawnShops()
|
||||
local menu = {}
|
||||
for item, price in pairs (GlobalState.MDDrugsRecipes.Whippit.shop) do
|
||||
local itemInfo = Bridge.Inventory.GetItemInfo(item)
|
||||
Bridge.Prints.Debug(itemInfo)
|
||||
menu[#menu + 1] = {
|
||||
title = itemInfo.label,
|
||||
icon = itemInfo.image,
|
||||
|
||||
Reference in new issue
Block a user