mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 14:38:50 +00:00
23 lines
498 B
Lua
23 lines
498 B
Lua
RegisterNetEvent('oxmysql:openUi', function(data)
|
|
SendNUIMessage({
|
|
action = 'init',
|
|
data = data
|
|
})
|
|
SetNuiFocus(true, true)
|
|
end)
|
|
|
|
RegisterNUICallback('exit', function(_, cb)
|
|
cb(true)
|
|
end)
|
|
|
|
RegisterNUICallback('fetchResource', function(resource, cb)
|
|
TriggerServerEvent('oxmysql:fetchResource', resource)
|
|
cb(true)
|
|
end)
|
|
|
|
RegisterNetEvent('oxmysql:loadResource', function(data)
|
|
SendNUIMessage({
|
|
action = 'loadResource',
|
|
data = data
|
|
})
|
|
end) |