2026-01-16 02:57:26 -07:00
|
|
|
Recipes, locations = Recipes or {}, locations or {}
|
|
|
|
|
|
|
|
|
|
Locations.Mescaline = {
|
2025-08-06 02:25:06 -06:00
|
|
|
DryOutMescaline = { -- where to dry out your mescaline
|
|
|
|
|
{loc = vector3(1850.12, 2595.23, 45.67), l = 1.0, w = 1.0, rot = 0.0, gang = ""},
|
|
|
|
|
},
|
|
|
|
|
}
|
2026-01-16 02:57:26 -07:00
|
|
|
GlobalState.MDDrugsLocations = Locations
|
|
|
|
|
Recipes.Mescaline = {
|
2025-08-09 03:10:00 -06:00
|
|
|
mescaline = {
|
|
|
|
|
dry = {
|
|
|
|
|
dried = {take = {cactusbulb = 1}, give = {driedmescaline = 1} }
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
2026-01-16 02:57:26 -07:00
|
|
|
GlobalState.MDDrugsRecipes = Recipes
|
2025-07-15 02:21:34 -07:00
|
|
|
|
2025-08-09 03:10:00 -06:00
|
|
|
|
2025-07-17 02:06:17 -05:00
|
|
|
RegisterNetEvent("md-drugs:server:drymescaline", function(num)
|
2024-09-24 15:07:41 -07:00
|
|
|
local src = source
|
2025-08-16 23:43:20 -07:00
|
|
|
if timeOut(src, 'md-drugs:server:drymescaline') then return end
|
2026-01-16 02:57:26 -07:00
|
|
|
|
2026-01-19 00:46:49 -07:00
|
|
|
if not checkDistance(src, Locations.Mescaline.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
|
|
|
|
|
|
|
|
if not craft(src, Recipes.Mescaline.mescaline.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)
|