Ragemp-roleplay-skript/types-gt-mp/GrandTheftMultiplayer.Client.Javascript.ScriptContext.d.ts
2019-04-16 13:59:07 +02:00

110 lines
4.2 KiB
TypeScript

declare namespace GrandTheftMultiplayer.Client.Javascript.ScriptContext {
enum Anchor {
TopLeft = 0,
TopCenter = 1,
TopRight = 2,
MiddleLeft = 3,
MiddleCenter = 4,
MiddleRight = 6,
BottomLeft = 7,
BottomCenter = 8,
BottomRight = 9
}
class ChatEvent {
constructor(object: any, method: any);
Invoke(msg: string): void;
BeginInvoke(msg: string, callback: System.AsyncCallback, object: any): System.IAsyncResult;
EndInvoke(result: System.IAsyncResult): void;
}
class CustomDataReceived {
constructor(object: any, method: any);
Invoke(data: string): void;
BeginInvoke(data: string, callback: System.AsyncCallback, object: any): System.IAsyncResult;
EndInvoke(result: System.IAsyncResult): void;
}
class DataChangedEvent {
constructor(object: any, method: any);
Invoke(entity: GrandTheftMultiplayer.Client.Util.LocalHandle, key: string, oldValue: any): void;
BeginInvoke(entity: GrandTheftMultiplayer.Client.Util.LocalHandle, key: string, oldValue: any, callback: System.AsyncCallback, object: any): System.IAsyncResult;
EndInvoke(result: System.IAsyncResult): void;
}
class EmptyEvent {
constructor(object: any, method: any);
Invoke(): void;
BeginInvoke(callback: System.AsyncCallback, object: any): System.IAsyncResult;
EndInvoke(result: System.IAsyncResult): void;
}
class EntityEvent {
constructor(object: any, method: any);
Invoke(entity: GrandTheftMultiplayer.Client.Util.LocalHandle): void;
BeginInvoke(entity: GrandTheftMultiplayer.Client.Util.LocalHandle, callback: System.AsyncCallback, object: any): System.IAsyncResult;
EndInvoke(result: System.IAsyncResult): void;
}
class fArg {
constructor(f: number);
}
class IntChangeEvent {
constructor(object: any, method: any);
Invoke(oldValue: number): void;
BeginInvoke(oldValue: number, callback: System.AsyncCallback, object: any): System.IAsyncResult;
EndInvoke(result: System.IAsyncResult): void;
}
class PlayerDamageEvent {
constructor(object: any, method: any);
Invoke(attacker: GrandTheftMultiplayer.Client.Util.LocalHandle, weaponUsed: number, boneHit: number): void;
BeginInvoke(attacker: GrandTheftMultiplayer.Client.Util.LocalHandle, weaponUsed: number, boneHit: number, callback: System.AsyncCallback, object: any): System.IAsyncResult;
EndInvoke(result: System.IAsyncResult): void;
}
class PlayerKilledEvent {
constructor(object: any, method: any);
Invoke(killer: GrandTheftMultiplayer.Client.Util.LocalHandle, weapon: number): void;
BeginInvoke(killer: GrandTheftMultiplayer.Client.Util.LocalHandle, weapon: number, callback: System.AsyncCallback, object: any): System.IAsyncResult;
EndInvoke(result: System.IAsyncResult): void;
}
class PlayerMeleeDamageEvent {
constructor(object: any, method: any);
Invoke(attacker: GrandTheftMultiplayer.Client.Util.LocalHandle, weaponUsed: number): void;
BeginInvoke(attacker: GrandTheftMultiplayer.Client.Util.LocalHandle, weaponUsed: number, callback: System.AsyncCallback, object: any): System.IAsyncResult;
EndInvoke(result: System.IAsyncResult): void;
}
class Raycast {
readonly didHitAnything: boolean;
readonly didHitEntity: boolean;
readonly hitEntity: GrandTheftMultiplayer.Client.Util.LocalHandle;
readonly hitCoords: GrandTheftMultiplayer.Shared.Math.Vector3;
}
class ServerEventTrigger {
constructor(object: any, method: any);
Invoke(eventName: string, _arguments: any[]): void;
BeginInvoke(eventName: string, _arguments: any[], callback: System.AsyncCallback, object: any): System.IAsyncResult;
EndInvoke(result: System.IAsyncResult): void;
}
class StreamEvent {
constructor(object: any, method: any);
Invoke(item: GrandTheftMultiplayer.Client.Util.LocalHandle, entityType: number): void;
BeginInvoke(item: GrandTheftMultiplayer.Client.Util.LocalHandle, entityType: number, callback: System.AsyncCallback, object: any): System.IAsyncResult;
EndInvoke(result: System.IAsyncResult): void;
}
class WeaponShootEvent {
constructor(object: any, method: any);
Invoke(weaponUsed: number, aimCoords: GrandTheftMultiplayer.Shared.Math.Vector3): void;
BeginInvoke(weaponUsed: number, aimCoords: GrandTheftMultiplayer.Shared.Math.Vector3, callback: System.AsyncCallback, object: any): System.IAsyncResult;
EndInvoke(result: System.IAsyncResult): void;
}
}