Project Zomboid

Project Zomboid

Not enough ratings
How to Add Custom Markers with Markers Server Manager
By OnlyGuts
This guide explains how to add custom markers to your server map using the Markers Server Manager mod.
   
Award
Favorite
Favorited
Unfavorite
Step 1: Locate the File
The file you need to edit is located here:
<mod_folder>/media/lua/client/MarkerClient.lua
Step 2: Add Markers
Find the `markers` table in the file. By default, it looks like this:

local markers = { { x = 11750, y = 8300, text = "Marker 1", color = { r = 1, g = 0, b = 0 } }, { x = 10800, y = 10200, text = "Marker 2", color = { r = 0, g = 1, b = 0 } }, { x = 8800, y = 11800, text = "Marker 3", color = { r = 0, g = 0, b = 1 } }, { x = 6400, y = 5300, text = "Marker 4", color = { r = 1, g = 1, b = 0 } }, { x = 13700, y = 9500, text = "Marker 5", color = { r = 1, g = 0.5, b = 0 } }, } local pvpZones = { { x1 = 9425, y1 = 12841, x2 = 10964, y2 = 12950, text = "PvP Zone", fillColor = { r = 1, g = 0, b = 0, a = 0.3 }, borderColor = { r = 1, g = 0, b = 0, a = 1 } }, }

To add a new marker, insert a new line like this:
{ x = <X>, y = <Y>, text = "Your Marker Name", color = { r = <R>, g = <G>, b = <B> } },

Replace `<X>`, `<Y>`, `<R>`, `<G>`, and `<B>` with your desired coordinates and color.
Step 3: Save and Restart
Save the file and restart your server to apply the changes. The new markers will appear on the map for all players.
File doesn't match the one on the server

So, in this path:

C:\Program Files (x86)\Steam\steamapps\common\ProjectZomboid\steamapps\workshop\content\108600\3412325553\mods\MarkersServerManager\media\lua\client

And in this one:

C:\Program Files (x86)\Steam\steamapps\workshop\content\108600\3412325553\mods\MarkersServerManager\media\lua\client

The MarkerClient.lua file must be the same, otherwise, it will throw this error.
Enjoy
That’s it! Enjoy customizing your server map with markers visible to everyone. 😊
3 Comments
Компас 25 Jan @ 11:50pm 
Немного не понял.
-Открываем
<папка_с_модами>/media/lua/client/MarkerClient.lua
Добавляем позицию, цвет, название.
Но что бы не было ошибки с файлами при подключении нужно этот отредактированный /MarkerClient.lua
Закинуть в
- /media.lua/client в двух местах, верно? Т.е. Клиент подружает конфиг карты с сервера?
Yenzear 22 Jan @ 10:01am 
:steamthumbsup:
2MULT 22 Jan @ 4:59am 
:tbu: