diff --git a/client/functions.lua b/client/functions.lua index 49ecb156..6d9d62a5 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -1177,7 +1177,7 @@ ESX.ShowInventory = function() if type == 'item_weapon' then local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer() local closestPed = GetPlayerPed(closestPlayer) - local pedAmmo = GetAmmoInPedWeapon(GetPlayerPed(-1),GetHashKey(item)) + local pedAmmo = GetAmmoInPedWeapon(GetPlayerPed(-1), GetHashKey(item)) if not IsPedSittingInAnyVehicle(closestPed) then if closestPlayer ~= -1 and closestDistance < 3.0 then if pedAmmo > 0 then diff --git a/locales/br.lua b/locales/br.lua index 491f232c..78846777 100644 --- a/locales/br.lua +++ b/locales/br.lua @@ -1,150 +1,154 @@ - Locales['br'] = { - ['inventory'] = 'inventário', - ['use'] = 'use', - ['give'] = 'dar', - ['remove'] = 'remover', - ['return'] = 'retorna', - ['amount'] = 'quantidade', - ['amountammo'] = 'quantidade de munição', - ['noammo'] = 'Você não tem todas essas munições!', - ['withammo'] = '~s~ com x', - ['ammogiven'] = '~s~ balas', - ['giveammo'] = 'Dar munição', - ['amount_invalid'] = 'quantidade inválida', - ['players_nearby'] = 'nenhum jogador por perto', - ['ex_inv_lim'] = 'ação não é possível, excedendo o limite de estoque para ~b~', - ['yougave'] = 'você deu', - ['youreceived'] = 'você recebeu', - ['to'] = '~s~ para ~b~', - ['by'] = '~s~ de ~b~', - ['imp_invalid_quantity'] = 'ação impossível, quantidade inválida', - ['imp_invalid_amount'] = 'ação impossível, valor inválido', - ['delete_five_min'] = '~r~excluir~s~ em 5 minutos', - ['threw'] = 'você ~r~jogou~s~', - ['rec_salary'] = 'você recebeu seu salário: ', - ['rec_help'] = 'você recebeu seu cheque de bem-estar: ', - ['company_paid'] = 'Cheque de pagamento da empresa recebido', - ['company_nomoney'] = 'Sua empresa está falida!', - ['state_paid'] = 'Você recebeu um cheque de estado', - ['act_imp'] = 'ação impossível', - ['in_vehicle'] = 'Você não pode dar nada para alguém no veículo', - -- Commands - ['setjob'] = 'atribuir um trabalho a um usuário', - ['id_param'] = 'o ID do jogador', - ['setjob_param2'] = 'o trabalho que você deseja atribuir', - ['setjob_param3'] = 'o nível de emprego', - ['load_ipl'] = 'carregar IPL', - ['unload_ipl'] = 'descarregar o IPL', - ['play_anim'] = 'tocar animação', - ['play_emote'] = 'jogar emote', - ['spawn_car'] = 'spawn um carro', - ['spawn_car_param'] = 'nome do carro', - ['delete_vehicle'] = 'excluir Veículo', - ['delete_veh_param'] = 'pressione Enter', - ['spawn_object'] = 'spawn objeto', - ['spawn_ped'] = 'spawn ped', - ['spawn_ped_param'] = 'exemplo a_m_m_hillbilly_01', - ['givemoney'] = 'dar dinheiro', - ['money_amount'] = 'quantia de dinheiro', - ['invalid_account'] = 'conta inválida', - ['account'] = 'conta', - ['giveaccountmoney'] = 'dar dinheiro da conta', - ['invalid_item'] = 'item inválido', - ['item'] = 'item', - ['giveitem'] = 'dar item', - ['weapon'] = 'arma', - ['giveweapon'] = 'dar arma', - -- Weapons - ['weapon_knife'] = 'faca', - ['weapon_nightstick'] = 'cacetete', - ['weapon_hammer'] = 'martelo', - ['weapon_bat'] = 'bastão', - ['weapon_golfclub'] = 'golf club', - ['weapon_crowbar'] = 'pé de cabra', - ['weapon_pistol'] = 'pistola', - ['weapon_combatpistol'] = 'pistola de combate', - ['weapon_appistol'] = 'ap pistola', - ['weapon_pistol50'] = 'pistola .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'] = 'espingarda', - ['weapon_sawnoffshotgun'] = 'sawed off shotgun', - ['weapon_assaultshotgun'] = 'assault shotgun', - ['weapon_bullpupshotgun'] = 'bullpup shotgun', - ['weapon_stungun'] = 'arma de choque', - ['weapon_sniperrifle'] = 'sniper rifle', - ['weapon_heavysniper'] = 'heavy sniper', - ['weapon_remotesniper'] = 'remote sniper', - ['weapon_grenadelauncher'] = 'lançador de granada', - ['weapon_rpg'] = 'lançador de foguetes', - ['weapon_stinger'] = 'stinger', - ['weapon_minigun'] = 'minigun', - ['weapon_grenade'] = 'granada', - ['weapon_stickybomb'] = 'bomba pegajosa', - ['weapon_smokegrenade'] = 'granada de fumaça', - ['weapon_bzgas'] = 'bz gas', - ['weapon_molotov'] = 'coquetel molotov', - ['weapon_fireextinguisher'] = 'extintor', - ['weapon_petrolcan'] = 'galão de combustivel', - ['weapon_digiscanner'] = 'digiscanner', - ['weapon_ball'] = 'bola', - ['weapon_snspistol'] = 'sns pistol', - ['weapon_bottle'] = 'garrafa', - ['weapon_gusenberg'] = 'gusenberg sweeper', - ['weapon_specialcarbine'] = 'carabina especial', - ['weapon_heavypistol'] = 'heavy pistol', - ['weapon_bullpuprifle'] = 'bullpup rifle', - ['weapon_dagger'] = 'punhal', - ['weapon_vintagepistol'] = 'vintage pistol', - ['weapon_firework'] = 'fogos de artifício', - ['weapon_musket'] = 'mosquete', - ['weapon_heavyshotgun'] = 'heavy shotgun', - ['weapon_marksmanrifle'] = 'marksman rifle', - ['weapon_hominglauncher'] = 'homing launcher', - ['weapon_proxmine'] = 'mina de proximidade', - ['weapon_snowball'] = 'bola de neve', - ['weapon_flaregun'] = 'sinalizador', - ['weapon_garbagebag'] = 'saco de lixo', - ['weapon_handcuffs'] = 'algemas', - ['weapon_combatpdw'] = 'combat pdw', - ['weapon_marksmanpistol'] = 'marksman pistol', - ['weapon_knuckle'] = 'soco inglês', - ['weapon_hatchet'] = 'machado', - ['weapon_railgun'] = 'railgun', - ['weapon_machete'] = 'facão', - ['weapon_machinepistol'] = 'machine pistol', - ['weapon_switchblade'] = 'canivete', - ['weapon_revolver'] = 'heavy revolver', - ['weapon_dbshotgun'] = 'espingarda de cano duplo', - ['weapon_compactrifle'] = 'compact rifle', - ['weapon_autoshotgun'] = 'auto shotgun', - ['weapon_battleaxe'] = 'battle axe', - ['weapon_compactlauncher'] = 'compact launcher', - ['weapon_minismg'] = 'mini smg', - ['weapon_pipebomb'] = 'bomba caseira', - ['weapon_poolcue'] = 'taco de sinuca', - ['weapon_wrench'] = 'chave de cano', - ['weapon_flashlight'] = 'laterna', - ['gadget_nightvision'] = 'visão noturna', - ['gadget_parachute'] = 'paraquedas', - ['weapon_flare'] = 'Flare', - ['weapon_snspistol_mk2'] = 'Pistola SNS Mk II', - ['weapon_revolver_mk2'] = 'Revolver Pesada Mk II', - ['weapon_doubleaction'] = 'Revolver Dupla-acao', - ['weapon_specialcarabine_mk2'] = 'Carabina Especial Mk II', - ['weapon_bullpruprifle_mk2'] = 'Bullpup Rifle Mk II', - ['weapon_pumpshotgun_mk2'] = 'Espingarda Mk II', - ['weapon_marksmanrifle_mk2'] = 'Rifle Marksman Mk II', - ['weapon_assaultrifle_mk2'] = 'Rifle de assalto Mk II ', - ['weapon_carbinerifle_mk2'] = 'Carabina Mk II ', - ['weapon_combatmg_mk2'] = 'MG de Combate Mk II', - ['weapon_heavysniper_mk2'] = 'Sniper pesada Mk II', - ['weapon_pistol_mk2'] = 'Pistola Mk II', - ['weapon_smg_mk2'] = 'SMG Mk II', +Locales['br'] = { + ['inventory'] = 'inventário', + ['use'] = 'use', + ['give'] = 'dar', + ['remove'] = 'remover', + ['return'] = 'retorna', + ['amount'] = 'quantidade', + ['amountammo'] = 'quantidade de munição', + ['noammo'] = 'Você não tem todas essas munições!', + ['threw_weapon'] = 'you ~r~threw~s~ ~y~1x~s~ ~b~%s~s~ with ~o~%sx~s~ bullets!', + ['gave_weapon'] = 'you gave ~y~1x~s~ ~b~%s~s~ with ~o~%sx~s~ bullets to ~y~%s~s~.', + ['recived_weapon'] = 'you recived ~y~1x~s~ ~b~%s~s~ with ~o~%sx~s~ bullets from ~b~%s~s~.', + ['gave_ammo'] = 'you gave ~o~%sx~s~ bullets to ~y~%s~s~.', + ['recived_ammo'] = 'you recived ~o~%sx~s~ bullets from ~b~%s~s~.', + ['giveammo'] = 'Dar munição', + ['amount_invalid'] = 'quantidade inválida', + ['players_nearby'] = 'nenhum jogador por perto', + ['ex_inv_lim'] = 'ação não é possível, excedendo o limite de estoque para ~b~', + ['yougave'] = 'você deu', + ['youreceived'] = 'você recebeu', + ['to'] = '~s~ para ~b~', + ['by'] = '~s~ de ~b~', + ['imp_invalid_quantity'] = 'ação impossível, quantidade inválida', + ['imp_invalid_amount'] = 'ação impossível, valor inválido', + ['delete_five_min'] = '~r~excluir~s~ em 5 minutos', + ['threw'] = 'você ~r~jogou~s~', + ['rec_salary'] = 'você recebeu seu salário: ', + ['rec_help'] = 'você recebeu seu cheque de bem-estar: ', + ['company_paid'] = 'Cheque de pagamento da empresa recebido', + ['company_nomoney'] = 'Sua empresa está falida!', + ['state_paid'] = 'Você recebeu um cheque de estado', + ['act_imp'] = 'ação impossível', + ['in_vehicle'] = 'Você não pode dar nada para alguém no veículo', + ['cannot_pickup_room'] = 'you do not have enough space in your inventory to pick up ~y~%s~s~!', + -- Commands + ['setjob'] = 'atribuir um trabalho a um usuário', + ['id_param'] = 'o ID do jogador', + ['setjob_param2'] = 'o trabalho que você deseja atribuir', + ['setjob_param3'] = 'o nível de emprego', + ['load_ipl'] = 'carregar IPL', + ['unload_ipl'] = 'descarregar o IPL', + ['play_anim'] = 'tocar animação', + ['play_emote'] = 'jogar emote', + ['spawn_car'] = 'spawn um carro', + ['spawn_car_param'] = 'nome do carro', + ['delete_vehicle'] = 'excluir Veículo', + ['delete_veh_param'] = 'pressione Enter', + ['spawn_object'] = 'spawn objeto', + ['spawn_ped'] = 'spawn ped', + ['spawn_ped_param'] = 'exemplo a_m_m_hillbilly_01', + ['givemoney'] = 'dar dinheiro', + ['money_amount'] = 'quantia de dinheiro', + ['invalid_account'] = 'conta inválida', + ['account'] = 'conta', + ['giveaccountmoney'] = 'dar dinheiro da conta', + ['invalid_item'] = 'item inválido', + ['item'] = 'item', + ['giveitem'] = 'dar item', + ['weapon'] = 'arma', + ['giveweapon'] = 'dar arma', + -- Weapons + ['weapon_knife'] = 'faca', + ['weapon_nightstick'] = 'cacetete', + ['weapon_hammer'] = 'martelo', + ['weapon_bat'] = 'bastão', + ['weapon_golfclub'] = 'golf club', + ['weapon_crowbar'] = 'pé de cabra', + ['weapon_pistol'] = 'pistola', + ['weapon_combatpistol'] = 'pistola de combate', + ['weapon_appistol'] = 'ap pistola', + ['weapon_pistol50'] = 'pistola .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'] = 'espingarda', + ['weapon_sawnoffshotgun'] = 'sawed off shotgun', + ['weapon_assaultshotgun'] = 'assault shotgun', + ['weapon_bullpupshotgun'] = 'bullpup shotgun', + ['weapon_stungun'] = 'arma de choque', + ['weapon_sniperrifle'] = 'sniper rifle', + ['weapon_heavysniper'] = 'heavy sniper', + ['weapon_remotesniper'] = 'remote sniper', + ['weapon_grenadelauncher'] = 'lançador de granada', + ['weapon_rpg'] = 'lançador de foguetes', + ['weapon_stinger'] = 'stinger', + ['weapon_minigun'] = 'minigun', + ['weapon_grenade'] = 'granada', + ['weapon_stickybomb'] = 'bomba pegajosa', + ['weapon_smokegrenade'] = 'granada de fumaça', + ['weapon_bzgas'] = 'bz gas', + ['weapon_molotov'] = 'coquetel molotov', + ['weapon_fireextinguisher'] = 'extintor', + ['weapon_petrolcan'] = 'galão de combustivel', + ['weapon_digiscanner'] = 'digiscanner', + ['weapon_ball'] = 'bola', + ['weapon_snspistol'] = 'sns pistol', + ['weapon_bottle'] = 'garrafa', + ['weapon_gusenberg'] = 'gusenberg sweeper', + ['weapon_specialcarbine'] = 'carabina especial', + ['weapon_heavypistol'] = 'heavy pistol', + ['weapon_bullpuprifle'] = 'bullpup rifle', + ['weapon_dagger'] = 'punhal', + ['weapon_vintagepistol'] = 'vintage pistol', + ['weapon_firework'] = 'fogos de artifício', + ['weapon_musket'] = 'mosquete', + ['weapon_heavyshotgun'] = 'heavy shotgun', + ['weapon_marksmanrifle'] = 'marksman rifle', + ['weapon_hominglauncher'] = 'homing launcher', + ['weapon_proxmine'] = 'mina de proximidade', + ['weapon_snowball'] = 'bola de neve', + ['weapon_flaregun'] = 'sinalizador', + ['weapon_garbagebag'] = 'saco de lixo', + ['weapon_handcuffs'] = 'algemas', + ['weapon_combatpdw'] = 'combat pdw', + ['weapon_marksmanpistol'] = 'marksman pistol', + ['weapon_knuckle'] = 'soco inglês', + ['weapon_hatchet'] = 'machado', + ['weapon_railgun'] = 'railgun', + ['weapon_machete'] = 'facão', + ['weapon_machinepistol'] = 'machine pistol', + ['weapon_switchblade'] = 'canivete', + ['weapon_revolver'] = 'heavy revolver', + ['weapon_dbshotgun'] = 'espingarda de cano duplo', + ['weapon_compactrifle'] = 'compact rifle', + ['weapon_autoshotgun'] = 'auto shotgun', + ['weapon_battleaxe'] = 'battle axe', + ['weapon_compactlauncher'] = 'compact launcher', + ['weapon_minismg'] = 'mini smg', + ['weapon_pipebomb'] = 'bomba caseira', + ['weapon_poolcue'] = 'taco de sinuca', + ['weapon_wrench'] = 'chave de cano', + ['weapon_flashlight'] = 'laterna', + ['gadget_nightvision'] = 'visão noturna', + ['gadget_parachute'] = 'paraquedas', + ['weapon_flare'] = 'Flare', + ['weapon_snspistol_mk2'] = 'Pistola SNS Mk II', + ['weapon_revolver_mk2'] = 'Revolver Pesada Mk II', + ['weapon_doubleaction'] = 'Revolver Dupla-acao', + ['weapon_specialcarabine_mk2'] = 'Carabina Especial Mk II', + ['weapon_bullpruprifle_mk2'] = 'Bullpup Rifle Mk II', + ['weapon_pumpshotgun_mk2'] = 'Espingarda Mk II', + ['weapon_marksmanrifle_mk2'] = 'Rifle Marksman Mk II', + ['weapon_assaultrifle_mk2'] = 'Rifle de assalto Mk II ', + ['weapon_carbinerifle_mk2'] = 'Carabina Mk II ', + ['weapon_combatmg_mk2'] = 'MG de Combate Mk II', + ['weapon_heavysniper_mk2'] = 'Sniper pesada Mk II', + ['weapon_pistol_mk2'] = 'Pistola Mk II', + ['weapon_smg_mk2'] = 'SMG Mk II', } diff --git a/locales/de.lua b/locales/de.lua index 23c6ea75..6f4323b7 100644 --- a/locales/de.lua +++ b/locales/de.lua @@ -1,8 +1,11 @@ Locales['de'] = { ['amountammo'] = 'anzahl der Munition', - ['noammo'] = 'Du hast keine Munition !', - ['withammo'] = '~s~ mit x', - ['ammogiven'] = '~s~ Kugeln', + ['noammo'] = 'du hast keine Munition!', + ['threw_weapon'] = 'you ~r~threw~s~ ~y~1x~s~ ~b~%s~s~ with ~o~%sx~s~ bullets!', + ['gave_weapon'] = 'you gave ~y~1x~s~ ~b~%s~s~ with ~o~%sx~s~ bullets to ~y~%s~s~.', + ['recived_weapon'] = 'you recived ~y~1x~s~ ~b~%s~s~ with ~o~%sx~s~ bullets from ~b~%s~s~.', + ['gave_ammo'] = 'you gave ~o~%sx~s~ bullets to ~y~%s~s~.', + ['recived_ammo'] = 'you recived ~o~%sx~s~ bullets from ~b~%s~s~.', ['giveammo'] = 'Munition geben', ['inventory'] = 'Inventar', ['use'] = 'benutzen', @@ -123,4 +126,18 @@ Locales['de'] = { ['weapon_flashlight'] = 'Taschenlampe', ['gadget_nightvision'] = 'Nachtsichtgerät', ['gadget_parachute'] = 'Fallschirm', + ['weapon_flare'] = 'Fusée Détresse', + ['weapon_snspistol_mk2'] = 'SNS Pistol Mk II', + ['weapon_revolver_mk2'] = 'Heavy Revolver Mk II', + ['weapon_doubleaction'] = 'Double-Action Revolver', + ['weapon_specialcarabine_mk2'] = 'Special Carbine Mk II', + ['weapon_bullpruprifle_mk2'] = 'Bullpup Rifle Mk II', + ['weapon_pumpshotgun_mk2'] = 'Pump Shotgun Mk II', + ['weapon_marksmanrifle_mk2'] = 'Marksman Rifle Mk II', + ['weapon_assaultrifle_mk2'] = 'Assault Rifle Mk II ', + ['weapon_carbinerifle_mk2'] = 'Carbine Rifle Mk II ', + ['weapon_combatmg_mk2'] = 'Combat MG Mk II', + ['weapon_heavysniper_mk2'] = 'Heavy Sniper Mk II', + ['weapon_pistol_mk2'] = 'Pistol Mk II', + ['weapon_smg_mk2'] = 'SMG Mk II', } diff --git a/locales/en.lua b/locales/en.lua index c02bba66..96c84eb5 100644 --- a/locales/en.lua +++ b/locales/en.lua @@ -12,7 +12,7 @@ Locales['en'] = { ['recived_weapon'] = 'you recived ~y~1x~s~ ~b~%s~s~ with ~o~%sx~s~ bullets from ~b~%s~s~.', ['gave_ammo'] = 'you gave ~o~%sx~s~ bullets to ~y~%s~s~.', ['recived_ammo'] = 'you recived ~o~%sx~s~ bullets from ~b~%s~s~.', - ['giveammo'] = 'Give ammo', + ['giveammo'] = 'give ammo', ['amount_invalid'] = 'invalid amount', ['players_nearby'] = 'no players nearby', ['ex_inv_lim'] = 'action not possible, exceeding inventory limit for ~b~', @@ -141,4 +141,18 @@ Locales['en'] = { ['weapon_flashlight'] = 'flashlight', ['gadget_nightvision'] = 'night vision', ['gadget_parachute'] = 'parachute', + ['weapon_flare'] = 'Fusée Détresse', + ['weapon_snspistol_mk2'] = 'SNS Pistol Mk II', + ['weapon_revolver_mk2'] = 'Heavy Revolver Mk II', + ['weapon_doubleaction'] = 'Double-Action Revolver', + ['weapon_specialcarabine_mk2'] = 'Special Carbine Mk II', + ['weapon_bullpruprifle_mk2'] = 'Bullpup Rifle Mk II', + ['weapon_pumpshotgun_mk2'] = 'Pump Shotgun Mk II', + ['weapon_marksmanrifle_mk2'] = 'Marksman Rifle Mk II', + ['weapon_assaultrifle_mk2'] = 'Assault Rifle Mk II ', + ['weapon_carbinerifle_mk2'] = 'Carbine Rifle Mk II ', + ['weapon_combatmg_mk2'] = 'Combat MG Mk II', + ['weapon_heavysniper_mk2'] = 'Heavy Sniper Mk II', + ['weapon_pistol_mk2'] = 'Pistol Mk II', + ['weapon_smg_mk2'] = 'SMG Mk II', } \ No newline at end of file diff --git a/locales/fr.lua b/locales/fr.lua index c8d40f32..5e2027f1 100644 --- a/locales/fr.lua +++ b/locales/fr.lua @@ -7,9 +7,12 @@ Locales['fr'] = { ['amount'] = 'quantité', ['amountammo'] = 'nombre de munitions', ['noammo'] = 'Tu n\'as pas toutes ces munitions !', - ['withammo'] = '~s~ avec x ', - ['ammogiven'] = '~s~ balles', - ['giveammo'] = 'Donner munitions', + ['threw_weapon'] = 'you ~r~threw~s~ ~y~1x~s~ ~b~%s~s~ with ~o~%sx~s~ bullets!', + ['gave_weapon'] = 'you gave ~y~1x~s~ ~b~%s~s~ with ~o~%sx~s~ bullets to ~y~%s~s~.', + ['recived_weapon'] = 'you recived ~y~1x~s~ ~b~%s~s~ with ~o~%sx~s~ bullets from ~b~%s~s~.', + ['gave_ammo'] = 'you gave ~o~%sx~s~ bullets to ~y~%s~s~.', + ['recived_ammo'] = 'you recived ~o~%sx~s~ bullets from ~b~%s~s~.', + ['giveammo'] = 'give ammo', ['amount_invalid'] = 'montant invalide', ['players_nearby'] = 'aucun joueur à proximité', ['ex_inv_lim'] = 'action impossible, depassement de la limite d\'inventaire pour ~b~', @@ -141,11 +144,11 @@ Locales['fr'] = { ['weapon_specialcarabine_mk2'] = 'Special Carbine Mk II', ['weapon_bullpruprifle_mk2'] = 'Bullpup Rifle Mk II', ['weapon_pumpshotgun_mk2'] = 'Pump Shotgun Mk II', - ['weapon_marksmanrifle_mk2'] = 'Marksman Rifle Mk II', - ['weapon_assaultrifle_mk2'] = 'Assault Rifle Mk II ', - ['weapon_carbinerifle_mk2'] = 'Carbine Rifle Mk II ', - ['weapon_combatmg_mk2'] = 'Combat MG Mk II', - ['weapon_heavysniper_mk2'] = 'Heavy Sniper Mk II', - ['weapon_pistol_mk2'] = 'Pistol Mk II', - ['weapon_smg_mk2'] = 'SMG Mk II', + ['weapon_marksmanrifle_mk2'] = 'Marksman Rifle Mk II', + ['weapon_assaultrifle_mk2'] = 'Assault Rifle Mk II ', + ['weapon_carbinerifle_mk2'] = 'Carbine Rifle Mk II ', + ['weapon_combatmg_mk2'] = 'Combat MG Mk II', + ['weapon_heavysniper_mk2'] = 'Heavy Sniper Mk II', + ['weapon_pistol_mk2'] = 'Pistol Mk II', + ['weapon_smg_mk2'] = 'SMG Mk II', } diff --git a/locales/sv.lua b/locales/sv.lua index 00044a41..5c6db2ff 100644 --- a/locales/sv.lua +++ b/locales/sv.lua @@ -141,4 +141,18 @@ Locales['sv'] = { ['weapon_flashlight'] = 'flashlight', ['gadget_nightvision'] = 'night vision', ['gadget_parachute'] = 'parachute', + ['weapon_flare'] = 'Fusée Détresse', + ['weapon_snspistol_mk2'] = 'SNS Pistol Mk II', + ['weapon_revolver_mk2'] = 'Heavy Revolver Mk II', + ['weapon_doubleaction'] = 'Double-Action Revolver', + ['weapon_specialcarabine_mk2'] = 'Special Carbine Mk II', + ['weapon_bullpruprifle_mk2'] = 'Bullpup Rifle Mk II', + ['weapon_pumpshotgun_mk2'] = 'Pump Shotgun Mk II', + ['weapon_marksmanrifle_mk2'] = 'Marksman Rifle Mk II', + ['weapon_assaultrifle_mk2'] = 'Assault Rifle Mk II ', + ['weapon_carbinerifle_mk2'] = 'Carbine Rifle Mk II ', + ['weapon_combatmg_mk2'] = 'Combat MG Mk II', + ['weapon_heavysniper_mk2'] = 'Heavy Sniper Mk II', + ['weapon_pistol_mk2'] = 'Pistol Mk II', + ['weapon_smg_mk2'] = 'SMG Mk II', } diff --git a/server/main.lua b/server/main.lua index 147690f5..6c4bc028 100644 --- a/server/main.lua +++ b/server/main.lua @@ -370,17 +370,9 @@ AddEventHandler('esx:giveInventoryItem', function(target, type, itemName, itemCo sourceXPlayer.removeWeapon(itemName) targetXPlayer.addWeapon(itemName, itemCount) - local weaponLabel = itemName - - for i=1, #Config.Weapons, 1 do - if Config.Weapons[i].name == itemName then - weaponLabel = Config.Weapons[i].label - break - end - end - + local weaponLabel = ESX.GetWeaponLabel(itemName) TriggerClientEvent('esx:showNotification', _source, _U('gave_weapon', weaponLabel, itemCount, targetXPlayer.name)) - TriggerClientEvent('esx:showNotification', target, _U('recived_weapon', weaponLabel, itemCount, sourceXPlayer.name)) + TriggerClientEvent('esx:showNotification', target, _U('recived_weapon', weaponLabel, itemCount, sourceXPlayer.name)) end end) @@ -505,18 +497,9 @@ AddEventHandler('esx:removeInventoryItem', function(type, itemName, itemCount) elseif type == 'item_weapon' then local xPlayer = ESX.GetPlayerFromId(source) - local weaponLabel = itemName - local weaponName = nil - local weaponPickup = nil - - for i=1, #Config.Weapons, 1 do - if Config.Weapons[i].name == itemName then - weaponLabel = Config.Weapons[i].label - weaponName = Config.Weapons[i].name - weaponPickup = 'PICKUP_'..weaponName - break - end - end + local weaponName = itemName + local weaponLabel = ESX.GetWeaponLabel(weaponName) + local weaponPickup = 'PICKUP_' .. weaponName TriggerClientEvent('esx:showNotification', _source, _U('delete_five_min'))