GE Lua Documentation

Press F to search!

resetConfig

Definition


-- @/lua/ge/extensions/core/vehicle/partmgmt.lua:988

local function resetConfig()
  mergeConfig({parts = {}, vars = {}}, true)
end

Callers

@/lua/ge/extensions/editor/util/vehicleSelectUtil.lua
    if data.customConfigPath or data.customConfigActive then
      self:resetConfig()
      self.customConfigPath = data.customConfigActive and data.configPath or data.customConfigPath

function C:resetConfig() -- resets all config data
  self.configs = nil
  self:resetModel()
  self:resetConfig()
  self:resetPaint()
      else
        self:resetConfig()
        self.customConfigPath = customConfigPath
  if updateReason == "model" or not self.model then
    self:resetConfig()
    self:resetPaint()