Jump to content

Chat Name Color


Brad96

Recommended Posts

Posted (edited)

how to make the chat show the color of my nick .. and all player

  
outputChatBox ("getPlayerName(source):gsub("#%x%x%x%x%x%x",""))  
  
  
 

?? thx

Edited by Guest
Posted

Aren't you reading what I say? you must use the same function, but enable the last argument: colorCoded, set it to "true" and then it'll work.

Posted

not work :S

function greetingCommand ( playerSource, commandName ) 
local r,g,b = getPlayerNametagColor (playerSource) 
    triggerClientEvent ( "onGreeting", getRootElement(), "Hola " ..getPlayerName(playerSource),getRootElement,r,g,b,true) 
end 
addCommandHandler ("greet" , greetingCommand ) 

Posted
function greetingHandler ( message , r ,g ,b) 
    outputChatBox ( "Server : " .. message , r ,g ,b) 
end 
addEvent( "onGreeting", true ) 
addEventHandler( "onGreeting", getRootElement(), greetingHandler  

Posted
function greetingHandler ( message , r ,g ,b) 
    outputChatBox ( "Server : " .. message, r, g, b, true ) 
end 
addEvent( "onGreeting", true ) 
addEventHandler( "onGreeting", getRootElement(), greetingHandler ) 

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