mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-15 17:33:56 +00:00
refactor(client/interface): nui focus consistency
This commit is contained in:
1 parent
9413f9dae8
commit
c4b87a0d91
4 files changed
+19
-15
No files matched your search
@@ -10,7 +10,7 @@ function lib.skillCheck(difficulty, inputs)
|
||||
if skillcheck then return end
|
||||
skillcheck = promise:new()
|
||||
|
||||
SetNuiFocus(true, false)
|
||||
lib.setNuiFocus(false, true)
|
||||
SendNUIMessage({
|
||||
action = 'startSkillCheck',
|
||||
data = {
|
||||
@@ -24,9 +24,11 @@ end
|
||||
|
||||
RegisterNUICallback('skillCheckOver', function(success, cb)
|
||||
cb(1)
|
||||
|
||||
if skillcheck then
|
||||
lib.resetNuiFocus()
|
||||
|
||||
skillcheck:resolve(success)
|
||||
skillcheck = nil
|
||||
SetNuiFocus(false, false)
|
||||
end
|
||||
end)
|
||||
Reference in new issue
Block a user