Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function espPaint(n)
- if esp then
- if n < 2 then
- debMsg('esp value ('..n..')')
- for k, v in pairs(player.GetAll())do
- local pos = v:GetPos():ToScreen();
- if(n=='1')then
- draw.DrawText( v:Name().."\n"..v:Health().."\n"..v:Armor(), "ChatFont", pos.x, pos.y, Color( 255, 0, 0, 255 ) );
- elseif(n=='2')then
- draw.DrawText( v:Name(), "ChatFont", pos.x, pos.y, Color( 255, 0, 0, 255 ) );
- else
- return false;
- end
- end
- else
- debMsg('esp failed to load: unrecognized value ('..n..')')
- end
- end
- end
- function espCheck()
- debMsg('attempting to load esp...')
- if !espEnabled then
- debMsg('esp failed to load: disabled')
- else
- debMsg('esp loaded, setting vars')
- local esp_vars = {'1','1'}
- debMsg('2 vars set')
- if esp_vars[1] == '1' then
- debMsg('starting esp')
- esp_started = true;
- debMsg('esp started')
- if esp_vars[2] == '1' then
- debMsg('showing names on esp')
- esp_detailed = true;
- if esp_started and esp_detailed then
- espPaint(1)
- hook.Add("HUDPaint", "blah", espPaint)
- elseif esp_started and !esp_detailed then
- espPaint(2)
- hook.Add("HUDPaint", "blah", espPaint)
- end
- elseif !esp_started then
- return false;
- else
- debMsg('not displaying names')
- end
- end
- end
- end
- espCheck()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement