Updated NUI Callback Support.

This commit is contained in:
Pickle
2023-02-06 21:49:18 -05:00
committed by GitHub
parent aa9f2148c0
commit f52bf4cccb

View File

@@ -209,8 +209,9 @@ end)
RegisterNUICallback("pageLoaded", function() RegisterNUICallback("pageLoaded", function(cb)
waitForLoad = false waitForLoad = false
if cb then cb() end
end) end)
AddEventHandler('onResourceStop', function(name) AddEventHandler('onResourceStop', function(name)
@@ -220,4 +221,4 @@ AddEventHandler('onResourceStop', function(name)
DeleteEntity(Locations[i].obj) DeleteEntity(Locations[i].obj)
end end
end end
end) end)