GE Lua Documentation

Press F to search!

setVehicleDirty

Definition


-- @/lua/ge/extensions/gameplay/garageMode.lua:49

local function setVehicleDirty(vehicleDirty, switchedToNewVehicle)
  if not career_career.isActive() then return end
  -- TODO disabled dirty vehicle in career because we got rid of the save button
  --guihooks.trigger("garageVehicleDirtied", {vehicleDirty = vehicleDirty, switchedToNewVehicle = switchedToNewVehicle})
end

Callers

@/lua/ge/extensions/career/modules/painting.lua
  close(true)
  career_modules_inventory.setVehicleDirty(inventoryId)
  career_saveSystem.saveCurrent({inventoryId})
@/lua/ge/extensions/career/modules/inventory.lua

local function setVehicleDirty(inventoryId)
  dirtiedVehicles[inventoryId] = true
  for vehId, inventoryId in pairs(vehIdToInventoryId) do
    setVehicleDirty(inventoryId)
      vehInfo.timeToAccess = vehInfo.timeToAccess - dtReal
      setVehicleDirty(inventoryId)
      if vehInfo.timeToAccess < 0 then
        career_modules_fuel.minimumRefuelingCheck(vehObj:getId())
        setVehicleDirty(inventoryId)
        guihooks.trigger('ChangeState', {state = 'play'})
  Engine.Audio.playOnce('AudioGui','event:>UI>Career>Buy_01')
  setVehicleDirty(inventoryId)
end
  vehicles[inventoryId].niceName = name
  setVehicleDirty(inventoryId)
  return true
@/lua/ge/extensions/gameplay/garageMode.lua
  if state == "paint" then
    setVehicleDirty(true)
  end

  setVehicleDirty(false)
  setActive(false)
@/lua/ge/extensions/career/modules/insurance/insurance.lua
local function onAfterVehicleRepaired(vehInfo)
  career_modules_inventory.setVehicleDirty(vehInfo.id)
  local vehId = career_modules_inventory.getVehicleIdFromInventoryId(vehInfo.id)
    vehInfo.delayReason = nil
    career_modules_inventory.setVehicleDirty(inventoryId)
  end
@/lua/ge/extensions/career/modules/tuning.lua
  career_modules_vehiclePerformance.invalidateCertification(inventoryId)
  career_modules_inventory.setVehicleDirty(inventoryId)
  career_modules_playerAttributes.addAttributes({money=-shoppingCart.total}, {tags={"tuning", "buying"}, label="Tuned vehicle"})
@/lua/ge/extensions/career/modules/vehiclePerformance.lua
      career_modules_inventory.getVehicles()[inventoryId].certificationData = certificationData
      career_modules_inventory.setVehicleDirty(inventoryId)
      return true
@/lua/ge/extensions/career/modules/partInventory.lua
  end
  career_modules_inventory.setVehicleDirty(inventoryId)
end