feat(nui): WIP manual pagination

This commit is contained in:
Luke committed 2022-01-04 18:36:52 +01:00
1 parent 3a1462e0c0
commit 7560099231
8 files changed
+67 -57

No files matched your search

+3 -7
View File
@@ -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)