A FiveM script that automatically restarts resources when a .lua file is saved, created or deleted.
The watchdog also has the ability to automatically delete all entities created by resources when they are stopped. To enable this feature, set DELETE_ENTITIES to true in the config.json.
- Add the script to your
resourcesfolder - Add
add_ace resource.loaf_watchdog command.refresh allowto yourserver.cfgto allow the script to refresh resources - Add
start loaf_watchdogto the bottom of yourserver.cfg - Restart your server