VE Lua Documentation

Press F to search!

disableTracking

Definition


-- @/lua/vehicle/mapmgr.lua:155

local function disableTracking(forceDisable)
  if forceDisable or not playerInfo.anyPlayerSeated then
    M.sendTracking = nop
  end
end

Callers

@/lua/ge/extensions/flowgraph/nodes/gameplay/traffic/parkingTrackVehicle.lua
  if self.pinIn.vehId.value then
    gameplay_parking.disableTracking(self.pinIn.vehId.value)
  end
@/lua/ge/extensions/gameplay/parking.lua
    else -- disables tracking, to optimize performance
      getObjectByID(vehId):queueLuaCommand("mapmgr.disableTracking()")
    end

local function disableTracking(vehId) -- disables parking spot tracking for a driving vehicle
  vehId = vehId or be:getPlayerVehicleID(0)
  if trackedVehData[id] then
    disableTracking(id)
  end
          if data.autoDisableTracking then
            disableTracking(id)
          end
@/lua/ge/extensions/career/modules/playerDriving.lua
  if oldId then
    gameplay_parking.disableTracking(oldId)
  end
    if action == "start" then -- pursuit started
      gameplay_parking.disableTracking(vehId)
      --core_recoveryPrompt.deactivateAllButtons()