refactor(client/interface): nui focus consistency

This commit is contained in:
Linden
2023-03-23 05:55:16 +11:00
parent 9413f9dae8
commit c4b87a0d91
4 changed files with 19 additions and 15 deletions

View File

@@ -15,9 +15,8 @@ function lib.alertDialog(data)
if alert then return end
alert = promise.new()
lib.setNuiFocus(false)
SetNuiFocus(true, true)
SetNuiFocusKeepInput(false)
SendNUIMessage({
action = 'sendAlert',
data = data
@@ -33,8 +32,8 @@ function lib.closeAlertDialog()
SendNUIMessage({
action = 'closeAlertDialog'
})
alert:resolve(nil)
alert:resolve(nil)
alert = nil
end