- 80%
This commit is contained in:
1 parent
ebc47ba5d7
commit
66934fd68a
16 files changed
+169
-124
No files matched your search
+3
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user