Update main.lua

This commit is contained in:
iSentrie
2022-11-11 12:16:32 +02:00
committed by GitHub
parent 7fe071239c
commit 79268adb85
+2 -2
View File
@@ -25,7 +25,7 @@ AddEventHandler('esx:playerDropped', function(src)
for k,v in pairs(Customs[src]) do
local entity = NetworkGetEntityFromNetworkId(v.netId)
if DoesEntityExist(entity) then
if players > 0 then
if playersCount > 0 then
TriggerClientEvent('esx_lscustom:restoreMods', -1, v.netId, v.props)
else
DeleteEntity(entity)
@@ -92,4 +92,4 @@ ESX.RegisterServerCallback('esx_lscustom:getVehiclesPrices', function(source, cb
Vehicles = MySQL.query.await('SELECT model, price FROM vehicles')
end
cb(Vehicles)
end)
end)