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)
if atm ~= 0 then
local atmOffset = GetOffsetFromEntityInWorldCoords(atm, 0.0, -0.7, 0.0)
local atmHeading = GetEntityHeading(atm)
local atmDistance = #(_GetEntityCoords - atmOffset)
if not isInAtmMarker and atmDistance <= 1.5 then
isInAtmMarker = true
@@ -251,4 +250,4 @@ AddEventHandler('onResourceStop', function(resource)
if isInMenu then
CloseUi()
end
end)
end)