DiscordTagIDs --- I know, I know, I only make discord-based scripts

Documention moved [refer to following for instructions]: DiscordTagIDs | Badger Docs

Archived Documentation Below:

Version 1.0

Yes yes I know… I only make discord-based scripts. Well, you’re damn welcome!

This is a script that added prefixes to ID tags above players :slight_smile: by using fully discord roles thanks to IllusiveTea!

I also wanna give thanks to MrDaGree for originally creating the script this was adapted onto! You can find that here, [Release] Changed Player Name Tags & Distance Names

You must have this installed and properly working for this script to work → Discord roles for permissions (im creative, i know)

Installation Tutorial

Commands:
/tag-toggle - Turns off the prefix from being shown for the player (if they have a prefix in their tag)
/tags-toggle - Turns off all tags from being shown above other players for ONLY yourself (good for streamers and/or pictures)
/headtag - Check what Head-Tags you have access to and change them with /headtag [id]

Running /headtag:

On /tag-toggle not being active:

On /tag-toggle being active:

On /tags-toggle for tags not being active:

On /tags-toggle for tags being active:

How does the tags look on players? Let’s have a look :slight_smile:


The 1s in this part of the server.lua file must be replaced with the IDs of your discord roles that are equal to the prefix you have associated with it:

roleList = {
{0, "~w~"}, -- Regular Civilian / Non-Staff
{1, "~r~STAFF ~w~"}, --[[ T-Mod ]]-- 
{1, "~r~STAFF ~w~"}, --[[ Moderator ]]--
{1, "~r~STAFF ~w~"}, --[[ Admin ]]--
{1, "~p~MANAGEMENT ~w~"}, --[[ Management ]]--
{1, "~o~OWNER ~w~"}, --[[ Owner ]]--
}
Installation
  1. Download DiscordTagIDs
  2. Extract the .zip and place the folder in your /resources/ of your Fivem server
  3. Start the resource in your server.cfg file
  4. Enjoy :slight_smile:

My Other Work

DiscordChatRoles

DiscordAcePerms

SandyVehiclesRestrict

DiscordTagIDs

DiscordVehiclesRestrict

DiscordPedPerms

BadgerAnims

DiscordWeaponPerms

BadgerTools

BadgerBankRobbery

VehicleTrustSystem

Download

19 Likes

Looks good going to test it

1 Like

Thanks for this, going to be using this!

1 Like

Error running system event handling function for resource DiscordTagID: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/lua/scheduler.lua:762: No such export GetRoles in resource discord_perms
stack traceback:

Geting this error

You don’t have discord_perms properly installed…

im reinstall it and see if it works

You set up roleList properly and also set up the bot for discord_perms?

yea I didt config it :joy: it works now

1 Like

Hello, i just installed your script for chatroles and when i try to use this, nothing happens. discord_perms might be done properly because the other script is working with no issues.

Did you set up the role list correctly?

Your other script DiscordChatRoles is working with no issues. I dont know whats goin on

What does your roles list look like and what is not working? Check your console for errors.

When i get home ill send you some ss, since im not having console errors

UPDATE

Updated now so it will work with any amount of player slots (rather than just 32 slots)! [Not tested, so let me know if any bugs lol]

Updated with new version on GitHub for use with [Release] BadgerTools [MAJOR REVAMP]

1 Like

Absolutely amazing mate, thanks

Hey, I could only manage to get the ID of the player to show up, but the role names aren’t. Any idea?

What is your rolesList looking like?

Oh wait I never changed it so it doesn’t matter the size of the server??? Could of sworn I had on that latest push to the GitHub! Apologies for that issue… Enjoy the script!

Well, that may not be the case. If I switch to FiveM - I can see titles, if I switch to OneSync, nope. Any idea?