Menu
 

Set Custom Spawn Regions

Project Zomboid: Configuring Spawn Regions

By default, players can only spawn in Muldraugh, Riverside, Rosewood, or West Point. If you added cool map mods like **Raven Creek** or **Bedford Falls**, you must manually edit the spawnregions.lua file to let players start there.

1. The File

The file defines the list of available towns on the "Create Character" screen.

2. The Location

Create or edit pzserver_spawnregions.lua in the /server-data/Server/ directory.

3. Mod Requirements

You must know the exact internal folder name of the mod map. This is usually found in the mod's workshop folder under media/maps/.

Default Structure

If the file doesn't exist, create it. The standard vanilla content looks like this:

function SpawnRegions()
    return {
        { name = "Muldraugh, KY", file = "media/maps/Muldraugh, KY/spawnpoints.lua" },
        { name = "Riverside, KY", file = "media/maps/Riverside, KY/spawnpoints.lua" },
        { name = "Rosewood, KY", file = "media/maps/Rosewood, KY/spawnpoints.lua" },
        { name = "West Point, KY", file = "media/maps/West Point, KY/spawnpoints.lua" },
    }
end

Adding Modded Maps

To add a mod like **Raven Creek**, you simply add a new line to the table. You need to ensure the path matches the mod's structure.

function SpawnRegions()
    return {
        { name = "Muldraugh, KY", file = "media/maps/Muldraugh, KY/spawnpoints.lua" },
        { name = "Raven Creek", file = "media/maps/RavenCreek/spawnpoints.lua" },
        { name = "Eerie Country", file = "media/maps/Eerie Country/spawnpoints.lua" },
    }
end

Common Mistake: The file = path MUST link to a valid `spawnpoints.lua`. If a map mod does not include this file, you cannot use it as a spawn selection.

Forcing a Single Spawn

If you want everyone to spawn in the same place (e.g., a "Challenge Scenario"), remove all other lines and leave just one:

{ name = "The Prison", file = "media/maps/Rosewood, KY/spawnpoints.lua" },

Then, use the spawnpoints.lua to restrict the coordinates to just the prison cells.

Control the apocalypse. Host your Project Zomboid server with Supercraft and use our File Manager to easily tweak your spawn regions.

Top