mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-04 14:38:50 +00:00
fix(client): Set visibility and focus
This commit is contained in:
1 parent
c8857e18c4
commit
33969f57b0
1 file changed
+5
@@ -3,11 +3,16 @@ RegisterNetEvent('oxmysql:openUi', function(data)
|
|||||||
action = 'init',
|
action = 'init',
|
||||||
data = data
|
data = data
|
||||||
})
|
})
|
||||||
|
SendNUIMessage({
|
||||||
|
action = 'setVisible',
|
||||||
|
data = true
|
||||||
|
})
|
||||||
SetNuiFocus(true, true)
|
SetNuiFocus(true, true)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
RegisterNUICallback('exit', function(_, cb)
|
RegisterNUICallback('exit', function(_, cb)
|
||||||
cb(true)
|
cb(true)
|
||||||
|
SetNuiFocus(false, false)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
RegisterNUICallback('fetchResource', function(resource, cb)
|
RegisterNUICallback('fetchResource', function(resource, cb)
|
||||||
|
|||||||
Reference in new issue
Block a user