Badger Docs
  • Welcome to Badger Docs
  • Badger's Website
  • Badger's Discord
  • 20% off hosting | Use Code: TheWolfBadger-4765
  • Fivem General Help
    • Updating Server Binaries
    • ACE Permissions
    • Getting Discord Role IDs
    • Setting up a Discord Webhook
    • Discord identifier not found
    • How to set up a Git Repository for my server
  • Fivem Discord Scripts
    • Introduction
    • BadgerTools
    • DiscordChatRoles
    • DiscordAcePerms
    • DiscordPedPerms
    • DiscordWeaponPerms
    • DiscordVehiclesRestrict
    • DiscordTagIDs
    • PoliceEMSActivity
    • BadgerCopChat
    • DiscordDonatorPerks
    • Badger-911
    • Bad-Scoreboard
    • Bad-DiscordQueue
    • Badger_Discord_API
      • Installation
      • GetRoleIdFromRoleName
      • CheckEqual
      • IsDiscordEmailVerified
      • GetDiscordEmail
      • GetDiscordName
      • GetDiscordAvatar
      • GetDiscordNickname
      • GetDiscordRoles
      • GetGuildIcon
      • GetGuildSplash
      • GetGuildName
      • GetGuildDescription
      • GetGuildMemberCount
      • GetGuildOnlineMemberCount
      • GetGuildRoleList
    • DiscordVehicleRestrictions
  • Fivem Misc. Scripts
    • Introduction
    • BadgerAnims
    • BadgerBankRobbery
    • VehicleTrustSystem
    • PedTrustSystem
    • BadgerVoting
    • BadgerTracer
    • Fivem Keybase Anticheat
    • DiscordReports
    • Badger-Priorities
    • Badssentials
    • BadgerStockMarket
    • Badger-Anticheat
    • Badger_Jailing
    • BadgerFires
    • Multiverse-World-Manager
  • Badger Software
    • Introduction
    • FivemDiscordPerms
    • BadgerTrustSystem+
    • BadgerStaffPanel
    • ResourceEventScrambler
    • CollectiveBot
  • Archived Projects
  • SimpleRoleBot
  • EssentialBot
Powered by GitBook
On this page
  • Version 1.0
  • Badger's Discord Community
  • Requirements
  • Configuration
  • Commands
  • Pictures
  • Download

Was this helpful?

  1. Fivem Discord Scripts

BadgerCopChat

PreviousPoliceEMSActivityNextDiscordDonatorPerks

Last updated 4 years ago

Was this helpful?

Version 1.0

This is a pretty simple script, but cool one also. It utilizes a player's discord roles to determine if they are a LEO or not. If they are within the roleList, then they are considered to be a LEO and will have access to use the /leoChat commands.

Badger's Discord Community

Requirements

Configuration

roleList = {
1, -- National Guardsmen
1, -- SASP 
1, -- LSPD 
1, -- Fire/EMS Department
}
prefix = '^0[^3LEO Chat^0] ^r';
  • You will want to replace the 1s with the roleIDs of your respective discord LEO roles. I placed a few common LEO roles as comments next to the 1s for terms of a structure. Keep in mind, you can change all of this, you can also add more roles to this by just adding the roleIDs with commas after them within the {} of the roleList

  • You can change prefix to anything you want, as this will just be the prefix the script displays in front of every message it sends

Commands

/leoChat - Toggles on and off LEO Chat

/leoChat on - Turns LEO Chat on

/leoChat off - Turns LEO Chat off

/leoChat vis - Toggles on and off the visibility of seeing LEO Chat messages from others

Pictures

Download

Developer Discord
LogoGitHub - JaredScar/Badger_Discord_API: A FiveM API Script [created by Badger]GitHub
LogoGitHub - JaredScar/BadgerCopChat: A FiveM scriptGitHub