From 891d4abf73a3847b864fd9003bae2462a0e891cb Mon Sep 17 00:00:00 2001 From: Tater1987 <149222217+Tater1987@users.noreply.github.com> Date: Tue, 12 Aug 2025 23:08:43 -0500 Subject: [PATCH] Update meth.lua Added missing teleport handler --- client/meth.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/client/meth.lua b/client/meth.lua index 9557c24..02ef146 100644 --- a/client/meth.lua +++ b/client/meth.lua @@ -370,6 +370,33 @@ for k, v in pairs (locations.MethSmash) do }) end +for k, v in pairs (locations.MethTele) do + ps.boxTarget('meth_tele'..k, v.inside, {length = v.l, width = v.w, heading = v.rot}, { + { + icon = 'fa-solid fa-door-open', + label = ps.lang('coke.teleOut'), + action = function() + SetEntityCoords(PlayerPedId(), v.outside) + end, + canInteract = function() + return handleGang(v.gang) + end + } + }) + ps.boxTarget('meth_teleout'..k, v.outside, {length = v.l, width = v.w, heading = v.rot}, { + { + icon = 'fa-solid fa-door-closed', + label = ps.lang('coke.teleIn'), + action = function() + SetEntityCoords(PlayerPedId(), v.inside) + end, + canInteract = function() + return handleGang(v.gang) + end + } + }) +end + RegisterCommand('offset', function() local pos = GetEntityCoords(PlayerPedId()) Wait(4000) @@ -408,3 +435,4 @@ for k, v in pairs (locations.Methace) do }) end +