Skip to content

Commit 90659f2

Browse files
added state to unbind toggleMap from being bound to F2
1 parent 744d6c6 commit 90659f2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

[gameplay]/freeroam/fr_client.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2267,7 +2267,13 @@ function toggleMap()
22672267
showCursor(true)
22682268
end
22692269
end
2270-
bindKey("f2", "down", toggleMap)
2270+
2271+
if getResourceState(getResourceFromName("race")) ~= "running" then
2272+
bindKey("F2", "down", toggleMap)
2273+
elseif (getKeyBoundToFunction(toggleMap) == "F2") then
2274+
unbindKey("F2", "down", toggleMap)
2275+
end
2276+
end
22712277

22722278
function toggleFRWindow()
22732279
if isWindowOpen(wndMain) then

0 commit comments

Comments
 (0)