xXMADEXx Posted March 19, 2013 Share Posted March 19, 2013 Hey everyone im making a tag thing for my server, but for some reason the script below will not work, the chat shit works, but not "#FFFFFF" or the r,g,b addEventHandler("onPlayerChat",root, function (input) local getAccount = getAccountName(getPlayerAccount(source)) local export = exports['[ROG]Groups']:getAccountGang(getAccount) local r,g,b = getPlayerNametagColor(source) if (export ~= "None") then cancelEvent() outputChatBox(getPlayerName(source).." ["..export.."]: #FFFFFF"..input,tostring(r),tostring(g),tostring(b),true) end end ) Link to comment
Castillo Posted March 19, 2013 Share Posted March 19, 2013 addEventHandler ( "onPlayerChat", root, function ( input ) local gang = exports [ '[ROG]Groups' ]:getPlayerGang ( source ) local r, g, b = getPlayerNametagColor ( source ) if ( gang ~= "None" ) then outputChatBox ( getPlayerName ( source ) .." [".. gang .."]: #FFFFFF".. input, r, g, b, true ) cancelEvent ( ) end end ) Try that. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now