Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #7 from StevSpotted/patch-1
Browse files Browse the repository at this point in the history
Update main.lua
  • Loading branch information
Mobius1 authored Jul 10, 2022
2 parents 23de48d + cbfd79a commit 0b7d6c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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' },
Expand Down

0 comments on commit 0b7d6c6

Please sign in to comment.