xMKHx Posted February 12, 2019 Share Posted February 12, 2019 Hello, I'm making a dx counting but it's visible for everyone I just want to make it visible only for a team or selected players with data Here is an example -- Client function Dx () dxDrawText("text", 1, 1, 1, 1, tocolor(250, 120, 4, 255), 7.00, "bankgothic", "center", "center", false, false, false, false, false) end -- After using this command it will show the Dx Text for Root function showDx () addEventHandler("onClientRender", root, Dx) end addCommandHandler("showdx", showDx) I have tried many methods but nothing. Link to comment
Dimos7 Posted February 12, 2019 Share Posted February 12, 2019 In show dx put getPlayerTeam getTeamName or getElementData Link to comment
SaNoR Posted February 12, 2019 Share Posted February 12, 2019 function Dx () if getPlayerTeam(localPlayer) == getTeamFromName("Admins") then dxDrawText("text", 1, 1, 1, 1, tocolor(250, 120, 4, 255), 7.00, "bankgothic", "center", "center", false, false, false, false, false) end end 1 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