surface.CreateFont("Font", {
font="Arial",
size=15,
weight=50,
antialias=true
})
local function DrawText(strText, strFont, tblColor, xPos, yPos)
draw.SimpleTextOutlined(strText, strFont, xPos, yPos, tblColor, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, Color(0, 0, 0, 255))
end
local function DrawAdminESP()
for k, v in pairs(ents.GetAll()) do
if(!IsValid(v)) then continue end
if(v:IsPlayer() and v:Alive()) then
if(v:GetPos():Distance(LocalPlayer():GetPos()) < 5000) then
xPos, yPos = (v:GetPos() + Vector(0, 0, 50)):ToScreen().x, (v:GetPos() + Vector(0, 0, 50)):ToScreen().y
DrawText(v:Nick(), "Font", team.GetColor(v:Team()), xPos, yPos)
yPos = yPos + 13
DrawText(v:SteamID(), "Font", Color(255, 255, 255, 100), xPos, yPos)
weapon = v:GetActiveWeapon()
if IsValid(weapon) then
yPos = yPos + 13
DrawText( weapon:GetPrintName() , "Font", Color(255, 255, 255, 100), xPos, yPos)
end
--[[for k, weapon in pairs(v:GetWeapons()) do
weapon = weapon:GetPrintName()
yPos = yPos + 13
DrawText( weapon or weapon , "Font", Color(255, 255, 255, 50), xPos, yPos)
end]]
end
end
end
end
hook.Add("HUDPaint", "DrawAdminESP", DrawAdminESP)
hook.Add("PostDrawTranslucentRenderables", "DrawAdminESP2", function()
cam.IgnoreZ(true)
for k,v in pairs(ents.GetAll()) do
if((v:IsPlayer() and v:Alive()) or v:IsRagdoll()) then
v:DrawModel()
end
if v:IsPlayer() then
v:SetBodygroup(1 , 1)
end
end
cam.IgnoreZ(false)
end)
function PLAYER:GetRPName()
if self.RealFirstName then
return self:GetFirstName() .. " " .. self:GetLastName()
end
return '"'..self:GetName()..'"'
end
function PLAYER:getPlayerDetails()
return self:GetName() .. "|" .. self:SteamID() .. "|" .. self:GetRPName()
end
function PLAYER:HasPermission(x)
return not x == "rankcolor"
end
function BoneMerging:Reattach(entIndex)
if not BoneMerging.MergedEntities then return end
end
RunConsoleCommand("con_filter_enable","1")
RunConsoleCommand("con_filter_text_out", "mod_studio")
hook.Remove("RenderScreenspaceEffects", "bloodoverlaychecker")