Autorun-rs icon indicating copy to clipboard operation
Autorun-rs copied to clipboard

Be able to refresh a script continuously

Open YohSambre opened this issue 2 years ago • 3 comments

be able to have an automatic refresh on a designated file, useful when you develop a script and you don't want to go back to the console every time.

the original idea came from a member on the discord and I found it interesting : [](https://zupimages.net/up/22/16/wij2.png)

YohSambre avatar Apr 18 '22 21:04 YohSambre

Can you be more specific? Like hotreloading? And would this be for lua_openscript files or for like plugins?

If so, plugins already pretty much 'hot reload' in that their files are accessed dynamically and aren't cached or anything, so you could always edit a hook.lua while in a server and it'll change properly.

Vurv78 avatar Apr 19 '22 02:04 Vurv78

here is a description : I load a lua file via the lua_openscript_cl command and I have an option to refresh it continuously (a bit like the lua refresh does)

it avoids having to reload the script by retyping lua_openscript_cl

YohSambre avatar Apr 19 '22 10:04 YohSambre

You have a couple options.

  • Write a script that automatically hot-reloads for you
  • Use the up arrow key to quickly get the command without typing it

0x57e11a avatar May 02 '22 05:05 0x57e11a