Garry's Mod

Garry's Mod

Luapad for GMod 13
149 Comments
LλMBDA Huge SCP / Gmod Fan 17 Mar @ 2:32am 
I HATE THIS [Luapad for GMod 13] RunString(Ex):3: ')' expected near 'world'
1. pcall - [C]:-1
2. DoClick - lua/autorun/luapad.lua:601
3. OnMouseReleased - lua/vgui/dlabel.lua:254
4. unknown - lua/vgui/dmenuoption.lua:77
[Sk$Bh]Trick or treat KID! 13 Nov, 2024 @ 6:18pm 
After reading the source the concommand calls "luapad.Toggle()" so the fix is:

if(luapad.Frame) then luapad.Frame:SetVisible(true) else luapad.Toggle() end
[Sk$Bh]Trick or treat KID! 23 Oct, 2024 @ 6:45pm 
Different error this time when open a file in a tab.

[Luapad for GMod 13] lua/autorun/luapad.lua:350: attempt to index field 'PropertySheet' (a nil value)
1. AddTab - lua/autorun/luapad.lua:350
2. DoClick - addons/trackassemblytool_git/lua/autorun/trackassembly_init.lua:960
3. OnMouseReleased - lua/vgui/dlabel.lua:254
4. unknown - lua/vgui/dmenuoption.lua:77

luapad.AddTab("["..defTab.Nick.."]"..pnSelf:GetText(), fileRead(sFile, "DATA"), sDsv);

File exists. It is opened without problems the next time a tab is issued.
TheEndBoss_101 3 Dec, 2023 @ 7:40pm 
@Takashi
For me it runs serverside, but luapad says it did not
Seong Gi-hun 12 Sep, 2023 @ 7:41pm 
My rank does inherit from superadmin, and idk why it just denies it even though its my OWN server
Sparkz  [author] 12 Sep, 2023 @ 12:28am 
I'm not exactly sure how it works with ULX, but from what I'm reading the usergroup you're in needs to inherit from "admin" or "superadmin" in order for this add-on to recognize you as an admin.
Seong Gi-hun 10 Sep, 2023 @ 9:56pm 
I tried adding myself to the superadmin group through ULX, it still disallowed me from using it
Sparkz  [author] 10 Sep, 2023 @ 7:07pm 
@Brennan Goldbach Are you an admin on your own server? Luapad will check your usergroup before allowing server-side execution.
Seong Gi-hun 9 Sep, 2023 @ 6:04pm 
It used to allow me to run scripts serversidedly but not anymore Idk why, even on my own server as a server host
Sparkz  [author] 9 Sep, 2023 @ 2:28am 
I haven't touched this in ages, is it broken now? Seemed to work for me when I did a quick test on local server.
Seong Gi-hun 4 Sep, 2023 @ 5:11pm 
Can't even run serverside on my own server. 1984.
AToM1C 21 Aug, 2023 @ 9:49am 
Guys... this was in garrysmod13 an older beta of gmod, this is a dead addon that dosent work with the new gmod version uninstall it because it. just. Dosent. Work
[Sk$Bh]Trick or treat KID! 1 Jun, 2023 @ 11:56am 
Rases an error when you close the luapad frame via standard method "luapad.Frame:Clode()" in the function "luapad.Toggle()" better check for a valid existent panel via the global function:

if (IsValid(luapad.Frame)) then

Probably needs On-Close method definition:

luapad.Frame.OnClose = function(pnSelf)
luapad.Frame = nil
end
[Sk$Bh]Trick or treat KID! 11 May, 2023 @ 7:27am 
Luapad does not write tabs but instead spaces when you hit the tab key.
moko 29 Nov, 2022 @ 2:49am 
for whatever reason it breaks if you have gTASM. something to keep in mind i guess
THE ROARING KNIGHT 26 Aug, 2022 @ 9:09pm 
does this fix old and broken addons
Vexsiaczek 2 Apr, 2022 @ 11:59pm 
Can you edit server luas ?
anomaly 24 May, 2021 @ 11:59pm 
two years late, but:

for me, glitchy text was corrected by moving the CreateFont() calls into luapad.EditorPanel:Init()
[Sk$Bh]Trick or treat KID! 12 Sep, 2019 @ 6:17am 
Ahhh. That is a totally different story then.. 😊
Sparkz  [author] 12 Sep, 2019 @ 2:14am 
That code is from the lua files. It's already in there. The problem is why doesn't it work for some people.
[Sk$Bh]Trick or treat KID! 11 Sep, 2019 @ 10:26am 
@Sparkz. Dode seriously. Its right there.
Sparkz  [author] 10 Sep, 2019 @ 3:24am 
I'd love to fix the glitchy text issue, but I have no idea what's causing it. Oddly enough it does not show up like that for me.
[Sk$Bh]Trick or treat KID! 9 Sep, 2019 @ 7:34pm 
That's all nice and dandy. I like tit very much, though it will be nice to run the thing directly with an argument provided as the path to the file you want to open like "luapad directory/file.txt". You can use the concmd.Add argument to make it perfect ..

