✏️ Fix lint errors

This commit is contained in:
Gellipapa
2024-06-16 14:55:32 +02:00
parent 826bb6c8fb
commit 9fcfc57d98
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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",