SkiZo Posted August 22, 2018 Share Posted August 22, 2018 Hello, i'm looking for a solution to hide my name from scoreboard! it maybe use serial or account name! there is any solution ?! Link to comment
qaisjp Posted August 22, 2018 Share Posted August 22, 2018 You must edit the scoreboard resource. Link to comment
SkiZo Posted August 22, 2018 Author Share Posted August 22, 2018 1 minute ago, qaisjp said: You must edit the scoreboard resource. I already discovered that but did not find wich function drawing the names ! Link to comment
JeViCo Posted August 22, 2018 Share Posted August 22, 2018 5 hours ago, Legend<3 said: already discovered that but did not find wich function drawing the names ! if you use default scoreboard, look for this (dxscoreboard_client.lua) local playerName = getPlayerName( player ) and replace it with this if getElementData(player,"player:HiddenInScoreBoard") then playerName = "*hidden*" else local playerName = getPlayerName( player ) end Now you can add players by serial server-side (paste a code below in dxscoreboard_shared.lua) local hiddenSerials = { ["blablayour1000serial"] = true, ["anotherserial"] = true, } addEventHandler("onPlayerLogin",getRootElement(),function() local serial = getPlayerSerial(source) if hiddenSerials[serial] then setElementData(source,"player:HiddenInScoreBoard",true) end end) @Legend<3 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