mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 02:01:31 +00:00
Fix Garages
Fixed Garages so it works somewhat
This commit is contained in:
@@ -8,7 +8,7 @@ AddEventHandler('esx_garage:setParking', function(garage, zone, vehicleProps)
|
||||
MySQL.update('DELETE FROM `user_parkings` WHERE `identifier` = @identifier AND `garage` = @garage AND zone = @zone',
|
||||
{
|
||||
['@identifier'] = xPlayer.identifier,
|
||||
['@garage'] = garage;
|
||||
['@garage'] = garage,
|
||||
['@zone'] = zone
|
||||
}, function(rowsChanged)
|
||||
xPlayer.showNotification(_U('veh_released'))
|
||||
@@ -17,7 +17,7 @@ AddEventHandler('esx_garage:setParking', function(garage, zone, vehicleProps)
|
||||
MySQL.update('INSERT INTO `user_parkings` (`identifier`, `garage`, `zone`, `vehicle`) VALUES (@identifier, @garage, @zone, @vehicle)',
|
||||
{
|
||||
['@identifier'] = xPlayer.identifier,
|
||||
['@garage'] = garage;
|
||||
['@garage'] = garage,
|
||||
['@zone'] = zone,
|
||||
['vehicle'] = json.encode(vehicleProps)
|
||||
}, function(rowsChanged)
|
||||
|
||||
Reference in New Issue
Block a user