mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-19 18:28:33 +00:00
feat(client/interface): close functions for input and alert dialogs
This commit is contained in:
1 parent
e624aa2559
commit
6a8eb35a0a
6 files changed
+33
No files matched your search
@@ -21,6 +21,17 @@ function lib.alertDialog(data)
|
||||
return Citizen.Await(alert)
|
||||
end
|
||||
|
||||
function lib.closeAlertDialog()
|
||||
if not alert then return end
|
||||
alert:resolve(nil)
|
||||
alert = nil
|
||||
SetNuiFocus(false, false)
|
||||
SendNUIMessage({
|
||||
action = 'closeAlertDialog'
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
RegisterNUICallback('closeAlert', function(data, cb)
|
||||
cb(1)
|
||||
SetNuiFocus(false, false)
|
||||
|
||||
Reference in new issue
Block a user