Knight Remotes API

KnightRemotes API Documentation - Version 1.0.4
Overview
Functions
Remotes:GetAsync(RemoteName: string) -> await RemoteAPI
Remotes:GetAsync(RemoteName: string) -> await RemoteAPIRemotes:Get(RemoteName: string) -> RemoteAPI | boolean
Remotes:Get(RemoteName: string) -> RemoteAPI | booleanRemotes:Fire(RemoteName: string, ...) -> (any...)
Remotes:Fire(RemoteName: string, ...) -> (any...)Remotes:FireAllNearby(RemoteName: string, position: Vector3, maxDistance: number | boolean, ...) -> (any...)
Remotes:FireAllNearby(RemoteName: string, position: Vector3, maxDistance: number | boolean, ...) -> (any...)Remotes:FireAll(RemoteName: string, ...) -> (any...)
Remotes:FireAll(RemoteName: string, ...) -> (any...)Remotes:Connect(RemoteName: string, callback: () -> void | nil | boolean) -> void
Remotes:Connect(RemoteName: string, callback: () -> void | nil | boolean) -> voidRemotes:Register(RemoteName: string, RemoteClass: string, Callback: any) -> void
Remotes:Register(RemoteName: string, RemoteClass: string, Callback: any) -> voidRemotes:RegisterMiddleware(Target: string, Callback: (Player: Player, ...any) -> boolean): void
Remotes:RegisterMiddleware(Target: string, Callback: (Player: Player, ...any) -> boolean): voidRemotes:UnregisterMiddleware(Target: string): void
Remotes:UnregisterMiddleware(Target: string): voidRemoteAPI:Fire(...) -> (any...)
RemoteAPI:Fire(...) -> (any...)RemoteAPI:FireAll(...) -> (any...)
RemoteAPI:FireAll(...) -> (any...)RemoteAPI:FireAllNearby(position: Vector3, maxDistance: number | boolean, ...) -> (any...)
RemoteAPI:FireAllNearby(position: Vector3, maxDistance: number | boolean, ...) -> (any...)RemoteAPI:Connect(callback: () -> void | nil | boolean) -> void
RemoteAPI:Connect(callback: () -> void | nil | boolean) -> voidRemoteAPI:OnDestroying(callback: (RemoteName: string) -> void) -> void
RemoteAPI:OnDestroying(callback: (RemoteName: string) -> void) -> voidRemoteAPI:Destroy()
RemoteAPI:Destroy()Examples / Code Samples
Getting and Firing a Remote
Registering a New Remote with a Callback
Using Middleware for Validation
Firing a Remote to Nearby Players
Connecting a Callback to an Existing Remote
Destroying a Remote and Handling Cleanup
Using Grouped Event Names
Last updated