mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 14:38:50 +00:00
feat(nui): WIP manual pagination
This commit is contained in:
1 parent
3a1462e0c0
commit
7560099231
8 files changed
+67
-57
No files matched your search
@@ -1,12 +1,8 @@
|
||||
RegisterNetEvent('oxmysql:openUi', function(data)
|
||||
SendNUIMessage({
|
||||
action = 'init',
|
||||
action = 'openUI',
|
||||
data = data
|
||||
})
|
||||
SendNUIMessage({
|
||||
action = 'setVisible',
|
||||
data = true
|
||||
})
|
||||
SetNuiFocus(true, true)
|
||||
end)
|
||||
|
||||
@@ -15,8 +11,8 @@ RegisterNUICallback('exit', function(_, cb)
|
||||
SetNuiFocus(false, false)
|
||||
end)
|
||||
|
||||
RegisterNUICallback('fetchResource', function(resource, cb)
|
||||
TriggerServerEvent('oxmysql:fetchResource', resource)
|
||||
RegisterNUICallback('fetchResource', function(data, cb)
|
||||
TriggerServerEvent('oxmysql:fetchResource', data)
|
||||
cb(true)
|
||||
end)
|
||||
|
||||
|
||||
Reference in new issue
Block a user