Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to refresh a script continuously #55

Open
YohSambre opened this issue Apr 18, 2022 · 3 comments
Open

Be able to refresh a script continuously #55

YohSambre opened this issue Apr 18, 2022 · 3 comments
Labels
R-Enhancement New feature or request R-Need Info Further information is requested

Comments

@YohSambre
Copy link

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 YohSambre changed the title Be able to launch a script and have it refresh itself continuously Be able to refresh a script continuously Apr 18, 2022
@Vurv78
Copy link
Owner

Vurv78 commented Apr 19, 2022

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 Vurv78 added R-Enhancement New feature or request R-Need Info Further information is requested labels Apr 19, 2022
@YohSambre
Copy link
Author

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

@0x57e11a
Copy link

0x57e11a commented May 2, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R-Enhancement New feature or request R-Need Info Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants