From cbfd79a2e83ed25223d6b137d42565354d40e1d0 Mon Sep 17 00:00:00 2001 From: StevSpotted <41762297+StevSpotted@users.noreply.github.com> Date: Sun, 10 Jul 2022 01:03:37 +0200 Subject: [PATCH] Update main.lua The key for show rank doesn't work and after this modification this work --- client/main.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/main.lua b/client/main.lua index 9ed9de1..6ac132f 100644 --- a/client/main.lua +++ b/client/main.lua @@ -7,6 +7,9 @@ elseif Config.UseQBCore then event = 'QBCore:Client:OnPlayerLoaded' end + +RegisterKeyMapping('+xperience', 'Show Rank Bar', 'keyboard', Config.UIKey) + function Xperience:Init(data) self.CurrentXP = tonumber(data.xp) self.CurrentRank = tonumber(data.rank) @@ -19,7 +22,6 @@ function Xperience:Init(data) end end) RegisterCommand('-xperience', function() end) - RegisterKeyMapping('+xperience', 'Show Rank Bar', 'keyboard', Config.UIKey) TriggerEvent('chat:addSuggestion', '/addXP', 'Give XP to player', { { name = "playerId", help = 'The player\'s ID' },