Remove Unused code

This commit is contained in:
Tony Stark
2022-12-20 23:26:09 +05:30
committed by GitHub
parent 684752c8ae
commit c59f654755
+1 -2
View File
@@ -115,7 +115,6 @@ local function StartThread()
local atm = GetClosestObjectOfType(_GetEntityCoords, 8.0, Config.AtmModels[i], false) local atm = GetClosestObjectOfType(_GetEntityCoords, 8.0, Config.AtmModels[i], false)
if atm ~= 0 then if atm ~= 0 then
local atmOffset = GetOffsetFromEntityInWorldCoords(atm, 0.0, -0.7, 0.0) local atmOffset = GetOffsetFromEntityInWorldCoords(atm, 0.0, -0.7, 0.0)
local atmHeading = GetEntityHeading(atm)
local atmDistance = #(_GetEntityCoords - atmOffset) local atmDistance = #(_GetEntityCoords - atmOffset)
if not isInAtmMarker and atmDistance <= 1.5 then if not isInAtmMarker and atmDistance <= 1.5 then
isInAtmMarker = true isInAtmMarker = true
@@ -242,4 +241,4 @@ AddEventHandler('onResourceStop', function(resource)
if isInMenu then if isInMenu then
CloseUi() CloseUi()
end end
end) end)