1
0
Fork 0
forked from Simnation/Main
Main/resources/[standalone]/oxmysql/ui.lua
2025-06-07 08:51:21 +02:00

24 lines
No EOL
522 B
Lua

RegisterNetEvent('oxmysql:openUi', function(data)
SendNUIMessage({
action = 'openUI',
data = data
})
SetNuiFocus(true, true)
end)
RegisterNUICallback('exit', function(_, cb)
cb(true)
SetNuiFocus(false, false)
end)
RegisterNUICallback('fetchResource', function(data, cb)
TriggerServerEvent('oxmysql:fetchResource', data)
cb(true)
end)
RegisterNetEvent('oxmysql:loadResource', function(data)
SendNUIMessage({
action = 'loadResource',
data = data
})
end)