Garry's Mod lua all-entities finder?

Posts 1–11 of 11 · Page 1 of 1
Garry's Mod lua all-entities finder?
Hey everyone.

I was wondering, does anyone have the knowledge to make such thing? I think faphack had it back then, it showed all entities on the server and it was extremely easy to find whatever you want, I saw an entity finder in the forums here but it looks like you're supposed to enter entity names which is gonna be a problem.
Just a really simple entity finder with a menu that shows all entities on the server, then you can tick what you want to activate the ESP on so you can find it.
Quote Originally Posted by maJor954 View Post
Hey everyone.

I was wondering, does anyone have the knowledge to make such thing? I think faphack had it back then, it showed all entities on the server and it was extremely easy to find whatever you want, I saw an entity finder in the forums here but it looks like you're supposed to enter entity names which is gonna be a problem.
Just a really simple entity finder with a menu that shows all entities on the server, then you can tick what you want to activate the ESP on so you can find it.
Why don't you do it ? It's not that hard ...
I'm not 100% this is what you wanted, but this is what I came up with in 5 minutes, it's pretty straight foward.
Code:
local targ_ents = {"money_printer"}


-- The actual wallhack itself.
function MPGH_FINDENTS()

for k,v in pairs ( ents.GetAll() ) do
 
if table.HasValue(targ_ents, v:GetClass()) then
local entpos = v:GetPos():ToScreen()
draw.DrawText(v:GetClass(), "ChatFont", entpos.x, entpos.y, Color(255,255,255), 1)
end
  
end


end
hook.Add("HUDPaint", "find targeted entities", MPGH_FINDENTS)



-- Adding a target to the target list.
function MPGH_ADDTARGET(ply, cmd, args)

if not tostring(args[1]) then
LocalPlayer():PrintMessage(HUD_PRINTTALK, "Error! Usage: mpgh_entfinder_add <class name>")
return end

table.insert(targ_ents,args[1])

end

concommand.Add("mpgh_entfinder_add", MPGH_ADDTARGET)



-- list all entity class names in console.
concommand.Add("mpgh_listallents" function()

for k,v in pairs(ents.GetAll()) do

print(v:GetClass())

end

end)
It's untested I've been up for more than 24 hours so I'm pretty tired, if it gives you errors, post back and I'll fix it when I wake up.
@TheMikuChibi, I don't know how to script in lua or any other language and I don't really have much time to learn it at the moment. @Atheon and Kokomika, thanks for letting me know, seems great. Gonna use that.
@hilo peeps- Says it's probably outdated so I'll use Atheon's one, thanks though I didn't know that.
Quote Originally Posted by maJor954 View Post
@TheMikuChibi, I don't know how to script in lua or any other language and I don't really have much time to learn it at the moment. @Atheon and Kokomika, thanks for letting me know, seems great. Gonna use that.
@hilo peeps- Says it's probably outdated so I'll use Atheon's one, thanks though I didn't know that.
Just saying, you should look on other forums than MPGH, it's full of skids.

(And also, if you want to have good scripts, you should make them yourself, cause public scripts are generally detected by Servers AntiCheats. + Lua is damn easy)
Quote Originally Posted by maJor954 View Post
@TheMikuChibi, I don't know how to script in lua or any other language and I don't really have much time to learn it at the moment. @Atheon and Kokomika, thanks for letting me know, seems great. Gonna use that.
@hilo peeps- Says it's probably outdated so I'll use Atheon's one, thanks though I didn't know that.

No thats the attachment in the thread itself, You can subscribe to it via the workshop and it will include lenny_ents, Its regularly updated.
Or you can go to the website and get a winrar file.
Quote Originally Posted by SoulXSlayer123 View Post
works? can u plz tell meeee
nice 3 year bump fuckface
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?