Need AdminESP

Im cursious if there is a AdminESP i can use when im admining.

I am and admin on the server with full file access. So something i would upload and then run a console command.

Anything helps, thanks !

Just use a normal ESP?

I want to get something like this;

http://img15.imageshack.us/img15/641/gmconstruct0000m.jpg

So say i get the ESP. then how can i get it so it loads on the server and only admins can use it?

I made a really simple one in about 5 minutes


if SERVER then

AddCSLuaFile("espscript.lua")

elseif LocalPlayer():SteamID() == "STEAM_0:" or "STEAM_0:" or "STEAM_0:" or "STEAM_0:" then

CreateClientConVar( "esp", 0, true, false )
function esp()
    if tobool( GetConVarNumber( "esp" ) ) then
        for k, v in pairs( player.GetAll() ) do
            if v != LocalPlayer() then
                local pos =( v:GetShootPos() + Vector( 0, 0, 30) ):ToScreen()
                draw.DrawText( v:Nick(), "Trebuchet24", pos.x, pos.y - 45 , Color(255, 255, 255, 255), 1 )
--code_gs
local hp = v:Health()
draw.DrawText( hp, "Trebuchet22", pos.x, pos.y - 15, Color(255, 0, 0, 255), 1 )
            end
        end
    end
end
hook.Add( "HUDPaint", "esp", esp )
concommand.Add( "esp", esp )
else return 


end

Insert the SteamIDs that you’d like to have access to the esp. Didn’t bother mucking around with ULX integration and whatnot. Just call the file espscript.lua

I replaced “esp” with “wall” because my AntiCheat blocked it! IDK why!
If i try to activated the ESP i get this error every time!


[|RaZar||252|STEAM_0:0:60366050] Lua Error:

[ERROR] lua/autorun/onlyforme.lua:5: attempt to call method 'SteamID' (a nil value)
  1. unknown - lua/autorun/onlyforme.lua:5


[Mr.Flauschig|253|STEAM_0:1:50216267] Lua Error:

[ERROR] lua/autorun/onlyforme.lua:5: attempt to call method 'SteamID' (a nil value)
  1. unknown - lua/autorun/onlyforme.lua:5


Sorry, for bad english, see my avatar!


if SERVER then

AddCSLuaFile("onlyforme.lua")

elseif LocalPlayer():SteamID() == "STEAM_0:0:72931887" then

CreateClientConVar( "wall", 0, true, false )
function wall()
    if tobool( GetConVarNumber( "wall" ) ) then
        for k, v in pairs( player.GetAll() ) do
            if v != LocalPlayer() then
                local pos =( v:GetShootPos() + Vector( 0, 0, 30) ):ToScreen()
                draw.DrawText( v:Nick(), "Trebuchet24", pos.x, pos.y - 45 , Color(255, 255, 255, 255), 1 )
--code_gs
local hp = v:Health()
draw.DrawText( hp, "Trebuchet22", pos.x, pos.y - 15, Color(255, 0, 0, 255), 1 )
            end
        end
    end
end
hook.Add( "HUDPaint", "wall", wall )
concommand.Add( "wall", wall )
else return 


end

Probably because LocalPlayer is nil. Just do an IsValid check on it first.

Im a lua noob…
:smiley:

[editline]26th October 2013[/editline]

Someone?
Please?
:frowning:

[editline]26th October 2013[/editline]

Stop bumping so often. Won’t get you anywhere.

Thats what i want. :smiley: Thank you and sorry for bumping :frowning:

[editline]26th October 2013[/editline]

:frowning: I’m to stupid to fix that. Can someone fix this for me?

Well I have no idea about gmod lua but if you want to use isValid to check the LocalPlayer() then it should probably look like this:


if SERVER then

AddCSLuaFile("onlyforme.lua")

elseif IsValid(LocalPlayer()) and LocalPlayer():SteamID() == "STEAM_0:0:72931887" then

CreateClientConVar( "wall", 0, true, false )
function wall()
    if tobool( GetConVarNumber( "wall" ) ) then
        for k, v in pairs( player.GetAll() ) do
            if v != LocalPlayer() then
                local pos =( v:GetShootPos() + Vector( 0, 0, 30) ):ToScreen()
                draw.DrawText( v:Nick(), "Trebuchet24", pos.x, pos.y - 45 , Color(255, 255, 255, 255), 1 )
--code_gs
local hp = v:Health()
draw.DrawText( hp, "Trebuchet22", pos.x, pos.y - 15, Color(255, 0, 0, 255), 1 )
            end
        end
    end
end
hook.Add( "HUDPaint", "wall", wall )
concommand.Add( "wall", wall )
else return 


end

Okay i’ll try it :smiley:

doesnt work :frowning:

[editline]27th October 2013[/editline]

] wall
Unknown command: wall

It’s a convar, type wall 1 in console

Okay i’ll try it!

[editline]27th October 2013[/editline]

Doesnt work!
] wall
Unknown command: wall

pls help

What folder did you put the script in?

lua/autorun

I am testing it right now. Also did you name it onlyforme.lua? I am also gonna try autorun/client

[editline]27th October 2013[/editline]

Yep it won’t work. I tried it all.

[editline]27th October 2013[/editline]

No lua errors either.

What now?
:smiley:

nobody?