DiscordChatRoles

Downloads: 212 | Uploaded: 30. Dec 2020

(3)
Free download Scriptsscript free

Required Mod
Description

Documentation as well as updates to this resource have been moved to: https://docs.badger.store/fivem-discord-scripts/discordchatroles

CURRENT VERSION: 7.0

Version 1.0

This is a very simple script that uses IllusiveTea's discordperms for chat roles :slightsmile:

Picture example taken from my RP server:

![](https://i.gyazo.com/c845547a9cbcd99e7716726d53abb216.png)

You must set up IllusiveTea's discord_perms script for this to work properly. ---> https://forum.cfx.re/t/discord-roles-for-permissions-im-creative-i-know/233805

Installation Tutorial

Example of how the chat roles are set up and what you should change:

```

--[[

List in order of least priority to highest with

highest priority overtaking role before it if

they have that discord role.

]]--

roleList = {

{0, "^4Civilian | "}, -- 1

{577968852852539392, "^3Trusted Civ | "}, -- 2

{577661583497363456, "^2Donator | "}, -- 3

{577631197987995678, "^1T-Mod | "}, -- 4

{506211787214159872, "^1Mod | "}, -- 5

{506212543749029900, "^1Admin | "}, -- 6

{577966729981067305, "^6Management | "}, -- 7

{506212786481922058, "^5Owner | "}, -- 8

}

-- For allowing colored chat

allowedColors = {3, 4, 5, 6, 7, 8}

allowedRed = {4, 5, 6, 7, 8}

```

The 1s should be replaced with IDs of the respective roles in your discord server. (0 should stay for Civilian as it is the default role for all users)

[details="Installation"]

  1. Download DiscordChatRoles from Dropbox
  2. Extract the .zip and place the folder in your /resources/ of your Fivem server
  3. Make sure you add "start DiscordChatRoles" in your server.cfg
  4. Enjoy :slight_smile:
[/details]

[details="Download"]

DiscordChatRoles

[/details]

My Other Work

DiscordChatRoles

DiscordAcePerms

SandyVehiclesRestrict

DiscordTagIDs

DiscordVehiclesRestrict

DiscordPedPerms

BadgerAnims

DiscordWeaponPerms

BadgerTools

BadgerBankRobbery

VehicleTrustSystem

Version 2.0

Chat colors can now be restricted to certain groups. The color red can also be restricted to only staff ranks!

Version 3.0

NEW FEATURE

There is now a StaffChat for your staff members to use:https://i.gyazo.com/b82ef0e256ba67aa89db7d7307f77eef.gif

Permission to use /sc and /staffchat:

```

StaffChat.Toggle

```

Version 4.0

Toggle off getting StaffChat messages (good for staff members if they are streaming their own RP)

Commands:

/sc toggle

/staffchat toggle

Version 5.0

NEW FEATURE

You can now change your chat-tags with the in-game command using /chattag and /chattag [id]

https://i.gyazo.com/d41d1a27f326461d07b01f669ea07a8d.png

Version 6.0

NEW FEATURE

You can now change your chat-color when you talk in-game using /cc or /chatcolor

Commands:

/cc - List out the chat colors you have access to

/chatcolor - List out the chat colors you have access to

/chatcolor <id> - Change chatcolor to the ID specified

/cc <id> - Change chatcolor to the ID specified

![](https://i.gyazo.com/394fa27e4c675cd63832e83d43d5b4a6.gif)

How it works?

You basically set this up using a config in which the keys are the permission ACE value that gives them access to see and use those chat colors.

Config (you'll have to find this in server.lua, in a future version I'll move it to the top though):

```

local availColors =

{

['DiscordChatRoles.Access.Donator'] = {

['White'] = {'^0'},

['Green'] = {'^2'},

['Yellow'] = {'^3'},

['Blue'] = {'^4'},

['Light Blue'] = {'^5'},

['Purple'] = {'^6'},

['White'] = {'^7'},

['Pink'] = {'^9'},

['Police'] = {'^1', '^4'},

['Police2'] = {'^4', '^1'},

['Christmas'] = {'^2', '^1'},

['Christmas2'] = {'^1', '^2'},

},

['DiscordChatRoles.Access.Elite'] = {

['RainbowYGB'] = {'^3', '^2', '^4'},

['RainbowFull'] = {'^3', '^4', '^1', '^5', '^6', '^7', '^9'},

},

['DiscordChatRoles.Access.Staff'] = {

['Red'] = {'^1'},

}

}

```

Following the format of the config, you can add multiple different permission for chat colors and set up a vast variety of different pattern combinations!

I hope you all enjoy! Merry Christmas to all! :)

Famous mods

https://storage.fivemods.net/uploads/qiV7fqasqKIewJM/CQ5DUd.png-Image (display)
Tesla Model X

A fully working Tesla Model X I uploaded to my GitHub 3 years ago. You can open all 4 doors + trunk, it also has a pretty decent ...

Download
https://storage.fivemods.net/uploads/74/XTWpvKbSwcHF/img/pXqf9KurBxCGDmUS5jEt).jpg-Image (display)
2018 Mustang

This is a car implemented to fit for FiveM and it is a police car used for a hot pursuit car and high speed chases. The default li...

Download
https://storage.fivemods.net/uploads/1/rvQtz9nxWgNC/img/6ydIX3HEvDuzJxGcQ1Vq1.png-Image (display)
Vehicle Spawner Menu

VehicleSpawner is a **FiveM** resource allowing you to create a custom vehicle spawner menu with categories and the ability to mar...

Download
https://storage.fivemods.net/uploads/1/4KfTemZb6ACF/img/FhBd4MD8LgiwVURTJ6bl7.png-Image (display)
Fire Hose - London Studios

# HoseLS - London Studios HoseLS is a FiveM resource providing a realistic firefighting experience featuring a custom hose ...

Download
https://storage.fivemods.net/uploads/40/6brQOAoZYsVi/img/Xm6wSWACQ1UiF4Bhj3x2n.png-Image (display)
GravBot [FiveM Edition] [FULL RELEASE]

Fully custom bot made by Grav that allows people to find stats like bans, kicks, warns, playtime & much more! Use +help for comman...

Download
https://storage.fivemods.net/uploads/17/gTBvQuZM9Oz2/img/LjYMwvqHA2l6QbXKDyoE1.png-Image (display)
FiveM NoahChat

FiveM-NoahChat > This is Noahs Version of ingame FiveM Chat! > > **Features:** > - Toggle Chat Visib...

Download
https://storage.fivemods.net/uploads/40/tqvZ0SzfLuha/img/y3LD4WRpdiNHU7rXE0Mx2.png-Image (display)
Discord Status Bot

Simple status bot that shows the live information for your server! Highly customisable & easy to use. Fe...

Download