mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-20 10:38:33 +00:00
refactor(web/radial): disable nui focus when closing with x button
This commit is contained in:
1 parent
7acad823b8
commit
71885f5831
2 files changed
+16
-1
No files matched your search
@@ -97,6 +97,17 @@ RegisterNUICallback('radialBack', function(_, cb)
|
||||
})
|
||||
end)
|
||||
|
||||
RegisterNUICallback('radialClose', function(_, cb)
|
||||
cb(1)
|
||||
|
||||
if not isOpen then return end
|
||||
|
||||
SetNuiFocus(false, false)
|
||||
|
||||
isOpen = false
|
||||
currentRadial = nil
|
||||
end)
|
||||
|
||||
lib.addKeybind({
|
||||
name = 'ox_lib-radial',
|
||||
description = 'Open radial menu',
|
||||
|
||||
Reference in new issue
Block a user