Minor cleanup (#32)

* Update for newest ESX

* Minor cleanup

* Update readme

* Link fix in readme

* I forgot this

* And this

* Minor cleanup 2
This commit is contained in:
rex2630
2020-01-19 16:05:49 +01:00
committed by Samuel
parent 5c52200c87
commit c5376b64c6
3 changed files with 10 additions and 60 deletions
+2 -3
View File
@@ -15,7 +15,7 @@ AddEventHandler('esx_garage:setParking', function(garage, zone, vehicleProps)
['@garage'] = garage;
['@zone'] = zone
}, function(rowsChanged)
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('veh_released'))
xPlayer.showNotification(_U('veh_released'))
end)
else
MySQL.Async.execute('INSERT INTO `user_parkings` (`identifier`, `garage`, `zone`, `vehicle`) VALUES (@identifier, @garage, @zone, @vehicle)',
@@ -25,7 +25,7 @@ AddEventHandler('esx_garage:setParking', function(garage, zone, vehicleProps)
['@zone'] = zone,
['vehicle'] = json.encode(vehicleProps)
}, function(rowsChanged)
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('veh_stored'))
xPlayer.showNotification(_U('veh_stored'))
end)
end
end)
@@ -58,5 +58,4 @@ ESX.RegisterServerCallback('esx_vehicleshop:getVehiclesInGarage', function(sourc
cb(vehicles)
end)
end)