function createText(thePlayer, command,...)
local message = table.concat({...}, "")
if message ~= "" then
triggerClientEvent("CreateBox", root, message)
else
return outputChatBox("Synat:/ "..command.." text", thePlayer, 255, 0, 0)
end
end
addCommandHandler("", createText) -- "" put the command you wanτ
This will work. The event that is supposed to be triggered is CreateBox, not CreateTipBox, which is triggered itself by CreateBox.