Making default chat out of character chat


#1

How would I make default chat out of character chat with a command?


#2

bump, would like to know this aswell.


#3

Do you guys want it to always say in chat ‘OOC | USER_NAME: Message’ without a command


#4

yeah, that would be the best


#5

In your chat resource in sv_chat.lua

Line 18

Make this

TriggerClientEvent('chatMessage', -1, author,  { 255, 255, 255 }, message)

Something like this?

TriggerClientEvent('chatMessage', -1, "OOC | " .. author,  { 255, 255, 255 }, message)

I have no clue if that would work, so make a backup before editing.does :slight_smile:

This is not tested so no guarantee if it works. Let me know though.


#6

Thanks @Havoc forgot that comma.