ViRuZGamiing Posted November 10, 2013 Posted November 10, 2013 Hi, How can I remove the chat color? I want everyone to write in White and the Name also in white. Thanks. "If debugging is the process of removing software bugs, then programming must be the process of putting them in."
ViRuZGamiing Posted November 10, 2013 Author Posted November 10, 2013 I'm now using this code i've made but it doesn't work; function chatPrefix( message, messageType ) if messageType == 0 then local playerTeam = aclGroupGetName("Admin") if playerTeam then local r, g, b = getTeamColor ( playerTeam ) local theName = getAccountName (getPlayerAccount (source)) outputChatBox( "[CR]".. theName ..": " .. message, getRootElement(), r, g, b, true ) outputServerLog("CHAT: "..theName..": "..message) cancelEvent() else local theName = getAccountName (getPlayerAccount (source)) outputChatBox( theName ..": " .. message, getRootElement(), 255, 255,255, true ) outputServerLog("CHAT: "..theName..": "..message) cancelEvent() end end end addEventHandler( "onPlayerChat", getRootElement(), chatPrefix ) function blockChatMessage() cancelEvent() end addEventHandler( "onPlayerChat", getRootElement(), blockChatMessage ) I outputs my message twice in chat in once in color and once in white.. No [CR] infront of my name also. "If debugging is the process of removing software bugs, then programming must be the process of putting them in."
Moderators IIYAMA Posted November 10, 2013 Moderators Posted November 10, 2013 freeroam running? Then freeroam also outputs. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Price. Posted November 10, 2013 Posted November 10, 2013 you can try using this setPlayerNametagColor ( thePlayer,r,g,b ) YOU HAVE TO TRUST SOMEONE TO BE BETRAYED.I NEVER DID
ViRuZGamiing Posted November 10, 2013 Author Posted November 10, 2013 So just this is enough; function nametagColorChange ( thePlayer ) setPlayerNametagColor ( thePlayer, 255, 255, 255) end addEventHandler ( "onResourceStart", nametagColorChange) "If debugging is the process of removing software bugs, then programming must be the process of putting them in."
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