fix(interface/progress) don't use RegisterKeyMapping for redm(#560)

stop redm error as RegisterKeyMapping does not exist
This commit is contained in:
RexshackGaming
2024-04-27 14:35:23 +01:00
committed by GitHub
parent 8bb3b5a835
commit 113f5227e5

View File

@@ -205,7 +205,9 @@ RegisterCommand('cancelprogress', function()
if progress?.canCancel then progress = false end
end)
if isFivem then
RegisterKeyMapping('cancelprogress', locale('cancel_progress'), 'keyboard', 'x')
end
local function deleteProgressProps(serverId)
local playerProps = createdProps[serverId]