GE Lua Documentation

Press F to search!

getPaintFiles

Definition


-- @/lua/ge/extensions/core/vehicles.lua:446

local function getPaintFiles()
  if not filesPaintsCache then filesJsonCache, filesPCCache, filesImagesCache, filesPaintsCache, filesParsedCache = computeFilesCaches() end
  return filesPaintsCache
end

Callers

@/lua/ge/extensions/core/vehiclePaints.lua
  multiPaintSetupsByIdCache = {}
  for _, paintFilePath in pairs(core_vehicles.getPaintFiles()) do
    local paintFile = core_vehicles.getFilesParsed()[paintFilePath]
  end
  log("I","",string.format("Found %d paints, %d paint collections, %d multiPaintSetups in %d paint libraries, %d same-name paint names", #tableKeys(paintsByIdCache), #tableKeys(paintCollectionsByIdCache), #tableKeys(multiPaintSetupsByIdCache), #tableKeys(core_vehicles.getPaintFiles()), multiNames))
end