07 Jul 2010, 15:50
Post #1
Code:
/*
* Find E2 - a lua script by LifeTimeBLOOD.info to find (hidden) E2 chips.
* You may modify this script to fit your needs.
*/
local function StartPaint()
hook.Add("HUDPaint", "DrawE2Finder", function ()
local chips = findE2()
draw.SimpleText(string.format("%d E2 chips found.", #chips), "ScoreboardText", 8, 32, Color(255, 255, 128, 128))
for i = 1, #chips do
local p = chips[i]:GetPos():ToScreen()
local ent = chips[i];
//if(p.visible) then
local owner = "n/a"
local steamid = ""
if ent:IsValid() then owner = ent:GetNetworkedString("Owner", "n/a") end
if ent:GetNetworkedEntity("OwnerObj", false) then steamid = ent:GetNetworkedEntity("OwnerObj", false):SteamID() end
if steamid != "" then owner = owner .. " " .. steamid end
local text = string.format("%s #%d (by %s)", ent:GetClass(), ent:EntIndex(), owner)
//#print(text);
draw.SimpleText(text, "ScoreboardText", p.x, p.y, Color(255, 255, 255, 255))
//end
end
end)
end
function findE2()
chips = { }
for k,v in pairs(ents.FindByClass("gmod_wire_expression2")) do
table.insert(chips, v)
end
return chips
end
StartPaint()
* Find E2 - a lua script by LifeTimeBLOOD.info to find (hidden) E2 chips.
* You may modify this script to fit your needs.
*/
local function StartPaint()
hook.Add("HUDPaint", "DrawE2Finder", function ()
local chips = findE2()
draw.SimpleText(string.format("%d E2 chips found.", #chips), "ScoreboardText", 8, 32, Color(255, 255, 128, 128))
for i = 1, #chips do
local p = chips[i]:GetPos():ToScreen()
local ent = chips[i];
//if(p.visible) then
local owner = "n/a"
local steamid = ""
if ent:IsValid() then owner = ent:GetNetworkedString("Owner", "n/a") end
if ent:GetNetworkedEntity("OwnerObj", false) then steamid = ent:GetNetworkedEntity("OwnerObj", false):SteamID() end
if steamid != "" then owner = owner .. " " .. steamid end
local text = string.format("%s #%d (by %s)", ent:GetClass(), ent:EntIndex(), owner)
//#print(text);
draw.SimpleText(text, "ScoreboardText", p.x, p.y, Color(255, 255, 255, 255))
//end
end
end)
end
function findE2()
chips = { }
for k,v in pairs(ents.FindByClass("gmod_wire_expression2")) do
table.insert(chips, v)
end
return chips
end
StartPaint()
Screenshot:
- Spoiler: Show
This is a Lua script I made to find hidden / invisible E2 (minge) chips. (Works only clientside)
Shows total E2 chips in upper left corner of the screen and draws a text describing the E2 chip at their location, much like ESP in cheats.
Installation: Copy to your Lua directory.
Usage: lua_openscript_cl find_e2.lua to start, lua_run_cl hook.Remove("HUDPaint", "DrawE2Finder") to disable.
Uninstall: Delete the script from your Lua directory.