Brad96 Posted August 28, 2013 Posted August 28, 2013 (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 August 28, 2013 by Guest
Castillo Posted August 28, 2013 Posted August 28, 2013 What? I didn't get anything of what you just said.
Brad96 Posted August 28, 2013 Author Posted August 28, 2013 how to make the chat show the color of my nick .. and all player
Castillo Posted August 28, 2013 Posted August 28, 2013 Enable the colorCoded argument of outputChatBox, last argument.
Brad96 Posted August 28, 2013 Author Posted August 28, 2013 Give me access to the wiki pls and thanks
Castillo Posted August 28, 2013 Posted August 28, 2013 https://wiki.multitheftauto.com/wiki/OutputChatBox That?
Brad96 Posted August 28, 2013 Author Posted August 28, 2013 but this is just the color of the text r,g,b , I say the color of the tag Player
Castillo Posted August 28, 2013 Posted August 28, 2013 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.
Brad96 Posted August 28, 2013 Author Posted August 28, 2013 not work 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 )
Castillo Posted August 28, 2013 Posted August 28, 2013 The "true" has to be on the outputChatBox, post the client side part.
Brad96 Posted August 28, 2013 Author Posted August 28, 2013 function greetingHandler ( message , r ,g ,b) outputChatBox ( "Server : " .. message , r ,g ,b) end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", getRootElement(), greetingHandler
Castillo Posted August 28, 2013 Posted August 28, 2013 function greetingHandler ( message , r ,g ,b) outputChatBox ( "Server : " .. message, r, g, b, true ) end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", getRootElement(), greetingHandler )
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