2025-08-06 02:25:06 -06:00
|
|
|
local mescalineLocation = {
|
|
|
|
|
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 = ""},
|
|
|
|
|
},
|
|
|
|
|
}
|
2025-08-09 03:10:00 -06:00
|
|
|
local mescalineRecipes = {
|
|
|
|
|
mescaline = {
|
|
|
|
|
dry = {
|
|
|
|
|
dried = {take = {cactusbulb = 1}, give = {driedmescaline = 1} }
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
2025-07-15 02:21:34 -07:00
|
|
|
|
2025-08-06 02:25:06 -06:00
|
|
|
ps.registerCallback('md-drugs:server:GetMescalineLocs', function(source)
|
|
|
|
|
return mescalineLocation
|
|
|
|
|
end)
|
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
|
2025-08-06 02:25:06 -06:00
|
|
|
if not ps.checkDistance(src, mescalineLocation.DryOutMescaline[num].loc, 3.0) then
|
2025-08-09 03:10:00 -06:00
|
|
|
ps.notify(src, ps.lang('Catches.notIn'), "error")
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
if not ps.craftItem(src, mescalineRecipes.mescaline.dry.dried) then
|
|
|
|
|
verifyHas(src, mescalineRecipes.mescaline.dry.dried.take)
|
2025-07-17 02:06:17 -05:00
|
|
|
return
|
|
|
|
|
end
|
2023-12-07 15:45:48 -08:00
|
|
|
end)
|
|
|
|
|
|
2025-07-17 02:06:17 -05:00
|
|
|
ps.createUseable("driedmescaline", function(source, item)
|
2024-05-02 18:34:49 -07:00
|
|
|
local src = source
|
2025-08-09 03:10:00 -06:00
|
|
|
if ps.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)
|