clear usages

This commit is contained in:
Oleksandr Honcharov 2024-06-11 19:09:19 +03:00
parent 8972fee22e
commit 33ebdaac84
3 changed files with 2 additions and 17 deletions

View File

@ -32,6 +32,3 @@ export const fw = {
event: new Client(),
player: new Player(),
}
fw.player.triggerServer('customServerEvent', ['wer'])
fw.event.register('customClientEvent', ([arg1]) => true)

View File

@ -91,10 +91,3 @@ export const fw = {
event: new Server(),
player: new Player(),
}
fw.event.register('customServerEvent', (player, args) => true)
fw.event.register('playerDeath', (player, args, killer) => {})
fw.event.registerMany({
trailerAttached: (vehicle, trailer) => undefined,
})

View File

@ -1,10 +1,5 @@
declare module 'rage-fw-shared-types' {
export interface RageFW_ICustomServerEvent {
customServerEvent(customArgs: string): boolean
customServerEvent2(...customArgs2: number[]): void
}
export interface RageFW_ICustomServerEvent {}
export interface RageFW_ICustomClientEvent {
customClientEvent(clientArgs: string): boolean
}
export interface RageFW_ICustomClientEvent {}
}