Link Search Menu Expand Document

Configuration

config.json

The only file you will need to change to configure the map is the config.json file. This file can have comments in it without breaking the interface. Below is a table with the different things you can put into your config.json file.

NameTypeExampleWhat it does
debugbooleanfalseThis just enables/disables debug mode.
tileDirectorystring“images/tiles”This is the directory that the interface should look in to find the tiled images. Note: This is used in the maps array
iconDirectorystring“images/icons”This is where the interface can find the icon images
showIdentifiersbooleanfalseThis determines whether the interface shows a player’s identifier or not. Note: This may be an IP (if server has it enabled).
defaultsdefault object"defaults": { "ip": "tgrhavoc.me", "fivemPort": "30120", "socketPort": "30121", "liveMapName": "live_map"}This is the default the interface should fall back to use if a server doesn’t have the value set.
serversserver object"A server": {"ip": "example.com"}This is the object that contains the server data for the interface.
mapsarray of map objects"maps": [{"name": "Normal", "url": "{tileDirectory}/normal/minimap_sea_{y}_{x}.png"}]An array containing the different map tiles available to use on the interface.

defaults object

NameTypeExampleWhat it does
ipstring“example.com”The public IP for your FiveM server.
socketPortnumber30121The port your LiveMap resource is listening on.
reverseProxyreserse proxy object{"blips": "https://example.com/blips.json"}If you have a reverse proxy set up for the blips and socket connection, then use this.

reverse proxy object

NameTypeExampleWhat it does
socketstring“wss://echo.example.com”The URL to the reverse proxy for the websocket connection. If you’re using NGINX, the following should be useful.
blipsstring“https://example.com/server1/blips.json”The URL to the reverse proxy for the blips file (can even just be a static JSON file on a webserver).

server object

The server objects must have a key whoes value is the server’s name. For example, if you have a server called This is my cool server then, the server entry would look like.

"servers" : {
    "This is my cool server" : {
        "ip": "example.com"
    }
}

If you don’t set something in this object, the interface will look at the “defaults” object and use it’s values instead. It’s therefore best practice to only use the revserProxy property in the server’s object itself.

NameTypeExampleWhat it does
ipstring“example.com”The public IP for your FiveM server.
socketPortnumber30121The port your LiveMap resource is listening on.
reverseProxyreserse proxy object{"blips": "https://example.com/blips.json"}If you have a reverse proxy set up for the blips and socket connection, then use this.

map object

NameTypeExampleWhat it does
namestring“Postal”The name of this tileset. This is used when the user wants to change the map
urlstring“{tileDirectory}/postal/minimap_sea_{y}_{x}.png”Where the images are located for this map. GTA’s minimap files have the Y coordinate before the X coordinate hence the {y}_{x} in the string.
minZoomnumber-3How many times can the user zoom out for this tile set. The lower the number, the more they can zoom out.

config.html

If you’re more of a visual person and, don’t want to write a bunch of JSON to set up your server, you can use the utility page config.html. To get to this, just navigate to utils/config.html in your browser. This will give you a basic interface which, you can use to quickly configure the interface.

Please note: You cannot add maps via this page. You will need to do this manually.


Table of contents


Back to top