Methods

  • Calls a procedure on the client.

    Type Parameters

    • T extends any[] = any

    Parameters

    • src: number

      The player source to call the procedure on.

    • procedure: string

      The name of the procedure to call.

    • Rest...args: any[]

      The arguments to pass to the client.

    Returns LuaMultiReturn<T>

    A promise that resolves when the client responds.

  • Deletes a procedure handler from the server.

    Parameters

    • procedure: string

      The name of the procedure to delete.

    Returns void

  • Registers a procedure that can be called from the client.

    Type Parameters

    • T extends any[] = any

    Parameters

    • procedure: string

      The name of the procedure to register.

    • callback: RPCCallback<T>

      The callback function to call when the procedure is called.

    Returns void