Is there a way I can disable the name and job tags that appears above a player's head in darkrp?
Thanks
Why would you want to do this? This will make it impossible for players to determine rulebreaking/trace someone back.
[QUOTE=St3fz0rtj3;42417439]Why would you want to do this? This will make it impossible for players to determine rulebreaking/trace someone back.[/QUOTE]
Could be because he's making his own...
This should do it:
[lua]
hook.Add("HUDShouldDraw", "HideEntityDisplayHUD", function(name)
if name == "DarkRP_EntityDisplay" then return false end
end)
[/lua]
[editline]5th October 2013[/editline]
It will also disable showing information on doors and such, though.
Sorry for the lack of information. I made a swep that transforms you into a prop, the idea is to blend in to your environment only problem is the name and job tags gives away your location :/ if the above code disables everyone's tag then we'll have some problems.
[QUOTE=Dark'E;42417638]Sorry for the lack of information. I made a swep that transforms you into a prop, the idea is to blend in to your environment only problem is the name and job tags gives away your location :/ if the above code disables everyone's tag then we'll have some problems.[/QUOTE]
I was just curious. Sounds like a fun ide athough :)
Bump
Any ideas guys?
Bump2
Go in config.lua
Find
[code]GM.Config.showjob = true[/code]
Make it
[code]GM.Config.showjob = false[/code]
Find
[code]GM.Config.showname = true[/code]
Make it
[code]GM.Config.showname = false[/code]
That is if you are using darkrp, If not message me on steam [url]http://steamcommunity.com/id/koolsami7[/url] and I can get it working for you
As i said in my previous post, i only want to disable the name and job tag of the local player not globally.
Hello.
What if i only want to disable it when you in noclip??
Thanks :)
Did this literally the for a project I was messing about with.
[URL="https://github.com/FPtje/DarkRP/blob/master/gamemode/modules/hud/cl_hud.lua#L335"]DarkRP has a line in the drawing of the HUD for the name tag etc:[/URL]
[CODE]if ply == localplayer or not ply:Alive() or ply:GetNoDraw() then continue end[/CODE]
So all that really needs to happen is that you do:
[code]Player:SetNoDraw(true)[/code]
Just note, it's [B]probably going to be broken[/B] as I feel the SWEP is using:
[Code]Player:SetModel()[/Code]
Which means, setting NoDraw will make the prop invisible which probably isn't intended.
Alternatively, you could make a override by adding in your own Hook and checking to see if they're a prop or something and drawing a [URL="https://github.com/FPtje/DarkRP/blob/master/gamemode/modules/hud/cl_hud.lua#L261-L322"]hud based off DarkRP's code[/URL] but modified in such a way it's only rendering non-prop players.
[url]https://github.com/FPtje/DarkRP/blob/master/gamemode/modules/hud/cl_hud.lua#L335[/url]
[url]https://github.com/FPtje/DarkRP/blob/master/gamemode/modules/hud/cl_hud.lua#L261-L322[/url]
Sorry, you need to Log In to post a reply to this thread.