file-linesFunctions

talk

Send a message to the concierge and receive a context-aware voice response.

exports['mad-goon']:talk(message, isNetworked, location)
  • message: string

    • The message to send

  • isNetworked?: boolean

    • Whether to play speech for nearby players

  • location?: LocationInput

    • The location to play the speech from

  • returns: boolean

    • Whether the voice was triggered successfully

exports['mad-goon']:talk('hello there')
exports['mad-goon']:talk('hello there', 'above')
exports['mad-goon']:talk('hello there', GetVehiclePedIsIn(cache.ped, false))
exports['mad-goon']:talk('hello there', vector3(100, 200, 30))
exports['mad-goon']:talk('hello there', {0, 0, 2})

getCharacter

Get the current concierge character.

  • returns: 'angel' | 'haviland' | 'og'

    • The currently selected concierge


setCharacter

Set the concierge character.

  • character: CharacterName

    • The concierge to use

  • returns: boolean

    • Whether the character was set successfully


getAddressal

Get the current addressal preference.

  • returns: 'male' | 'female'

    • The currently selected addressal


setAddressal

Set how the concierge addresses the player.

  • addressal: Addressal

    • How the concierge should address the player

  • returns: boolean

    • Whether the addressal was set successfully


getAvailableCharacters

Get a list of available concierge characters.

  • returns: string[]

    • Array of available character names


getAvailableAddressals

Get a list of available addressal options.

  • returns: string[]

    • Array of available addressal options


playSpeech

Play a speech line directly, bypassing NLP.

  • speechName: string

    • The R* speech bucket name

  • character: 'angel' | 'haviland' | 'og'

    • The concierge voice to use

  • addressal: 'male' | 'female'

    • How the concierge should address the player

  • isNetworked?: boolean

    • Whether to play speech for nearby players

  • location?: LocationInput

    • The location to play the speech from


playRandomLine

Play a random line from the DLC's voices, respecting set character and gender.

  • isNetworked?: boolean

    • Whether to play speech for nearby players

  • location?: LocationInput

    • The location to play the speech from


openMenu

Opens the AI interaction menu.

Last updated