mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
@@ -3,12 +3,18 @@ resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
|
|||||||
description 'ESX BarberShop'
|
description 'ESX BarberShop'
|
||||||
|
|
||||||
server_scripts {
|
server_scripts {
|
||||||
|
'@es_extended/locale.lua',
|
||||||
|
'locales/en.lua',
|
||||||
|
'locales/fr.lua',
|
||||||
'@mysql-async/lib/MySQL.lua',
|
'@mysql-async/lib/MySQL.lua',
|
||||||
'config.lua',
|
'config.lua',
|
||||||
'server/main.lua'
|
'server/main.lua'
|
||||||
}
|
}
|
||||||
|
|
||||||
client_scripts {
|
client_scripts {
|
||||||
|
'@es_extended/locale.lua',
|
||||||
|
'locales/en.lua',
|
||||||
|
'locales/fr.lua',
|
||||||
'config.lua',
|
'config.lua',
|
||||||
'client/main.lua'
|
'client/main.lua'
|
||||||
}
|
}
|
||||||
|
|||||||
+9
-9
@@ -37,11 +37,11 @@ function OpenShopMenu()
|
|||||||
ESX.UI.Menu.Open(
|
ESX.UI.Menu.Open(
|
||||||
'default', GetCurrentResourceName(), 'shop_confirm',
|
'default', GetCurrentResourceName(), 'shop_confirm',
|
||||||
{
|
{
|
||||||
title = 'Valider cet achat ?',
|
title = _U('valid_purchase'),
|
||||||
align = 'top-left',
|
align = 'top-left',
|
||||||
elements = {
|
elements = {
|
||||||
{label = 'Oui', value = 'yes'},
|
{label = _U('yes'), value = 'yes'},
|
||||||
{label = 'Non', value = 'no'},
|
{label = _U('no'), value = 'no'},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
function(data, menu)
|
function(data, menu)
|
||||||
@@ -65,7 +65,7 @@ function OpenShopMenu()
|
|||||||
TriggerEvent('skinchanger:loadSkin', skin)
|
TriggerEvent('skinchanger:loadSkin', skin)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
ESX.ShowNotification('Vous n\'avez pas assez d\'argent')
|
ESX.ShowNotification(_U('not_enough_money'))
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -82,7 +82,7 @@ function OpenShopMenu()
|
|||||||
end
|
end
|
||||||
|
|
||||||
CurrentAction = 'shop_menu'
|
CurrentAction = 'shop_menu'
|
||||||
CurrentActionMsg = 'Appuez sur ~INPUT_CONTEXT~ pour accéder au menu'
|
CurrentActionMsg = _U('press_access')
|
||||||
CurrentActionData = {}
|
CurrentActionData = {}
|
||||||
|
|
||||||
end,
|
end,
|
||||||
@@ -91,7 +91,7 @@ function OpenShopMenu()
|
|||||||
menu.close()
|
menu.close()
|
||||||
|
|
||||||
CurrentAction = 'shop_menu'
|
CurrentAction = 'shop_menu'
|
||||||
CurrentActionMsg = 'Appuez sur ~INPUT_CONTEXT~ pour accéder au menu'
|
CurrentActionMsg = _U('press_access')
|
||||||
CurrentActionData = {}
|
CurrentActionData = {}
|
||||||
|
|
||||||
end
|
end
|
||||||
@@ -102,7 +102,7 @@ function OpenShopMenu()
|
|||||||
menu.close()
|
menu.close()
|
||||||
|
|
||||||
CurrentAction = 'shop_menu'
|
CurrentAction = 'shop_menu'
|
||||||
CurrentActionMsg = 'Appuez sur ~INPUT_CONTEXT~ pour accéder au menu'
|
CurrentActionMsg = _U('press_access')
|
||||||
CurrentActionData = {}
|
CurrentActionData = {}
|
||||||
|
|
||||||
end, {
|
end, {
|
||||||
@@ -134,7 +134,7 @@ end
|
|||||||
|
|
||||||
AddEventHandler('esx_barbershop:hasEnteredMarker', function(zone)
|
AddEventHandler('esx_barbershop:hasEnteredMarker', function(zone)
|
||||||
CurrentAction = 'shop_menu'
|
CurrentAction = 'shop_menu'
|
||||||
CurrentActionMsg = 'Appuez sur ~INPUT_CONTEXT~ pour accéder au menu'
|
CurrentActionMsg = _U('press_access')
|
||||||
CurrentActionData = {}
|
CurrentActionData = {}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ Citizen.CreateThread(function()
|
|||||||
SetBlipAsShortRange(blip, true)
|
SetBlipAsShortRange(blip, true)
|
||||||
|
|
||||||
BeginTextCommandSetBlipName("STRING")
|
BeginTextCommandSetBlipName("STRING")
|
||||||
AddTextComponentString("Coiffeur / Barbier")
|
AddTextComponentString(_U('barber_blip'))
|
||||||
EndTextCommandSetBlipName(blip)
|
EndTextCommandSetBlipName(blip)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ Config.DrawDistance = 100.0
|
|||||||
Config.MarkerSize = {x = 1.5, y = 1.5, z = 1.0}
|
Config.MarkerSize = {x = 1.5, y = 1.5, z = 1.0}
|
||||||
Config.MarkerColor = {r = 102, g = 102, b = 204}
|
Config.MarkerColor = {r = 102, g = 102, b = 204}
|
||||||
Config.MarkerType = 1
|
Config.MarkerType = 1
|
||||||
|
Config.Locale = 'fr'
|
||||||
|
|
||||||
Config.Zones = {}
|
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)
|
xPlayer.removeMoney(Config.Price)
|
||||||
|
|
||||||
TriggerClientEvent('esx:showNotification', source, 'Vous avez payé $' .. Config.Price)
|
TriggerClientEvent('esx:showNotification', source, _U('you_paid') .. '$' .. Config.Price)
|
||||||
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user