mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-19 10:28:33 +00:00
feat(web/dialog): alert dialog
This commit is contained in:
1 parent
76fcc007c4
commit
186014f95e
4 files changed
+119
-23
No files matched your search
@@ -0,0 +1,12 @@
|
||||
function lib.alertDialog(data)
|
||||
SetNuiFocus(true, true)
|
||||
SendNUIMessage({
|
||||
action = 'sendAlert',
|
||||
data = data
|
||||
})
|
||||
end
|
||||
|
||||
RegisterNUICallback('closeAlert', function(_, cb)
|
||||
cb(1)
|
||||
SetNuiFocus(false, false)
|
||||
end)
|
||||
Reference in new issue
Block a user