Merge pull request #760 from esx-framework/tony-stark-17-patch-2

Remove Unused code
This commit is contained in:
P Gergő
2022-12-20 22:16:07 +01:00
committed by GitHub
+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
@@ -251,4 +250,4 @@ AddEventHandler('onResourceStop', function(resource)
if isInMenu then if isInMenu then
CloseUi() CloseUi()
end end
end) end)