• How do you reload your addons without restarting Gmod?
    4 replies, posted
As the title says. [editline]06:32AM[/editline] I basically am trying to modify this addon but it's annoying to restart Gmod after every save/change.
change the map
You can use that spiffy search bar, and find that this has been asked plenty of times. Use lua_openscript_cl <path from lua> in console to reload a lua file. ex: lua_openscript_cl autorun/client/SpencerIsSexy.lua To find what folder it's in from lua, just check out the addon's file structure. *shrug* hope I helped :P
[QUOTE=Skapocalypse;18260560]You can use that spiffy search bar, and find that this has been asked plenty of times. Use lua_openscript_cl <path from lua> in console to reload a lua file. ex: lua_openscript_cl autorun/client/SpencerIsSexy.lua To find what folder it's in from lua, just check out the addon's file structure. *shrug* hope I helped :P[/QUOTE] You can use lua_openscript_cl to also load your addons? How do you do that that?
Use the filepath from the addon. It's relative to the lua folder though. Example: Addon path - addons/x/lua/cheese/a.lua Script path - cheese/a.lua I'm not sure if that works or not, if not, use [url=http://www.facepunch.com/showthread.php?t=730018]gm_gmodeworld[/url].
Sorry, you need to Log In to post a reply to this thread.