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