跳到正文
MAIL· 来源· @RealMarvelX · X·· 5 天前精选AI 评分70
推荐理由

原文提供了结合Claude Code与三个开源项目构建FiveM动态NPC的具体步骤,具备可迁移的实操参考价值。

正文 · 原文

this Claude Code + GTA 6 business idea could make $30K licensing AI NPCs to 100 FiveM servers.

most RP servers have NPCs that follow scripts and repeat the same dialogue.

but imagine NPCs that remember players, talk to each other, make plans, and react to what happens in the city.

you can build a system like this using Claude Code and 3 open-source projects.

here’s how the setup works:

three NPCs run on AI, each with its own memory and access to a private communication channel the player never sees.

  • the tipster: gathers information and shares secrets.
  • the bartender: listens to conversations and works the room.
  • the enforcer: watches from the shadows and waits for instructions.

they can exchange information behind the scenes, so their behaviour feels connected instead of scripted.

3 open-source repos make this possible:

1. Generative Agents

gives NPCs memory, reflection, and planning capabilities.

GitHub: https://github.com/joonspk-research/generative_agents

2. Mem0

adds long-term memory so NPCs can remember players, past interactions, money, and previous events.

GitHub: https://github.com/mem0ai/mem0

3. AI Town

provides a foundation for AI agents that interact and communicate with one another.

GitHub: https://github.com/a16z-infra/ai-town

how to build it with Claude Code:

  1. clone all three repositories into one project folder.
  2. give Claude Code access to the codebases.
  3. ask it to adapt the architecture for FiveM using Lua.
  4. connect each NPC to its own memory.
  5. create a private communication channel for NPC-to-NPC interactions.
  6. connect their decisions and actions to your FiveM server.

your goal is to create:

  • bartenders who gossip about player crimes.
  • informants who sell information.
  • cops who remember repeat offenders.
  • gangs that coordinate based on player behaviour.

here’s where the money comes in.

instead of building an entire RP server, you could develop an AI NPC system and license it to server owners.

at $300 per server, 100 paying servers would generate $30,000.

read the article below for the complete setup.

which NPC would you build first: the bartender, the informant, or the enforcer?

来源:MAIL · x.com