mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 17:58:54 +00:00
@@ -3,12 +3,18 @@ resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
|
||||
description 'ESX Garage'
|
||||
|
||||
server_scripts {
|
||||
'@es_extended/locale.lua',
|
||||
'locales/en.lua',
|
||||
'locales/fr.lua',
|
||||
'@mysql-async/lib/MySQL.lua',
|
||||
'config.lua',
|
||||
'server/main.lua'
|
||||
}
|
||||
|
||||
client_scripts {
|
||||
'@es_extended/locale.lua',
|
||||
'locales/en.lua',
|
||||
'locales/fr.lua',
|
||||
'config.lua',
|
||||
'client/main.lua'
|
||||
}
|
||||
|
||||
+2
-1
@@ -5,11 +5,12 @@ Config.MarkerSize = {x = 2.0, y = 2.0, z = 1.0}
|
||||
Config.MarkerColor = {r = 204, g = 204, b = 0}
|
||||
Config.ParkingMarkerSize = {x = 3.0, y = 3.0, z = 2.0}
|
||||
Config.ParkingMarkerColor = {r = 102, g = 102, b = 204}
|
||||
Config.Locale = 'fr'
|
||||
|
||||
Config.Zones = {}
|
||||
|
||||
Config.Garages = {
|
||||
|
||||
|
||||
MiltonDrive = {
|
||||
|
||||
IsClosed = true,
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
Locales['en'] = {
|
||||
|
||||
['veh_released'] = 'vehicle ~g~released',
|
||||
['veh_stored'] = 'vehicle ~g~stored',
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
Locales['fr'] = {
|
||||
|
||||
['veh_released'] = 'véhicule ~g~sorti',
|
||||
['veh_stored'] = 'véhicule ~g~rangé',
|
||||
|
||||
}
|
||||
+3
-3
@@ -16,7 +16,7 @@ AddEventHandler('esx_garage:setParking', function(garage, zone, vehicleProps)
|
||||
['@garage'] = garage;
|
||||
['@zone'] = zone
|
||||
}, function(rowsChanged)
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, 'Véhicule ~g~sorti')
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('veh_released'))
|
||||
end
|
||||
)
|
||||
|
||||
@@ -30,7 +30,7 @@ AddEventHandler('esx_garage:setParking', function(garage, zone, vehicleProps)
|
||||
['@zone'] = zone,
|
||||
['vehicle'] = json.encode(vehicleProps)
|
||||
}, function(rowsChanged)
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, 'Véhicule ~g~rangé')
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('veh_stored'))
|
||||
end
|
||||
)
|
||||
|
||||
@@ -64,4 +64,4 @@ ESX.RegisterServerCallback('esx_vehicleshop:getVehiclesInGarage', function(sourc
|
||||
end
|
||||
)
|
||||
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user