๐ LRRP AINPC โ Interactive NPC Knowledge & Voice System
๐๏ธ Give Your NPCs Knowledge, Conversation & Voice
๐ FREE & ๐ PREMIUM | FiveM
Turn ordinary FiveM NPCs into interactive sources of information using server-owner-authored knowledge, local conversation matching and voice interaction.
Players can face an NPC and talk using PTT. Their speech is transcribed before LRRP AINPC's local knowledge engine determines the subject and selects an existing pre-written response.
๐ซ NO AI-GENERATED NPC DIALOGUE
Gemini does NOT dynamically create the NPC's answer.
โ
All NPC response text is pre-written
โ
Server owners control the knowledge
โ
Keywords and phrases are matched locally
โ
Conversation context is local
โ
Responses are selected locally
โ
Gemini cannot invent server facts
โ
Gemini does not choose the answer
โ
Gemini does not rewrite the answer
โ
No dynamically AI-written quests or stories
โ
No dynamically AI-written NPC dialogue
Gemini integration is restricted to:
๐๏ธ Speech-to-Text โ player microphone โ transcript
๐ฃ๏ธ Text-to-Speech โ selected pre-written response โ spoken audio
The actual conversation logic remains inside LRRP AINPC:
Player Voice โ Gemini STT โ Local Matcher โ Pre-Written Response โ Gemini TTS
๐ง TEACH NPCs ABOUT YOUR SERVER
Create knowledge covering:
๐ท Jobs
๐ง Mechanics
๐ Police systems
๐ Medical systems
๐ช Businesses
๐ Housing
๐ฐ Economy
๐ Vehicles
๐ Locations
๐ Items
๐จ Crafting
๐ฎ Activities
๐ Commands
๐ New-player information
๐งฉ Quests & clues
โ๏ธ Custom scripts & systems
Knowledge is configurable rather than generated dynamically by an LLM.
๐ฌ NATURAL LOCAL MATCHING
Players don't have to use one exact sentence.
For example:
โWhere's the mechanic?โ
โKnow where I can repair my car?โ
โWhere do I get my vehicle fixed?โ
can all be configured to resolve to the same pre-written knowledge entry.
๐ง FOLLOW-UP CONTEXT
NPCs can retain the current subject.
Player: โWhere's the mechanic?โ
NPC: gives the configured mechanic answer.
Player: โWhat time does it open?โ
NPC: can continue using the mechanic context.
The follow-up system does not require an LLM to invent a conversation.
๐บ๏ธ CLUE / SERVER HELP
Server owners can configure clue phrases with progressive hints.
Players can speak or type distinctive wording from a clue and have LRRP AINPC locally identify the relevant configured entry.
๐ก Hint 1 โ subtle
๐ก๐ก Hint 2 โ stronger
๐ก๐ก๐ก Hint 3 โ clear direction
๐ VOICE INTERACTION
๐๏ธ PTT voice input
โ๏ธ Male NPC voices
โ๏ธ Female NPC voices
๐ฌ Subtitle support
๐ NPC talking behaviour
๐ง Optional original/licensed prerecorded .ogg / .wav audio
๐ Gemini TTS reading the already-selected response
Recorded human audio can be configured to take priority.
No Rockstar/GTA voice recordings are included or modified.
๐ถ NPC COMPANION FEATURES
Configurable deterministic commands include:
๐ถ Follow
โ Stay
๐ Release
๐ง Crouch
๐ Premium expands available FiveM behaviour with additional crew and vehicle-related functionality.
๐ FREE EDITION
โ
Core NPC conversations
โ
PTT voice interaction
โ
/ainpc typed fallback
โ
Local keyword matching
โ
Pre-written server knowledge
โ
Follow-up context
โ
Gemini STT + TTS
โ
Male/female voices
โ
Basic clue system
โ
Basic companion controls
โ
LRRP Free branding
Free limit: 5 successful NPC replies globally/server-wide every 12 hours.
๐ PREMIUM EDITION
โพ๏ธ Unlimited NPC conversations
โพ๏ธ Unlimited knowledge entries
โพ๏ธ Unlimited clue entries
๐ง Full local knowledge system
๐๏ธ PTT + typed interaction
๐ฌ Follow-up context
๐ฃ๏ธ Male/female voice support
๐ง Custom prerecorded voice support
๐ Expanded crew/vehicle interaction options
๐จ Editable branding
โ๏ธ Editable configuration
Gemini account limits and API quotas still apply to STT/TTS.
โ๏ธ REQUIREMENTS
Platform: FiveM / GTA V
Resource name: LRRP_AINPC
Framework: Standalone conversation core
Database: None required for base operation
Gemini: Google Gemini API key required for STT/TTS
Microphone: Browser/NUI microphone permission required for PTT
OneSync: Recommended
Premium protection: CFX Asset Escrow
Paid delivery: Tebex / CFX Asset Delivery
Installation:
set ainpc_gemini_key "YOUR_GEMINI_API_KEY"
ensure LRRP_AINPC
The Gemini API key remains server-side.
โก PERFORMANCE
LRRP AINPC is interaction-driven. It does not continuously generate conversations for ambient NPCs.
โ
Local knowledge matching
โ
Interaction-based processing
โ
No continuous LLM NPC generation
โ
No remote code execution/loading
โ
No AI-generated NPC answer text
๐ CFX PERFORMANCE EVIDENCE:
Attach your current FiveM Resource Monitor/profiler screenshot here before publishing.
CFX specifically requests performance indicators such as Resource Monitor numbers or a profiler screenshot for script releases.
๐ฆ DOWNLOAD / PURCHASE
๐ฌ LRRP Studio Support
โ ๏ธ For the CFX Free topic: attach the Free resource directly, link to a public repository, or replace the category link with the direct Free Tebex package. The resource has to be immediately available.
๐ CFX RELEASE INFORMATION
FREE
PREMIUM
Code is accessible
Yes
Partially โ editable configs/knowledge
Subscription-based
No
No
Lines (approximately)
~2,100
~2,100
Requirements & dependencies
FiveM, Gemini API key for STT/TTS
FiveM, Gemini API key for STT/TTS
Support
Yes
Yes
Protection
None / Free distribution
CFX Asset Escrow
Delivery
CFX upload/public repo/direct Free Tebex package
Tebex / CFX Asset Delivery
Suggested CFX tags: script โข standalone โข free / paid โข escrow where applicable.