Skip to content

Commit

Permalink
fix(interface/progress) don't use RegisterKeyMapping for redm(#560)
Browse files Browse the repository at this point in the history
stop redm error as RegisterKeyMapping does not exist
  • Loading branch information
RexShack authored Apr 27, 2024
1 parent 8bb3b5a commit 113f522
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resource/interface/client/progress.lua
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ RegisterCommand('cancelprogress', function()
if progress?.canCancel then progress = false end
end)

RegisterKeyMapping('cancelprogress', locale('cancel_progress'), 'keyboard', 'x')
if isFivem then
RegisterKeyMapping('cancelprogress', locale('cancel_progress'), 'keyboard', 'x')
end

local function deleteProgressProps(serverId)
local playerProps = createdProps[serverId]
Expand Down

0 comments on commit 113f522

Please sign in to comment.