Use new key register

This commit is contained in:
ElPumpo
2020-01-19 17:57:28 +01:00
parent 732e1f9c33
commit 133825dbea
9 changed files with 49 additions and 11 deletions
+6 -9
View File
@@ -436,16 +436,13 @@ Citizen.CreateThread(function()
end
end)
-- Menu interactions
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if IsControlJustReleased(0, 289) and IsInputDisabled(0) and not isDead and not ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then
ESX.ShowInventory()
end
RegisterCommand('showinventory', function()
if not isDead and not ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then
ESX.ShowInventory()
end
end)
end, false)
RegisterKeyMapping('showinventory', _U('keymap_showinventory'), 'keyboard', 'F2')
-- Disable wanted level
if Config.DisableWantedLevel then
+5
View File
@@ -40,6 +40,10 @@ Locales['br'] = {
['threw_weapon_already'] = 'you already carry the same weapon',
['threw_cannot_pickup'] = 'you cannot pickup that because your inventory is full!',
['threw_pickup_prompt'] = 'press ~y~E~s~ to pickup',
-- Key mapping
['keymap_showinventory'] = 'show Inventory',
-- Salary related
['received_salary'] = 'voce recebeu seu salario: ~g~$%s~s~ ',
['received_help'] = 'voce recebeu seu cheque de bem-estar: ~g~$%s~s~ ',
@@ -73,6 +77,7 @@ Locales['br'] = {
['command_clearinventory'] = 'clear all items from inventory',
['command_clearloadout'] = 'remove all weapons from loadout',
['command_playerid_param'] = 'specify playerId or leave blank for yourself',
-- Locale settings
['locale_digit_grouping_symbol'] = ' ',
['locale_currency'] = '$%s',
+6
View File
@@ -40,6 +40,11 @@ Locales['cs'] = {
['threw_weapon_already'] = 'you already carry the same weapon',
['threw_cannot_pickup'] = 'you cannot pickup that because your inventory is full!',
['threw_pickup_prompt'] = 'press ~y~E~s~ to pickup',
-- Key mapping
['keymap_showinventory'] = 'show Inventory',
-- Salary related
['received_salary'] = 'obdrželi jste výplatu: ~g~$%s~s~',
['received_help'] = 'obdrželi jste sociální dávku: ~g~$%s~s~',
@@ -73,6 +78,7 @@ Locales['cs'] = {
['command_clearinventory'] = 'clear all items from inventory',
['command_clearloadout'] = 'remove all weapons from loadout',
['command_playerid_param'] = 'specify playerId or leave blank for yourself',
-- Locale settings
['locale_digit_grouping_symbol'] = ' ',
['locale_currency'] = '$%s',
+5
View File
@@ -40,6 +40,10 @@ Locales['de'] = {
['threw_weapon_already'] = 'you already carry the same weapon',
['threw_cannot_pickup'] = 'you cannot pickup that because your inventory is full!',
['threw_pickup_prompt'] = 'press ~y~E~s~ to pickup',
-- Key mapping
['keymap_showinventory'] = 'show Inventory',
-- Salary related
['received_salary'] = 'du hast dein Gehalt erhalten: ~g~$%s~s~',
['received_help'] = 'du hast deine Sozialhilfe erhalten: ~g~$%s~s~',
@@ -73,6 +77,7 @@ Locales['de'] = {
['command_clearinventory'] = 'clear all items from inventory',
['command_clearloadout'] = 'remove all weapons from loadout',
['command_playerid_param'] = 'specify playerId or leave blank for yourself',
-- Locale settings
['locale_digit_grouping_symbol'] = ' ',
['locale_currency'] = '$%s',
+6 -1
View File
@@ -40,12 +40,16 @@ Locales['en'] = {
['threw_weapon_already'] = 'you already carry the same weapon',
['threw_cannot_pickup'] = 'you cannot pickup that because your inventory is full!',
['threw_pickup_prompt'] = 'press ~y~E~s~ to pickup',
-- Key mapping
['keymap_showinventory'] = 'show Inventory',
-- Salary related
['received_salary'] = 'you received your salary: ~g~$%s~s~',
['received_help'] = 'you recieved your welfare check: ~g~$%s~s~',
['company_nomoney'] = 'the company you\'re employeed at is too poor to pay out your salary',
['received_paycheck'] = 'received paycheck',
['bank'] = 'bank',
['bank'] = 'maze Bank',
['black_money'] = 'dirty Money',
['act_imp'] = 'action impossible',
@@ -73,6 +77,7 @@ Locales['en'] = {
['command_clearinventory'] = 'clear all items from inventory',
['command_clearloadout'] = 'remove all weapons from loadout',
['command_playerid_param'] = 'specify playerId or leave blank for yourself',
-- Locale settings
['locale_digit_grouping_symbol'] = ',',
['locale_currency'] = '$%s',
+5
View File
@@ -40,6 +40,10 @@ Locales['fi'] = {
['threw_weapon_already'] = 'you already carry the same weapon',
['threw_cannot_pickup'] = 'you cannot pickup that because your inventory is full!',
['threw_pickup_prompt'] = 'press ~y~E~s~ to pickup',
-- Key mapping
['keymap_showinventory'] = 'show Inventory',
-- Salary related
['received_salary'] = 'sinä vastaanotit palkkaa: ~g~$%s~s~',
['received_help'] = 'sinä vastaanotit valtion tukea: ~g~$%s~s~',
@@ -73,6 +77,7 @@ Locales['fi'] = {
['command_clearinventory'] = 'clear all items from inventory',
['command_clearloadout'] = 'remove all weapons from loadout',
['command_playerid_param'] = 'specify playerId or leave blank for yourself',
-- Locale settings
['locale_digit_grouping_symbol'] = ' ',
['locale_currency'] = '$%s',
+5
View File
@@ -40,6 +40,10 @@ Locales['fr'] = {
['threw_weapon_already'] = 'you already carry the same weapon',
['threw_cannot_pickup'] = 'you cannot pickup that because your inventory is full!',
['threw_pickup_prompt'] = 'press ~y~E~s~ to pickup',
-- Key mapping
['keymap_showinventory'] = 'show Inventory',
-- Salary related
['received_salary'] = 'vous avez reçu votre salaire: ~g~$%s~s~',
['received_help'] = 'vous avez reçu une aide de l\'état: ~g~$%s~s~',
@@ -73,6 +77,7 @@ Locales['fr'] = {
['command_clearinventory'] = 'effacer tout les items de l\'inventaire',
['command_clearloadout'] = 'retirer toutes les armes de l\'équipement',
['command_playerid_param'] = 'spécifiez un playerid ou laissez vide pour vous-même',
-- Locale settings
['locale_digit_grouping_symbol'] = ' ',
['locale_currency'] = '$%s',
+6 -1
View File
@@ -40,6 +40,11 @@ Locales['pl'] = {
['threw_weapon_already'] = 'you already carry the same weapon',
['threw_cannot_pickup'] = 'you cannot pickup that because your inventory is full!',
['threw_pickup_prompt'] = 'press ~y~E~s~ to pickup',
-- Key mapping
['keymap_showinventory'] = 'show Inventory',
-- Salary related
['received_salary'] = 'otrzymałeś wynagrodzenie: ~g~%s$~s~',
['received_help'] = 'otrzymałem zapomogę: ~g~$%s~s~',
@@ -72,7 +77,7 @@ Locales['pl'] = {
['command_clearinventory'] = 'usuń wszystkie przedmioty z ekwipunku',
['command_clearloadout'] = 'usuń wszystkie bronie z wyposażenia',
['command_playerid_param'] = 'id gracza lub zostaw puste dla siebie',
-- Locale settings
['locale_digit_grouping_symbol'] = ' ',
['locale_currency'] = '$%s',
+5
View File
@@ -40,6 +40,10 @@ Locales['sv'] = {
['threw_weapon_already'] = 'du har redan ett sådant vapen på dig',
['threw_cannot_pickup'] = 'du kan inte plocka upp det på grund av att det kommer ej få plats i ditt förråd!',
['threw_pickup_prompt'] = 'tryck ~y~E~s~ för att plocka upp',
-- Key mapping
['keymap_showinventory'] = 'öppna inventory',
-- Salary related
['received_salary'] = 'du har mottagit din lön på ~g~%s SEK~s~',
['received_help'] = 'du har mottagit bidrag på ~g~%s SEK~s~',
@@ -73,6 +77,7 @@ Locales['sv'] = {
['command_clearinventory'] = 'clear all items from inventory',
['command_clearloadout'] = 'remove all weapons from loadout',
['command_playerid_param'] = 'specify playerId or leave blank for yourself',
-- Locale settings
['locale_digit_grouping_symbol'] = ' ',
['locale_currency'] = '%s SEK',