I'm trying to adjust my H.U.D, but I hate having to quit Garry's mod and re-enter garry's mod as the loading times are very slow.
So is there any way to edit lua in the game it self?
[QUOTE=Toyokunari;34463771]I'm trying to adjust my H.U.D, but I hate having to quit Garry's mod and re-enter garry's mod as the loading times are very slow.
So is there any way to edit lua in the game it self?[/QUOTE]
Edit the file in garrysmod/lua/ then use this console command:
lua_openscript_cl filename.lua
Same goes for server-side scripts, just without the _cl: lua_openscript
I have the hud in the lua/autorun/client folder, do I need to move it back to the LUA folder?
Get LuaPad, it's very useful, and it's easy to use...
Here I'll link you:
[URL]http://www.facepunch.com/threads/776712[/URL]
Also if you, don't know how to open Luapad, bind a key to luapad in-game..
Cheers.
[QUOTE=Toyokunari;34463906]I have the hud in the lua/autorun/client folder, do I need to move it back to the LUA folder?[/QUOTE]
You don't have to, but it's easier since now you have to type:
lua_openscript_cl autorun/client/filename.lua
Ah thanks. I remembered an addon for ingame lua editing but somehow I forgot.
[QUOTE=Toyokunari;34464856]Ah thanks. I remembered an addon for ingame lua editing but somehow I forgot.[/QUOTE]
You're welcome.
Sorry, you need to Log In to post a reply to this thread.