HTML启动器

fivem-web-template — HTML 启动器模板

作者 PhoenixGoDdev

面向 FiveM 服务器的静态网站模板,包含首页、关于、规则、加入、会员与 404 页面,并通过 FiveM 公共 API 展示服务器在线状态和玩家列表。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

3 个预览视图
桌面端首页1 / 3
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 3

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-04查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

包含首页、关于、加入、规则、规则手册、会员与 404 等多个静态页面

02

通过 FiveM 公共 API 展示服务器实时玩家数量与玩家列表

03

服务器 ID 在 server-status.js 中以常量配置,可按需替换

04

使用 Tailwind CSS 工具类、Font Awesome 图标与 Animate.css 动画

05

提供 .htaccess 与 _redirects,便于 Apache 或 Netlify 部署

06

采用移动优先的响应式布局,并提供移动端折叠菜单

模板详细介绍

这是一套由 PX Scripts 发布的 FiveM 服务器官网模板,仓库以 HTML 静态页面为主体,附带 styles.css、script.js 和 server-status.js 等资源文件。页面覆盖首页、关于我们、加入我们、规则、详细规则手册、会员通行证以及自定义 404 页,适合作为服务器对外展示与信息发布的基础站点。

模板通过 server-status.js 调用 FiveM 的 servers-frontend.fivem.net 接口获取实时玩家数量与玩家列表,服务器 ID 在脚本顶部以常量形式配置。样式层使用 Tailwind CSS 工具类,配合 Font Awesome 图标与 Animate.css 动画,整体为深色游戏风格,并针对移动端做了响应式处理。

仓库另附 server.js(Express 开发服务器)、.htaccess 与 _redirects,分别面向本地调试、Apache 托管和 Netlify 部署。README 说明可部署到传统主机、GitHub Pages、Netlify 或 Vercel,但未提供构建流程说明,实际以静态文件方式发布。模板内容与品牌信息需要自行替换,演示图片、字体、图标等第三方素材的授权需单独核对。

HTML启动器

适合你的项目吗?

适用场景

  • 为 FiveM 服务器搭建对外展示官网,集中呈现服务器介绍与规则
  • 在首页实时显示在线玩家数量和玩家列表,方便访客了解服务器活跃度
  • 向玩家说明连接方式、加入要求与会员通行证权益
  • 作为静态站点部署到 GitHub Pages、Netlify、Vercel 或传统虚拟主机

适合人群

  • 运营 FiveM 服务器、需要基础官网的团队或个人
  • 希望以静态 HTML 方式部署、不引入前端构建流程的使用者
  • 需要展示实时玩家数据与规则文档的服务器社区

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    在 server-status.js 中把 SERVER_ID 替换为你的 FiveM 服务器 ID,否则在线状态无法加载

  2. 2

    替换 logo 图片、页面标题、服务器 IP、Discord 与社交媒体链接等品牌与联系信息

  3. 3

    按需修改 styles.css 中的颜色变量和 HTML 中的 Tailwind 颜色类以匹配服务器配色

  4. 4

    本地可直接在浏览器打开 index.html 调试,也可运行 server.js 启动 Express 开发服务器

  5. 5

    部署前确认 .htaccess 或 _redirects 与目标托管平台匹配,并核对第三方素材的授权

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 模板依赖 FiveM 公共 API(servers-frontend.fivem.net)获取实时玩家数据,需目标服务器在线且网络可访问该外部接口,否则在线状态无法显示。
  • 必须在 server-status.js 中把 SERVER_ID 替换为实际 FiveM 服务器 ID,否则玩家数量与玩家列表无法加载。
  • README 提供的支持渠道为 PX Scripts 的 Discord 与 Tebex 商店,属于外部服务,使用前需自行确认其可用性与相关条款。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

Live Server Status**: Real-time player count and player list from FiveM API

README 原文

const SERVER_ID = 'your-server-id-here';

README 原文

