mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +00:00
fix(es_extended): Some lint fixes (again)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user