Legend<3

[HELP]Hide PLayer Name!

Recommended Posts

Hello, i'm looking for a solution to hide my name from scoreboard!
it maybe use serial or account name! 
there is any solution ?!

Share this post


Link to post
1 minute ago, qaisjp said:

You must edit the scoreboard resource.

I already discovered that but did not find wich function drawing the names ! :/

 

Share this post


Link to post
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

Share this post


Link to post

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.