Files
md-drugs/server/shrooms.lua
T

11 lines
477 B
Lua
Raw Normal View History

2026-03-05 00:00:34 -08:00
if not Config.Drugs['shrooms'] then return end
2026-01-18 01:20:44 -07:00
Bridge.Framework.RegisterUsableItem('shrooms', function(source, item)
2025-08-06 02:25:06 -06:00
local src = source
2026-01-18 01:20:44 -07:00
if not Bridge.Callback.Trigger("md-drugs:client:shrooms", src) then
2026-01-16 02:57:26 -07:00
Bridge.Notify.SendNotify(src, Bridge.Language.Locale('shrooms.cancel'), "error")
2025-08-06 02:25:06 -06:00
return
end
2026-01-18 01:20:44 -07:00
Bridge.Inventory.RemoveItem(src, 'shrooms', 1)
2026-01-16 02:57:26 -07:00
Bridge.Notify.SendNotify(src, Bridge.Language.Locale('shrooms.took'), 'success')
2023-12-07 15:45:48 -08:00
end)