This commit is contained in:
Mustache Dom committed 2026-01-18 01:20:44 -07:00
1 parent ebc47ba5d7
commit 66934fd68a
16 files changed
+169 -124

No files matched your search

+3 -3
View File
@@ -1,11 +1,11 @@
ps.createUseable('shrooms', function(source, item)
Bridge.Framework.RegisterUsableItem('shrooms', function(source, item)
local src = source
if not ps.callback("md-drugs:client:shrooms", src) then
if not Bridge.Callback.Trigger("md-drugs:client:shrooms", src) then
Bridge.Notify.SendNotify(src, Bridge.Language.Locale('shrooms.cancel'), "error")
return
end
ps.removeItem(src, 'shrooms', 1)
Bridge.Inventory.RemoveItem(src, 'shrooms', 1)
Bridge.Notify.SendNotify(src, Bridge.Language.Locale('shrooms.took'), 'success')
end)