Skip to content

Commit

Permalink
refactor(client/main.lua): Add ESX.RegisterInput
Browse files Browse the repository at this point in the history
Add ESX.RegisterInput and change default key to prevent interference with [ox_inventory glove box](https://github.com/overextended/overextended.github.io/blob/main/pages/ox_inventory.mdx?plain=1#L93)
  • Loading branch information
feelfreetofee authored Oct 13, 2024
1 parent aea392f commit 05f33a3
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 05f33a3

Please sign in to comment.