Give your FiveM AI NPCs a voice with your ElevenLabs key
By Termi2 min read
FiveBot's AI NPCs answer players on screen, in a speech bubble, a cinema subtitle or a side panel. With your own ElevenLabs key they also say the reply out loud, in the voice you pick for each character: a gruff mechanic, a tired desk clerk at the police station, or a voice you cloned in ElevenLabs.
How it sounds in game
The character turns to the player and speaks, and the voice gets quieter the further away the player stands. The text still appears on screen, and players talk to the character as before, by typing or by pressing E and speaking. The short lines a character says when someone walks past use the same voice.
Setting it up
- Create an API key in your ElevenLabs account.
- In the FiveBot dashboard open Configure, then Game server, then AI NPCs, and press ElevenLabs. Paste the key. FiveBot checks it with ElevenLabs before saving and stores it encrypted.
- Open a character and pick a voice. Your own voices, clones included, are listed apart from the stock ones.
Limits per character
Each character has its own voice rules: voice on or off, the number of spoken replies per day, the number per player per hour, and the hours when it speaks, in your time zone. Past a limit or outside those hours the character answers in text, at the text price, so a player who spams one character cannot drain your ElevenLabs balance.
What it costs
A spoken reply costs 1 FiveBot credit, the same as a text reply. The audio is made on your ElevenLabs account, so ElevenLabs bills it on your plan there. If ElevenLabs rejects the key or your balance there runs out, the characters switch to text and the dashboard shows a warning. The voices come back on their own with the next reply that goes through.
Cloned voices
You can give a character a voice you cloned in ElevenLabs, as long as the person whose voice it is agreed to it. The key and the account are yours, and ElevenLabs makes the audio under your agreement with them.
What the characters can do besides talking, such as healing a player for a fee or calling on-duty police: AI NPC actions.
Questions people ask
Which plan do I need?
AI NPCs come with Pro and up. Voices need nothing more than your own ElevenLabs key. Prices are on fivebot.ai/pricing.
Can players talk to the NPC by voice?
Yes. They press E and speak, with a countdown you set per character.
Is FiveBot affiliated with Cfx.re or ElevenLabs?
No. FiveBot is not affiliated with Cfx.re, Rockstar Games, Take-Two Interactive or ElevenLabs.