Jump to content

help - chat


xXMADEXx

Recommended Posts

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...