FiveM AI NPCs that heal players, call the police and sell secrets
By Termi3 min read
A FiveBot NPC already talks in character, remembers players and keeps secrets until the right question comes. Now it can also act on what a player says or does. You write the condition in plain words, and the character does the rest in the same reply, at no extra cost.
Four things a character can do
| Action | Example | What happens in game |
|---|---|---|
| Heal | "The player asks to be treated or patched up" | The character treats the player through your medical script, and charges the price you set. |
| Call for help | "The player threatens someone or pulls a weapon" | On-duty players with the jobs you pick get an alert in chat, a sound and a mark on the map for two minutes. |
| Walk away | "The player points a weapon at the character" | The character stops talking to that player for the minutes you set. |
| Your script | "The player asks for work" | Your server script gets an event and starts whatever you wrote, like a delivery job. |
Each character can have up to eight actions. An action runs at most once per player every five minutes, so nobody farms free healing.
The character sees the scene
The condition is checked against what the player says and what the character sees: the kind of weapon in the player's hand, whether it is aimed at them, how badly the player is hurt and whether other armed people stand nearby. "Walk away from anyone holding a gun" works without the player saying a word about it. Players standing within 10 metres see the character's answer as a bubble too.
Charging money
An action can cost money. You pick the price and whether it comes from clean money or dirty money. Clean money is taken from cash first, then from the bank.
Secrets can have a price as well. The informant in the docks names his price, and only tells the secret once the player pays. Until the trigger fires, the secret is not even in the model's prompt.
Only when no medic is on duty
Off while on duty stops an action when players with certain jobs are working. A doctor NPC that heals only when no EMS player is on duty keeps your medics in business and still helps players at 4 a.m.
Setting it up
- Update the FiveBot bridge to 0.25.0 or newer.
- Open AI NPCs in the dashboard, pick a character and open Actions.
- Press Add action and start from one of the ready ones: Treats players for a fee, Calls the police on threats, Walks away from armed players, Starts a job from your script. Change anything you like and save.
For Your script, the event to listen for and a short code example sit right under the action. It works the same on ESX, QBCore, Qbox, ox_core, vRP and custom frameworks.
What it costs
Actions are decided in the same AI call as the reply, so a text reply still costs one credit. How AI NPCs work.
Questions people ask
Which plan do I need?
AI NPCs come with Pro and Network. Prices are on fivebot.ai/pricing.
Which medical scripts does Heal use?
The same ones the player card uses, like esx_ambulancejob, qbx_medical and wasabi_ambulance. Without one, the bridge heals the player itself.
Can a player talk the NPC into healing for free?
No. The price is set in the dashboard and charged by the server, not by the model.
Is FiveBot affiliated with Cfx.re?
No. FiveBot is not affiliated with Cfx.re, Rockstar Games or Take-Two Interactive.