mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 09:48:52 +00:00
@@ -3,12 +3,18 @@ resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
|
||||
description 'ESX BarberShop'
|
||||
|
||||
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'
|
||||
}
|
||||
|
||||
+9
-9
@@ -37,11 +37,11 @@ function OpenShopMenu()
|
||||
ESX.UI.Menu.Open(
|
||||
'default', GetCurrentResourceName(), 'shop_confirm',
|
||||
{
|
||||
title = 'Valider cet achat ?',
|
||||
title = _U('valid_purchase'),
|
||||
align = 'top-left',
|
||||
elements = {
|
||||
{label = 'Oui', value = 'yes'},
|
||||
{label = 'Non', value = 'no'},
|
||||
{label = _U('yes'), value = 'yes'},
|
||||
{label = _U('no'), value = 'no'},
|
||||
}
|
||||
},
|
||||
function(data, menu)
|
||||
@@ -65,7 +65,7 @@ function OpenShopMenu()
|
||||
TriggerEvent('skinchanger:loadSkin', skin)
|
||||
end)
|
||||
|
||||
ESX.ShowNotification('Vous n\'avez pas assez d\'argent')
|
||||
ESX.ShowNotification(_U('not_enough_money'))
|
||||
|
||||
end
|
||||
|
||||
@@ -82,7 +82,7 @@ function OpenShopMenu()
|
||||
end
|
||||
|
||||
CurrentAction = 'shop_menu'
|
||||
CurrentActionMsg = 'Appuez sur ~INPUT_CONTEXT~ pour accéder au menu'
|
||||
CurrentActionMsg = _U('press_access')
|
||||
CurrentActionData = {}
|
||||
|
||||
end,
|
||||
@@ -91,7 +91,7 @@ function OpenShopMenu()
|
||||
menu.close()
|
||||
|
||||
CurrentAction = 'shop_menu'
|
||||
CurrentActionMsg = 'Appuez sur ~INPUT_CONTEXT~ pour accéder au menu'
|
||||
CurrentActionMsg = _U('press_access')
|
||||
CurrentActionData = {}
|
||||
|
||||
end
|
||||
@@ -102,7 +102,7 @@ function OpenShopMenu()
|
||||
menu.close()
|
||||
|
||||
CurrentAction = 'shop_menu'
|
||||
CurrentActionMsg = 'Appuez sur ~INPUT_CONTEXT~ pour accéder au menu'
|
||||
CurrentActionMsg = _U('press_access')
|
||||
CurrentActionData = {}
|
||||
|
||||
end, {
|
||||
@@ -134,7 +134,7 @@ end
|
||||
|
||||
AddEventHandler('esx_barbershop:hasEnteredMarker', function(zone)
|
||||
CurrentAction = 'shop_menu'
|
||||
CurrentActionMsg = 'Appuez sur ~INPUT_CONTEXT~ pour accéder au menu'
|
||||
CurrentActionMsg = _U('press_access')
|
||||
CurrentActionData = {}
|
||||
end)
|
||||
|
||||
@@ -156,7 +156,7 @@ Citizen.CreateThread(function()
|
||||
SetBlipAsShortRange(blip, true)
|
||||
|
||||
BeginTextCommandSetBlipName("STRING")
|
||||
AddTextComponentString("Coiffeur / Barbier")
|
||||
AddTextComponentString(_U('barber_blip'))
|
||||
EndTextCommandSetBlipName(blip)
|
||||
end
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ Config.DrawDistance = 100.0
|
||||
Config.MarkerSize = {x = 1.5, y = 1.5, z = 1.0}
|
||||
Config.MarkerColor = {r = 102, g = 102, b = 204}
|
||||
Config.MarkerType = 1
|
||||
Config.Locale = 'fr'
|
||||
|
||||
Config.Zones = {}
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
Locales['en'] = {
|
||||
|
||||
['valid_purchase'] = 'validate this purchase?',
|
||||
['yes'] = 'yes',
|
||||
['no'] = 'no',
|
||||
['not_enough_money'] = 'you do not have enough money',
|
||||
['press_access'] = 'press ~INPUT_CONTENT~ to access the menu',
|
||||
['barber_blip'] = 'barber shop',
|
||||
['you_paid'] = 'you paid ',
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
Locales['fr'] = {
|
||||
|
||||
['valid_purchase'] = 'valider cet achat ?',
|
||||
['yes'] = 'oui',
|
||||
['no'] = 'non',
|
||||
['not_enough_money'] = 'vous n\'avez pas assez d\'argent',
|
||||
['press_access'] = 'appuez sur ~INPUT_CONTENT~ pour accéder au menu',
|
||||
['barber_blip'] = 'barbier',
|
||||
['you_paid'] = 'vous avez payé ',
|
||||
}
|
||||
+1
-1
@@ -9,7 +9,7 @@ AddEventHandler('esx_barbershop:pay', function()
|
||||
|
||||
xPlayer.removeMoney(Config.Price)
|
||||
|
||||
TriggerClientEvent('esx:showNotification', source, 'Vous avez payé $' .. Config.Price)
|
||||
TriggerClientEvent('esx:showNotification', source, _U('you_paid') .. '$' .. Config.Price)
|
||||
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user