Files

21 lines
706 B
Lua
Raw Permalink Normal View History

2026-03-05 00:00:34 -08:00
if not Config.Drugs['mescaline'] then return end
2025-08-09 03:10:00 -06:00
2025-07-17 02:06:17 -05:00
RegisterNetEvent("md-drugs:server:drymescaline", function(num)
local src = source
if timeOut(src, 'md-drugs:server:drymescaline') then return end
2026-01-16 02:57:26 -07:00
2026-01-31 02:05:15 -07:00
if not checkDistance(src, Config.Mescaline.Locations.DryOutMescaline[num].loc, 3.0, 'md-drugs:server:drymescaline') then
2025-08-09 03:10:00 -06:00
return
end
2026-01-16 02:57:26 -07:00
2026-01-31 02:05:15 -07:00
if not craft(src, Config.Mescaline.Recipes.dry.dried) then
2025-07-17 02:06:17 -05:00
return
end
2023-12-07 15:45:48 -08:00
end)
2026-01-16 02:57:26 -07:00
Bridge.Framework.RegisterUsableItem("driedmescaline", function(source, item)
2024-05-02 18:34:49 -07:00
local src = source
2026-01-16 02:57:26 -07:00
if Bridge.Inventory.RemoveItem(src, "driedmescaline", 1) then
2024-05-02 18:34:49 -07:00
TriggerClientEvent("md-drugs:client:takemescaline", src)
end
2025-07-17 02:06:17 -05:00
end)