Discord: [PX Scripts](https://discord.gg/EvnYVr4S7Y)

README 原文
https://github.com/PhoenixGoDdev/fivem-web-template/blob/main/LICENSEhttps://github.com/PhoenixGoDdev/fivem-web-template/blob/main/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-04。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 77 / 100
技术栈
HTML
网站类型
启动器
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2025-08-22
截图检查日期
2026-10-04

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 HTML。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

审核声明: [email protected] · 2026-10-04

查看当时使用的来源资料

SHA-256: 7822db10944a9f9fa6ab2d487c8568468f4f69de57b8609fbe1a3e9cc55cca34

2026-10-04T03:22:50.459Z

来源文件 / 仓库
# 🎮 PX Scripts - FiveM Server Website Template

A modern, responsive, and feature-rich FiveM server website template designed for professional servers. This template provides everything you need to showcase your FiveM server with live player statistics, comprehensive information pages, and a sleek user interface.

## ✨ Features

### 🎯 **Core Functionality**
- **Live Server Status**: Real-time player count and player list from FiveM API
- **Dynamic Server ID**: Configurable via URL parameters or server configuration
- **Responsive Design**: Mobile-first design that works on all devices
- **Modern UI/UX**: Clean, professional interface with smooth animations
- **Cross-Browser Compatible**: Works on all modern browsers

### 🎨 **Design & Styling**
- **Tailwind CSS**: Utility-first CSS framework for rapid development
- **Custom Animations**: Smooth hover effects and page transitions
- **Dark Theme**: Professional dark color scheme optimized for gaming
- **Font Awesome Icons**: Comprehensive icon library for enhanced UI
- **Animate.css**: CSS animation library for engaging interactions

### 📱 **Pages & Sections**
- **Homepage**: Hero section, server stats, and quick navigation
- **About Us**: Server story, mission, vision, and team information
- **Rules**: Server rules and guidelines with detailed rulebook
- **Join Us**: Connection instructions and requirements
- **Membership**: Premium pass options and benefits
- **404 Error**: Custom error page with navigation

### 🔧 **Technical Features**
- **FiveM API Integration**: Live server data from `servers-frontend.fivem.net`
- **Express.js Server**: Simple Node.js server for local development
- **Static File Serving**: Optimized for deployment on any hosting platform
- **SEO Optimized**: Meta tags and semantic HTML structure
- **Performance Optimized**: Fast loading times and efficient resource usage

## 📁 File Structure

```
fivem-web-template/
├── 📄 index.html                 # Main homepage
├── 📄 404.html                   # Custom error page
├── 📄 server.js                  # Express.js development server
├── 📄 .htaccess                  # Apache configuration for production
├── 📄 _redirects                 # Netlify redirects configuration
├── 📄 logo (transparent).png     # Main logo
├── 📄 logo with text (transparent).png  # Logo with text
├── 📄 styles.css                 # Custom CSS styles and animations
├── 📄 script.js                  # General JavaScript functionality
├── 📄 server-status.js           # FiveM server status integration
└── 📁 pages/                     # Additional website pages
    ├── 📄 about.html             # About Us page
    ├── 📄 join.html              # Join/Connect page
    ├── 📄 rules.html             # Server rules overview
    ├── 📄 rulebook.html          # Detailed rulebook
    └── 📄 membership.html        # Membership passes page
```

## 🚀 Quick Start

### **1. Basic Setup**
1. **Clone or Download** the template files
2. **Upload** to your web hosting provider
3. **Configure** your server ID (see configuration section)
4. **Customize** content and branding
5. **Deploy** and share your website

### **2. Local Development**
```bash
# Navigate to project directory
cd fivem-web-template


# Start local development server
open the index.html on Browser   

# Open browser to http://localhost:3000
```

### **3. Production Deployment**
- **Traditional Hosting**: Upload all files via FTP/SFTP
- **GitHub Pages**: Push to repository and enable Pages
- **Netlify**: Drag and drop folder or connect Git repository
- **Vercel**: Import project and deploy automatically

## ⚙️ Configuration

### **Server ID Setup**

#### **Method : Edit server-status.js**
```javascript
// In server-status.js, line 3
const SERVER_ID = 'your-server-id-here';
```

### **Customization Options**

#### **Branding Changes**
- **Logo**: Replace `logo (transparent).png` with your own
- **Server Name**: Update titles in all HTML files
- **Colors**: Modify CSS variables in `styles.css`
- **Content**: Edit text content in HTML files

#### **Server Information**
- **Server IP**: Update connection links
- **Discord**: Add your Discord server invite
- **Social Media**: Update social media links
- **Rules**: Customize server rules and guidelines

## 🎨 Customization Guide

### **Changing Colors**
The template uses a blue color scheme. To change colors:

1. **Primary Colors**: Edit `styles.css` color variables
2. **Tailwind Classes**: Replace `blue-` classes with your preferred colors
3. **Custom CSS**: Modify gradient and shadow colors

### **Adding New Pages**
1. **Create HTML file** in `pages/` directory
2. **Copy header/footer** from existing pages
3. **Update navigation** in all page headers
4. **Add page link** to mobile menu

### **Modifying Server Status**
- **API Endpoint**: Change in `server-status.js`
- **Update Frequency**: Modify refresh intervals
- **Data Display**: Customize player information shown

## 🌐 Deployment Options

### **GitHub Pages**
1. **Create Repository** on GitHub
2. **Upload Files** to repository
3. **Enable Pages** in repository settings
4. **Set Source** to main branch
5. **Access** via `username.github.io/repository-name`

### **Netlify**
1. **Drag & Drop** project folder to Netlify
2. **Set Build Command** (leave empty for static sites)
3. **Set Publish Directory** (leave as root)
4. **Deploy** and get live URL

### **Traditional Hosting**
1. **Upload Files** via FTP/SFTP
2. **Ensure** `.htaccess` is uploaded
3. **Test** all pages and functionality
4. **Configure** domain and SSL

## 🔧 Troubleshooting

### **Common Issues**

#### **Server Status Not Loading**
- Check if server ID is correct
- Verify FiveM server is online
- Check browser console for errors
- Ensure CORS is not blocking requests

#### **Images Not Displaying**
- Verify image file paths are correct
- Check file permissions on server
- Ensure image files are uploaded

#### **Mobile Menu Not Working**
- Check if `script.js` is loaded
- Verify JavaScript console for errors
- Test on different mobile devices

#### **Connect Link Not Working**
- Ensure server ID is properly configured
- Check if FiveM client is installed
- Verify URL parameter format

### **Browser Compatibility**
- **Chrome**: Full support
- **Firefox**: Full support
- **Safari**: Full support
- **Edge**: Full support

## 📱 Mobile Optimization

### **Responsive Features**
- **Mobile-First Design**: Optimized for small screens
- **Touch-Friendly**: Large touch targets and gestures
- **Fast Loading**: Optimized images and resources
- **Mobile Menu**: Collapsible navigation for mobile devices

### **Performance Tips**
- **Optimize Images**: Use WebP format when possible
- **Minimize CSS/JS**: Remove unused styles and scripts
- **Enable Compression**: Use Gzip compression on server
- **CDN Usage**: Serve static assets from CDN


## 🤝 Support & Contributing

### **Getting Help**
- **Check Issues**: Look for similar problems in repository
- **Documentation**: Review this README thoroughly
- **Community**: Ask questions in FiveM community forums

### **Contributing**
1. **Fork** the repository
2. **Create** feature branch
3. **Make** your changes
4. **Test** thoroughly
5. **Submit** pull request

## 📄 License

This template is provided by **PX Scripts** for free use and modification. You are free to:

- ✅ Use for personal and commercial projects
- ✅ Modify and customize as needed
- ✅ Distribute modified versions
- ✅ Use for client projects

**Attribution**: While not required, credit to PX Scripts is appreciated.

## 🔗 Useful Links

- **FiveM Official**: https://fivem.net
- **FiveM API Documentation**: https://docs.fivem.net
- **Tailwind CSS**: https://tailwindcss.com
- **Font Awesome**: https://fontawesome.com
- **Animate.css**: https://animate.style

## 📞 Contact

- **Developer**: PX Scripts
- **Template**: FiveM Server Website Template
- **Version**: 1.0.0
- **Last Updated**: Aug 2025
- Discord: [PX Scripts](https://discord.gg/EvnYVr4S7Y)
- Tebex Store: [Tebex](https://px-scripts.tebex.io/)

---

**Made with ❤️ by PX Scripts for the FiveM community**

*This template provides a solid foundation for your FiveM server website. Customize it to match your server's unique identity and requirements.*

---

## 🚧 Coming Soon: React.js Version!

A modern FiveM website template built with **React.js** is in the works. Stay connected for updates and feel free to share your suggestions or feature requests!

- **React.js template coming soon**
- **Your feedback is welcome!**

Follow this repository or join our Discord to stay updated.
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。