@ragemp-mango/server 2.0.6-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +20 -0
- package/dist/index.d.ts +441 -0
- package/dist/index.js +6595 -0
- package/package.json +53 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Aurėjus Remeika
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
## Mango Framework
|
|
2
|
+
|
|
3
|
+
A simple, lightweight, and powerful TypeScript framework for building RageMP servers.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Mango Framework is built with TypeScript and provides a powerful type system for your application.
|
|
8
|
+
- Mango Framework has a wide range of decorators that allow you to easily create and manage your resource flow.
|
|
9
|
+
- Mango Framework is built with modularity in mind, allowing you to organize your application into small, reusable pieces.
|
|
10
|
+
- Mango Framework uses InversifyJS under the hood to provide a powerful dependency injection for your application.
|
|
11
|
+
- Mango Framework uses controllers to group and listen to events/rpcs together under a single class.
|
|
12
|
+
- Mango Framework uses Guards, Interceptors, and Error Filters to create a powerful pipeline that allows you to easily manage every incoming event/rpc.
|
|
13
|
+
|
|
14
|
+
## Documentation
|
|
15
|
+
|
|
16
|
+
[Documentation](https://ragemp-mango.vercel.app)
|
|
17
|
+
|
|
18
|
+
## License
|
|
19
|
+
|
|
20
|
+
[MIT](https://choosealicense.com/licenses/mit/)
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
import { MangoRequest as MangoRequest$1, MangoResponse as MangoResponse$1, ErrorFilter as ErrorFilter$1, ExecutionContext as ExecutionContext$1, Guard as Guard$1, Interceptor as Interceptor$1, EventEmmiter, ScriptEventHandler, MultiplayerService, AppBuilder } from '@ragemp-mango/core/app';
|
|
2
|
+
import { RPCCallOptions, RPCResult, ScriptRPCHandler, Newable, Pipe, ModuleOptions, InjectionToken, OnAppShutdown, OnModuleInit, ReflectorService, DynamicModule } from '@ragemp-mango/core';
|
|
3
|
+
export { GuardCancelError, GuardInvalidReturnError, MangoError, TooManyRequests, UnknownError } from '@ragemp-mango/core';
|
|
4
|
+
export { Body, Catch, Controller, Cron, EveryTick, Global, Index, Inject, Injectable, Interval, Module, Optional, Param, Req, Request, Res, Response, SetMetadata, Timeout, UsePipes, applyDecorators, createParamDecorator, forwardRef } from '@ragemp-mango/core/decorators';
|
|
5
|
+
export { ArgumentMetadata, BeforeAppShutdown, CallHandler, ClassProvider, ControllerOptions, CreateDecoratorOptions, CreateDecoratorWithTransformOptions, DynamicModule, ExistingProvider, FactoryProvider, InjectableOptions, LoggerService, ModuleOptions, OnAppBootstrap, OnAppShutdown, OnModuleDestroy, OnModuleInit, OptionalFactoryDependency, Pipe, Provider, RPCCallOptions, RPCError, RPCResult, ReflectableDecorator, ScriptRPCHandler, ValueProvider } from '@ragemp-mango/core/interfaces';
|
|
6
|
+
export { Abstract, CustomDecorator, InjectionToken, Newable } from '@ragemp-mango/core/types';
|
|
7
|
+
export { EVENT_SERVICE, LOGGER_SERVICE, MODULE_CONTAINER, REFLECTOR_SERVICE, RPC_SERVICE, TIMER_SERVICE } from '@ragemp-mango/core/constants';
|
|
8
|
+
export { InjectableScope, RPCResultStatus } from '@ragemp-mango/core/enums';
|
|
9
|
+
export { DefaultValuePipe } from '@ragemp-mango/core/pipes';
|
|
10
|
+
export { generateRandomId, isConstructor, isEmpty, isFunction, isNil, isNumber, isObject, isString, isSymbol, isUndefined } from '@ragemp-mango/core/utils';
|
|
11
|
+
export { ReflectorService, TimerService } from '@ragemp-mango/core/services';
|
|
12
|
+
|
|
13
|
+
interface MangoRequest extends MangoRequest$1 {
|
|
14
|
+
player?: PlayerMp;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface MangoResponse extends MangoResponse$1 {
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface ErrorFilter<T = unknown> extends ErrorFilter$1<T, MangoRequest, MangoResponse> {
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface ExecutionContext<TRequest extends MangoRequest = MangoRequest, TResponse extends MangoResponse = MangoResponse> extends ExecutionContext$1<TRequest, TResponse> {
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface Guard extends Guard$1<MangoRequest, MangoResponse> {
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface Interceptor<THandlerResult = unknown> extends Interceptor$1<THandlerResult, MangoRequest, MangoResponse> {
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface ServerEventEmmiter extends EventEmmiter {
|
|
33
|
+
emitPlayer(player: MultiplayerPlayer, eventName: string, ...args: any[]): void;
|
|
34
|
+
emitAllPlayersRaw(eventName: string, ...args: any[]): void;
|
|
35
|
+
emitAllPlayersUnreliableRaw(eventName: string, ...args: any[]): void;
|
|
36
|
+
emitUnreliableRaw(players: MultiplayerPlayer[], eventName: string, ...args: any[]): void;
|
|
37
|
+
onPlayer(eventName: string, listener: (...args: any[]) => void): ScriptEventHandler;
|
|
38
|
+
oncePlayer(eventName: string, listener: (...args: any[]) => void): ScriptEventHandler;
|
|
39
|
+
offPlayer(eventName: string, listener: (...args: any[]) => void): void;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface ServerMultiplayerService extends MultiplayerService {
|
|
43
|
+
Events: ServerEventEmmiter;
|
|
44
|
+
getPlayer(): any;
|
|
45
|
+
setBlipFactory(factory: unknown): void;
|
|
46
|
+
setMarkerFactory(factory: unknown): void;
|
|
47
|
+
setColShapeFactory(factory: unknown): void;
|
|
48
|
+
setCheckpointFactory(factory: unknown): void;
|
|
49
|
+
setObjectFactory(factory: unknown): void;
|
|
50
|
+
setPedFactory(factory: unknown): void;
|
|
51
|
+
setPlayerFactory(factory: unknown): void;
|
|
52
|
+
setVehicleFactory(factory: unknown): void;
|
|
53
|
+
setVirtualEntityGroupFactory(factory: unknown): void;
|
|
54
|
+
setVirtualEntityFactory(factory: unknown): void;
|
|
55
|
+
setVoiceChannelFactory(factory: unknown): void;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
interface MultiplayerPlayer {
|
|
59
|
+
emit(eventName: string, ...args: any[]): void;
|
|
60
|
+
emitRaw(eventName: string, ...args: any[]): void;
|
|
61
|
+
emitWebView(webViewId: string | number, eventName: string, ...args: any[]): void;
|
|
62
|
+
valid: boolean;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
interface EventService {
|
|
66
|
+
on<E extends keyof MangoEvents.CustomServerEvent>(eventName: E, callback: (body: Parameters<MangoEvents.CustomServerEvent[E]>[0]) => void | Promise<void>): ScriptEventHandler;
|
|
67
|
+
on<E extends string>(eventName: Exclude<E, keyof MangoEvents.CustomServerEvent>, callback: (body: unknown) => void | Promise<void>): ScriptEventHandler;
|
|
68
|
+
once<E extends keyof MangoEvents.CustomServerEvent>(eventName: E, callback: (body: Parameters<MangoEvents.CustomServerEvent[E]>[0]) => void | Promise<void>): ScriptEventHandler;
|
|
69
|
+
once<E extends string>(eventName: Exclude<E, keyof MangoEvents.CustomServerEvent>, callback: (body: unknown) => void | Promise<void>): ScriptEventHandler;
|
|
70
|
+
emit<E extends keyof MangoEvents.CustomServerEvent>(eventName: E, body?: Parameters<MangoEvents.CustomServerEvent[E]>[0]): void;
|
|
71
|
+
emit<E extends string>(eventName: Exclude<E, keyof MangoEvents.CustomServerEvent>, body?: any): void;
|
|
72
|
+
onPlayer<E extends keyof MangoEvents.CustomPlayerToServerEvent, U extends PlayerMp>(eventName: E, callback: (player: U, body: Parameters<MangoEvents.CustomPlayerToServerEvent[E]>[0]) => void | Promise<void>): ScriptEventHandler;
|
|
73
|
+
onPlayer<E extends string, U extends PlayerMp>(eventName: Exclude<E, keyof MangoEvents.CustomPlayerToServerEvent>, callback: (player: U, body: unknown) => void | Promise<void>): ScriptEventHandler;
|
|
74
|
+
oncePlayer<E extends keyof MangoEvents.CustomPlayerToServerEvent, U extends PlayerMp>(eventName: E, callback: (player: U, body: Parameters<MangoEvents.CustomPlayerToServerEvent[E]>[0]) => void | Promise<void>): ScriptEventHandler;
|
|
75
|
+
oncePlayer<E extends string, U extends PlayerMp>(eventName: Exclude<E, keyof MangoEvents.CustomPlayerToServerEvent>, callback: (player: U, body: unknown) => void | Promise<void>): ScriptEventHandler;
|
|
76
|
+
onRemote<E extends keyof MangoEvents.CustomPlayerToServerEvent, U extends PlayerMp>(eventName: E, callback: (player: U, body: Parameters<MangoEvents.CustomPlayerToServerEvent[E]>[0]) => void | Promise<void>): ScriptEventHandler;
|
|
77
|
+
onRemote<E extends string, U extends PlayerMp>(eventName: Exclude<E, keyof MangoEvents.CustomPlayerToServerEvent>, callback: (player: U, body: unknown) => void | Promise<void>): ScriptEventHandler;
|
|
78
|
+
onceRemote<E extends keyof MangoEvents.CustomPlayerToServerEvent, U extends PlayerMp>(eventName: E, callback: (player: U, body: Parameters<MangoEvents.CustomPlayerToServerEvent[E]>[0]) => void | Promise<void>): ScriptEventHandler;
|
|
79
|
+
onceRemote<E extends string, U extends PlayerMp>(eventName: Exclude<E, keyof MangoEvents.CustomPlayerToServerEvent>, callback: (player: U, body: unknown) => void | Promise<void>): ScriptEventHandler;
|
|
80
|
+
emitPlayers<E extends keyof MangoEvents.CustomServerToPlayerEvent, U extends MultiplayerPlayer>(player: U[], eventName: E, body?: Parameters<MangoEvents.CustomServerToPlayerEvent[E]>[0]): void;
|
|
81
|
+
emitPlayers<E extends string, U extends MultiplayerPlayer>(player: U[], eventName: Exclude<E, keyof MangoEvents.CustomServerToPlayerEvent>, body?: unknown): void;
|
|
82
|
+
emitPlayersUnreliable<E extends keyof MangoEvents.CustomServerToPlayerEvent, U extends MultiplayerPlayer>(player: U[], eventName: E, body?: Parameters<MangoEvents.CustomServerToPlayerEvent[E]>[0]): void;
|
|
83
|
+
emitPlayersUnreliable<E extends string, U extends MultiplayerPlayer>(player: U[], eventName: Exclude<E, keyof MangoEvents.CustomServerToPlayerEvent>, body?: unknown): void;
|
|
84
|
+
emitAllPlayers<E extends keyof MangoEvents.CustomServerToPlayerEvent>(eventName: E, body?: Parameters<MangoEvents.CustomServerToPlayerEvent[E]>[0]): void;
|
|
85
|
+
emitAllPlayers<E extends string>(eventName: Exclude<E, keyof MangoEvents.CustomServerToPlayerEvent>, body?: unknown): void;
|
|
86
|
+
emitAllPlayersUnreliable<E extends keyof MangoEvents.CustomServerToPlayerEvent>(eventName: E, body?: Parameters<MangoEvents.CustomServerToPlayerEvent[E]>[0]): void;
|
|
87
|
+
emitAllPlayersUnreliable<E extends string>(eventName: Exclude<E, keyof MangoEvents.CustomServerToPlayerEvent>, body?: unknown): void;
|
|
88
|
+
onWebView<E extends keyof MangoEvents.CustomWebViewToServerEvent, U extends PlayerMp>(id: string | number, eventName: E, callback: (player: U, body: Parameters<MangoEvents.CustomWebViewToServerEvent[E]>[0]) => void | Promise<void>): ScriptEventHandler;
|
|
89
|
+
onWebView<E extends string, U extends PlayerMp>(id: string | number, eventName: Exclude<E, keyof MangoEvents.CustomWebViewToServerEvent>, callback: (player: U, body: unknown) => void | Promise<void>): ScriptEventHandler;
|
|
90
|
+
onceWebView<E extends keyof MangoEvents.CustomWebViewToServerEvent, U extends PlayerMp>(id: string | number, eventName: E, callback: (player: U, body: Parameters<MangoEvents.CustomWebViewToServerEvent[E]>[0]) => void | Promise<void>): ScriptEventHandler;
|
|
91
|
+
onceWebView<E extends string, U extends PlayerMp>(id: string | number, eventName: Exclude<E, keyof MangoEvents.CustomWebViewToServerEvent>, callback: (player: U, body: unknown) => void | Promise<void>): ScriptEventHandler;
|
|
92
|
+
emitWebViews<E extends keyof MangoEvents.CustomServerToWebViewEvent, U extends MultiplayerPlayer>(player: U[], id: string | number, eventName: E, body?: Parameters<MangoEvents.CustomServerToWebViewEvent[E]>[0]): void;
|
|
93
|
+
emitWebViews<E extends string, U extends MultiplayerPlayer>(player: U[], id: string | number, eventName: Exclude<E, keyof MangoEvents.CustomServerToWebViewEvent>, body?: unknown): void;
|
|
94
|
+
emitAllWebViews<E extends keyof MangoEvents.CustomServerToWebViewEvent>(id: string | number, eventName: E, body?: Parameters<MangoEvents.CustomServerToWebViewEvent[E]>[0]): void;
|
|
95
|
+
emitAllWebViews<E extends string>(id: string | number, eventName: Exclude<E, keyof MangoEvents.CustomServerToWebViewEvent>, body?: unknown): void;
|
|
96
|
+
emitAllWebViewsUnreliable<E extends keyof MangoEvents.CustomServerToWebViewEvent>(id: string | number, eventName: E, body?: Parameters<MangoEvents.CustomServerToWebViewEvent[E]>[0]): void;
|
|
97
|
+
emitAllWebViewsUnreliable<E extends string>(id: string | number, eventName: Exclude<E, keyof MangoEvents.CustomServerToWebViewEvent>, body?: unknown): void;
|
|
98
|
+
onPlayerJoin(callback: (player: PlayerMp) => void): ScriptEventHandler;
|
|
99
|
+
onPlayerQuit(callback: (player: PlayerMp, exitType: string, reason: string) => void): ScriptEventHandler;
|
|
100
|
+
onPlayerReady(callback: (player: PlayerMp) => void): ScriptEventHandler;
|
|
101
|
+
onPlayerDeath(callback: (player: PlayerMp, reason: number, killer?: PlayerMp) => void): ScriptEventHandler;
|
|
102
|
+
onPlayerSpawn(callback: (player: PlayerMp) => void): ScriptEventHandler;
|
|
103
|
+
onPlayerChat(callback: (player: PlayerMp, text: string) => void): ScriptEventHandler;
|
|
104
|
+
onPlayerCommand(callback: (player: PlayerMp, command: string) => void): ScriptEventHandler;
|
|
105
|
+
onPlayerEnterVehicle(callback: (player: PlayerMp, vehicle: VehicleMp, seat: number) => void): ScriptEventHandler;
|
|
106
|
+
onPlayerExitVehicle(callback: (player: PlayerMp, vehicle: VehicleMp) => void): ScriptEventHandler;
|
|
107
|
+
onPlayerStartEnterVehicle(callback: (player: PlayerMp, vehicle: VehicleMp, seat: number) => void): ScriptEventHandler;
|
|
108
|
+
onPlayerStartExitVehicle(callback: (player: PlayerMp, vehicle: VehicleMp) => void): ScriptEventHandler;
|
|
109
|
+
onPlayerWeaponChange(callback: (player: PlayerMp, oldWeapon: number, newWeapon: number) => void): ScriptEventHandler;
|
|
110
|
+
onPlayerDamage(callback: (player: PlayerMp, healthLoss: number, armorLoss: number) => void): ScriptEventHandler;
|
|
111
|
+
onVehicleDeath(callback: (vehicle: VehicleMp, hash: number, killer?: PlayerMp) => void): ScriptEventHandler;
|
|
112
|
+
onVehicleDamage(callback: (vehicle: VehicleMp, bodyHealthLoss: number, engineHealthLoss: number) => void): ScriptEventHandler;
|
|
113
|
+
onPlayerEnterColshape(callback: (player: PlayerMp, colshape: ColshapeMp) => void): ScriptEventHandler;
|
|
114
|
+
onPlayerExitColshape(callback: (player: PlayerMp, colshape: ColshapeMp) => void): ScriptEventHandler;
|
|
115
|
+
onPlayerEnterCheckpoint(callback: (player: PlayerMp, checkpoint: CheckpointMp) => void): ScriptEventHandler;
|
|
116
|
+
onPlayerExitCheckpoint(callback: (player: PlayerMp, checkpoint: CheckpointMp) => void): ScriptEventHandler;
|
|
117
|
+
onPlayerConnect(callback: (player: PlayerMp) => void): ScriptEventHandler;
|
|
118
|
+
onPlayerDisconnect(callback: (context: {
|
|
119
|
+
player: PlayerMp;
|
|
120
|
+
exitType: string;
|
|
121
|
+
reason: string;
|
|
122
|
+
}) => void): ScriptEventHandler;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
interface RPCService {
|
|
126
|
+
call<E extends keyof MangoRPC.CustomServerRPC>(rpcName: E, body?: Parameters<MangoRPC.CustomServerRPC[E]>[0], options?: RPCCallOptions): Promise<RPCResult<ReturnType<MangoRPC.CustomServerRPC[E]>>>;
|
|
127
|
+
call<E extends string>(rpcName: Exclude<E, keyof MangoRPC.CustomServerRPC>, body?: unknown, options?: RPCCallOptions): Promise<RPCResult<unknown>>;
|
|
128
|
+
onRequest<E extends keyof MangoRPC.CustomServerRPC>(rpcName: E, handler: (body: Parameters<MangoRPC.CustomServerRPC[E]>[0]) => ReturnType<MangoRPC.CustomServerRPC[E]>): ScriptRPCHandler;
|
|
129
|
+
onRequest<E extends string>(rpcName: Exclude<E, keyof MangoRPC.CustomServerRPC>, handler: (body: unknown) => unknown | Promise<unknown>): ScriptRPCHandler;
|
|
130
|
+
callPlayer<E extends keyof MangoRPC.CustomServerToClientRPC, U extends MultiplayerPlayer>(player: U, rpcName: E, body?: Parameters<MangoRPC.CustomServerToClientRPC[E]>[0], options?: RPCCallOptions): Promise<RPCResult<ReturnType<MangoRPC.CustomServerToClientRPC[E]>>>;
|
|
131
|
+
callPlayer<E extends string, U extends MultiplayerPlayer>(player: U, rpcName: Exclude<E, keyof MangoRPC.CustomServerToClientRPC>, body?: unknown, options?: RPCCallOptions): Promise<RPCResult>;
|
|
132
|
+
onPlayerRequest<E extends keyof MangoRPC.CustomClientToServerRPC, U extends MultiplayerPlayer>(rpcName: E, handler: (sender: U, body: Parameters<MangoRPC.CustomClientToServerRPC[E]>[0]) => ReturnType<MangoRPC.CustomClientToServerRPC[E]>): ScriptRPCHandler;
|
|
133
|
+
onPlayerRequest<E extends string, U extends MultiplayerPlayer>(rpcName: Exclude<E, keyof MangoRPC.CustomClientToServerRPC>, handler: (sender: U, body: unknown) => unknown | Promise<unknown>): ScriptRPCHandler;
|
|
134
|
+
callWebView<E extends keyof MangoRPC.CustomServerToWebViewRPC, U extends MultiplayerPlayer>(player: U, id: string | number, rpcName: E, body?: Parameters<MangoRPC.CustomServerToWebViewRPC[E]>[0], options?: RPCCallOptions): Promise<RPCResult<ReturnType<MangoRPC.CustomServerToWebViewRPC[E]>>>;
|
|
135
|
+
callWebView<E extends string, U extends MultiplayerPlayer>(player: U, id: string | number, rpcName: Exclude<E, keyof MangoRPC.CustomServerToWebViewRPC>, body?: unknown, options?: RPCCallOptions): Promise<RPCResult>;
|
|
136
|
+
onWebViewRequest<E extends string, U extends MultiplayerPlayer>(id: string | number, rpcName: Exclude<E, keyof MangoRPC.CustomWebViewToServerRPC>, handler: (player: U, body: unknown) => unknown | Promise<unknown>): ScriptRPCHandler;
|
|
137
|
+
onWebViewRequest<E extends keyof MangoRPC.CustomWebViewToServerRPC, U extends MultiplayerPlayer>(id: string | number, rpcName: E, handler: (player: U, body: Parameters<MangoRPC.CustomWebViewToServerRPC[E]>[0]) => ReturnType<MangoRPC.CustomWebViewToServerRPC[E]>): ScriptRPCHandler;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
declare function UseFilters(...filters: (Newable<ErrorFilter> | ErrorFilter)[]): ClassDecorator & MethodDecorator;
|
|
141
|
+
|
|
142
|
+
declare function OnScriptRPC(): MethodDecorator;
|
|
143
|
+
declare function OnceScriptRPC(): MethodDecorator;
|
|
144
|
+
declare function OnScriptRPCAnswer(): MethodDecorator;
|
|
145
|
+
declare function OnceScriptRPCAnswer(): MethodDecorator;
|
|
146
|
+
declare function OnServerStarted(): MethodDecorator;
|
|
147
|
+
declare function OnceServerStarted(): MethodDecorator;
|
|
148
|
+
declare function OnConnectionQueueAdd(): MethodDecorator;
|
|
149
|
+
declare function OnceConnectionQueueAdd(): MethodDecorator;
|
|
150
|
+
declare function OnConnectionQueueRemove(): MethodDecorator;
|
|
151
|
+
declare function OnceConnectionQueueRemove(): MethodDecorator;
|
|
152
|
+
declare function OnPlayerConnect(): MethodDecorator;
|
|
153
|
+
declare function OncePlayerConnect(): MethodDecorator;
|
|
154
|
+
declare function OnPlayerConnectDenied(): MethodDecorator;
|
|
155
|
+
declare function OncePlayerConnectDenied(): MethodDecorator;
|
|
156
|
+
declare function OnPlayerDisconnect(): MethodDecorator;
|
|
157
|
+
declare function OncePlayerDisconnect(): MethodDecorator;
|
|
158
|
+
declare function OnPlayerDamage(): MethodDecorator;
|
|
159
|
+
declare function OncePlayerDamage(): MethodDecorator;
|
|
160
|
+
declare function OnPlayerDeath(): MethodDecorator;
|
|
161
|
+
declare function OncePlayerDeath(): MethodDecorator;
|
|
162
|
+
declare function OnPlayerHeal(): MethodDecorator;
|
|
163
|
+
declare function OncePlayerHeal(): MethodDecorator;
|
|
164
|
+
declare function OnPlayerControlRequest(): MethodDecorator;
|
|
165
|
+
declare function OncePlayerControlRequest(): MethodDecorator;
|
|
166
|
+
declare function OnPlayerInteriorChange(): MethodDecorator;
|
|
167
|
+
declare function OncePlayerInteriorChange(): MethodDecorator;
|
|
168
|
+
declare function OnPlayerDimensionChange(): MethodDecorator;
|
|
169
|
+
declare function OncePlayerDimensionChange(): MethodDecorator;
|
|
170
|
+
declare function OnPlayerWeaponChange(): MethodDecorator;
|
|
171
|
+
declare function OncePlayerWeaponChange(): MethodDecorator;
|
|
172
|
+
declare function OnPlayerSyncedSceneRequest(): MethodDecorator;
|
|
173
|
+
declare function OncePlayerSyncedSceneRequest(): MethodDecorator;
|
|
174
|
+
declare function OnPlayerSyncedSceneStart(): MethodDecorator;
|
|
175
|
+
declare function OncePlayerSyncedSceneStart(): MethodDecorator;
|
|
176
|
+
declare function OnPlayerSyncedSceneStop(): MethodDecorator;
|
|
177
|
+
declare function OncePlayerSyncedSceneStop(): MethodDecorator;
|
|
178
|
+
declare function OnPlayerSyncedSceneUpdate(): MethodDecorator;
|
|
179
|
+
declare function OncePlayerSyncedSceneUpdate(): MethodDecorator;
|
|
180
|
+
declare function OnPlayerSpawn(): MethodDecorator;
|
|
181
|
+
declare function OncePlayerSpawn(): MethodDecorator;
|
|
182
|
+
declare function OnPlayerAnimationChange(): MethodDecorator;
|
|
183
|
+
declare function OncePlayerAnimationChange(): MethodDecorator;
|
|
184
|
+
declare function OnPlayerVehicleEntered(): MethodDecorator;
|
|
185
|
+
declare function OncePlayerVehicleEntered(): MethodDecorator;
|
|
186
|
+
declare function OnPlayerStartVehicleEnter(): MethodDecorator;
|
|
187
|
+
declare function OncePlayerStartVehicleEnter(): MethodDecorator;
|
|
188
|
+
declare function OnPlayerVehicleLeft(): MethodDecorator;
|
|
189
|
+
declare function OncePlayerVehicleLeft(): MethodDecorator;
|
|
190
|
+
declare function OnPlayerVehicleSeatChange(): MethodDecorator;
|
|
191
|
+
declare function OncePlayerVehicleSeatChange(): MethodDecorator;
|
|
192
|
+
declare function OnPedHeal(): MethodDecorator;
|
|
193
|
+
declare function OncePedHeal(): MethodDecorator;
|
|
194
|
+
declare function OnPedDeath(): MethodDecorator;
|
|
195
|
+
declare function OncePedDeath(): MethodDecorator;
|
|
196
|
+
declare function OnPedDamage(): MethodDecorator;
|
|
197
|
+
declare function OncePedDamage(): MethodDecorator;
|
|
198
|
+
declare function OnVehicleDestroy(): MethodDecorator;
|
|
199
|
+
declare function OnceVehicleDestroy(): MethodDecorator;
|
|
200
|
+
declare function OnVehicleAttach(): MethodDecorator;
|
|
201
|
+
declare function OnceVehicleAttach(): MethodDecorator;
|
|
202
|
+
declare function OnVehicleDetach(): MethodDecorator;
|
|
203
|
+
declare function OnceVehicleDetach(): MethodDecorator;
|
|
204
|
+
declare function OnVehicleDamage(): MethodDecorator;
|
|
205
|
+
declare function OnceVehicleDamage(): MethodDecorator;
|
|
206
|
+
declare function OnVehicleSirenStateChange(): MethodDecorator;
|
|
207
|
+
declare function OnceVehicleSirenStateChange(): MethodDecorator;
|
|
208
|
+
declare function OnVehicleHornStateChange(): MethodDecorator;
|
|
209
|
+
declare function OnceVehicleHornStateChange(): MethodDecorator;
|
|
210
|
+
declare function OnVoiceConnection(): MethodDecorator;
|
|
211
|
+
declare function OnceVoiceConnection(): MethodDecorator;
|
|
212
|
+
declare function OnClientObjectDelete(): MethodDecorator;
|
|
213
|
+
declare function OnceClientObjectDelete(): MethodDecorator;
|
|
214
|
+
declare function OnClientObjectRequest(): MethodDecorator;
|
|
215
|
+
declare function OnceClientObjectRequest(): MethodDecorator;
|
|
216
|
+
declare function OnBaseObjectCreate(): MethodDecorator;
|
|
217
|
+
declare function OnceBaseObjectCreate(): MethodDecorator;
|
|
218
|
+
declare function OnBaseObjectRemove(): MethodDecorator;
|
|
219
|
+
declare function OnceBaseObjectRemove(): MethodDecorator;
|
|
220
|
+
declare function OnNetOwnerChange(): MethodDecorator;
|
|
221
|
+
declare function OnceNetOwnerChange(): MethodDecorator;
|
|
222
|
+
declare function OnWeaponDamage(): MethodDecorator;
|
|
223
|
+
declare function OnceWeaponDamage(): MethodDecorator;
|
|
224
|
+
declare function OnMetaChange(): MethodDecorator;
|
|
225
|
+
declare function OnceMetaChange(): MethodDecorator;
|
|
226
|
+
declare function OnLocalMetaChange(): MethodDecorator;
|
|
227
|
+
declare function OnceLocalMetaChange(): MethodDecorator;
|
|
228
|
+
declare function OnStreamSyncedMetaChange(): MethodDecorator;
|
|
229
|
+
declare function OnceStreamSyncedMetaChange(): MethodDecorator;
|
|
230
|
+
declare function OnGlobalMetaChange(): MethodDecorator;
|
|
231
|
+
declare function OnceGlobalMetaChange(): MethodDecorator;
|
|
232
|
+
declare function OnGlobalSyncedMetaChange(): MethodDecorator;
|
|
233
|
+
declare function OnceGlobalSyncedMetaChange(): MethodDecorator;
|
|
234
|
+
declare function OnConsoleCommand(): MethodDecorator;
|
|
235
|
+
declare function OnceConsoleCommand(): MethodDecorator;
|
|
236
|
+
declare function OnError(): MethodDecorator;
|
|
237
|
+
declare function OnceError(): MethodDecorator;
|
|
238
|
+
declare function OnColShapeEvent(): MethodDecorator;
|
|
239
|
+
declare function OnceColShapeEvent(): MethodDecorator;
|
|
240
|
+
declare function OnExplosion(): MethodDecorator;
|
|
241
|
+
declare function OnceExplosion(): MethodDecorator;
|
|
242
|
+
declare function OnFireStart(): MethodDecorator;
|
|
243
|
+
declare function OnceFireStart(): MethodDecorator;
|
|
244
|
+
declare function OnProjectileStart(): MethodDecorator;
|
|
245
|
+
declare function OnceProjectileStart(): MethodDecorator;
|
|
246
|
+
declare function OnEntityColShapeEnter(): MethodDecorator;
|
|
247
|
+
declare function OnceEntityColShapeEnter(): MethodDecorator;
|
|
248
|
+
declare function OnEntityColShapeLeave(): MethodDecorator;
|
|
249
|
+
declare function OnceEntityColShapeLeave(): MethodDecorator;
|
|
250
|
+
declare function OnEntityCheckpointEnter(): MethodDecorator;
|
|
251
|
+
declare function OnceEntityCheckpointEnter(): MethodDecorator;
|
|
252
|
+
declare function OnEntityCheckpointLeave(): MethodDecorator;
|
|
253
|
+
declare function OnceEntityCheckpointLeave(): MethodDecorator;
|
|
254
|
+
declare function OnGivePedScriptedTask(): MethodDecorator;
|
|
255
|
+
declare function OnceGivePedScriptedTask(): MethodDecorator;
|
|
256
|
+
declare function OnLocalScriptEvent(): MethodDecorator;
|
|
257
|
+
declare function OnceLocalScriptEvent(): MethodDecorator;
|
|
258
|
+
declare function OnRemoteScriptEvent(): MethodDecorator;
|
|
259
|
+
declare function OnceRemoteScriptEvent(): MethodDecorator;
|
|
260
|
+
declare function OnAnyResourceStart(): MethodDecorator;
|
|
261
|
+
declare function OnceAnyResourceStart(): MethodDecorator;
|
|
262
|
+
declare function OnAnyResourceStop(): MethodDecorator;
|
|
263
|
+
declare function OnceAnyResourceStop(): MethodDecorator;
|
|
264
|
+
declare function OnResourceStart(): MethodDecorator;
|
|
265
|
+
declare function OnceResourceStart(): MethodDecorator;
|
|
266
|
+
declare function OnResourceStop(): MethodDecorator;
|
|
267
|
+
declare function OnceResourceStop(): MethodDecorator;
|
|
268
|
+
declare function OnResourceError(): MethodDecorator;
|
|
269
|
+
declare function OnceResourceError(): MethodDecorator;
|
|
270
|
+
declare function OnEvent(): MethodDecorator;
|
|
271
|
+
declare function OnceEvent(): MethodDecorator;
|
|
272
|
+
|
|
273
|
+
declare function OnPlayer<E extends keyof MangoEvents.CustomPlayerToServerEvent>(eventName?: E): MethodDecorator;
|
|
274
|
+
declare function OnPlayer<E extends string>(eventName?: Exclude<E, keyof MangoEvents.CustomPlayerToServerEvent>): MethodDecorator;
|
|
275
|
+
|
|
276
|
+
declare function OnWebView<E extends keyof MangoEvents.CustomWebViewToServerEvent>(id: string | number, eventName?: E): MethodDecorator;
|
|
277
|
+
declare function OnWebView<E extends string>(id: string | number, eventName?: Exclude<E, keyof MangoEvents.CustomWebViewToServerEvent>): MethodDecorator;
|
|
278
|
+
|
|
279
|
+
declare function On<E extends keyof MangoEvents.CustomServerEvent>(eventName?: E): MethodDecorator;
|
|
280
|
+
declare function On<E extends string>(eventName?: Exclude<E, keyof MangoEvents.CustomServerEvent>): MethodDecorator;
|
|
281
|
+
|
|
282
|
+
declare function OncePlayer<E extends keyof MangoEvents.CustomPlayerToServerEvent>(eventName?: E): MethodDecorator;
|
|
283
|
+
declare function OncePlayer<E extends string>(eventName?: Exclude<E, keyof MangoEvents.CustomPlayerToServerEvent>): MethodDecorator;
|
|
284
|
+
|
|
285
|
+
declare function OnceWebView<E extends keyof MangoEvents.CustomWebViewToServerEvent>(id: string | number, eventName?: E): MethodDecorator;
|
|
286
|
+
declare function OnceWebView<E extends string>(id: string | number, eventName?: Exclude<E, keyof MangoEvents.CustomWebViewToServerEvent>): MethodDecorator;
|
|
287
|
+
|
|
288
|
+
declare function Once<E extends keyof MangoEvents.CustomServerEvent>(eventName?: E): MethodDecorator;
|
|
289
|
+
declare function Once<E extends string>(eventName?: Exclude<E, keyof MangoEvents.CustomServerEvent>): MethodDecorator;
|
|
290
|
+
|
|
291
|
+
declare function Player(key?: string, ...pipes: Newable<Pipe>[]): ParameterDecorator;
|
|
292
|
+
|
|
293
|
+
declare function UseGuards(...guards: (Newable<Guard> | Guard)[]): ClassDecorator & MethodDecorator;
|
|
294
|
+
|
|
295
|
+
declare function UseInterceptors(...interceptors: (Newable<Interceptor> | Interceptor)[]): ClassDecorator & MethodDecorator;
|
|
296
|
+
|
|
297
|
+
declare function OnPlayerRequest<E extends keyof MangoRPC.CustomClientToServerRPC>(rpcName?: E): MethodDecorator;
|
|
298
|
+
declare function OnPlayerRequest<E extends string>(rpcName?: Exclude<E, keyof MangoRPC.CustomClientToServerRPC>): MethodDecorator;
|
|
299
|
+
|
|
300
|
+
declare function OnRequest<E extends keyof MangoRPC.CustomServerRPC>(rpcName?: E): MethodDecorator;
|
|
301
|
+
declare function OnRequest<E extends string>(rpcName?: Exclude<E, keyof MangoRPC.CustomServerRPC>): MethodDecorator;
|
|
302
|
+
|
|
303
|
+
declare function OnWebViewRequest<E extends keyof MangoRPC.CustomWebViewToServerRPC>(id: string | number, rpcName?: E): MethodDecorator;
|
|
304
|
+
declare function OnWebViewRequest<E extends string>(id: string | number, rpcName?: Exclude<E, keyof MangoRPC.CustomWebViewToServerRPC>): MethodDecorator;
|
|
305
|
+
|
|
306
|
+
declare function SkipThrottle(skip?: Record<string, boolean>): (target: any, _propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<any>) => any;
|
|
307
|
+
|
|
308
|
+
type Resolvable<T extends number | string | boolean> = T | ((context: ExecutionContext) => T | Promise<T>);
|
|
309
|
+
interface ThrottlerMethodOrControllerOptions {
|
|
310
|
+
limit?: Resolvable<number>;
|
|
311
|
+
ttl?: Resolvable<number>;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
interface ThrottlerOptions {
|
|
315
|
+
name?: string;
|
|
316
|
+
limit: Resolvable<number>;
|
|
317
|
+
ttl: Resolvable<number>;
|
|
318
|
+
skipIf?: (context: ExecutionContext) => boolean | Promise<boolean>;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
type ThrottlerModuleOptions = Array<ThrottlerOptions> | {
|
|
322
|
+
skipIf?: (context: ExecutionContext) => boolean | Promise<boolean>;
|
|
323
|
+
errorMessage?: string;
|
|
324
|
+
throttlers: Array<ThrottlerOptions>;
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
interface ThrottlerOptionsFactory {
|
|
328
|
+
createThrottlerOptions(): Promise<ThrottlerModuleOptions> | ThrottlerModuleOptions;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
interface ThrottlerAsyncOptions extends Pick<ModuleOptions, 'imports'> {
|
|
332
|
+
useExisting?: Newable<ThrottlerOptionsFactory>;
|
|
333
|
+
useClass?: Newable<ThrottlerOptionsFactory>;
|
|
334
|
+
useFactory?: (...args: unknown[]) => Promise<ThrottlerModuleOptions> | ThrottlerModuleOptions;
|
|
335
|
+
inject?: InjectionToken[];
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
interface ThrottlerStorageRecord {
|
|
339
|
+
totalHits: number;
|
|
340
|
+
timeToExpire: number;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
interface ThrottlerLimitDetail extends ThrottlerStorageRecord {
|
|
344
|
+
ttl: number;
|
|
345
|
+
limit: number;
|
|
346
|
+
key: string;
|
|
347
|
+
player: PlayerMp;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
interface ThrottlerStorageOptions {
|
|
351
|
+
totalHits: number;
|
|
352
|
+
expiresAt: number;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
declare function Throttle(options: Record<string, ThrottlerMethodOrControllerOptions>): (target: any, _propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<any>) => any;
|
|
356
|
+
|
|
357
|
+
declare class ThrottlerStorageService implements OnAppShutdown {
|
|
358
|
+
readonly storage: WeakMap<PlayerMp, Map<string, ThrottlerStorageOptions>>;
|
|
359
|
+
private timeoutIds;
|
|
360
|
+
private getExpirationTime;
|
|
361
|
+
private setExpirationTime;
|
|
362
|
+
increment(player: PlayerMp, key: string, ttl: number): Promise<{
|
|
363
|
+
totalHits: number;
|
|
364
|
+
timeToExpire: number;
|
|
365
|
+
}>;
|
|
366
|
+
onAppShutdown(): void;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
declare class ThrottlerGuard implements Guard, OnModuleInit {
|
|
370
|
+
protected readonly options: ThrottlerModuleOptions;
|
|
371
|
+
protected readonly storageService: ThrottlerStorageService;
|
|
372
|
+
protected readonly reflector: ReflectorService;
|
|
373
|
+
protected throttlers: Array<ThrottlerOptions>;
|
|
374
|
+
protected commonOptions: Pick<ThrottlerOptions, 'skipIf'>;
|
|
375
|
+
onModuleInit(): Promise<void>;
|
|
376
|
+
canActivate(context: ExecutionContext): Promise<boolean>;
|
|
377
|
+
protected handleRequest(context: ExecutionContext, limit: number, ttl: number, throttler: ThrottlerOptions): Promise<boolean>;
|
|
378
|
+
protected generateKey(context: ExecutionContext, name: string): string;
|
|
379
|
+
protected throwThrottlingException(context: ExecutionContext, _throttlerLimitDetail: ThrottlerLimitDetail): Promise<void>;
|
|
380
|
+
protected getErrorMessage(_context: ExecutionContext): Promise<string>;
|
|
381
|
+
private resolveValue;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
declare class ThrottlerModule {
|
|
385
|
+
static forRoot(options?: ThrottlerModuleOptions): DynamicModule<ThrottlerModule>;
|
|
386
|
+
static forRootAsync(options: ThrottlerAsyncOptions): DynamicModule<ThrottlerModule>;
|
|
387
|
+
private static createAsyncProviders;
|
|
388
|
+
private static createAsyncOptionsProvider;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
// RageMP Mango Framework server type declarations
|
|
392
|
+
|
|
393
|
+
declare global {
|
|
394
|
+
interface PlayerMp {
|
|
395
|
+
emitWebView<E extends keyof MangoEvents.CustomServerToPlayerEvent>(eventName: E, body?: unknown): void;
|
|
396
|
+
emitWebView<E extends string>(
|
|
397
|
+
id: string | number,
|
|
398
|
+
eventName: Exclude<E, keyof MangoEvents.CustomServerToPlayerEvent>,
|
|
399
|
+
body?: unknown,
|
|
400
|
+
): void;
|
|
401
|
+
callRpc<E extends keyof MangoRPC.CustomServerToPlayerRpcEvent>(eventName: E, body?: unknown): void;
|
|
402
|
+
callRpc<E extends string>(
|
|
403
|
+
rpcName: Exclude<E, keyof MangoRPC.CustomServerToPlayerRpcEvent>,
|
|
404
|
+
body?: unknown,
|
|
405
|
+
options?: RPCCallOptions,
|
|
406
|
+
): Promise<RPCResult>;
|
|
407
|
+
callWebViewRpc<E extends keyof MangoRPC.CustomServerToWebViewRPC>(
|
|
408
|
+
id: string | number,
|
|
409
|
+
rpcName: E,
|
|
410
|
+
body?: unknown,
|
|
411
|
+
options?: RPCCallOptions,
|
|
412
|
+
): Promise<RPCResult>;
|
|
413
|
+
callWebViewRpc<E extends string>(
|
|
414
|
+
id: string | number,
|
|
415
|
+
rpcName: Exclude<E, keyof MangoRPC.CustomServerToWebViewRPC>,
|
|
416
|
+
body?: unknown,
|
|
417
|
+
options?: RPCCallOptions,
|
|
418
|
+
): Promise<RPCResult>;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
namespace MangoRPC {
|
|
422
|
+
interface CustomServerToPlayerRpcEvent {}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
declare class ServerAppBuilder extends AppBuilder<Guard, Interceptor, ErrorFilter> {
|
|
427
|
+
setBlipFactory(factory: unknown): void;
|
|
428
|
+
setMarkerFactory(factory: unknown): void;
|
|
429
|
+
setColShapeFactory(factory: unknown): void;
|
|
430
|
+
setCheckpointFactory(factory: unknown): void;
|
|
431
|
+
setObjectFactory(factory: unknown): void;
|
|
432
|
+
setPedFactory(factory: unknown): void;
|
|
433
|
+
setPlayerFactory(factory: unknown): void;
|
|
434
|
+
setVehicleFactory(factory: unknown): void;
|
|
435
|
+
setVirtualEntityGroupFactory(factory: unknown): void;
|
|
436
|
+
setVirtualEntityFactory(factory: unknown): void;
|
|
437
|
+
setVoiceChannelFactory(factory: unknown): void;
|
|
438
|
+
}
|
|
439
|
+
declare function createAppBuilder(): Promise<ServerAppBuilder>;
|
|
440
|
+
|
|
441
|
+
export { type ErrorFilter, type EventService, type ExecutionContext, type Guard, type Interceptor, type MangoRequest, type MangoResponse, type MultiplayerPlayer, On, OnAnyResourceStart, OnAnyResourceStop, OnBaseObjectCreate, OnBaseObjectRemove, OnClientObjectDelete, OnClientObjectRequest, OnColShapeEvent, OnConnectionQueueAdd, OnConnectionQueueRemove, OnConsoleCommand, OnEntityCheckpointEnter, OnEntityCheckpointLeave, OnEntityColShapeEnter, OnEntityColShapeLeave, OnError, OnEvent, OnExplosion, OnFireStart, OnGivePedScriptedTask, OnGlobalMetaChange, OnGlobalSyncedMetaChange, OnLocalMetaChange, OnLocalScriptEvent, OnMetaChange, OnNetOwnerChange, OnPedDamage, OnPedDeath, OnPedHeal, OnPlayer, OnPlayerAnimationChange, OnPlayerConnect, OnPlayerConnectDenied, OnPlayerControlRequest, OnPlayerDamage, OnPlayerDeath, OnPlayerDimensionChange, OnPlayerDisconnect, OnPlayerHeal, OnPlayerInteriorChange, OnPlayerRequest, OnPlayerSpawn, OnPlayerStartVehicleEnter, OnPlayerSyncedSceneRequest, OnPlayerSyncedSceneStart, OnPlayerSyncedSceneStop, OnPlayerSyncedSceneUpdate, OnPlayerVehicleEntered, OnPlayerVehicleLeft, OnPlayerVehicleSeatChange, OnPlayerWeaponChange, OnProjectileStart, OnRemoteScriptEvent, OnRequest, OnResourceError, OnResourceStart, OnResourceStop, OnScriptRPC, OnScriptRPCAnswer, OnServerStarted, OnStreamSyncedMetaChange, OnVehicleAttach, OnVehicleDamage, OnVehicleDestroy, OnVehicleDetach, OnVehicleHornStateChange, OnVehicleSirenStateChange, OnVoiceConnection, OnWeaponDamage, OnWebView, OnWebViewRequest, Once, OnceAnyResourceStart, OnceAnyResourceStop, OnceBaseObjectCreate, OnceBaseObjectRemove, OnceClientObjectDelete, OnceClientObjectRequest, OnceColShapeEvent, OnceConnectionQueueAdd, OnceConnectionQueueRemove, OnceConsoleCommand, OnceEntityCheckpointEnter, OnceEntityCheckpointLeave, OnceEntityColShapeEnter, OnceEntityColShapeLeave, OnceError, OnceEvent, OnceExplosion, OnceFireStart, OnceGivePedScriptedTask, OnceGlobalMetaChange, OnceGlobalSyncedMetaChange, OnceLocalMetaChange, OnceLocalScriptEvent, OnceMetaChange, OnceNetOwnerChange, OncePedDamage, OncePedDeath, OncePedHeal, OncePlayer, OncePlayerAnimationChange, OncePlayerConnect, OncePlayerConnectDenied, OncePlayerControlRequest, OncePlayerDamage, OncePlayerDeath, OncePlayerDimensionChange, OncePlayerDisconnect, OncePlayerHeal, OncePlayerInteriorChange, OncePlayerSpawn, OncePlayerStartVehicleEnter, OncePlayerSyncedSceneRequest, OncePlayerSyncedSceneStart, OncePlayerSyncedSceneStop, OncePlayerSyncedSceneUpdate, OncePlayerVehicleEntered, OncePlayerVehicleLeft, OncePlayerVehicleSeatChange, OncePlayerWeaponChange, OnceProjectileStart, OnceRemoteScriptEvent, OnceResourceError, OnceResourceStart, OnceResourceStop, OnceScriptRPC, OnceScriptRPCAnswer, OnceServerStarted, OnceStreamSyncedMetaChange, OnceVehicleAttach, OnceVehicleDamage, OnceVehicleDestroy, OnceVehicleDetach, OnceVehicleHornStateChange, OnceVehicleSirenStateChange, OnceVoiceConnection, OnceWeaponDamage, OnceWebView, Player, type RPCService, type ServerEventEmmiter, type ServerMultiplayerService, SkipThrottle, Throttle, type ThrottlerAsyncOptions, ThrottlerGuard, ThrottlerModule, type ThrottlerModuleOptions, type ThrottlerOptions, type ThrottlerOptionsFactory, UseFilters, UseGuards, UseInterceptors, createAppBuilder };
|