Files
md-drugs/server/shrooms.lua
T
2026-01-16 02:57:26 -07:00

12 lines
386 B
Lua

ps.createUseable('shrooms', function(source, item)
local src = source
if not ps.callback("md-drugs:client:shrooms", src) then
Bridge.Notify.SendNotify(src, Bridge.Language.Locale('shrooms.cancel'), "error")
return
end
ps.removeItem(src, 'shrooms', 1)
Bridge.Notify.SendNotify(src, Bridge.Language.Locale('shrooms.took'), 'success')
end)