About This File
This tool 10x RageMP game development speed by allowing developers to run and test their code live without constant server restarts, just edit the file and save to see the result right away.
Preview: https://streamable.com/3fz1ck
Features:
- Run code on multiple clients at once.
- Auto cleanup of entities created.
- Event handlers cleanup (you can run your code multiple times event will be only registered once with the latest changes).
- Run server side code and client side with error handling (errors show up on screen for client-side).
How to use:
-
Drag all the folders into your server root.
-
Require hotreload.js in your client_packages/index.js
require('./hotreload.js') -
Use directories client | server to add your code or use the existing files provided.
-
For client, use the variable executeFor: number[] to add your ID or any other client ID you want to execute your code on. (check the provided example hotreload/client/clientTest.js
Github repo and more details: ItsMos/ragemp-hot-reload
V2 Changelog:
- Support events mp.events.add
- Removed unreliable detection of variables using lexical analyzer.
- Now using wrapper functions instead.
Edited by Mos
V2
What's New in Version 1.0.4 See changelog
Released
Removed auto mp entity variable destroy to prevent issues, you have to keep track of your defined entity variables and destroy them yourself.
