mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
refactor(client/interface): nui focus consistency
This commit is contained in:
@@ -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