Link Search Menu Expand Document

Convars

The following convars are available for you to change.

You should already have them in your server.cfg file and looking like the config below.

set socket_port 30121
set livemap_debug "warn" # "[all]" 'trace', 'debug', 'info', 'warn', 'error', 'fatal', 'off'
set blip_file "server/blips.json"
set livemap_access_control "*"

socket_port

Type
Number
Default Value
0

Sets the port the socket server should listen on

livemap_debug

Type
String
Default Value
warn

Sets how much information gets printed to the console.

  • [all] - Print all messages.
  • trace - Pretty much the same as “all”.
  • debug - Show debug and higher messages.
  • info - Show informational messages and higher (e.g. when blips are saved to file);
  • warn - Show warning messages and higher. Warnings shouldn’t interfere with the resource working but, should be looked at.
  • error - Not used.
  • fatal - Not used.
  • off - Turns off all messages.

blip_file

Type
String
Default Value
server/blips.json

Sets the file that will contain the generated blips that is exposed via HTTP.

This directory should be writeable by the FXServer process (on Linux, the user who is running the FX process).

livemap_access_control

Type
String
Default Value
*

Sets the domain that is allowed to access the blips.json file.

E.g. “https://example.com” will only allow the UI on http://example.com to get the blips), “*” will allow everyone no matter the domain.

Note: Only use “*” if you don’t mind anyone being able to access your player’s data and your blip data. It is recommended that you set this to your own website.


Back to top