πŸ”‘installation

Script Installation

Before starting, you must log in to the CFX portal to download the asset. You will be able to download it as many times as you want on the official CFX page. Just as you download it the first time, you will also download it multiple times in the future to get updates.


1

Logging in to the CFX Portal

First, log in to the official CFX Portal by clicking here: https://portal.cfx.re/assets/granted-assets

2

Find our Script

Once logged in, navigate to the Granted Assets section to access your purchased assets. You can download them by clicking the "Download" button. Find sl-chat and download it.

3

Install Script

After downloading the script, open your server resources folder and extract the zip file you downloaded. Drag and drop into resources folder.

Make sure you're starting the script in your server.cfg:

server.cfg
ensure sl-chat
circle-exclamation

Dependencies

Resource
Required
Link
Description

es_extended

Optional

https://github.com/esx-framework/esx_core

ESX Framework

ox_lib

Optional

https://github.com/overextended/ox_lib

Utility library

oxmysql

Optional

https://github.com/overextended/oxmysql

MySQL async resource


Framework Configuration

The script comes pre-configured for ESX. To use with other frameworks, update the framework-specific client and server bridge files.

Edit client bridge

Open modules/editable_client.lua and replace framework-specific code with your framework implementation.

Edit server bridge

Open modules/editable_server.lua and replace framework-specific code with your framework implementation.

See Framework Bridge for complete examples for:

  • ESX (Default)

  • QB-Core

  • Custom Frameworks


Script Configuration

After installation, configure the script by editing files in the shared folder:

File
Description

commands.config.lua

Main chat configuration and commands

suggestions.config.lua

Additional command suggestions

logs.config.lua

Discord webhook logging

translate.config.lua

Language settings


Language Configuration

Open shared/translate.config.lua and set your preferred language:


File Structure


Verification

1

Start your server

2

Join the server

3

Press T to open chat

4

Try typing /me test action - you should see styled message and 3D text above your head

5

Try /report test - admins should receive notification


Troubleshooting

chevron-rightChat doesn't openhashtag
  • Make sure sl-chat is starting after ox_lib and your framework

  • Check server console for errors

  • Verify all dependencies are installed

chevron-rightCommands don't workhashtag
  • Check commands.config.lua for proper command setup

  • Verify framework bridge is correctly configured

  • Check server console for Lua errors

chevron-right3D text doesn't appearhashtag
  • Verify displayTrigger is configured in command config

  • Check Chat.Display settings in commands.config.lua

  • Make sure you're within the configured distance


Support

If you have any issues with installation or find any error/bug, open a ticket on our Discord Server for Support:

Discord: https://discord.gg/zZj4bNMuf7


Enjoy using sl-chat!

Last updated