mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
feat(client/interface): close functions for input and alert dialogs
This commit is contained in:
@@ -40,6 +40,16 @@ function lib.inputDialog(heading, rows)
|
||||
return Citizen.Await(input)
|
||||
end
|
||||
|
||||
function lib.closeInputDialog()
|
||||
if not input then return end
|
||||
input:resolve(nil)
|
||||
input = nil
|
||||
SetNuiFocus(false, false)
|
||||
SendNUIMessage({
|
||||
action = 'closeInputDialog'
|
||||
})
|
||||
end
|
||||
|
||||
RegisterNUICallback('inputData', function(data, cb)
|
||||
cb(1)
|
||||
SetNuiFocus(false, false)
|
||||
|
||||
Reference in New Issue
Block a user