BeamMP supports AI traffic through BeamNG.drive's built-in Traffic app. The traffic vehicles are simulated by the players' clients rather than the dedicated server, so there is no server-side toggle, but the server's per-player vehicle limit must be high enough to allow the traffic cars to exist.
Before You Start
AI traffic uses the same vehicle slots as player-spawned cars. Raise MaxCars (the per-player vehicle limit) before spawning traffic, or the traffic will fail to appear or disconnect clients. A value of 10 leaves room for several AI cars plus your own vehicles.
Step 1: Set the Vehicle Limit
- In the NolimitHost Game Panel, stop your BeamMP server.
- Open the Startup tab and set Max Cars, or edit
MaxCars in ServerConfig.toml directly:
[General]
MaxCars = 10
- Save and start the server.
Step 2: Add the Traffic App In-Game
- Connect to your server through the BeamMP client. See Connect to Your Server.
- Press Esc to open the menu, then go to UI Apps and choose Add App.
- Search for Traffic and add the Traffic app.
- Use the Traffic panel to set the number of cars, the speed limit, and the AI mode (for example Chase, Flee, Random, or Traffic).
Tip: To remove the app, open UI Apps, choose Edit Apps, and click the X next to Traffic.
Things to Keep in Mind
- Everyone counts toward the limit. All cars on the map, whether spawned by players or by traffic, share the per-player vehicle cap, so raise
MaxCars before spawning traffic.
- Traffic is not persistent. AI cars you add are removed when you leave the server.
- Low limits crash clients. On servers with a very low
MaxCars, spawning traffic can crash BeamNG instead of simply failing, because BeamMP blocks the extra vehicles while the game still tries to create them.
- Performance. AI traffic is simulated by clients, so more cars means more CPU load for everyone connected.
Important: On some servers a plugin that manages the vehicle limit (such as CobaltEssentials) can override MaxCars with its own default. If traffic still fails after raising the limit, check the server's plugins for a vehicle-cap setting.