Like the title says. Say I'm in DarkRP, and I'd like the gamemode to run a certain feature if the user is cloaked.
Specifically, if the user is cloaked, it will hide the name and job tag above their head.
Is this at all possible?
I have some code someone gave me to hide the tags if the player is using a certain job, but I'm unsure if it can be made to interact with ULX.
hook.Add("HUDShouldDraw","DarkRP_HideJobsEntityDisplay",function(hudName)
if hudName ~="DarkRP_EntityDisplay"thenreturnend
local playersToDraw ={}
for _,ply inpairs(player.GetAll())do
if ply:Team()~= TEAM_SOMEJOB then
table.insert(playersToDraw, ply)
end
end
returntrue, playersToDraw
end)