mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 05:02:15 +00:00
✏️ Fix lint errors
This commit is contained in:
@@ -278,9 +278,9 @@ AddStateBagChangeHandler("VehicleProperties", nil, function(bagName, _, value)
|
||||
|
||||
local netId = bagName:gsub("entity:", "")
|
||||
local vehicle = NetToVeh(tonumber(netId))
|
||||
|
||||
|
||||
ESX.Game.SetVehicleProperties(vehicle, value)
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("esx:setAccountMoney")
|
||||
AddEventHandler("esx:setAccountMoney", function(account)
|
||||
|
||||
@@ -24,8 +24,8 @@ local function GetData(vehicle)
|
||||
return displayName, netId
|
||||
end
|
||||
|
||||
local function ToggleVehicleStatus(isInVehicle, seat)
|
||||
ESX.SetPlayerData("vehicle", isInVehicle)
|
||||
local function ToggleVehicleStatus(inVehicle, seat)
|
||||
ESX.SetPlayerData("vehicle", inVehicle)
|
||||
ESX.SetPlayerData("seat", seat)
|
||||
end
|
||||
|
||||
|
||||
@@ -536,7 +536,7 @@ if not Config.OxInventory then
|
||||
end
|
||||
|
||||
function ESX.DoesJobExist(job, grade)
|
||||
return (ESX.Jobs[job] and ESX.Jobs[job].grades[tostring(grade)] ~= nil) or false
|
||||
return (ESX.Jobs[job] and ESX.Jobs[job].grades[tostring(grade)] ~= nil) or false
|
||||
end
|
||||
|
||||
function Core.IsPlayerAdmin(playerId)
|
||||
|
||||
@@ -6,7 +6,7 @@ local NOTIFY_TYPES = {
|
||||
}
|
||||
|
||||
local function doesJobAndGradesExist(name, grades)
|
||||
if not ESX.Jobs[name] then
|
||||
if not ESX.Jobs[name] then
|
||||
return false
|
||||
end
|
||||
|
||||
@@ -79,7 +79,7 @@ function ESX.CreateJob(name, label, grades)
|
||||
end
|
||||
|
||||
MySQL.insert('INSERT IGNORE INTO jobs (name, label) VALUES (?, ?)', {name, label}, function(jobId)
|
||||
if not jobId == 0 then
|
||||
if jobId == nil or jobId == 0 then
|
||||
notify("ERROR",currentResourceName, 'Failed to insert job: `%s`', name)
|
||||
return
|
||||
end
|
||||
@@ -99,4 +99,4 @@ function ESX.CreateJob(name, label, grades)
|
||||
end)
|
||||
|
||||
return success
|
||||
end
|
||||
end
|
||||
|
||||
@@ -17,7 +17,7 @@ Locales["de"] = {
|
||||
["jaw_bone_width"] = "Kieferknochenbreite",
|
||||
["jaw_bone_length"] = "Kieferknochenlänge",
|
||||
["chin_height"] = "Kinnhöhe",
|
||||
["chin_length"] = "Kinnlänge",
|
||||
["chin_length"] = "Kinnlänge",
|
||||
["chin_width"] = "Kinnbreite",
|
||||
["chin_hole"] = "Kinnlochgröße",
|
||||
["neck_thickness"] = "Halsdicke",
|
||||
|
||||
Reference in New Issue
Block a user