Garry's Mod

Garry's Mod

Luapad for GMod 13
149 Comments
LλMBDA Huge SCP / Gmod Fan Mar 16 @ 8:32pm 
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! Nov 13, 2024 @ 11:18am 
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! Oct 23, 2024 @ 11:45am 
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 Dec 3, 2023 @ 12:40pm 
@Takashi
For me it runs serverside, but luapad says it did not
Seong Gi-hun Sep 12, 2023 @ 12:41pm 
My rank does inherit from superadmin, and idk why it just denies it even though its my OWN server
Sparkz  [author] Sep 11, 2023 @ 5:28pm 
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 Sep 10, 2023 @ 2:56pm 
I tried adding myself to the superadmin group through ULX, it still disallowed me from using it
Sparkz  [author] Sep 10, 2023 @ 12:07pm 
@Brennan Goldbach Are you an admin on your own server? Luapad will check your usergroup before allowing server-side execution.
Seong Gi-hun Sep 9, 2023 @ 11:04am 
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] Sep 8, 2023 @ 7:28pm 
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 Sep 4, 2023 @ 10:11am 
Can't even run serverside on my own server. 1984.
AToM1C Aug 21, 2023 @ 2: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! Jun 1, 2023 @ 4: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! May 11, 2023 @ 12:27am 
Luapad does not write tabs but instead spaces when you hit the tab key.
moko Nov 28, 2022 @ 7:49pm 
for whatever reason it breaks if you have gTASM. something to keep in mind i guess
Sparrow Aug 26, 2022 @ 2:09pm 
does this fix old and broken addons
Vexsiaczek Apr 2, 2022 @ 4:59pm 
Can you edit server luas ?
anomaly May 24, 2021 @ 4: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! Sep 11, 2019 @ 11:17pm 
Ahhh. That is a totally different story then.. 😊
Sparkz  [author] Sep 11, 2019 @ 7:14pm 
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! Sep 11, 2019 @ 3:26am 
@Sparkz. Dode seriously. Its right there.
Sparkz  [author] Sep 9, 2019 @ 8:24pm 
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! Sep 9, 2019 @ 12: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 May 5, 2019 @ 6:45am 
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 Apr 26, 2019 @ 12:32am 
I'm also experiencing glitchy and compacted text. Running on a 2560x1440 monitor.
N3xt Jan 10, 2019 @ 8:16am 
I don't know, but the text is glitchy for me too, like below
Jimboboiii Jan 9, 2019 @ 2:50am 
Why is the text all compacted? Screenshot: https://steamcommunity.com/sharedfiles/filedetails/?id=1619458612
TheElessaro Jun 23, 2018 @ 6:33pm 
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 Jun 22, 2018 @ 6:04am 
Я ещё удевляюсь как он собрал 33 тыс подписок
Rubat Jun 22, 2018 @ 6:03am 
Такая ХУЙНЯ!Вообще пизедц,
В шарейде не прописаны команды открывание серверских и клиентовских кодов.Там даже не прописаны команды как luapad.Пиздец.
ItsDrike Apr 14, 2018 @ 1:49pm 
How to enable luapad for someone with custom rank name (the rank name is "co-owner")
Jabka Dec 5, 2016 @ 4:42am 
Doesn't deal with unicode.
ArsiTheFox Nov 1, 2016 @ 3:45pm 
luapad_adminonly
Doesn't work?
amoglear spawg Oct 23, 2016 @ 6:35am 
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 Sep 5, 2016 @ 4:11am 
Кусок говна. Дырявый до пизды... если у вас данный аддон поставлен могут просто через него открыть server.cfg и просмотреть ваш RCON тем самым ломанув сервер.
jaysmowingservice2014 Jul 22, 2016 @ 7:34pm 
when i put luapad in console it says unknown command
amoglear spawg Jul 5, 2016 @ 9:02am 
Is there anyway to limit it to Groups of ULX ?
๖ۣۜNightling May 31, 2016 @ 9:26pm 
Add a feature to clear the current text in the tab you currently have selected?
Radon May 7, 2016 @ 2:51am 
because luapad concommand is "Luapad" (bad english,sorry)
Toastur Apr 24, 2016 @ 1: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 Apr 3, 2016 @ 7:41am 
the same
Unknown command: luapad
Wizzle ♥♥♥♥♥♥♥♥♥ Mar 31, 2016 @ 2:46am 
] luapad
Unknown command: luapad


what.. why?!
・・ SEi Mar 11, 2016 @ 8:04am 
Love it! Started learning lua, and this makes my life easier
Bowu Feb 14, 2016 @ 4:51am 
Is there a way to do something like such: "luapad data/luapad/entry_goes_here.txt"
Professer Panama VHS7 Sep 13, 2015 @ 1:05am 
it wont work i typed in lua it didnt work
Loading... Aug 23, 2015 @ 9:25pm 
Could you make a Client only command?
Blanket Aug 18, 2015 @ 8:55am 
should make luapad_adminonly var server sided fatal mistake good for cheaters bad for server
Harry May 21, 2015 @ 4: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
crane fly Mar 2, 2015 @ 11:16am 
ok thank you.
Sparkz  [author] Mar 2, 2015 @ 11:14am 
No. You might get banned from a server for using your own clientside cheats, but that can even be done without this addon.