From 861a210dfec3f69950fe1c17e7ea20f400401bb2 Mon Sep 17 00:00:00 2001 From: Mustache Dom <123716453+Mustachedom@users.noreply.github.com> Date: Sat, 28 Sep 2024 10:01:58 -0700 Subject: [PATCH] Update meth.lua --- client/meth.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/meth.lua b/client/meth.lua index b52c5dc..0d3666a 100644 --- a/client/meth.lua +++ b/client/meth.lua @@ -76,9 +76,10 @@ CreateThread(function() AddBoxZoneSingle("methTeleOut",Config.MethTeleIn, {name = 'teleout', icon = "fas fa-sign-in-alt", label = "Enter Building", action = function() SetEntityCoords(PlayerPedId(), Config.MethTeleIn) end} ) AddBoxZoneSingle("methtelein",Config.MethTeleOut, {name = 'teleout', icon = "fas fa-sign-in-alt", label = "Enter Building", action = function() SetEntityCoords(PlayerPedId(), Config.MethTeleOut) end} ) - local itemreqcook = { "ephedrine", "acetone" } local options = { - { name = 'methcook', icon = "fas fa-sign-in-alt", label = "Cook Meth", action = function() startcook() end, + { name = 'methcook', icon = "fas fa-sign-in-alt", label = "Cook Meth", + action = function() startcook() end, + onSelect = function() startcook() end, canInteract = function() if amonia == nil and active == nil then return true @@ -91,7 +92,7 @@ CreateThread(function() end, }, } - AddBoxZoneSingle("cookmeth",vector3(1005.7, -3201.28, -39.55), options ) + AddBoxZoneMultiOptions("cookmeth",vector3(1005.7, -3201.28, -39.55), options ) AddBoxZoneSingle('boxmeth', vector3(1012.15, -3194.04, -39.20), {name = 'boxmeth',icon = "fas fa-sign-in-alt",label = "Box Up Meth",action = function() smash()end, canInteract = function() if tray then return true end