π€ LRRP AINPC β Interactive NPC Knowledge & Voice System
(no ai)
ποΈ Pre-Written Conversations β’ Gemini STT/TTS β’ Local Knowledge Engine
π FREE & π PREMIUM | RedM
LRRP AINPC brings interactive, knowledgeable NPCs to your RedM server without allowing an AI model to dynamically write NPC dialogue.
Players can face an NPC and speak naturally using PTT. Their speech is transcribed, then LRRP AINPC handles the actual conversation locally by matching the player's words against server-owner-configured knowledge and selecting an existing pre-written response.
The selected response can then be spoken aloud using male/female voice output.
π« NO AI-GENERATED NPC DIALOGUE
This is the most important distinction:
β
NPC dialogue is pre-written
β
Server information is configured by the server owner
β
Keyword & phrase matching happens locally
β
Conversation context is handled locally
β
NPC answers are selected locally
β
Gemini does not write NPC answers
β
Gemini does not choose the answer
β
Gemini does not alter the selected answer
β
Gemini does not invent server information
β
No dynamically generated quests, stories or server lore
Gemini is restricted to speech input/output:
ποΈ STT β converts player speech into a transcript
π§ LRRP Local Engine β selects an existing pre-written answer
π£οΈ TTS β speaks that already-selected response aloud
Player Voice β STT β Local Matching β Pre-Written Answer β TTS
π§ CUSTOM SERVER KNOWLEDGE
Configure what your NPCs know.
NPCs can be given information about:
βοΈ Jobs & professions
π¨ Crafting & recipes
π Horses & stables
πΎ Farming & ranching
π£ Fishing & hunting
πͺ Businesses & shops
π° Economy & trading
βοΈ Law & criminal systems
πΊοΈ Locations & travel
π Server commands
π§© Clues & quests
π Tutorials & newcomer information
βοΈ Custom server systems
Everything comes from your configured knowledge, rather than an LLM inventing an answer.
π¬ NATURAL QUESTIONS & FOLLOW-UPS
Different phrases can lead to the same configured knowledge.
Player: βWhere can I find iron?β
Player: βKnow where the iron mine is?β
Player: βWhere do I mine iron?β
All can resolve to the same pre-written Iron knowledge.
Conversation context also supports follow-ups:
Player: βWhere can I find iron?β
NPC: gives the configured Iron location response.
Player: βWhat level do I need?β
NPC: understands the conversation is still about Iron.
πΊοΈ CLUE & SERVER HELP
Clue support can recognise distinctive words from configured clues.
A player could say:
βI'm looking for a rock face north of Annesburg.β
The local matcher can identify the relevant configured clue and provide progressive pre-written hints.
Hints can progress from:
π‘ Subtle hint
π‘π‘ Stronger hint
π‘π‘π‘ Clear direction
No AI needs to invent the clue solution.
π£οΈ NPC VOICES
ποΈ PTT interaction
βοΈ Male NPC voice support
βοΈ Female NPC voice support
π¬ Subtitles
π Talking/mouth behaviour
π§ Optional original/licensed prerecorded .ogg / .wav lines
π Gemini TTS for configured pre-written responses
Recorded audio can take priority when supplied.
No Rockstar/RDR2 voice recordings are included or modified.
Server owners are responsible for ensuring custom recordings they add are original or properly licensed.
π REDM NPC INTERACTIONS
NPC functionality includes configurable companion behaviour such as:
π€ Follow
β Stay
π Release
π§ Crouch
π Premium expands available RedM behaviour with additional posse, horse and wagon-related interactions.
π FREE EDITION
β
Core NPC conversation system
β
PTT voice interaction
β
Typed /ainpc fallback
β
Local keyword & phrase matching
β
Pre-written knowledge
β
Conversation context
β
Gemini STT + TTS
β
Male/female voice support
β
Basic clue support
β
Basic companion controls
β
Permanent LRRP Free branding
Free limit: 5 successful NPC replies globally/server-wide every 12 hours.
Once the shared allowance is exhausted, additional replies remain unavailable until it resets.
π PREMIUM EDITION
βΎοΈ Unlimited NPC conversations
βΎοΈ Unlimited configured knowledge
βΎοΈ Unlimited clue entries
ποΈ PTT + typed interaction
π§ Full local knowledge system
π¬ Follow-up conversation context
π£οΈ Male/female voice support
π§ Custom recorded voice support
π Expanded posse/horse/wagon interaction options
π¨ Editable branding
βοΈ Editable configuration
External Gemini API quotas/rate limits still apply to STT/TTS.
βοΈ REQUIREMENTS
Platform: RedM / RDR2
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 voice interaction
OneSync: Recommended
Premium protection: CFX Asset Escrow
Paid delivery: Tebex / CFX Asset Delivery
Server configuration:
set ainpc_gemini_key "YOUR_GEMINI_API_KEY"
ensure LRRP_AINPC
The Gemini API key is handled server-side and is not intentionally exposed through the NUI.
β‘ PERFORMANCE
The knowledge engine operates when players interact with NPCs. It does not continuously send every NPC to an LLM or dynamically generate background NPC conversations.
β
Event/interaction-driven knowledge matching
β
Local dialogue selection
β
No continuous LLM conversation generation
β
No remote code loading
π CFX PERFORMANCE EVIDENCE:
Attach your current RedM Resource Monitor/profiler screenshot here before publishing.
CFX requires performance indicators for script releases.
π¦ DOWNLOAD / PURCHASE
π¬ LRRP Studio Support
β οΈ For the CFX Free release: attach the Free ZIP directly to the topic or replace the Free category link above with the direct Free Tebex package URL. CFX requires Free releases to be immediately obtainable.
π CFX RELEASE INFORMATION
FREE
PREMIUM
Code is accessible
Yes
Partially β editable configs/knowledge
Subscription-based
No
No
Lines (approximately)
~7,000
~7,000
Requirements & dependencies
RedM, Gemini API key for STT/TTS
RedM, 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