fix(es_extended): Some lint fixes (again)

This commit is contained in:
TheFantomas
2023-06-27 22:39:27 +02:00
parent 241b778951
commit 1b13ab0361
4 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -829,7 +829,7 @@ function ESX.Game.SetVehicleProperties(vehicle, props)
end
end
if props.driftTyresEnabled then
if props.driftTyresEnabled then
SetDriftTyresEnabled(vehicle, true)
end
@@ -910,7 +910,7 @@ function ESX.Game.SetVehicleProperties(vehicle, props)
SetVehicleMod(vehicle, 23, props.modFrontWheels, false)
end
if props.modCustomFrontWheels ~= nil then
SetVehicleMod(vehicle, 23, props.modCustomFrontWheels, false)
SetVehicleMod(vehicle, 23, props.modCustomFrontWheels, false)
end
if props.modBackWheels ~= nil then
SetVehicleMod(vehicle, 24, props.modBackWheels, false)
+1 -1
View File
@@ -646,7 +646,7 @@ local function noclipThread()
end
RegisterNetEvent("esx:noclip")
AddEventHandler("esx:noclip", function(input)
AddEventHandler("esx:noclip", function()
ESX.TriggerServerCallback("esx:isUserAdmin", function(admin)
if not admin then
return
@@ -52,7 +52,7 @@ CreateThread(function()
local vehicle = GetVehiclePedIsTryingToEnter(playerPed)
local plate = GetVehicleNumberPlateText(vehicle)
local seat = GetSeatPedIsTryingToEnter(playerPed)
local displayName, netId = GetData(vehicle)
local _, netId = GetData(vehicle)
isEnteringVehicle = true
TriggerEvent('esx:enteringVehicle', vehicle, plate, seat, netId)
TriggerServerEvent('esx:enteringVehicle', plate, seat, netId)
@@ -6,11 +6,11 @@ ESX.SetTimeout = function(msec, cb)
SetTimeout(msec, function()
if CancelledTimeouts[id] then
CancelledTimeouts[id] = nil
return
end
CancelledTimeouts[id] = nil
return
end
cb()
cb()
end)
TimeoutCount = id
@@ -20,4 +20,4 @@ end
ESX.ClearTimeout = function(id)
CancelledTimeouts[id] = true
end
end