2025-07-15 02:21:34 -07:00
|
|
|
|
2024-11-12 02:07:16 -08: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-07-17 02:06:17 -05:00
|
|
|
if not ps.checkDistance(src, GlobalState.MDDrugsLocs.DryOutMescaline[num].loc, 3.0) then
|
|
|
|
|
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-07-17 02:06:17 -05:00
|
|
|
--Log(GetName(source) .. ' Consumed Mescaline', 'consume')
|
2024-05-02 18:34:49 -07:00
|
|
|
end
|
2025-07-17 02:06:17 -05:00
|
|
|
end)
|