Skip to content

2) Configuration

VinaStar edited this page Dec 10, 2020 · 10 revisions

Setting Config

Open 'Node/configs/config.json' in a text-editor:

  • debug
    Show more informations in the Node console such as network requests.

  • commandline
    Enable the command line to see and controls the Node.

  • locale
    Set the language file to be loaded.

  • port
    Set the port for the websocket to connect to.

  • reconnectDelay
    Set the delay in which the Node should try to reconnect if FiveM server is down.

  • server_id
    Paste your server ID. (right click server and copy ID)

  • channel_id
    Paste your channel ID for live notifications. (right click channel and copy ID)

  • bot_token
    Paste your bot token. https://discord.com/developers/applications

  • send_join_notification
    Turn on/off notification when a player join the game server

  • send_queued_notification
    Turn on/off notification when a player get queued in the game server

  • send_drop_notification
    Turn on/off notification when a player leave the game server

  • send_kick_notification
    Turn on/off notification when a player get kicked from game server (with commandline)

  • notification_join_color
    The HEX color for join notification

  • notification_queued_color
    The HEX color for queued notification

  • notification_drop_color
    The HEX color for leaving notification

  • notification_kick_color
    The HEX color for kicked notification

Setting Ranks

Open 'Node/configs/ranks.json' in a text-editor:

You can see how Ranks are defined with the default ranks in the file:

  • name
    Define a visible name for the rank.
  • roleId
    Paste the discord role id for this rank.
  • admin
    Set this role as an admin role (cannot be kicked and has ultimate priority)
  • important
    Set this role as important (cannot be kicked unless forced by command, has priority over other lower ranks)

Setting text/languages

Open 'Node/configs/locale-en.json' in a text-editor:

You can create new language file by copying locale-en.json and replacing -en with your language code.
To use a different language file change the locale setting in your config.json

Clone this wiki locally