💟
17 Movement
  • Main
    • 👋Homepage
    • 🛒Our Bestseller
    • 🆘Support
  • Multiplayer Jobs
    • 💡Understanding Our Structure
    • 📟Most Used Config Options
    • 🐛Common Issues
      • ⚡Electrician Game Freeze
      • ⬛Black Screen on Start
      • 👚Job Clothes Issue
  • 🎙️Speech Recognition
    • 📑Overview
    • 🗣️Available Languages
    • 🔃Basic Stuff
    • ‼️Blacklisting words
    • 🎤Actions
    • 🕵️Custom Actions
    • 🛂Custom Action via export
    • 💡Limits
  • 🎙️Talk With NPC
    • 🔍Requirments
    • 🗣️Available Languages
  • 👌 Advanced Hud
    • 📑Overview
    • 📎Usage in other resources
Powered by GitBook
On this page
  1. Speech Recognition

Custom Action via export

You can also add custom actions via export as following:

exports["17mov_SpeechRecognition"]:NewAction({
    phrases = {
        "recognition test",
        -- Make as much phrases for this action you want.
    },

    blockInVehicle = true,

    actionType = "event",
    eventType = "client",
    eventName = "17mov_SpeechRecognition:TestPhrase",
    arguments = {
        arg1 = "17movement.net",
    },

    -- actionType = "executeCommand",
    -- commandString = "e flip",

    -- actionType = "custom",
    -- actionFunction = function(recognizedSentence)
    --     -- Add here ur custom code
    -- end,
})

Last updated 2 years ago

🎙️
🛂