onVehicleMapmgrUpdate
Definition
-- @/lua/ge/extensions/gameplay/traffic.lua:928
local function onVehicleMapmgrUpdate(id) -- when the latest spawned vehicle processes its mapmgr, complete the spawning process
-- this may break if the last spawned vehicle fails for some reason
if vehPool and spawnProcess.vehList and spawnProcess.vehList[#spawnProcess.vehList] == id then
if not auxiliaryData.worldLoaded then
auxiliaryData.worldLoaded = true
end
if spawnProcess.waitForUi then
guihooks.trigger('app:waiting', false)
guihooks.trigger('QuickAccessMenu')
end
table.clear(spawnProcess)
vehPool._updateFlag = true
end
end
Callers