Skip to content

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.

Name Type Example What it does
debug boolean false This just enables/disables debug mode.
tileDirectory string "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
iconDirectory string "images/icons" This is where the interface can find the icon images
showIdentifiers boolean false This determines whether the interface shows a player's identifier or not. Note: This may be an IP (if server has it enabled).
defaults default object "defaults": { "ip": "tgrhavoc.me", "socketPort": "30121"} This is the default the interface should fall back to use if a server doesn't have the value set.
servers server object "A server": {"ip": "example.com"} This is the object that contains the server data for the interface.
maps array 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#

Name Type Example What it does
ip string "example.com" The public IP for your FiveM server.
socketPort number 30121 The port your LiveMap resource is listening on.
reverseProxy reserse 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#

Name Type Example What it does
socket string "wss://echo.example.com" The URL to the reverse proxy for the websocket connection. If you're using NGINX, the following should be useful.
blips string "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.

Name Type Example What it does
ip string "example.com" The public IP for your FiveM server.
socketPort number 30121 The port your LiveMap resource is listening on.
reverseProxy reserse 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#

Name Type Example What it does
name string "Postal" The name of this tileset. This is used when the user wants to change the map
url string "{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.
minZoom number -3 How 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.

Note

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