AI NPCs for FiveM roleplay servers: characters with a memory and secrets
By Termi3 min read
FiveBot adds AI NPCs to FiveM servers. Players walk up and talk to them by typing or by pressing E and speaking. Each NPC answers in text on screen, remembers the players it met, and keeps its secrets until a trigger you set is met.
Two kinds of NPC
- Story characters: a bartender who knows who owes money, an informant who only talks to people the gang trusts, a lawyer who remembers your last case. You write the character and its secrets, and FiveBot runs the conversation.
- Help desk NPCs: a clerk at city hall or a guide at the spawn who answers new players from your knowledge base, the same one your Discord tickets use, and hands anything else to staff.
Talking to them
A player near a character can type, or press E and speak. Pressing E opens the microphone with a countdown on screen. You set the time per character, from 5 to 20 seconds, and a second press of E sends early. One player talks at a time; the next one is told their place in line and gets the turn when the first walks away or stays quiet for 90 seconds.
The answer appears on screen in one of three looks you choose per server: a bubble over the character's head, cinema-style subtitles, or a side panel with the character's portrait. You also pick the accent colour, a light or dark tone and the size. The dashboard previews the exact screen players will see.
A small AI tile floats above every AI character, so players can tell from a distance who they can talk to. You can switch it off in the same editor, under AI tile over characters.
Replies are text only. Spoken replies are switched off for now, and a player who speaks to a character still gets the answer on screen.
Places and opening hours
One character can stand in up to ten places, each with its own days and hours. Outside its hours a character either disappears or stays and says a line you wrote, such as "We're closed, come back tomorrow", with no AI call and no credits spent.
Who they talk to
A character can talk to everyone, only to some jobs or gangs, or to everyone except them. The bridge reads the job, grade and gang from ESX, QBCore, Qbox, ox_core or vRP, so a character can greet a police officer by rank and refuse to talk to anyone outside the cartel. You also choose whether replies are short or normal and what the character says when it does not know.
Memory and secrets
An NPC that forgets everyone breaks immersion on the second visit. An NPC that tells anyone anything breaks your storyline on the first. FiveBot NPCs remember each player they met. A secret stays out of the model's prompt entirely until its trigger fires, and it can require a job or gang as well. When a player earns a secret, the NPC can mark a spot on their map.
The trigger also sees the last few turns of the conversation, so you can build the classic informant: asked directly, he deflects; once the player says the right name, he gives directions.
Players will try to talk an NPC into "remembering" things or stepping out of its role. Those lines get an answer in character, and the NPC knows only the lore you wrote.
What you need
- A FiveBot Pro plan, with five NPC slots, or Network, with 25.
- Your server connected through the FiveBot resource, with OneSync on. Installing the bridge.
- A knowledge base for help desk NPCs, which you probably already have if you use AI tickets.
A reply costs one credit from the same monthly pool as your AI tickets, whether the player typed or spoke.
Questions people ask
Can the NPC invent lore?
A story character speaks in character from the profile you write. Help desk NPCs answer only from your knowledge base and hand the rest to staff.
Do NPCs see moderation data?
No. Characters have no access to bans, reports or tickets.
Do players need anything installed?
No. NPCs run through your server; players talk to them in game.
Is FiveBot affiliated with Cfx.re?
No. FiveBot is not affiliated with Cfx.re, Rockstar Games or Take-Two Interactive.