GE Lua Documentation

Press F to search!

onTrafficStarted

Definition


-- @/lua/ge/extensions/gameplay/missions/missionManager.lua:726

local function trafficActivated()
  if not taskData.active or not taskData.steps[taskData.currentStep] or not taskData.steps[taskData.currentStep].waitForTraffic then
    return
  end
  taskData.steps[taskData.currentStep].activated = true
end

Callers

@/lua/ge/extensions/gameplay/traffic.lua

local function onTrafficStarted()
  state = 'on'
@/lua/ge/extensions/career/modules/playerDriving.lua

local function onTrafficStarted()
  if not career_career.tutorialEnabled and not gameplay_missions_missionManager.getForegroundMissionId() then
@/lua/ge/extensions/gameplay/police.lua

local function onTrafficStarted()
  local policeAmount, propAmount = tableSize(policeVehs), #policePropIds