How to increase development speed?

Hi guy,

I’m new to FiveM, and I’m looking for any solution, module, or tool supporting the development of a new server built from scratch. Like, how can I restart the script after changing the code without re-join the server (hot reload)?

Currently, I have to restart the server and then disconnect and enter my IP again to join. It takes much time to do, I tried to use /restart [resource_name] but it’s not working at all.

I would just use txadmin console and hit restart

Hello bieberkieu,

there are a few ways to hot reload/restart a script:

  1. TxAdmin: When you want a graphical interface use the TxAdmin Resources Tab. There you see all resources with a Stop and Restart button.

  2. CLI: Through commands: Use Syntax (/) start | stop | restart RESOURCENAME. Sometimes depending on where you try to execute you need a / before

  3. Plugins in your IDE: When you use VSCode to develop you can use the plugin named FiveM Devbridge. Works over RCON and restart automatically the resource after you save the file in your VSCode. This plugin is a part of my FiveM Extension Pack: Click here