Snakegold Posted July 29, 2018 Posted July 29, 2018 why i cant see the player color when i pm him function thePM(thePlayer,commandName,sendToName,...) local pmWords = { ... } local pmMessage = table.concat( pmWords, " " ) if sendToName then if getPlayerFromNamePart2(sendToName) then local toPlayer = getPlayerFromNamePart2(sendToName) local r,g,b = getPlayerNametagColor (toPlayer) if not (toPlayer == thePlayer) then --that () needed if not (pmMessage == "") then outputChatBox("#FC3986(Whisper) to " .. getPlayerName(toPlayer) .. ":#ffffff " .. pmMessage, thePlayer, r, g, b, true) Part of my script
Moderators IIYAMA Posted July 30, 2018 Moderators Posted July 30, 2018 There are already two hex values inside of the string. They will be dominating the colour. 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
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