A FiveM script that automatically restarts resources when a .lua or .js file is saved, created, or deleted, speeding up development.
- Automatically restarts resources when a
.luaor.jsfile is changed, created, or deleted - Automatically refreshes resources when
fxmanifest.luais changed or created, or when files are created - Delete entities when resources are stopped
- Can be disabled in
config.jsonby changingDELETE_ENTITIES
- Can be disabled in
- Only files in
client_script,shared_script, orserver_scriptin thefxmanifest.luaare watched- You can also set
loaf_watchdog_watchandloaf_watchdog_ignoreto watch or ignore specific files
- You can also set
- Download the latest release from the releases page
- Add the script to your
resourcesfolder - Add
add_ace resource.loaf_watchdog command.refresh allowto yourserver.cfg - Add
add_unsafe_worker_permission loaf_watchdogto yourserver.cfg - Add
start loaf_watchdogto the bottom of yourserver.cfg - Start/restart your server