Jump to content

[HELP]Hide PLayer Name!


SkiZo

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...