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.
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 parameter | Description |
|---|---|
| Server name | Your server’s name in the game’s online browser. Default: ZapX PCars 1 Server |
| Server password | Password required to join. Leave blank for a public server. |
| Max. players | How many players can race on your server at the same time, up to 32. Default: 32 |
| Secure mode | Checks joining players through Steam, including for VAC bans. Enabled by default. |
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.
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.
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.
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 listsms_base,sms_rotate. The Console will then displayserver_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.
- In the Files tab, open the
server_custom.cfgfile. - Disable rotation by loading only the base add-on, then specify your session. Here’s the example from the file without the
//comments:
luaApiAddons : [ "sms_base" ]
sessionAttributes : {
"ServerControlsTrack" : 1,
"TrackId" : 1988984740,
"GridSize" : 20,
"MaxPlayers" : 16,
"Race1Length" : 5,
}
- 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:
| Attribute | Description |
|---|---|
ServerControlsTrack | 1: Players can’t change the track; your server uses TrackId. |
ServerControlsVehicleClass | 1: Players can only choose vehicles from the VehicleClassId class. |
ServerControlsVehicle | 1: Everyone drives the VehicleModelId vehicle. |
GridSize | Vehicles in the race, including AI; up to 32 and no more than the track’s number of grid slots. |
MaxPlayers | Human players in the session; can’t exceed GridSize. |
Practice1Length, QualifyLength, WarmupLength | Length of practice, qualifying, and warm-up in minutes; 0 = none. |
Race1Length | Race duration in laps, or in minutes for a timed race. |
OpponentDifficulty | AI difficulty from 0 to 100. |
DateHour | Race start time (hour, 0 to 23). |
WeatherSlots | Number of weather slots from 1 to 4; 0 = real-world weather at the track location. |
DamageType | Damage: 0 off, 1 cosmetic only, 2 affects performance, 3 full. |
PenaltiesType | Penalties for cutting corners and contact: 0 none, 1 full. |
AllowedViews | Cameras: 0 all, 2 cockpit/helmet only. |
Flags | Additional options, such as driving aids, filling the grid with AI, timed races, or rolling starts, combined into a single number. |
Flags combines many options into a single number. Calculating this value by hand is error-prone. It’s better to use 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.
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.
Back up server_custom.cfg before making major changes. That way, you can always return to the last working version.
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! 🙂
