π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.
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:
ensure sl-chatβ οΈ Important: Make sure sl-chat starts AFTER your framework and ox_lib!
Dependencies
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:
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
Start your server
Join the server
Press T to open chat
Try typing /me test action - you should see styled message and 3D text above your head
Try /report test - admins should receive notification
Troubleshooting
Chat doesn't open
Make sure
sl-chatis starting afterox_liband your frameworkCheck server console for errors
Verify all dependencies are installed
Commands don't work
Check
commands.config.luafor proper command setupVerify framework bridge is correctly configured
Check server console for Lua errors
3D text doesn't appear
Verify
displayTriggeris configured in command configCheck
Chat.Displaysettings incommands.config.luaMake 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