A complete GTA RP (Roleplay) server setup using RageMP with Node.js backend and modern web admin panel.
- RageMP Server: Multiplayer GTA V server with roleplay features (requires manual setup)
- Node.js Backend: Real-time server management with Socket.IO
- Web Admin Panel: Beautiful, responsive dashboard for server administration
- Roleplay Systems: Jobs, economy, vehicles, and player management
- Docker Support: Easy deployment and development environment
- Real-time Updates: Live player tracking, chat, and statistics
- Docker and Docker Compose
- Node.js 18+ (for local development)
- Linux/macOS/Windows with Docker support
git clone <your-repo-url>
cd gta-rp-server
chmod +x start-web-dev.sh./start-web-dev.shThis will:
- Install Node.js dependencies
- Build and start Docker containers (web server + database)
- Set up the web development environment
- Web Admin Panel: http://localhost:3000
- MySQL Database: localhost:3306
- Redis Cache: localhost:6379
The RageMP server requires manual setup due to licensing restrictions:
-
Download RageMP Server:
- Visit https://rage.mp/
- Download the server binary for your platform
- Place it in the project root directory
-
Make it Executable:
chmod +x ragemp-server
-
Restart Services:
docker-compose restart gta-rp-server
-
Connect to RageMP Server: localhost:22005
gta-rp-server/
โโโ Dockerfile # Main server container
โโโ docker-compose.yml # Multi-service orchestration
โโโ package.json # Node.js dependencies
โโโ index.js # Main server application
โโโ gamemode.js # RageMP gamemode logic
โโโ ragemp-server.conf # RageMP server configuration
โโโ public/ # Web admin panel
โ โโโ index.html # Admin dashboard
โโโ start-web-dev.sh # Web development startup script
โโโ start-dev.sh # Full development startup script
โโโ README.md # This file
- Player spawn and respawn
- Health and armor system
- Money and economy
- Level progression
- Job assignments
- Taxi Driver: $150 salary
- Police Officer: $200 salary
- Mechanic: $175 salary
- Delivery Driver: $125 salary
- Vehicle spawning and tracking
- Ownership management
- Position monitoring
- Lock/unlock functionality
- Real-time chat
- Command system
- OOC (Out of Character) support
- Admin commands
# Start web development environment
./start-web-dev.sh
# View logs
docker-compose logs -f gta-rp-server
# Restart web server
docker-compose restart gta-rp-server# Start all services (requires ragemp-server binary)
./start-dev.sh
# View logs
docker-compose logs -f gta-rp-server
# Restart server
docker-compose restart gta-rp-server
# Stop all services
docker-compose down# Install dependencies
npm install
# Start the server
npm run dev
# Or start production mode
npm start- Gamemode Changes: Edit
gamemode.jsand restart the server - Server Changes: Edit
index.jsand restart the container - Web Panel: Edit files in
public/directory - Configuration: Edit
ragemp-server.confand restart
GET /api/players- List all online playersGET /api/vehicles- List all active vehiclesGET /api/stats- Server statisticsGET /health- Health check
playerSpawn- Player spawn eventplayerMove- Player movement updateschatMessage- Chat messagesvehicleSpawn- Vehicle spawn eventsstartJob- Job assignment events
/help- Show available commands/job <jobname>- Start a job (taxi, police, mechanic, delivery)/money- Show current money/spawn- Teleport to spawn/tp <x> <y> <z>- Teleport to coordinates
- H - Restore health and armor
- J - Add $100 to money
PORT- Web server port (default: 3000)RAGEMP_PORT- RageMP server port (default: 22005)NODE_ENV- Environment mode (development/production)
Edit ragemp-server.conf to customize:
- Server name and settings
- Player limits and spawn points
- Anti-cheat settings
- Performance parameters
# Build and start web services
docker-compose up --build -d gta-rp-server mysql redis# Build production image
docker build -t gta-rp-server:latest .
# Run production container
docker run -d \
--name gta-rp-server \
-p 3000:3000 \
-p 22005:22005 \
gta-rp-server:latest- Real-time player count
- Vehicle tracking
- Live chat monitoring
- Server statistics
- Performance metrics
- Server logs:
docker-compose logs gta-rp-server - Application logs:
logs/directory
-
Port Already in Use
# Check what's using the port sudo netstat -tulpn | grep :3000 # Kill the process or change ports in docker-compose.yml
-
Container Won't Start
# Check container logs docker-compose logs gta-rp-server # Rebuild container docker-compose up --build -d
-
RageMP Server Not Working
- Ensure you have downloaded the ragemp-server binary
- Make it executable:
chmod +x ragemp-server - Check if it's in the project root directory
- Restart the container:
docker-compose restart gta-rp-server
- Adjust
maxplayersinragemp-server.conf - Modify
streamdistancefor better performance - Tune database connection pools
- Monitor memory usage with
docker stats
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- RageMP team for the multiplayer framework
- GTA V community for inspiration
- Node.js and Socket.IO communities
- Issues: Create a GitHub issue
- Discord: Join our community server
- Documentation: Check the wiki for detailed guides
Happy Roleplaying! ๐ญ
Remember to respect other players and follow server rules.