file-linesEvents

circle-info

These events are safe to trigger and handle in other scripts.

setAI

Triggers when the AI character is changed. Can be triggered to change the concierge character.

RegisterNetEvent('mad_goon:client:setAI', function(character, location)
  • character: string

    • The character name 'angel' | 'haviland' | 'og'

  • location?: LocationInput

    • The location to play the speech from

Example:

TriggerEvent('mad_goon:client:setAI', 'haviland')

setAddressal

Triggers when the player addressal preference is changed. Can be triggered to change how the concierge addresses the player.

RegisterNetEvent('mad_goon:client:setAddressal', function(addressal, location)
  • addressal: string

    • How the concierge addresses the player ('male' | 'female')

  • location?: LocationInput

    • The location to play the speech from

Example:


circle-exclamation

playRandomSpeech

Triggers from selection options. Can be triggered to 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

Example:


triangle-exclamation

playVoice

Handles playing a voice response from the concierge (internal use).

  • data: SpeechData


openMenu

Opens the AI interaction menu (internal use).

Last updated