{LINK REMOVED}
Darius Sergal 5 May, 2019 @ 1:45pm 
For anyone experiencing glitchy text, run the following code clientside in luapad. The problem should be fixed for any new tabs or files you open after running it. You will have to repeat this process every time you start up the game until a patch is made. Copy and run below:



surface.CreateFont("LuapadEditor", {
font = "Courier New",
size = 16,
weight = 400
})
surface.CreateFont("LuapadEditor_Bold", {
font = "Courier New",
size = 16,
weight = 800
})
Lambda 26 Apr, 2019 @ 7:32am 
I'm also experiencing glitchy and compacted text. Running on a 2560x1440 monitor.
N3xt 10 Jan, 2019 @ 3:16pm 
I don't know, but the text is glitchy for me too, like below
Jimboboiii 9 Jan, 2019 @ 9:50am 
Why is the text all compacted? Screenshot: https://steamproxy.com/sharedfiles/filedetails/?id=1619458612
TheElessaro 24 Jun, 2018 @ 1:33am 
For everyone who has the "Upload denied byserver!" error, type in your server console "sv_allowupload 1" then you got again the error but the luarun worked.
Rubat 22 Jun, 2018 @ 1:04pm 
Я ещё удевляюсь как он собрал 33 тыс подписок
Rubat 22 Jun, 2018 @ 1:03pm 
Такая ХУЙНЯ!Вообще пизедц,
В шарейде не прописаны команды открывание серверских и клиентовских кодов.Там даже не прописаны команды как luapad.Пиздец.
ItsDrike 14 Apr, 2018 @ 8:49pm 
How to enable luapad for someone with custom rank name (the rank name is "co-owner")
Jabka 5 Dec, 2016 @ 11:42am 
Doesn't deal with unicode.
ArsiTheFox 1 Nov, 2016 @ 9:45pm 
luapad_adminonly
Doesn't work?
amoglear spawg 23 Oct, 2016 @ 1:35pm 
Response to YoungPurpureDrangonStarlok:

You seem to not have Admin rights. Since "luapad_adminonly" is on by default, if you are on your own Server, please add yourself to the Superadmin group. If you are on someone else's Server, he might have not given you the Permission.
Akych 5 Sep, 2016 @ 11:11am 
Кусок говна. Дырявый до пизды... если у вас данный аддон поставлен могут просто через него открыть server.cfg и просмотреть ваш RCON тем самым ломанув сервер.
jaysmowingservice2014 23 Jul, 2016 @ 2:34am 
when i put luapad in console it says unknown command
amoglear spawg 5 Jul, 2016 @ 4:02pm 
Is there anyway to limit it to Groups of ULX ?
๖ۣۜNightling 1 Jun, 2016 @ 4:26am 
Add a feature to clear the current text in the tab you currently have selected?
Radon 7 May, 2016 @ 9:51am 
because luapad concommand is "Luapad" (bad english,sorry)
Toastur 24 Apr, 2016 @ 8:17pm 
How do I make it so something I've saved automaticly loads on a server, like say it crashes and I'm not there to load it, and yes I'm an admin. Help?
Ninispezi 3 Apr, 2016 @ 2:41pm 
the same
Unknown command: luapad
Wizzle ♥♥♥♥♥♥♥♥♥ 31 Mar, 2016 @ 9:46am 
] luapad
Unknown command: luapad


what.. why?!
・・ SEi 11 Mar, 2016 @ 3:04pm 
Love it! Started learning lua, and this makes my life easier
Bowu 14 Feb, 2016 @ 11:51am 
Is there a way to do something like such: "luapad data/luapad/entry_goes_here.txt"
Professer Panama VHS7 13 Sep, 2015 @ 8:05am 
it wont work i typed in lua it didnt work
Loading... 24 Aug, 2015 @ 4:25am 
Could you make a Client only command?
Blanket 18 Aug, 2015 @ 3:55pm 
should make luapad_adminonly var server sided fatal mistake good for cheaters bad for server
Harry 21 May, 2015 @ 11:44pm 

[ERROR] addons/luapad/lua/autorun/luapad.lua:646: Calling net.Start with unpooled message name [ http://goo.gl/qcx0y ]
1. Start - [C]:-1
2. DoClick - addons/luapad/lua/autorun/luapad.lua:646
3. OnMouseReleased - lua/vgui/dlabel.lua:218
4. unknown - lua/vgui/dmenuoption.lua:116
DustinVictory 2 Mar, 2015 @ 6:16pm 
ok thank you.
Sparkz  [author] 2 Mar, 2015 @ 6:14pm 
No. You might get banned from a server for using your own clientside cheats, but that can even be done without this addon.