Hello guys.
I have a problem with my scipt (im new)
what i want:
Now its: "TWITTER and your name" there is blue.
Want only: "TWITTER" to be blue and the rest name, and your own text. To be white.
Hope your guys can help me thanks
AddEventHandler('chatMessage', function(source, name, msg)
sm = stringsplit(msg, " ");
if sm[1] == "/tweet" then
CancelEvent()
TriggerClientEvent('chatMessage', -1, "Twitter | " .. name, { 65, 180, 255 }, string.sub(msg,7))
end
end)
function stringsplit(inputstr, sep)
if sep == nil then
sep = "%s"
end
local t={} ; i=1
for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
t[i] = str
i = i + 1
end
return t
end