Skip to main content
To restrict vehicles on a BeamMP server, add a Lua plugin in Resources/Server that listens to onVehicleSpawn and onVehicleEdited, reads the vehicle model from the jbm field and returns 1 to cancel any model that isn’t on your allowlist. To limit how many cars each player can have, set Max Cars (1 to 10) on the Startup page instead.

Before you start

How to set up a BeamMP vehicle allowlist

1

Create the plugin

In Files, open Resources/Server, create a folder called VehicleAllowlist and inside it a file called main.lua.
2

Paste the code

Paste the example below and save.
4

Find the model names

Spawn vehicles in game. The console prints each model name, for example [LUA] Driver42 spawned van. Add the names you want to allow to the list and save.

Example allowlist plugin

To block a few models instead of allowing a few, change the check to if blocked[vehicle.jbm] then and list the blocked models.

How to limit cars per player

Open Startup and set Max Cars (“The maximum number of cars allowed to be spawned per player.”), from 1 to 10. BeamMP deletes any car over the limit straight away. See max players and cars.

Frequently asked questions

Do I need to restart after changing the list?

Saving main.lua in the plugin folder reloads the plugin. A new plugin folder needs a restart.

Does the allowlist work with modded vehicles?

Yes. A modded vehicle has its own model name. Spawn it once and copy the name from the console.

Why is every vehicle blocked?

The names in your list don’t match the model names. Copy them exactly from the console lines the plugin prints, and keep the = true, after each one.

BeamMP server guide

Every BeamMP page in one place.

Lua events

All server events and functions.

Max players and cars

Player slots and Max Cars.

Anti-grief protection

Keep your server fair.

Add chat commands

Another Lua plugin example.

Checked against the official BeamMP server scripting reference on 3 November 2026, with file paths from our Game Panel (BeamMP Server v3.9.3, Lua 5.3.5).

Need Extra Help?

If you encounter any issues, our support team is ready to assist:

Save on Your Hosting

Ready to upgrade your hosting? Use code KB20 at checkout for 20% off your first order!

Last Updated: November 2026