mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-15 09:33:55 +00:00
refactor(client/radial): change keybind to toggle
This commit is contained in:
1 parent
9df936ab16
commit
b79273c0d7
1 file changed
+6
-2
@@ -149,7 +149,11 @@ lib.addKeybind({
|
||||
description = 'Open radial menu',
|
||||
defaultKey = 'z',
|
||||
onPressed = function()
|
||||
if isOpen or #menuItems == 0 or IsNuiFocused() or IsPauseMenuActive() then return end
|
||||
if isOpen then
|
||||
return lib.hideRadial()
|
||||
end
|
||||
|
||||
if #menuItems == 0 or IsNuiFocused() or IsPauseMenuActive() then return end
|
||||
|
||||
isOpen = true
|
||||
|
||||
@@ -170,7 +174,7 @@ lib.addKeybind({
|
||||
Wait(0)
|
||||
end
|
||||
end,
|
||||
onReleased = lib.hideRadial,
|
||||
-- onReleased = lib.hideRadial,
|
||||
})
|
||||
|
||||
AddEventHandler('onClientResourceStop', function(resource)
|
||||
|
||||
Reference in new issue
Block a user