Onex
Onex
Home
Products
Documentation
Changelog
Login with FiveM
  • 👋 Welcome
  • Claim Purchase
  • Translations
    • Weaponmeta
    • Voice Interaction
      Integrations
      Installation
      Configuration
      Api
Artifacts Tracker
  1. Onex Scripts
  2. Scripts_guides / Features
Ctrl K

FEATURES#

onex-voiceInteraction is a voice recognition and NPC interaction system for FiveM. Players hold a key to speak — the script transcribes their speech and maps it to in-game actions across seven addon modules.

Core Voice System#

FeatureDetail
Default keyN (hold to speak)
LanguageAuto-detect or fixed (en, es, fr, de, it, and more)
Transcript displayOptional on-screen text below audio spectrum
TranslationPre-match translation with dual-match support

NUI Interface#

A custom in-game UI renders during voice activation:

  • Audio spectrum — visual waveform feedback while the player speaks
  • Transcript display — shows the recognized phrase in real time
  • Voice hints overlay — suggests available commands as 3D speech bubbles above NPCs and as a 2D screen panel

Addons#

Seven addon modules extend the core voice system into specific gameplay areas. Each addon can be individually enabled or disabled in shared/config.lua.

AddonDescription
NPC InteractSpeak to custom-defined NPCs to trigger server/client events
ShopsBuy items, check prices, and request inventory by voice at shop NPCs
Ambient NPCRandom world pedestrians respond to players who speak near them
Self-ExpressionVoice-triggered /me animations for emotional states
NPC LiftHail passing drivers by voice for a taxi-style ride with automatic fares
NPC RobberyRob pedestrians at gunpoint using voice commands
BankingSpeak to bank teller NPCs to check balance, deposit, and withdraw
HospitalCheck in at hospital reception NPCs and pay treatment fees by voice

Network Audio#

When NetworkAudio.enabled is true, NPC text-to-speech responses are broadcast to nearby players as positional audio. Each addon also has its own networkAudio toggle.

Translation Support#

The translation system allows servers running non-English communities to match voice commands in any language while preserving English config phrase definitions.

OptionBehavior
Translate.enabled = trueTranslates player speech before command matching
Translate.dualMatch = trueMatches against both raw and translated phrases
Translate.priorityControls which match wins: highest_score, raw_first, or translated_first

Last updated 3 months ago

Quick Links

All DocumentationOur Products