GE Lua Documentation

Press F to search!

getFilesJson

Definition


-- @/lua/ge/extensions/core/vehicles.lua:424
local function getFilesJson()
  if not filesJsonCache then filesJsonCache, filesPCCache, filesImagesCache, filesPaintsCache, filesParsedCache = computeFilesCaches() end
  return filesJsonCache
end

Callers

@/lua/ge/extensions/core/vehicles.lua
    -- Get the models. They are the directories one level under vehicles folder
    for _, path in ipairs(getFilesJson()) do
      -- name of a file or directory can have alphanumerics, hyphens and underscores.