Need some help with this

So can anyone give me any clues as to why ooc works with this code below

TriggerEvent('ChatMessage', "ooc", 0, function(source, args, user)
	TriggerClientEvent('chatMessage', -1, "OOC | " .. name, { 128, 128, 128 })
end, function(source, args, user)
	TriggerClientEvent('chatMessage', "ERROR: Something went wrong...") -- This is either the error message or no permission message
end)

however when i chnage just the command name to trigger the message to something else it doesnt anymore example below. Yes i know there is scripts for this already, I would just prefer to know why this doesn’t work?

TriggerEvent('ChatMessage', "tweet", 0, function(source, args, user)
	TriggerClientEvent('chatMessage', -1, "TWEET | " .. name, { 128, 128, 128 })
end, function(source, args, user)
	TriggerClientEvent('chatMessage', "ERROR: Something went wrong...") -- This is either the error message or no permission message
end)

Are you using a base/gamemode downloaded from the release sub-category? If yes, which one?

Yeah I’m using VRP as my base, as for what one, i’m using Dunko’s - [vRP Framework]-[Dunko Edited V6.2 - FX Server] UPDATED 10/11/2017 - Supports 12 languages

Then please post in that topic. I think the developer of that base or anyone else who uses it should know what is conflicting.

1 Like