GTA (FiveM · RageMP · SA-MP) 插件
多平台包:FiveM resource、RageMP 脚本、SA-MP/open.mp include + 月度等级。
分步指南
从服务器 listing 到自动奖励 — GTA。
-
创建服务器 listing
在 VoteServeur 添加 GTA 服务器 — 创建我的 listing。可在面板获取
server_token。 -
下载 ZIP 包
登录后在右侧面板选择服务器 → 即装 ZIP。token 自动注入。
-
在服务器上安装
解压到
FiveM · RageMP · SA-MP (voir INSTALL.txt)—server_token已在 ZIP 中。 -
测试 claim
在 listing 勾选奖励框并使用 游戏内昵称或 Steam ID 投票。脚本轮询
/api/v1/votes/pending再/votes/claim-username(约 15 秒)—claimed = 1时仅发放一次奖励。 -
配置月度等级
在包内编辑等级(YAML / Lua / JSON)。插件读取
/api/v1/votes/player(votes_month)以解锁渐进奖励。
完整服务器指南:创建 GTA 服务器 · API 文档
投票 → 奖励流程
- 玩家在 GTA listing 勾选奖励框并使用游戏内昵称 (推荐 Steam) 投票。
- 脚本轮询
/votes/pending并 claim(每 约 15 秒)。 claimed = 1→ 对该投票仅发放一次奖励。- 月度等级基于
/api/v1/votes/player(votes_month)。
包含的平台
此 ZIP 包含多个插件 — 安装匹配你服务器的那一个(另见 ZIP 内 INSTALL.txt):
fivem/voteserveur-rewards— FiveM — ESX/QB/独立资源ragemp— RageMP — packages/voteserveur/ 脚本samp— SA-MP / open.mp — Pawn 包含文件
安装 — GTA
原生包 — 解压到 FiveM · RageMP · SA-MP (voir INSTALL.txt)。server_token 已写入 ZIP 配置。
登录 VoteServeur →「即装 ZIP」按钮:自动注入 token,无需复制粘贴。
月度等级(示例)
可在包内编辑(按游戏 YAML / Lua / JSON)。占位符:{player} {votes_month} {votes_total}。
-
7+
Palier 7
say [VoteServeur] {player} : {votes_month} votes ce mois — bonus fidelite ! -
15+
Palier 15
say [VoteServeur] {player} VIP mois ({votes_month} votes) ! -
30+
Palier 30
say [VoteServeur] {player} legendaire ({votes_month} votes ce mois) !
端点
GET /api/v1/votes/pending?server_token=…
GET /api/v1/votes/claim?server_token=…&identity=…
GET /api/v1/votes/player?server_token=…&playername=…
GET /api/v1/votes/check?server_token=…&playername=…
GET /api/v1/votes/top?server_token=…&period=month&limit=10
GET /api/v1/server?server_token=…