🛂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