mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 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',
|
||||
data = data
|
||||
})
|
||||
SendNUIMessage({
|
||||
action = 'setVisible',
|
||||
data = true
|
||||
})
|
||||
SetNuiFocus(true, true)
|
||||
end)
|
||||
|
||||
RegisterNUICallback('exit', function(_, cb)
|
||||
cb(true)
|
||||
SetNuiFocus(false, false)
|
||||
end)
|
||||
|
||||
RegisterNUICallback('fetchResource', function(resource, cb)
|
||||
|
||||
Reference in new issue
Block a user