Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • NUIEvent

Index

Methods

Methods

  • emit(name: string, data?: Record<string, any>): void
  • description

    Trigger NUI event

    Parameters

    • name: string
    • data: Record<string, any> = {}

    Returns void

  • listen(name: string, handler: (data: any, callback: (data: Record<string, any>) => void) => any): void
  • description

    Add a listener for NUI callback events.

    Parameters

    • name: string
    • handler: (data: any, callback: (data: Record<string, any>) => void) => any
        • (data: any, callback: (data: Record<string, any>) => void): any
        • Parameters

          • data: any
          • callback: (data: Record<string, any>) => void
              • (data: Record<string, any>): void
              • Parameters

                • data: Record<string, any>

                Returns void

          Returns any

    Returns void

Generated using TypeDoc