Function TriggerRegisterPlayerChatEvent

  • Registers a chat event.

    Parameters

    • whichTrigger: Trigger

      The trigger to which register the event.

    • whichPlayer: Player<PlayerEventMap>

      The player on which chat-messages to react to.

    • chatMessageToDetect: string

      The message to react to. Pass "" to react to any message.

    • exactMatchOnly: boolean

      true if only the exact string in chatMessageToDetect should fire the trigger. false will trigger if the chatMessageToDetect appears anywhere in the entered string.

    Returns Event

    Note

    The callback event will not have the EVENT_PLAYER_CHAT eventid, instead ConvertPlayerEvent(96) which has no attached global in common.j.

    Note

    Players removed by RemovePlayer will not fire chat events.

    ConvertPlayerEvent(96)

Generated using TypeDoc