[FREE] 5M-CodeX Chat | Chat Tags | Gifs | RTO/911 | RP Cmds | HTML

5M-CodeX Chat Resource

Untitled (250 × 250 px)

Thank you for choosing 5M-CodeX Chat Resource! This README.md document provides detailed instructions on how to edit the configuration file to tailor the chat experience to your preferences and requirements.

Table of Contents


Introduction


The 5M-CodeX Chat Resource stands as a testament to excellence in FiveM server communication. Crafted by TheStoicBear, this award-winning creation is a pinnacle of innovation, meticulously designed to enhance and elevate the communication experience within your FiveM server. Boasting a comprehensive set of features, it provides administrators with unparalleled customization options, allowing them to tailor the chat system precisely to their server’s unique needs. With 5M-CodeX Codex-Chat, you’re not just getting a chat resource; you’re investing in a seamless, immersive, and award-winning communication solution that sets new standards for FiveM servers.

If you ever need assistance or have questions during the configuration process feel free to reach out with any questions, concerns, commennts, recommendations :slight_smile:

  • Note this is a Project.
    This is still being developed, fixed, and optimized, yet I do need some input from the community / people to test, therefore I would greatly appreciate any feedback :slight_smile:

Configuration Overview

The configuration file, named config.lua, includes various customizable sections:

  • General settings such as language, text color, font, and display duration.
  • Customization for specific chat commands like /darkweb, /rto, /911, and /panic.
  • Configuration for chat tags, staff chat, and toggling specific commands.
  • Custom URLs for commands and default tags for players without permissions.
  • In-game chat settings and Discord webhook settings.

Editing Configuration

Section Description and Instructions
General Settings - language: Choose the language for chat messages.
- color: Set the text color using RGBA values.
- font: Choose the text font.
- time: Duration to display the text (in ms).
- scale: Set the text scale.
- dist: Minimum distance to draw text.
/darkweb Command - canNotSee: Specify departments that can’t see the /darkweb command.
/rto Command - canNotSee: Specify departments that can’t see the /rto command.
/911 Command - callTo: Specify departments that can see the /911 command.
/panic Command - ignoreDepartments: Ignore departments for the /panic command. Set to true or false.
- callTo: Specify departments that can see the /panic command.
Chat Tags - Configure different tags with permissions and image URLs.
Staff Chat - StaffChat: Set the permission required for staff chat.
- ProxDist: Set the proximity distance for staff chat.
Custom URLs for Commands - Add URLs for different commands (e.g., Dispatch, Me, Do).
Default Tag - Set a default tag for players without permissions.
Enable/Disable Commands - Toggle commands on/off by setting true or false.
Ingame Chat Settings - Customize chat formats for different commands.
Discord Webhook Settings - Set the Discord webhook link and server name.

