Skip to content

Commit

Permalink
fix(client): RegisterKeyMapping missing on RedM
Browse files Browse the repository at this point in the history
  • Loading branch information
Blumlaut committed Jun 16, 2024
1 parent 9514a59 commit 7ce86e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions client/admin_client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ RegisterNetEvent("EasyAdmin:SetSetting", function(setting,state)
settings[setting] = state
end)

if not RedM then
RegisterKeyMapping('easyadmin', 'Open EasyAdmin', 'keyboard', "")
end

AddEventHandler('EasyAdmin:SetLanguage', function(newstrings)
strings = newstrings
end)
Expand Down
3 changes: 3 additions & 0 deletions client/gui_c.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ Citizen.CreateThread(function()
RedM = true
settings.button = "PhotoModePc"
end
if not RedM then
RegisterKeyMapping('easyadmin', 'Open EasyAdmin', 'keyboard', "")
end
repeat
Wait(100)
until NativeUI
Expand Down

0 comments on commit 7ce86e5

Please sign in to comment.