refactor(client/interface): nui focus consistency

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

No files matched your search

+2 -3
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