This project serves as an example for integrating an api into an ALT:V GTA V server. It provides basic usage with another project that is currently being worked upon.
If it helped you setting up something nice, leave a ⭐
- NodeJS
- Alt:V
- Copy the contents of this repo to
altv-server\resources\altv-adminpanel-api
- Run
npm install
in the directory - Start server
- Open a browser and go to
http://localhost:9999/acp/dashboard?t=REPLACETHIS
You should see this:
- Change the secret to one that suits you, be vary of http arguments (avoid &, ?, % etc.) in
index.mjs
- New listeners can be added with
addAcpListener
. Consult the comments.
For the control panel, please look at my other repository https://github.com/riffy/gta-adminlte-django so you can do something neat like this
- Config
- Map
- Player list with data
- Manage single player (kick with message, freeze, jail, teleport)