Garry's Mod

Garry's Mod

788 ratings
Luapad for GMod 13
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Tags: misc
File Size
Posted
Updated
39.779 KB
11 Nov, 2012 @ 7:43pm
28 Jul, 2013 @ 4:49pm
6 Change Notes ( view )

Subscribe to download
Luapad for GMod 13

Description
An ingame text editor that lets you type and run lua scripts on both the server and the client. Type 'luapad' in the console to open the window. Also added is the command 'luapad_adminonly' (on by default), should be self explanatory.

Tip: I would recommend binding it to a key like this 'bind o luapad'

Original Author: DarKSunrise aka Assassini and Levybreak

Note: I do not take any credit for creating this addon, all I did was port it over as best as I could. Some features may have been lost and there are probably a couple minor bugs. I do not plan to continue updating this addon unless there is a fatal bug. If you find a fatal bug, please inform me! I might be able to fix it.

HEY YOU!: Check out this other awesome GMod Development IDE at this link:
http://facepunch.com/showthread.php?t=1245803
Popular Discussions View All (7)
1
24 Jan, 2017 @ 10:09pm
Files Marked with Red Symbol
Horse
0
15 Apr, 2020 @ 6:47am
Luapad console command line arguments
[Sk$Bh]Trick or treat KID!
0
10 Jul, 2019 @ 4:37pm
Any way to make code run automatically?
The Offensive Lemon
149 Comments
LλMBDA Huge SCP / Gmod Fan 16 Mar @ 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! 13 Nov, 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! 23 Oct, 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 3 Dec, 2023 @ 12:40pm 
@Takashi
For me it runs serverside, but luapad says it did not
Ryohei Arisu 12 Sep, 2023 @ 12:41pm 
My rank does inherit from superadmin, and idk why it just denies it even though its my OWN server
Sparkz  [author] 11 Sep, 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.
Ryohei Arisu 10 Sep, 2023 @ 2:56pm 
I tried adding myself to the superadmin group through ULX, it still disallowed me from using it
Sparkz  [author] 10 Sep, 2023 @ 12:07pm 
@Brennan Goldbach Are you an admin on your own server? Luapad will check your usergroup before allowing server-side execution.
Ryohei Arisu 9 Sep, 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] 8 Sep, 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.