mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 17:28:53 +00:00
Multi-language support
Completed multi-language support, added params to commands.
This commit is contained in:
@@ -940,7 +940,7 @@ ESX.ShowInventory = function()
|
||||
ESX.UI.Menu.Open(
|
||||
'dialog', GetCurrentResourceName(), 'inventory_item_count_give',
|
||||
{
|
||||
title = 'Quantité'
|
||||
title = _U('amount')
|
||||
},
|
||||
function(data2, menu2)
|
||||
|
||||
@@ -948,7 +948,7 @@ ESX.ShowInventory = function()
|
||||
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
|
||||
|
||||
if closestPlayer == -1 or closestDistance > 3.0 then
|
||||
ESX.ShowNotification('Aucun joueur à proximité')
|
||||
ESX.ShowNotification(_U('players_nearby'))
|
||||
else
|
||||
TriggerServerEvent('esx:giveInventoryItem', GetPlayerServerId(closestPlayer), type, item, quantity)
|
||||
end
|
||||
@@ -976,14 +976,14 @@ ESX.ShowInventory = function()
|
||||
ESX.UI.Menu.Open(
|
||||
'dialog', GetCurrentResourceName(), 'inventory_item_count_remove',
|
||||
{
|
||||
title = 'Quantité'
|
||||
title = _U('amount')
|
||||
},
|
||||
function(data2, menu2)
|
||||
|
||||
local quantity = tonumber(data2.value)
|
||||
|
||||
if quantity == nil then
|
||||
ESX.ShowNotification('Montant invalide')
|
||||
ESX.ShowNotification(_U('amount_invalid'))
|
||||
else
|
||||
TriggerServerEvent('esx:removeInventoryItem', type, item, quantity)
|
||||
end
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
Config = {}
|
||||
Config.MaxPlayers = 32
|
||||
Config.Accounts = {'bank', 'black_money'}
|
||||
Config.AccountLabels = {bank = 'Banque', black_money = 'Argent Sale'}
|
||||
Config.AccountLabels = {bank = 'Banque', black_money = 'Argent Sale'} -- French
|
||||
--Config.AccountLabels = {bank = 'Bank', black_money = 'Dirty Money'} -- English
|
||||
Config.PaycheckInterval = 7 * 60000
|
||||
Config.ShowDotAbovePlayer = false
|
||||
Config.DisableWantedLevel = true
|
||||
Config.RemoveInventoryItemDelay = 5 * 60000
|
||||
Config.EnableWeaponPickup = false
|
||||
Config.Locale = 'fr'
|
||||
Config.Locale = 'en'
|
||||
|
||||
@@ -1,81 +1,81 @@
|
||||
Config.Weapons = {
|
||||
|
||||
{name = 'WEAPON_KNIFE', label = _U('weapon_knife')},
|
||||
{name = 'WEAPON_NIGHTSTICK', label = 'Matraque'},
|
||||
{name = 'WEAPON_HAMMER', label = 'Marteau'},
|
||||
{name = 'WEAPON_BAT', label = 'Bat'},
|
||||
{name = 'WEAPON_GOLFCLUB', label = 'Club de golfe'},
|
||||
{name = 'WEAPON_CROWBAR', label = 'Pied de biche'},
|
||||
{name = 'WEAPON_PISTOL', label = 'Pistolet'},
|
||||
{name = 'WEAPON_COMBATPISTOL', label = 'Pistolet de combat'},
|
||||
{name = 'WEAPON_APPISTOL', label = 'Pistolet automatique'},
|
||||
{name = 'WEAPON_PISTOL50', label = 'Pistolet calibre 50'},
|
||||
{name = 'WEAPON_MICROSMG', label = 'Micro SMG'},
|
||||
{name = 'WEAPON_SMG', label = 'SMG'},
|
||||
{name = 'WEAPON_ASSAULTSMG', label = 'SMG d\'assaut'},
|
||||
{name = 'WEAPON_ASSAULTRIFLE', label = 'Fusil d\'assaut'},
|
||||
{name = 'WEAPON_CARBINERIFLE', label = 'Carabine d\'assaut'},
|
||||
{name = 'WEAPON_ADVANCEDRIFLE', label = 'Fusil avancé'},
|
||||
{name = 'WEAPON_MG', label = 'Mitrailleuse'},
|
||||
{name = 'WEAPON_COMBATMG', label = 'Mitrailleuse de combat'},
|
||||
{name = 'WEAPON_PUMPSHOTGUN', label = 'Fusil à pompe'},
|
||||
{name = 'WEAPON_SAWNOFFSHOTGUN', label = 'Carabine à canon scié'},
|
||||
{name = 'WEAPON_ASSAULTSHOTGUN', label = 'Carabine d\'assaut'},
|
||||
{name = 'WEAPON_BULLPUPSHOTGUN', label = 'Carabine Bullpup'},
|
||||
{name = 'WEAPON_STUNGUN', label = 'Tazer'},
|
||||
{name = 'WEAPON_SNIPERRIFLE', label = 'Fusil de sniper'},
|
||||
{name = 'WEAPON_HEAVYSNIPER', label = 'Fusil de sniper lourd'},
|
||||
{name = 'WEAPON_REMOTESNIPER', label = 'Fusil de sniper à distance'},
|
||||
{name = 'WEAPON_GRENADELAUNCHER', label = 'Lance-grenade'},
|
||||
{name = 'WEAPON_RPG', label = 'Lance-rocket'},
|
||||
{name = 'WEAPON_STINGER', label = 'Lance-Missile Stinger'},
|
||||
{name = 'WEAPON_MINIGUN', label = 'Minigun'},
|
||||
{name = 'WEAPON_GRENADE', label = 'Grenade'},
|
||||
{name = 'WEAPON_STICKYBOMB', label = 'Bombe collante'},
|
||||
{name = 'WEAPON_SMOKEGRENADE', label = 'Grenade fumigène'},
|
||||
{name = 'WEAPON_BZGAS', label = 'Grenade à gaz BZ'},
|
||||
{name = 'WEAPON_MOLOTOV', label = 'Cocktail molotov'},
|
||||
{name = 'WEAPON_FIREEXTINGUISHER', label = 'Extincteur'},
|
||||
{name = 'WEAPON_PETROLCAN', label = 'Jerrican d\'essence'},
|
||||
{name = 'WEAPON_DIGISCANNER', label = 'Digiscanner'},
|
||||
{name = 'WEAPON_BALL', label = 'Balle'},
|
||||
{name = 'WEAPON_SNSPISTOL', label = 'Pistolet SNS'},
|
||||
{name = 'WEAPON_BOTTLE', label = 'Bouteille'},
|
||||
{name = 'WEAPON_GUSENBERG', label = 'Balayeuse Gusenberg'},
|
||||
{name = 'WEAPON_SPECIALCARBINE', label = 'Carabine spéciale'},
|
||||
{name = 'WEAPON_HEAVYPISTOL', label = 'Pistolet lourd'},
|
||||
{name = 'WEAPON_BULLPUPRIFLE', label = 'Fusil Bullpup'},
|
||||
{name = 'WEAPON_DAGGER', label = 'Poignard'},
|
||||
{name = 'WEAPON_VINTAGEPISTOL', label = 'Pistolet vintage'},
|
||||
{name = 'WEAPON_FIREWORK', label = 'Feu d\'artifice'},
|
||||
{name = 'WEAPON_MUSKET', label = 'Mousquet'},
|
||||
{name = 'WEAPON_HEAVYSHOTGUN', label = 'Fusil à pompe lourd'},
|
||||
{name = 'WEAPON_MARKSMANRIFLE', label = 'Fusil Marksman'},
|
||||
{name = 'WEAPON_HOMINGLAUNCHER', label = 'Lance tête-chercheuse'},
|
||||
{name = 'WEAPON_PROXMINE', label = 'Mine de proximité'},
|
||||
{name = 'WEAPON_SNOWBALL', label = 'Boule de neige'},
|
||||
{name = 'WEAPON_FLAREGUN', label = 'Lance fusée de détresse'},
|
||||
{name = 'WEAPON_GARBAGEBAG', label = 'Sac poubelle'},
|
||||
{name = 'WEAPON_HANDCUFFS', label = 'Menottes'},
|
||||
{name = 'WEAPON_COMBATPDW', label = 'Arme de défense personnelle'},
|
||||
{name = 'WEAPON_MARKSMANPISTOL', label = 'Pistolet Marksman'},
|
||||
{name = 'WEAPON_KNUCKLE', label = 'Poing américain'},
|
||||
{name = 'WEAPON_HATCHET', label = 'Hachette'},
|
||||
{name = 'WEAPON_RAILGUN', label = 'Canon éléctrique'},
|
||||
{name = 'WEAPON_MACHETE', label = 'Machetta'},
|
||||
{name = 'WEAPON_MACHINEPISTOL', label = 'Pistolet mitrailleur'},
|
||||
{name = 'WEAPON_SWITCHBLADE', label = 'Couteau à cran d\'arrêt'},
|
||||
{name = 'WEAPON_REVOLVER', label = 'Revolver'},
|
||||
{name = 'WEAPON_DBSHOTGUN', label = 'Fusil à pompe double canon'},
|
||||
{name = 'WEAPON_COMPACTRIFLE', label = 'Fusil compact'},
|
||||
{name = 'WEAPON_AUTOSHOTGUN', label = 'Fusil à pompe automatique'},
|
||||
{name = 'WEAPON_BATTLEAXE', label = 'Hache de combat'},
|
||||
{name = 'WEAPON_COMPACTLAUNCHER', label = 'Lanceur compact'},
|
||||
{name = 'WEAPON_MINISMG', label = 'Mini SMG'},
|
||||
{name = 'WEAPON_PIPEBOMB', label = 'Bombe tuyau'},
|
||||
{name = 'WEAPON_POOLCUE', label = 'Queue de billard'},
|
||||
{name = 'WEAPON_WRENCH', label = 'Clé'},
|
||||
{name = 'WEAPON_FLASHLIGHT', label = 'Lampe torche'},
|
||||
{name = 'GADGET_NIGHTVISION', label = 'Vision nocturne'},
|
||||
{name = 'GADGET_PARACHUTE', label = 'Parachute'},
|
||||
{name = 'WEAPON_NIGHTSTICK', label = _U('weapon_nightstick')},
|
||||
{name = 'WEAPON_HAMMER', label = _U('weapon_hammer')},
|
||||
{name = 'WEAPON_BAT', label = _U('weapon_bat')},
|
||||
{name = 'WEAPON_GOLFCLUB', label = _U('weapon_golfclub')},
|
||||
{name = 'WEAPON_CROWBAR', label = _U('weapon_crowbar')},
|
||||
{name = 'WEAPON_PISTOL', label = _U('weapon_pistol')},
|
||||
{name = 'WEAPON_COMBATPISTOL', label = _U('weapon_combatpistol')},
|
||||
{name = 'WEAPON_APPISTOL', label = _U('weapon_appistol')},
|
||||
{name = 'WEAPON_PISTOL50', label = _U('weapon_pistol50')},
|
||||
{name = 'WEAPON_MICROSMG', label = _U('weapon_microsmg')},
|
||||
{name = 'WEAPON_SMG', label = _U('weapon_smg')},
|
||||
{name = 'WEAPON_ASSAULTSMG', label = _U('weapon_assaultsmg')},
|
||||
{name = 'WEAPON_ASSAULTRIFLE', label = _U('weapon_assaultrifle')},
|
||||
{name = 'WEAPON_CARBINERIFLE', label = _U('weapon_carbinerifle')},
|
||||
{name = 'WEAPON_ADVANCEDRIFLE', label = _U('weapon_advancedrifle')},
|
||||
{name = 'WEAPON_MG', label = _U('weapon_mg')},
|
||||
{name = 'WEAPON_COMBATMG', label = _U('weapon_combatmg')},
|
||||
{name = 'WEAPON_PUMPSHOTGUN', label = _U('weapon_pumpshotgun')},
|
||||
{name = 'WEAPON_SAWNOFFSHOTGUN', label = _U('weapon_sawnoffshotgun')},
|
||||
{name = 'WEAPON_ASSAULTSHOTGUN', label = _U('weapon_assaultshotgun')},
|
||||
{name = 'WEAPON_BULLPUPSHOTGUN', label = _U('weapon_bullpupshotgun')},
|
||||
{name = 'WEAPON_STUNGUN', label = _U('weapon_stungun')},
|
||||
{name = 'WEAPON_SNIPERRIFLE', label = _U('weapon_sniperrifle')},
|
||||
{name = 'WEAPON_HEAVYSNIPER', label = _U('weapon_heavysniper')},
|
||||
{name = 'WEAPON_REMOTESNIPER', label = _U('weapon_remotesniper')},
|
||||
{name = 'WEAPON_GRENADELAUNCHER', label = _U('weapon_grenadelauncher')},
|
||||
{name = 'WEAPON_RPG', label = _U('weapon_rpg')},
|
||||
{name = 'WEAPON_STINGER', label = _U('weapon_stinger')},
|
||||
{name = 'WEAPON_MINIGUN', label = _U('weapon_minigun')},
|
||||
{name = 'WEAPON_GRENADE', label = _U('weapon_grenade')},
|
||||
{name = 'WEAPON_STICKYBOMB', label = _U('weapon_stickybomb')},
|
||||
{name = 'WEAPON_SMOKEGRENADE', label = _U('weapon_smokegrenade')},
|
||||
{name = 'WEAPON_BZGAS', label = _U('weapon_bzgas')},
|
||||
{name = 'WEAPON_MOLOTOV', label = _U('weapon_molotov')},
|
||||
{name = 'WEAPON_FIREEXTINGUISHER', label = _U('weapon_fireextinguisher')},
|
||||
{name = 'WEAPON_PETROLCAN', label = _U('weapon_petrolcan')},
|
||||
{name = 'WEAPON_DIGISCANNER', label = _U('weapon_digiscanner')},
|
||||
{name = 'WEAPON_BALL', label = _U('weapon_ball')},
|
||||
{name = 'WEAPON_SNSPISTOL', label = _U('weapon_snspistol')},
|
||||
{name = 'WEAPON_BOTTLE', label = _U('weapon_bottle')},
|
||||
{name = 'WEAPON_GUSENBERG', label = _U('weapon_gusenberg')},
|
||||
{name = 'WEAPON_SPECIALCARBINE', label = _U('weapon_specialcarbine')},
|
||||
{name = 'WEAPON_HEAVYPISTOL', label = _U('weapon_heavypistol')},
|
||||
{name = 'WEAPON_BULLPUPRIFLE', label = _U('weapon_bullpuprifle')},
|
||||
{name = 'WEAPON_DAGGER', label = _U('weapon_dagger')},
|
||||
{name = 'WEAPON_VINTAGEPISTOL', label = _U('weapon_vintagepistol')},
|
||||
{name = 'WEAPON_FIREWORK', label = _U('weapon_firework')},
|
||||
{name = 'WEAPON_MUSKET', label = _U('weapon_musket')},
|
||||
{name = 'WEAPON_HEAVYSHOTGUN', label = _U('weapon_heavyshotgun')},
|
||||
{name = 'WEAPON_MARKSMANRIFLE', label = _U('weapon_marksmanrifle')},
|
||||
{name = 'WEAPON_HOMINGLAUNCHER', label = _U('weapon_hominglauncher')},
|
||||
{name = 'WEAPON_PROXMINE', label = _U('weapon_proxmine')},
|
||||
{name = 'WEAPON_SNOWBALL', label = _U('weapon_snowball')},
|
||||
{name = 'WEAPON_FLAREGUN', label = _U('weapon_flaregun')},
|
||||
{name = 'WEAPON_GARBAGEBAG', label = _U('weapon_garbagebag')},
|
||||
{name = 'WEAPON_HANDCUFFS', label = _U('weapon_handcuffs')},
|
||||
{name = 'WEAPON_COMBATPDW', label = _U('weapon_combatpdw')},
|
||||
{name = 'WEAPON_MARKSMANPISTOL', label = _U('weapon_marksmanpistol')},
|
||||
{name = 'WEAPON_KNUCKLE', label = _U('weapon_knuckle')},
|
||||
{name = 'WEAPON_HATCHET', label = _U('weapon_hatchet')},
|
||||
{name = 'WEAPON_RAILGUN', label = _U('weapon_railgun')},
|
||||
{name = 'WEAPON_MACHETE', label = _U('weapon_machete')},
|
||||
{name = 'WEAPON_MACHINEPISTOL', label = _U('weapon_machinepistol')},
|
||||
{name = 'WEAPON_SWITCHBLADE', label = _U('weapon_switchblade')},
|
||||
{name = 'WEAPON_REVOLVER', label = _U('weapon_revolver')},
|
||||
{name = 'WEAPON_DBSHOTGUN', label = _U('weapon_dbshotgun')},
|
||||
{name = 'WEAPON_COMPACTRIFLE', label = _U('weapon_compactrifle')},
|
||||
{name = 'WEAPON_AUTOSHOTGUN', label = _U('weapon_autoshotgun')},
|
||||
{name = 'WEAPON_BATTLEAXE', label = _U('weapon_battleaxe')},
|
||||
{name = 'WEAPON_COMPACTLAUNCHER', label = _U('weapon_compactlauncher')},
|
||||
{name = 'WEAPON_MINISMG', label = _U('weapon_minismg')},
|
||||
{name = 'WEAPON_PIPEBOMB', label = _U('weapon_pipebomb')},
|
||||
{name = 'WEAPON_POOLCUE', label = _U('weapon_poolcue')},
|
||||
{name = 'WEAPON_WRENCH', label = _U('weapon_wrench')},
|
||||
{name = 'WEAPON_FLASHLIGHT', label = _U('weapon_flashlight')},
|
||||
{name = 'GADGET_NIGHTVISION', label = _U('gadget_nightvision')},
|
||||
{name = 'GADGET_PARACHUTE', label = _U('gadget_parachute')},
|
||||
}
|
||||
@@ -4,5 +4,118 @@ Locales['en'] = {
|
||||
['give'] = 'give',
|
||||
['remove'] = 'remove',
|
||||
['return'] = 'return',
|
||||
['weapon_knife'] = 'knife',
|
||||
['amount'] = 'amount',
|
||||
['amount_invalid'] = 'invalid amount',
|
||||
['players_nearby'] = 'no players nearby',
|
||||
['ex_inv_lim'] = 'action not possible, exceeding invetory limit for ~b~',
|
||||
['yougave'] = 'you gave',
|
||||
['youreceived'] = 'you received',
|
||||
['to'] = '~s~ to ~b~',
|
||||
['by'] = '~s~ by ~b~',
|
||||
['imp_invalid_quantity'] = 'action impossible, invalid quantity',
|
||||
['imp_invalid_amount'] = 'action impossible, invalid amount',
|
||||
['delete_five_min'] = '~r~delete~s~ in 5 minutes',
|
||||
['threw'] = 'you ~r~threw~s~',
|
||||
['rec_salary'] = 'you received your salary: ',
|
||||
['act_imp'] = 'action impossible',
|
||||
-- Commands
|
||||
['setjob'] = 'assign a job to a user',
|
||||
['id_param'] = 'the id of the player',
|
||||
['setjob_param2'] = 'the job you wish to assign',
|
||||
['setjob_param3'] = 'the job level',
|
||||
['load_ipl'] = 'load ipl',
|
||||
['unload_ipl'] = 'unload ipl',
|
||||
['play_anim'] = 'play animation',
|
||||
['play_emote'] = 'play emote',
|
||||
['spawn_car'] = 'spawn a car',
|
||||
['spawn_car_param'] = 'name of car',
|
||||
['givemoney'] = 'give money',
|
||||
['money_amount'] = 'amount of money',
|
||||
['invalid_account'] = 'invalid account',
|
||||
['account'] = 'account',
|
||||
['giveaccountmoney'] = 'give account money',
|
||||
['invalid_item'] = 'invalid item',
|
||||
['item'] = 'item',
|
||||
['giveitem'] = 'give item',
|
||||
['weapon'] = 'weapon',
|
||||
['giveweapon'] = 'give weapon',
|
||||
-- Weapons
|
||||
['weapon_knife'] = 'knife',
|
||||
['weapon_nightstick'] = 'nightstick',
|
||||
['weapon_hammer'] = 'hammer',
|
||||
['weapon_bat'] = 'bat',
|
||||
['weapon_golfclub'] = 'golf club',
|
||||
['weapon_crowbar'] = 'crow bar',
|
||||
['weapon_pistol'] = 'pistol',
|
||||
['weapon_combatpistol'] = 'combat pistol',
|
||||
['weapon_appistol'] = 'ap pistol',
|
||||
['weapon_pistol50'] = 'pistol .50',
|
||||
['weapon_microsmg'] = 'micro smg',
|
||||
['weapon_smg'] = 'smg',
|
||||
['weapon_assaultsmg'] = 'assault smg',
|
||||
['weapon_assaultrifle'] = 'assault rifle',
|
||||
['weapon_carbinerifle'] = 'carbine rifle',
|
||||
['weapon_advancedrifle'] = 'advanced rifle',
|
||||
['weapon_mg'] = 'mg',
|
||||
['weapon_combatmg'] = 'combat mg',
|
||||
['weapon_pumpshotgun'] = 'pump shotgun',
|
||||
['weapon_sawnoffshotgun'] = 'sawed off shotgun',
|
||||
['weapon_assaultshotgun'] = 'assault shotgun',
|
||||
['weapon_bullpupshotgun'] = 'bullpup shotgun',
|
||||
['weapon_stungun'] = 'tazer',
|
||||
['weapon_sniperrifle'] = 'sniper rifle',
|
||||
['weapon_heavysniper'] = 'heavy sniper',
|
||||
['weapon_remotesniper'] = 'remote sniper',
|
||||
['weapon_grenadelauncher'] = 'grenade launcher',
|
||||
['weapon_rpg'] = 'rocket launcher',
|
||||
['weapon_stinger'] = 'stinger',
|
||||
['weapon_minigun'] = 'minigun',
|
||||
['weapon_grenade'] = 'grenade',
|
||||
['weapon_stickybomb'] = 'sticky bomb',
|
||||
['weapon_smokegrenade'] = 'smoke grenade',
|
||||
['weapon_bzgas'] = 'bz gas',
|
||||
['weapon_molotov'] = 'molotov cocktail',
|
||||
['weapon_fireextinguisher'] = 'fire extinguisher',
|
||||
['weapon_petrolcan'] = 'jerrycan',
|
||||
['weapon_digiscanner'] = 'digiscanner',
|
||||
['weapon_ball'] = 'ball',
|
||||
['weapon_snspistol'] = 'sns pistol',
|
||||
['weapon_bottle'] = 'bottle',
|
||||
['weapon_gusenberg'] = 'gusenberg sweeper',
|
||||
['weapon_specialcarbine'] = 'special carbine',
|
||||
['weapon_heavypistol'] = 'heavy pistol',
|
||||
['weapon_bullpuprifle'] = 'bullpup rifle',
|
||||
['weapon_dagger'] = 'dagger',
|
||||
['weapon_vintagepistol'] = 'vintage pistol',
|
||||
['weapon_firework'] = 'firework',
|
||||
['weapon_musket'] = 'musket',
|
||||
['weapon_heavyshotgun'] = 'heavy shotgun',
|
||||
['weapon_marksmanrifle'] = 'marksman rifle',
|
||||
['weapon_hominglauncher'] = 'homing launcher',
|
||||
['weapon_proxmine'] = 'proximity mine',
|
||||
['weapon_snowball'] = 'snow ball',
|
||||
['weapon_flaregun'] = 'flaregun',
|
||||
['weapon_garbagebag'] = 'garbage bag',
|
||||
['weapon_handcuffs'] = 'handcuffs',
|
||||
['weapon_combatpdw'] = 'combat pdw',
|
||||
['weapon_marksmanpistol'] = 'marksman pistol',
|
||||
['weapon_knuckle'] = 'knuckledusters',
|
||||
['weapon_hatchet'] = 'hatchet',
|
||||
['weapon_railgun'] = 'railgun',
|
||||
['weapon_machete'] = 'machete',
|
||||
['weapon_machinepistol'] = 'machine pistol',
|
||||
['weapon_switchblade'] = 'switchblade',
|
||||
['weapon_revolver'] = 'heavy revolver',
|
||||
['weapon_dbshotgun'] = 'double barrel shotgun',
|
||||
['weapon_compactrifle'] = 'compact rifle',
|
||||
['weapon_autoshotgun'] = 'auto shotgun',
|
||||
['weapon_battleaxe'] = 'battle axe',
|
||||
['weapon_compactlauncher'] = 'compact launcher',
|
||||
['weapon_minismg'] = 'mini smg',
|
||||
['weapon_pipebomb'] = 'pipe bomb',
|
||||
['weapon_poolcue'] = 'pool cue',
|
||||
['weapon_wrench'] = 'pipe wrench',
|
||||
['weapon_flashlight'] = 'flashlight',
|
||||
['gadget_nightvision'] = 'night vision',
|
||||
['gadget_parachute'] = 'parachute',
|
||||
}
|
||||
@@ -4,5 +4,118 @@ Locales['fr'] = {
|
||||
['give'] = 'donner',
|
||||
['remove'] = 'jeter',
|
||||
['return'] = 'retour',
|
||||
['weapon_knife'] = 'couteau',
|
||||
['amount'] = 'quantité',
|
||||
['amount_invalid'] = 'montant invalide',
|
||||
['players_nearby'] = 'aucun joueur à proximité',
|
||||
['ex_inv_lim'] = 'action impossible, depassement de la limite d\'inventaire pour ~b~',
|
||||
['yougave'] = 'vous avez donné',
|
||||
['youreceived'] = 'vous avez reçu',
|
||||
['to'] = '~s~ à ~b~',
|
||||
['by'] = '~s~ par ~b~',
|
||||
['imp_invalid_quantity'] = 'action impossible, ~r~quantité invalide',
|
||||
['imp_invalid_amount'] = 'action impossible, ~r~montant invalide',
|
||||
['delete_five_min'] = '~r~suppression~s~ dans 5 minutes',
|
||||
['threw'] = 'vous avez ~r~jeté~s~',
|
||||
['rec_salary'] = 'vous avez reçu votre salaire : ',
|
||||
['act_imp'] = 'action impossible',
|
||||
-- Commands
|
||||
['setjob'] = 'assigner job',
|
||||
['id_param'] = 'identification du joueur',
|
||||
['setjob_param2'] = 'le travail que vous souhaitez assigner',
|
||||
['setjob_param3'] = 'le niveau d\'emploi',
|
||||
['load_ipl'] = 'charger ipl',
|
||||
['unload_ipl'] = 'décharger ipl',
|
||||
['play_anim'] = 'jouer animation',
|
||||
['play_emote'] = 'jouer emote',
|
||||
['spawn_car'] = 'spawn un véhicule',
|
||||
['spawn_car_param'] = 'nom de la voiture',
|
||||
['givemoney'] = 'donner de l\'argent',
|
||||
['money_amount'] = 'somme d\'argent',
|
||||
['invalid_account'] = 'compete invalide',
|
||||
['account'] = 'compte',
|
||||
['giveaccountmoney'] = 'donner de l\'argent au compte',
|
||||
['invalid_item'] = 'item invalide',
|
||||
['item'] = 'article',
|
||||
['giveitem'] = 'donner un article',
|
||||
['weapon'] = 'arme',
|
||||
['giveweapon'] = 'donner de l\'arme',
|
||||
-- Weapons
|
||||
['weapon_knife'] = 'couteau',
|
||||
['weapon_nightstick'] = 'matraque',
|
||||
['weapon_hammer'] = 'marteau',
|
||||
['weapon_bat'] = 'bat',
|
||||
['weapon_golfclub'] = 'club de golfe',
|
||||
['weapon_crowbar'] = 'pied de biche',
|
||||
['weapon_pistol'] = 'pistolet',
|
||||
['weapon_combatpistol'] = 'pistolet de combat',
|
||||
['weapon_appistol'] = 'pistolet automatique',
|
||||
['weapon_pistol50'] = 'pistolet calibre 50',
|
||||
['weapon_microsmg'] = 'micro smg',
|
||||
['weapon_smg'] = 'smg',
|
||||
['weapon_assaultsmg'] = 'smg d\'assaut',
|
||||
['weapon_assaultrifle'] = 'fusil d\'assaut',
|
||||
['weapon_carbinerifle'] = 'carabine d\'assaut',
|
||||
['weapon_advancedrifle'] = 'fusil avancé',
|
||||
['weapon_mg'] = 'mitrailleuse',
|
||||
['weapon_combatmg'] = 'mitrailleuse de combat',
|
||||
['weapon_pumpshotgun'] = 'fusil à pompe',
|
||||
['weapon_sawnoffshotgun'] = 'carabine à canon scié',
|
||||
['weapon_assaultshotgun'] = 'carabine d\'assaut',
|
||||
['weapon_bullpupshotgun'] = 'carabine bullpup',
|
||||
['weapon_stungun'] = 'tazer',
|
||||
['weapon_sniperrifle'] = 'fusil de sniper',
|
||||
['weapon_heavysniper'] = 'fusil de sniper lourd',
|
||||
['weapon_remotesniper'] = 'fusil de sniper à distance',
|
||||
['weapon_grenadelauncher'] = 'lance-grenade',
|
||||
['weapon_rpg'] = 'lance-rocket',
|
||||
['weapon_stinger'] = 'lance-missile stinger',
|
||||
['weapon_minigun'] = 'minigun',
|
||||
['weapon_grenade'] = 'grenade',
|
||||
['weapon_stickybomb'] = 'bombe collante',
|
||||
['weapon_smokegrenade'] = 'grenade fumigène',
|
||||
['weapon_bzgas'] = 'grenade à gaz bz',
|
||||
['weapon_molotov'] = 'cocktail molotov',
|
||||
['weapon_fireextinguisher'] = 'extincteur',
|
||||
['weapon_petrolcan'] = 'jerrican d\'essence',
|
||||
['weapon_digiscanner'] = 'digiscanner',
|
||||
['weapon_ball'] = 'balle',
|
||||
['weapon_snspistol'] = 'pistolet sns',
|
||||
['weapon_bottle'] = 'bouteille',
|
||||
['weapon_gusenberg'] = 'balayeuse gusenberg',
|
||||
['weapon_specialcarbine'] = 'carabine spéciale',
|
||||
['weapon_heavypistol'] = 'pistolet lourd',
|
||||
['weapon_bullpuprifle'] = 'fusil bullpup',
|
||||
['weapon_dagger'] = 'poignard',
|
||||
['weapon_vintagepistol'] = 'pistolet vintage',
|
||||
['weapon_firework'] = 'feu d\'artifice',
|
||||
['weapon_musket'] = 'mousquet',
|
||||
['weapon_heavyshotgun'] = 'fusil à pompe lourd',
|
||||
['weapon_marksmanrifle'] = 'fusil marksman',
|
||||
['weapon_hominglauncher'] = 'lance tête-chercheuse',
|
||||
['weapon_proxmine'] = 'mine de proximité',
|
||||
['weapon_snowball'] = 'boule de neige',
|
||||
['weapon_flaregun'] = 'lance fusée de détresse',
|
||||
['weapon_garbagebag'] = 'sac poubelle',
|
||||
['weapon_handcuffs'] = 'menottes',
|
||||
['weapon_combatpdw'] = 'arme de défense personnelle',
|
||||
['weapon_marksmanpistol'] = 'pistolet marksman',
|
||||
['weapon_knuckle'] = 'poing américain',
|
||||
['weapon_hatchet'] = 'hachette',
|
||||
['weapon_railgun'] = 'canon éléctrique',
|
||||
['weapon_machete'] = 'machetta',
|
||||
['weapon_machinepistol'] = 'pistolet mitrailleur',
|
||||
['weapon_switchblade'] = 'couteau à cran d\'arrêt',
|
||||
['weapon_revolver'] = 'revolver',
|
||||
['weapon_dbshotgun'] = 'fusil à pompe double canon',
|
||||
['weapon_compactrifle'] = 'fusil compact',
|
||||
['weapon_autoshotgun'] = 'fusil à pompe automatique',
|
||||
['weapon_battleaxe'] = 'hache de combat',
|
||||
['weapon_compactlauncher'] = 'lanceur compact',
|
||||
['weapon_minismg'] = 'mini smg',
|
||||
['weapon_pipebomb'] = 'bombe tuyau',
|
||||
['weapon_poolcue'] = 'queue de billard',
|
||||
['weapon_wrench'] = 'clé',
|
||||
['weapon_flashlight'] = 'lampe torche',
|
||||
['gadget_nightvision'] = 'vision nocturne',
|
||||
['gadget_parachute'] = 'parachute',
|
||||
}
|
||||
@@ -15,37 +15,37 @@ TriggerEvent('es:addGroupCommand', 'setjob', 'jobmaster', function(source, args,
|
||||
xPlayer.setJob(args[3], tonumber(args[4]))
|
||||
end, function(source, args, user)
|
||||
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
|
||||
end, {help = 'Assigner job => setjob [id] [job] [grade_id]'})
|
||||
end, {help = _U('setjob'), params = {{name = "id", help = _U('id_param')}, {name = "job", help = _U('setjob_param2')}, {name = "grade_id", help = _U('setjob_param3')}}})
|
||||
|
||||
TriggerEvent('es:addGroupCommand', 'loadipl', 'admin', function(source, args, user)
|
||||
TriggerClientEvent('esx:loadIPL', -1, args[2])
|
||||
end, function(source, args, user)
|
||||
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
|
||||
end, {help = 'Charger ipl'})
|
||||
end, {help = _U('load_ipl')})
|
||||
|
||||
TriggerEvent('es:addGroupCommand', 'unloadipl', 'admin', function(source, args, user)
|
||||
TriggerClientEvent('esx:unloadIPL', -1, args[2])
|
||||
end, function(source, args, user)
|
||||
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
|
||||
end, {help = 'Décharger ipl'})
|
||||
end, {help = _U('unload_ipl')})
|
||||
|
||||
TriggerEvent('es:addGroupCommand', 'playanim', 'admin', function(source, args, user)
|
||||
TriggerClientEvent('esx:playAnim', -1, args[2], args[3])
|
||||
end, function(source, args, user)
|
||||
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
|
||||
end, {help = 'Jouer animation'})
|
||||
end, {help = _U('play_anim')})
|
||||
|
||||
TriggerEvent('es:addGroupCommand', 'playemote', 'admin', function(source, args, user)
|
||||
TriggerClientEvent('esx:playEmote', -1, args[2])
|
||||
end, function(source, args, user)
|
||||
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
|
||||
end, {help = 'Jouer emote'})
|
||||
end, {help = _U('play_emote')})
|
||||
|
||||
TriggerEvent('es:addGroupCommand', 'car', 'admin', function(source, args, user)
|
||||
TriggerClientEvent('esx:spawnVehicle', source, args[2])
|
||||
end, function(source, args, user)
|
||||
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
|
||||
end, {help = 'Spawn un véhicule'})
|
||||
end, {help = _U('spawn_car'), params = {{name = "car", help = _U('spawn_car_param')}}})
|
||||
|
||||
TriggerEvent('es:addGroupCommand', 'givemoney', 'admin', function(source, args, user)
|
||||
|
||||
@@ -56,12 +56,12 @@ TriggerEvent('es:addGroupCommand', 'givemoney', 'admin', function(source, args,
|
||||
if amount ~= nil then
|
||||
xPlayer.addMoney(amount)
|
||||
else
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Montant invalide')
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('amount_invalid'))
|
||||
end
|
||||
|
||||
end, function(source, args, user)
|
||||
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
|
||||
end, {help = 'givemoney [id] [montant]'})
|
||||
end, {help = _U('givemoney'), params = {{name = "id", help = _U('id_param')}, {name = "amount", help = _U('money_amount')}}})
|
||||
|
||||
TriggerEvent('es:addGroupCommand', 'giveaccountmoney', 'admin', function(source, args, user)
|
||||
|
||||
@@ -74,15 +74,15 @@ TriggerEvent('es:addGroupCommand', 'giveaccountmoney', 'admin', function(source,
|
||||
if xPlayer.getAccount(account) ~= nil then
|
||||
xPlayer.addAccountMoney(account, amount)
|
||||
else
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Compte invalide')
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('invalid_account'))
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Montant invalide')
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('amount_invalid'))
|
||||
end
|
||||
|
||||
end, function(source, args, user)
|
||||
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
|
||||
end, {help = 'giveaccountmoney [id] [compte] [montant]'})
|
||||
end, {help = _U('giveaccountmoney'), params = {{name = "id", help = _U('id_param')}, {name = "account", help = _U('account')}, {name = "amount", help = _U('money_amount')}}})
|
||||
|
||||
TriggerEvent('es:addGroupCommand', 'giveitem', 'admin', function(source, args, user)
|
||||
|
||||
@@ -95,15 +95,15 @@ TriggerEvent('es:addGroupCommand', 'giveitem', 'admin', function(source, args, u
|
||||
if xPlayer.getInventoryItem(item) ~= nil then
|
||||
xPlayer.addInventoryItem(item, count)
|
||||
else
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Item invalide')
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('invalid_item'))
|
||||
end
|
||||
else
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Quantité invalide')
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('invalid_amount'))
|
||||
end
|
||||
|
||||
end, function(source, args, user)
|
||||
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
|
||||
end, {help = 'giveitem [id] [item] [[quantité]]'})
|
||||
end, {help = _U('giveitem'), params = {{name = "id", help = _U('id_param')}, {name = "item", help = _U('item')}, {name = "amount", help = _U('amount')}}})
|
||||
|
||||
TriggerEvent('es:addGroupCommand', 'giveweapon', 'admin', function(source, args, user)
|
||||
|
||||
@@ -114,5 +114,4 @@ TriggerEvent('es:addGroupCommand', 'giveweapon', 'admin', function(source, args,
|
||||
|
||||
end, function(source, args, user)
|
||||
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
|
||||
end, {help = 'giveweapon [id] [arme]'})
|
||||
|
||||
end, {help = _U('giveweapon'), params = {{name = "id", help = _U('id_param')}, {name = "weapon", help = _U('weapon')}}})
|
||||
@@ -168,7 +168,7 @@ ESX.StartPayCheck = function()
|
||||
|
||||
if v.job.grade_salary > 0 then
|
||||
v.addMoney(v.job.grade_salary)
|
||||
TriggerClientEvent('esx:showNotification', v.source, 'Vous avez reçu votre salaire : ~g~$' .. v.job.grade_salary)
|
||||
TriggerClientEvent('esx:showNotification', v.source, _U('rec_salary') .. '~g~$' .. v.job.grade_salary)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -302,17 +302,17 @@ AddEventHandler('esx:giveInventoryItem', function(target, type, itemName, itemCo
|
||||
if itemCount > 0 and sourceItem.count >= itemCount then
|
||||
|
||||
if targetItem.limit ~= -1 and (targetItem.count + sourceItem.count) > targetItem.limit then
|
||||
TriggerClientEvent('esx:showNotification', target, 'Action impossible, depassement de la limite d\'inventaire pour ~b~' .. targetXPlayer.name)
|
||||
TriggerClientEvent('esx:showNotification', target, _U('ex_inv_lim') .. targetXPlayer.name)
|
||||
else
|
||||
sourceXPlayer.removeInventoryItem(itemName, itemCount)
|
||||
targetXPlayer.addInventoryItem (itemName, itemCount)
|
||||
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Vous avez donné ~g~x' .. itemCount .. ' ' .. ESX.Items[itemName].label .. '~s~ à ~b~' .. targetXPlayer.name)
|
||||
TriggerClientEvent('esx:showNotification', target, 'Vous avez reçu ~g~x' .. itemCount .. ' ' .. ESX.Items[itemName].label .. '~s~ par ~b~' .. sourceXPlayer.name)
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('yougave') .. ' ~g~x' .. itemCount .. ' ' .. ESX.Items[itemName].label .. _U('to') .. targetXPlayer.name)
|
||||
TriggerClientEvent('esx:showNotification', target, _U('youreceived') .. ' ~g~x' .. itemCount .. ' ' .. ESX.Items[itemName].label .. _U('by') .. sourceXPlayer.name)
|
||||
end
|
||||
|
||||
else
|
||||
TriggerClientEvent('esx:showNotification', target, 'Action impossible, ~r~quantité invalide')
|
||||
TriggerClientEvent('esx:showNotification', target, _U('imp_invalid_quantity'))
|
||||
end
|
||||
|
||||
elseif type == 'item_money' then
|
||||
@@ -322,11 +322,11 @@ AddEventHandler('esx:giveInventoryItem', function(target, type, itemName, itemCo
|
||||
sourceXPlayer.removeMoney(itemCount)
|
||||
targetXPlayer.addMoney(itemCount)
|
||||
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Vous avez donné ~g~$' .. itemCount .. '~s~ à ~b~' .. targetXPlayer.name)
|
||||
TriggerClientEvent('esx:showNotification', target, 'Vous avez reçu ~g~$' .. itemCount .. '~s~ par ~b~' .. sourceXPlayer.name)
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('yougave') .. ' ~g~$' .. itemCount .. _U('to') .. targetXPlayer.name)
|
||||
TriggerClientEvent('esx:showNotification', target, _U('youreceived') .. ' ~g~$' .. itemCount .. _U('by') .. sourceXPlayer.name)
|
||||
|
||||
else
|
||||
TriggerClientEvent('esx:showNotification', target, 'Action impossible, ~r~montant invalide')
|
||||
TriggerClientEvent('esx:showNotification', target, _U('imp_invalid_amount'))
|
||||
end
|
||||
|
||||
elseif type == 'item_account' then
|
||||
@@ -336,11 +336,11 @@ AddEventHandler('esx:giveInventoryItem', function(target, type, itemName, itemCo
|
||||
sourceXPlayer.removeAccountMoney(itemName, itemCount)
|
||||
targetXPlayer.addAccountMoney(itemName, itemCount)
|
||||
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Vous avez donné [' .. Config.AccountLabels[itemName] .. '] ~g~$' .. itemCount .. '~s~ à ~b~' .. targetXPlayer.name)
|
||||
TriggerClientEvent('esx:showNotification', target, 'Vous avez reçu [' .. Config.AccountLabels[itemName] .. '] ~g~$' .. itemCount .. '~s~ par ~b~' .. sourceXPlayer.name)
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('yougave') .. ' [' .. Config.AccountLabels[itemName] .. '] ~g~$' .. itemCount .. _U('to') .. targetXPlayer.name)
|
||||
TriggerClientEvent('esx:showNotification', target, _U('youreceived') .. ' [' .. Config.AccountLabels[itemName] .. '] ~g~$' .. itemCount .. _U('by') .. sourceXPlayer.name)
|
||||
|
||||
else
|
||||
TriggerClientEvent('esx:showNotification', target, 'Action impossible, ~r~montant invalide')
|
||||
TriggerClientEvent('esx:showNotification', target, _U('imp_invalid_amount'))
|
||||
end
|
||||
|
||||
elseif type == 'item_weapon' then
|
||||
@@ -357,8 +357,8 @@ AddEventHandler('esx:giveInventoryItem', function(target, type, itemName, itemCo
|
||||
end
|
||||
end
|
||||
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Vous avez donné x1 ' .. ' ~g~' .. weaponLabel .. '~s~ à ~b~' .. targetXPlayer.name)
|
||||
TriggerClientEvent('esx:showNotification', target, 'Vous avez reçu x1 ' .. ' ~g~' .. weaponLabel .. '~s~ par ~b~' .. sourceXPlayer.name)
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('yougave') .. ' x1 ~g~' .. weaponLabel .. _U('to') .. targetXPlayer.name)
|
||||
TriggerClientEvent('esx:showNotification', target, _U('youreceived') .. ' x1 ~g~' .. weaponLabel .. _U('by') .. sourceXPlayer.name)
|
||||
end
|
||||
|
||||
end)
|
||||
@@ -371,7 +371,7 @@ AddEventHandler('esx:removeInventoryItem', function(type, itemName, itemCount)
|
||||
if type == 'item_standard' then
|
||||
|
||||
if itemCount == nil or itemCount <= 0 then
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Action impossible, ~r~quantité invalide')
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('imp_invalid_quantity'))
|
||||
else
|
||||
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
@@ -384,10 +384,10 @@ AddEventHandler('esx:removeInventoryItem', function(type, itemName, itemCount)
|
||||
end
|
||||
|
||||
if itemCount > foundItem.count then
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Action impossible, ~r~quantité invalide')
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('imp_invalid_quantity'))
|
||||
else
|
||||
|
||||
TriggerClientEvent('esx:showNotification', _source, '~r~Suppression~s~ dans 5 minutes')
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('delete_five_min'))
|
||||
|
||||
SetTimeout(Config.RemoveInventoryItemDelay, function()
|
||||
|
||||
@@ -400,7 +400,7 @@ AddEventHandler('esx:removeInventoryItem', function(type, itemName, itemCount)
|
||||
|
||||
if total > 0 then
|
||||
xPlayer.removeInventoryItem(itemName, total)
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Vous avez ~r~jeté~s~ ' .. foundItem.label .. ' x' .. total)
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('threw') .. ' ' .. foundItem.label .. ' x' .. total)
|
||||
end
|
||||
|
||||
end)
|
||||
@@ -412,16 +412,16 @@ AddEventHandler('esx:removeInventoryItem', function(type, itemName, itemCount)
|
||||
elseif type == 'item_money' then
|
||||
|
||||
if itemCount == nil or itemCount <= 0 then
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Action impossible, ~r~montant invalide')
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('imp_invalid_amount'))
|
||||
else
|
||||
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
if itemCount > xPlayer.player.get('money') then
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Action impossible, ~r~montant invalide')
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('imp_invalid_amount'))
|
||||
else
|
||||
|
||||
TriggerClientEvent('esx:showNotification', _source, '~r~Suppression~s~ dans 5 minutes')
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('delete_five_min'))
|
||||
|
||||
SetTimeout(Config.RemoveInventoryItemDelay, function()
|
||||
|
||||
@@ -434,7 +434,7 @@ AddEventHandler('esx:removeInventoryItem', function(type, itemName, itemCount)
|
||||
|
||||
if total > 0 then
|
||||
xPlayer.removeMoney(total)
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Vous avez ~r~jeté~s~ [Cash] $' .. total)
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('threw') .. ' [Cash] $' .. total)
|
||||
end
|
||||
|
||||
end)
|
||||
@@ -446,16 +446,16 @@ AddEventHandler('esx:removeInventoryItem', function(type, itemName, itemCount)
|
||||
elseif type == 'item_account' then
|
||||
|
||||
if itemCount == nil or itemCount <= 0 then
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Action impossible, ~r~montant invalide')
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('imp_invalid_amount'))
|
||||
else
|
||||
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
if itemCount > xPlayer.getAccount(itemName).money then
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Action impossible, ~r~montant invalide')
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('imp_invalid_amount'))
|
||||
else
|
||||
|
||||
TriggerClientEvent('esx:showNotification', _source, '~r~Suppression~s~ dans 5 minutes')
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('delete_five_min'))
|
||||
|
||||
SetTimeout(Config.RemoveInventoryItemDelay, function()
|
||||
|
||||
@@ -468,7 +468,7 @@ AddEventHandler('esx:removeInventoryItem', function(type, itemName, itemCount)
|
||||
|
||||
if total > 0 then
|
||||
xPlayer.removeAccountMoney(itemName, total)
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Vous avez ~r~jeté~s~ [Cash] $' .. total)
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('threw') .. ' [Cash] $' .. total)
|
||||
end
|
||||
|
||||
end)
|
||||
@@ -501,7 +501,7 @@ AddEventHandler('esx:removeInventoryItem', function(type, itemName, itemCount)
|
||||
TriggerClientEvent('esx:pickupWeapon', _source, weaponPickup, weaponName)
|
||||
end
|
||||
|
||||
TriggerClientEvent('esx:showNotification', _source, 'Vous avez ~r~jeté~s~ x1 ' .. ' ~g~' .. weaponLabel)
|
||||
TriggerClientEvent('esx:showNotification', _source, _U('threw') .. ' x1 ~g~' .. weaponLabel)
|
||||
|
||||
end)
|
||||
|
||||
@@ -518,7 +518,7 @@ AddEventHandler('esx:useItem', function(itemName)
|
||||
if count > 0 then
|
||||
ESX.UseItem(source, itemName)
|
||||
else
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, 'Action impossible')
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('act_imp'))
|
||||
end
|
||||
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user