From 113f5227e5cb784cd00c8d21eebdd67cd3e576bf Mon Sep 17 00:00:00 2001 From: RexshackGaming <76662933+RexShack@users.noreply.github.com> Date: Sat, 27 Apr 2024 14:35:23 +0100 Subject: [PATCH] fix(interface/progress) don't use RegisterKeyMapping for redm(#560) stop redm error as RegisterKeyMapping does not exist --- resource/interface/client/progress.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resource/interface/client/progress.lua b/resource/interface/client/progress.lua index ec404a0f8..e873d7d6b 100644 --- a/resource/interface/client/progress.lua +++ b/resource/interface/client/progress.lua @@ -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]