Delete chat or any other chat resource, It's generally located in \resources\[cfx-default]\[gameplay]\chat
Step 2. Install dependencies
Install the dependencies if they are not installed.
ox_lib
Step 3. Download lvs_chat
Download the lvs-chat package from your keymaster. It contains two resources: chat and lvs_chat_extra. Place both inside the resources folder.
Do not change the name of the chat resource.
Step 4. Script initiate (server.cfg)
The chat should go where it normally does at the beginning, and lvs_chat_extra should go after ox_lib
...
set resources_useSystemChat false # set false to build-in chat (newest version of fxserver))
...
# These resources will start by default.
ensure mapmanager
ensure chat # <-- still here
ensure spawnmanager
ensure sessionmanager
...
ensure ox_lib
ensure lvs_chat_extra # <-- somewhere after ox_lib
...