feat(web/dialog): alert dialog

This commit is contained in:
Luke committed 2022-06-11 11:33:15 +02:00
1 parent 76fcc007c4
commit 186014f95e
4 files changed
+119 -23

No files matched your search

+12
View File
@@ -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)