Skip to content

Commit

Permalink
Merge pull request #29 from feelfreetofee/patch-1
Browse files Browse the repository at this point in the history
refactor(client/main.lua): Add ESX.RegisterInput
  • Loading branch information
Gellipapa authored Oct 13, 2024
2 parents aea392f + 05f33a3 commit 7c38503
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,9 @@ CreateThread(function()
end)

if Config.EnableControls then
RegisterCommand("accessory", function(src)
ESX.RegisterInput('accessory', TranslateCap('keymap'), 'keyboard', 'j', function()
if not ESX.PlayerData.dead then
OpenAccessoryMenu()
end
end)

RegisterKeyMapping("accessory", TranslateCap('keymap'), "keyboard", "k")
end

0 comments on commit 7c38503

Please sign in to comment.