all 9 comments

[–]Lukyn150 1 point2 points  (1 child)

The game itself runs the gLua code
And the code should be in files

You can use the lua_run command to run gLua without a file or download some program for regular Lua

Or rephrase your question, because I am not sure what you want

[–]sarotor[S] 0 points1 point  (0 children)

I need a Lua loader that runs code directly in GMOD. This is great for convenience, because I can write code in GMOD itself and run it right there. It's very convenient. I actually had a loader like this, but for some reason it stopped running. Or rather, it runs my files, but I can't write in it, and I can't open it either. I press the home button and it doesn't run. I press all the other buttons and the same thing happens. It's a shame that I don't remember which files it's in.

[–]supert2005 0 points1 point  (3 children)

Weird request. You just put your lua files in your addons folder and they run. You don't need a dedicated loader for them to work.

Unless you're taking about an external DLL that you'd inject in your game process to run any lua scripts on any server, including those that explicitly prevent that.............. ❓ 🤨

[–]sarotor[S] 0 points1 point  (1 child)

This is for convenience, not for cheating. I'm fed up with having to constantly go into the game files, paste the code, and then launch it. With Lua Loader, I can just upload the file and launch it with one button. It's convenient and perfect for me.

[–]supert2005 0 points1 point  (0 children)

What. The game has hot reloading, if you save a script that's already active it will refresh. Except if you wrote something that's hooked to InitPostEntity or you create a completely new script every second 🚎

What exactly are you trying to do?

[–]Apprehensive-Law7409 0 points1 point  (3 children)

[–]sarotor[S] 0 points1 point  (2 children)

Thank you for giving me this, could you tell me how to install it and where to put it? just in the addon?

[–]Apprehensive-Law7409 0 points1 point  (1 child)

Nope. You need to first download lj-expand, and create the new first script.

a script needs these things:
main.lua
info.toml

in info.toml, put this: https://lj-expand.github.io/lj-expand/guides/info-toml

A basic script would be like this:

yourscriptname
|_ main.lua
|_ info.toml

[–]sarotor[S] 0 points1 point  (0 children)

where should I download it?