🛠️Setup

This is a detailed setup guide for Discord2FiveM. If you have any questions before making a purchase, you can contact us on Discord

1. Creating Discord Bot

  1. Create New Application

  2. Select "Bot" from the left side menu and then choose the option to add a new bot

    Make Sure to Enable Message Content Intent

  3. Copy Bot Token by clicking on Copy and Paste that in Config.BotToken

  4. To invite the bot into your server, go to OAuth2 and select URL Generator. Then, choose "Bot" and "Administrator" from the menu, copy the bot invite link, paste it into your browser, and invite the bot to your Discord server where you want the command bot script to work

  5. Make sure you give the bot admin permissions so it can respond to your commands

2. Setting Script Config

  1. To set up your command channel, select it from your Discord server and generate a webhook link. Then, copy the link and paste it into the Config.WebHook section.

  2. If you haven't already enabled Developer Mode in your Discord settings, do so now. Then, copy the ID of the channel where you set up the webhook earlier, and paste it into the Config.ChannelID section

  3. Now To get your Guild ID, right-click on your Discord server and select 'Copy ID.' Then, paste the ID into the Config.GuildId section

  4. Edit Config.ReplyUserName to change Bot Username

  5. Add Bot Avatar URL in Config.AvatarURL

  6. Bot Command Prefix can be edited in Config.Prefix

  7. Add your commands and role into Config.RestrictCommand to restrict commands to specific roles

Last updated