feat(web/dialog): alert dialog

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

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)