NAT2K15 Development
DiscordStoreConfigGithubStatus Page
  • NAT2K15 Documentation
  • Paid Scripts
    • FiveM Framework
      • 💻Choose your hosting
        • 💻Windows Hosting
          • 🛢️MySQL Installation (xampp)
          • 🛢️MySQL Connection String
          • 👨‍💻Installing Framework
        • 🐧Linux Hosting
          • 🛢️MySQL Installation
          • 🛢️MySQL Connection String
          • 👨‍💻Installing Framework
        • 🎮Panel Hosting
      • 📋Framework Addons
        • FiveM Scoreboard
        • ☎️Framework 911 (paid)
        • 📲NPWD X Framework
          • 📋Editing NPWD Config
          • 🧠Installing npwd-framework
      • ✒️Change Logs
      • ✍️Developers Usage
        • Client Side Exports
        • Server Side Exports
      • ❌Frequent Issues
    • Personal Vehicle V2
      • Discord Bot Token
      • Installing Dependency
      • Editing the Config
    • FiveM Discord Whitelist
      • Discord Bot Token
      • Edit the config
  • FiveM vMenu Modification
  • FiveM Vehicle & Weapon Management System
    • Installing Dependency
    • Configuration Guide
  • FiveM Admin Zone
  • Paid Bots
    • Ticket Bot V2
      • 💻Windows Hosting Guide
        • 🛢️MySQL Installation (xampp)
        • 👨‍💻Installing Node.js
    • Multi Server Control
      • 💻Windows Hosting Guide
        • 👨‍💻Installing Node.js
        • 🚂Starting The Bot
Powered by GitBook
On this page
  • 📁 File: config.lua
  • 🧾 How to Edit
  • ✅ Example Final Config

Was this helpful?

Edit on GitHub
  1. FiveM Vehicle & Weapon Management System

Configuration Guide

This document explains how to edit your config.lua file to set up your Discord bot token and server-specific settings properly.


📁 File: config.lua

Sample Config:

config = {}

config.token = ""  -- Your Discord bot token goes here
config.serverId = "800444740729307177"

config.commandName = "vehicleconfig"  -- Command to open or trigger vehicle config features
config.adminRefreshRoles = "refresh-roles"  -- Admin-only command to refresh someone's roles

config.allowAdminBypass = true  -- If true, users with admin roles can bypass restrictions

config.adminRoles = {
    "800444938793123871"  -- Role IDs that are allowed to use admin commands
}

🧾 How to Edit

1. 🔐 Insert Your Bot Token

  • Go to your bot application

  • Navigate to Bot > Token > Click "Copy"

  • Paste it into config.token:

config.token = "YOUR_BOT_TOKEN_HERE"

⚠️ Do NOT share this token with anyone!


2. 🆔 Set the Server ID

Replace the existing config.serverId with the ID of the Discord server your bot will operate in:

config.serverId = "YOUR_SERVER_ID"

You can right-click your server in Discord (developer mode enabled) to copy the ID.


3. 🔁 Change Command Names (Optional)

You can customize the slash commands used in Discord:

config.commandName = "vehicleconfig"  -- Main command
config.adminRefreshRoles = "refresh-roles"  -- Admin-only subcommand

4. 👮‍♂️ Enable or Disable Admin Bypass

This allows users with the defined admin roles to bypass restrictions (like checks or cooldowns):

config.allowAdminBypass = true  -- or false

5. 🎖️ Configure Admin Roles

Replace the role IDs with your server's admin role(s). You can add multiple role IDs:

config.adminRoles = {
    "ROLE_ID_1",
    "ROLE_ID_2"
}

To get a role ID in Discord:

  • Enable Developer Mode (User Settings > Advanced > Developer Mode)

  • Right-click a role > Copy ID


✅ Example Final Config

config.token = "MzYzNzEyMzEyMzEyMzEyMzEyMzEy"  -- Your bot token
config.serverId = "123456789012345678"

config.commandName = "vehconfig"
config.adminRefreshRoles = "reloadroles"
config.allowAdminBypass = true

config.adminRoles = {
    "987654321098765432",  -- Admin role 1
    "876543210987654321"   -- Admin role 2
}

PreviousInstalling DependencyNextFiveM Admin Zone

Last updated 4 days ago

Was this helpful?

Get your token from the :

Discord Developer Portal