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-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-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-06 02:25:06 -06:00
|
|
|
if not ps.checkDistance(src, mescalineLocation.DryOutMescaline[num].loc, 3.0) then
|
2025-07-17 02:06:17 -05:00
|
|
|
ps.notify(src, "You are not in the right location", "error")
|
|
|
|
|
return
|
|
|
|
|
end
|
2024-09-24 15:07:41 -07:00
|
|
|
if not GetRecipe(src, 'mescaline', 'dry', 'dried') then 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-07-17 02:06:17 -05:00
|
|
|
if ps.removeItem(src, "driedmescaline", 1) then
|
2024-05-02 18:34:49 -07:00
|
|
|
TriggerClientEvent("md-drugs:client:takemescaline", src)
|
2025-08-06 02:25:06 -06:00
|
|
|
|
2024-05-02 18:34:49 -07:00
|
|
|
end
|
2025-07-17 02:06:17 -05:00
|
|
|
end)
|