Chat Commands

  • /fine <id> <amount> <reason>: Deducts money from the targeted player for the specified fine amount.
  • /ticket <id> <amount> <reason>: Deducts money from the targeted player for the specified ticket amount.
  • /parking <id> <amount> <reason>: Deducts money from the targeted player for the specified parking ticket amount.
  • /impound: Impounds the closest vehicle in front of you. Requires appropriate permission.
  • /911: Only LEO & SAFR/LSFD departments can see this command after being inputted.
  • /me: It says your character name and job in the chat.
  • /do: It says your character name and job in the chat.
  • /gme: It says your character name and job in the chat.
  • /twt: It says your chosen twitter name in the chat.
  • /darkweb: No Departments (LEO & LSFD can see this nor do the command.
  • /rto: Only LEO & SAFR/LSFD departments can see this command. It is used for less important transmissions.
  • /panic: This will broadcast a Blip on every Department you set, flash for 60 seconds, and play a sound for 10 seconds, and you can press [Y] to add a waypoint to them.
  • /x: Tweet in-Game and on Discord.
  • /dispatch [message]: Send a message to the dispatch channel.
  • /settag [Tag Name]: Changes the Icon/Tag Name for when you talk in-game.
  • /staffchat: Use to toggle staff chat mode.

Social Media Commands

These commands send messages with specific styles:

  • /x Post Details: Send a tweet-like message.
  • /fbmarket [message]: Send a message to the FB Market.
  • /news [message]: Send a news headline.
  • /insta [message]: Post an Instagram-style message.
  • /dot [message]: Post a dot message.

Installation

  1. Download the Resource:

    • Download the 5M-CodeX Chat Resource from the provided source.
  2. Rename the Resource:

    • Rename the downloaded folder to chat.
  3. Navigate to Resources/Gameplay:

    • Go to your server’s resources directory and find the \Resources\ folder.
  4. Replacing some Chat Files:

    • Inside the resources\[gameplay] folder, drag and drop the contents of CodeX Chat into chat folder.
  5. Configure to your hearts desire:

  6. Optional: Sounds Integration: – Coming soon

    • If using sounds, make sure the NDFramework/codex-sounds resource is started before chat for proper integration.

Installation is complete! Restart or refresh your FiveM server to apply changes and enjoy the enhanced communication experience with the 5M-CodeX Chat Resource.


Notes

If you wish to have Department checks work, and money deduction work please use the following below.

All chat Bubbles are HTML templates therefore are extremely customizable.
All tags are capable of supporting GIF, PNGs, JPG.

If you want to block Chat Images, add <img to profanity filter.

If you wish to have panic and soon other sounds to work please use the following below.









Which also has everything from



  • Copy YouTube Link If link above doesn’t work.
    https://www.youtube.com/watch?v=yS4r13MCwYg

Project.

2 Likes

amazing idea, but a couple of things:

  • This might get closed by moderators due to it being a chat resource and not being a chat theme, for an example of chat themes check out the chat-theme-gtao
  • Also if I’m not mistaken the chat resource itself needs to be built from yarn, and looking at the source code it doesn’t have any package files to build it (I think). I would download a fresh copy and test it for yourself.
  • Idk if MxFloofy permitted you to use their code but I would at least credit them for their work (blips). Moreover, the blips seem like a cool addition to the script, but isn’t fitting seeing as it’s only compatible with ND and there already exists a resource for ND Blips. I would also advise you to check on the amount of load the duty blips can take. (5-10+ players may break the script/cause a network overflow)
  • Following FiveM’s new ToS on IRL branded properties I would highly advise you to change Facebook, X, and Instagram to something more lore, ex: Bleeter and Life Invader. Or you could come up with something new entirely.
  • ND_Core isn’t listed as a requirement anywhere so I would also advise you to tell that to people before installing and or add it as a requirement in the fxmanifest.
  • I would move the discord webhooks to a server-sided file, so it can’t be accessed so easily.
  • Please use better code practices, for example, you are still using GetPlayerPed(-1) and you don’t need to use Citizen. anymore.
  • These other things mainly follow what was discussed in the first bullet point. Chat commands could have been done outside of the chat resource rather than inside. Some examples you could follow from are RPCX-Core and Badger’s Chat Roles

Last Notes:

  • Credit where ever you got most of your code from.
  • Im sure there are other things I didn’t mention but this is what I saw from just glancing over it. Also, use ox_lib.
1 Like
  • This might get closed by moderators due to it being a chat resource and not being a chat theme, for an example of chat themes check out the chat-theme-gtao

I did not see any directive towards, not using the chat and instead using explicitly only Themes. I may stand corrected.

Also if I’m not mistaken the chat resource itself needs to be built from yarn, and looking at the source code it doesn’t have any package files to build it (I think). I would download a fresh copy and test it for yourself.

So yes, the chat does need to build from yarn, yet that is why this is a addition and a edit of the build setting for transparent HUD, and a few other things in the new future. That is why the installation instructions say Inside the resources\[gameplay] folder, drag and drop the contents of CodeX Chat into chat folder. *Note I have cleaed up item 4 to say replace instead of delete now yet, your old chat builder for yarn and all of the original stuff is there, so when a user restarts their server it’ll begin the build on this addition. If that makes sense.

  • Idk if MxFloofy permitted you to use their code but I would at least credit them for their work (blips). Moreover, the blips seem like a cool addition to the script, but isn’t fitting seeing as it’s only compatible with ND and there already exists a resource for ND Blips. I would also advise you to check on the amount of load the duty blips can take. (5-10+ players may break the script/cause a network overflow)

So this kind of covers this and The crediting concerns. I made a post earlier then forgot it had the same template as github which meant it had my Discord, which I know is not allowed and forgot. So it got deleted, then I failed to remember to add this


Specifically stating I WILL give credit when I have it completed, as I am only looking for help right now essentially as stated under the introduction.

  • Following FiveM’s new ToS on IRL branded properties I would highly advise you to change Facebook, X, and Instagram to something more lore, ex: Bleeter and Life Invader. Or you could come up with something new entirely.

I whole heartfully agree with this, and have plans to change this promptly in the near future.

  • ND_Core isn’t listed as a requirement anywhere so I would also advise you to tell that to people before installing and or add it as a requirement in the fxmanifest.

Yes, for some aspects, yet it is not solely needed for each and every aspect, nor will it be a NEED for any of it soon. It will be NDFramework based, and also hold Ace Permission support. So as of yes, some aspects do, yet the whole picture is no. It is not.

  • I would move the discord webhooks to a server-sided file, so it can’t be accessed so easily.
  • Please use better code practices, for example, you are still using GetPlayerPed(-1) and you don’t need to use Citizen. anymore.
  • These other things mainly follow what was discussed in the first bullet point. Chat commands could have been done outside of the chat resource rather than inside. Some examples you could follow from are RPCX-Core and Badger’s Chat Roles

I sincerely have appreciated the well informed information, and detailed information at that. And truly intend to take these optimization and better practices into account. Yet to side to using 8 different resources, I had people who wanted a AIO and I fulfilled. So there are vaild points for the seperaiton on chat-theme w/ resources yet again, each script is made for a reason, a few of the community members I had wanted updated resources within ND ontop of having other options, more configuration. Which again comes to kinda the this wont appeal to EVERYONE, nor make most knowledgeable developers happy :laughing:.


Some filler for some voids to credits.

3DMe
Chat



/\ DiscordSolutions was me when this was out :joy:

Again I want to professes on the fact that I truly do appreciate the input and strive to improve :slight_smile:

You have the NDCore core objects exported in both the server and client files. FOr those who don’t have NDCore. the resource won’t function.

@marshular is correct I’m afraid, you cannot release a chat replacement. Feel free to modify your resource to use the default chat events and create a new release.