Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

CallbackFn<T>: (data: T, cb: NuiCallbackFunc) => void

Type parameters

  • T

Type declaration

LogLevelId: keyof LogLevels
LogLevelName: LogLevels[LogLevelId]
NuiCallbackFunc: (val: any) => void

Type declaration

    • (val: any): void
    • Parameters

      • val: any

      Returns void

RPCListenerCb<T, R>: (data: T) => R

Type parameters

  • T

  • R

Type declaration

    • (data: T): R
    • Parameters

      • data: T

      Returns R

Functions

  • RegisterNuiCB<T>(event: string, callback: CallbackFn<T>): void
  • A wrapper for handling NUI Callbacks

    Type parameters

    • T = any

      The data type of the data sent back to the client

    Parameters

    • event: string

      The event name to listen for

    • callback: CallbackFn<T>

      The callback function

    Returns void

Generated using TypeDoc