Skip to content

Project CARS: Server Configuration

Learn how to set your Project CARS server name, password, player count, and secure mode, and how to choose your own track and session in server_custom.cfg.

26 November 20265 min read2 Views0 helpful

Introduction

With the right configuration, you can turn your Project CARS game server into exactly the server you need for your races: with your own name, a password for private races, the right player count, and, if you like, your own track and fixed rules. In this guide, we’ll show you which settings are available, where to find them in ZapX, and how to add your own lines to server.cfg.

How the configuration works

Project CARS reads its settings from the server.cfg file. You don’t have to create this file yourself: your server generates it each time it starts, using the values you set in ZapX under the Configuration tab, in Startup parameters. That’s why you won’t find server.cfg in the Files tab.

For anything without a startup parameter, such as the track, vehicle class, race duration, or weather, enter the settings in the server_custom.cfg file. Your server appends this file to server.cfg each time it starts.

After you save your changes, ZapX will prompt you to restart the server. Your changes won’t take effect until after the restart.

Startup parameters at a glance

Startup parameterDescription
Server nameYour server’s name in the game’s online browser. Default: ZapX PCars 1 Server
Server passwordPassword required to join. Leave blank for a public server.
Max. playersHow many players can race on your server at the same time, up to 32. Default: 32
Secure modeChecks joining players through Steam, including for VAC bans. Enabled by default.
Important

Project CARS configuration can’t process double quotation marks " or backslashes \. When your server starts, it removes them from Server name and Server password and writes a notice containing removed unsupported characters to the Console. It’s best to avoid these characters so your password works exactly as you entered it.

Tip

According to the official guide, players using the 32-bit version of Project CARS can only see servers with up to 16 players. If your community includes such players, set Max. players to 16.

What your server runs by default

If you don’t set anything yourself, your server chooses the race. It does this using the sms_rotate Lua add-on, which automatically switches to the next example race after each race.

If you’d rather use your own track and rules, disable rotation in server_custom.cfg and specify your session. The next sections show you how.

Custom settings in server_custom.cfg

You’ll find the server_custom.cfg file in the Files tab. Your server creates it the first time it starts and never overwrites it afterward. Each line uses the format Key : Value. Lines starting with // are comments and are ignored.

Your values in server_custom.cfg take precedence over the defaults:

  • If a simple value appears twice, the last value set applies—in this case, yours.
  • For sessionAttributes, your server applies each attribute individually. Any attributes you leave out keep their default values.
  • If you set luaApiAddons, your list replaces the default list sms_base, sms_rotate. The Console will then display server_custom.cfg sets luaApiAddons, the default list (sms_base, sms_rotate) is left out.

The panel manages some keys itself. Your server skips any lines in server_custom.cfg that start with these keys:

name, password, maxPlayerCount, secure, bindIP, hostPort, steamPort, queryPort, enableHttpApi, all keys containing httpApi, luaAddonRoot, luaConfigRoot, luaOutputRoot, logLevel, and eventsLogSize.

The Console will then display server_custom.cfg: skipped … line(s) with keys managed by the panel. Change these values in Startup Parameters instead.

Set your own track and session

  1. In the Files tab, open the server_custom.cfg file.
  2. Disable rotation by loading only the base add-on, then specify your session. Here’s the example from the file without the // comments:
Code
luaApiAddons : [ "sms_base" ]
sessionAttributes : {
    "ServerControlsTrack" : 1,
    "TrackId" : 1988984740,
    "GridSize" : 20,
    "MaxPlayers" : 16,
    "Race1Length" : 5,
}
  1. Save the file and restart your server.

The number for TrackId represents Brands Hatch GP. In Project CARS, tracks, vehicle classes, and vehicles are specified using numbers like these. The easiest way to choose them is in the Configurator, described below.

The main attributes for sessionAttributes:

AttributeDescription
ServerControlsTrack1: Players can’t change the track; your server uses TrackId.
ServerControlsVehicleClass1: Players can only choose vehicles from the VehicleClassId class.
ServerControlsVehicle1: Everyone drives the VehicleModelId vehicle.
GridSizeVehicles in the race, including AI; up to 32 and no more than the track’s number of grid slots.
MaxPlayersHuman players in the session; can’t exceed GridSize.
Practice1Length, QualifyLength, WarmupLengthLength of practice, qualifying, and warm-up in minutes; 0 = none.
Race1LengthRace duration in laps, or in minutes for a timed race.
OpponentDifficultyAI difficulty from 0 to 100.
DateHourRace start time (hour, 0 to 23).
WeatherSlotsNumber of weather slots from 1 to 4; 0 = real-world weather at the track location.
DamageTypeDamage: 0 off, 1 cosmetic only, 2 affects performance, 3 full.
PenaltiesTypePenalties for cutting corners and contact: 0 none, 1 full.
AllowedViewsCameras: 0 all, 2 cockpit/helmet only.
FlagsAdditional options, such as driving aids, filling the grid with AI, timed races, or rolling starts, combined into a single number.
Info

Flags combines many options into a single number. Calculating this value by hand is error-prone. It’s better to use the Configurator.

The Configurator

Under Tools, you’ll find the Configurator for Project CARS. Use it to select your track, vehicle class, vehicle, sessions, date and weather, race rules, and all session options. It then generates a complete server_custom.cfg for you. By default, the Configurator loads only sms_base so your settings aren’t overridden by rotation. Copy the generated content into server_custom.cfg in the Files tab, then restart your server.

Web Configuration Tool

Your server has a Web Configuration Tool for managing it while it’s running. You’ll find it in Overview, where your Username and Password are listed. Select Open Web UI to launch the tool. It’s available whenever your server is running. There, you can view your server settings, the current session, and connected players, and kick or temporarily ban players. To get new login details, select Reset password.

Tip

Back up server_custom.cfg before making major changes. That way, you can always return to the last working version.

Conclusion

You’ve now configured your Project CARS server to suit your needs. Our guide Connect to the server explains how your drivers can join. If something isn’t working as expected, see our guide Common issues. If you have any other questions, our support team is available every day! 🙂

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.