Skip to content

Commit

Permalink
fix esx_vehicleshop\server\main.lua fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Jun 19, 2024
1 parent af2ea86 commit 4988a24
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ TriggerEvent("esx_phone:registerNumber", "cardealer", TranslateCap("dealer_custo
TriggerEvent("esx_society:registerSociety", "cardealer", TranslateCap("car_dealer"), "society_cardealer",
"society_cardealer", "society_cardealer",
{
type = "private"
type = "private"
}
)

Expand Down Expand Up @@ -279,7 +279,7 @@ ESX.RegisterServerCallback("esx_vehicleshop:getRentedVehicles", function(source,
end)
end)

ESX.RegisterServerCallback("esx_vehicleshop:giveBackVehicle", function(source, cb, plate)
ESX.RegisterServerCallback("esx_vehicleshop:giveBackVehicle", function(_, cb, plate)
MySQL.single("SELECT base_price, vehicle FROM rented_vehicles WHERE plate = ?", { plate }, function(result)
if result then
local vehicle = result.vehicle
Expand Down Expand Up @@ -372,7 +372,7 @@ ESX.RegisterServerCallback("esx_vehicleshop:getPlayerInventory", function(source
cb({ items = items })
end)

ESX.RegisterServerCallback("esx_vehicleshop:isPlateTaken", function(source, cb, plate)
ESX.RegisterServerCallback("esx_vehicleshop:isPlateTaken", function(_, cb, plate)
MySQL.scalar("SELECT plate FROM owned_vehicles WHERE plate = ?", { plate }, function(result)
cb(result ~= nil)
end)
Expand Down

0 comments on commit 4988a24

Please sign in to comment.