GE Lua Documentation

Press F to search!

isPlayerVehConfig

Definition


-- @/lua/ge/ge_utils.lua:1380

function isPlayerVehConfig(vpath)
  local osSep = package.config:sub(1,1)
  if not shipping_build and FS:getGamePath() == FS:getUserPath() then return false end --make sure you don't delete official config
  return string.startswith(FS:getFileRealPath(vpath), FS:getUserPath().."vehicles"..osSep) and string.endswith(vpath, ".pc")
end

Callers

@/lua/ge/extensions/core/vehicle/partmgmt.lua
  end
  isPlayerConfig = isPlayerVehConfig(playerVehicle.vehicleDirectory .. filename)
  return isPlayerConfig