Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ragempcommunity/types-server

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ragempcommunity/types-server - npm Package Compare versions

Comparing version 2.0.6 to 2.1.1

9

hashes/weapon_hashes.d.ts

@@ -73,6 +73,7 @@ declare namespace RageEnums.Hashes {

RAYPISTOL = 0xaf3696a1,
RAYCARABINE = 0x476bf155,
RAYCARBINE = 0x476bf155,
RAYMINIGUN = 0xb62d1f67,
REVOLVER = 0xc1b3c3d1,
REVOLVER_MK2 = 0xcb96392f,
NAVYREVOLVER = 0x917f6c8c,
RPG = 0xb1ca77b1,

@@ -95,4 +96,8 @@ SAWNOFFSHOTGUN = 0x7846a318,

VINTAGEPISTOL = 0x83839c4,
WRENCH = 0x19044ee0
WRENCH = 0x19044ee0,
TACTICALRIFLE = 0xD1D5F52B,
HEAVYRIFLE = 0xC78D71B4,
METALDETECTOR = 0xDBA2E809,
CERAMICPISTOL = 0x2b5ef5ec
}
}

@@ -146,3 +146,3 @@ /// <reference path="enums.d.ts" />

*/
unit(): Array3d;
unit(): Vector3;
}

@@ -1299,33 +1299,36 @@

declare interface IServerEvents {
entityCreated: (this: EventMpThis, entity: EntityMp) => void;
entityDestroyed: (this: EventMpThis, entity: EntityMp) => void;
entityModelChange: (this: EventMpThis, entity: EntityMp, oldModel: number) => void;
incomingConnection: (this: EventMpThis, ip: string, serial: string, rgscName: string, rgscId: string, gameType: string) => void;
packagesLoaded: (this: EventMpThis) => void;
playerChat: (this: EventMpThis, player: PlayerMp, text: string) => void;
playerCommand: (this: EventMpThis, player: PlayerMp, command: string) => void;
playerDamage: (this: EventMpThis, player: PlayerMp, healthLoss: number, armorLoss: number) => void;
playerDeath: (this: EventMpThis, player: PlayerMp, reason: number, killer?: PlayerMp) => void;
playerEnterCheckpoint: (this: EventMpThis, player: PlayerMp, checkpoint: CheckpointMp) => void;
playerEnterColshape: (this: EventMpThis, player: PlayerMp, colshape: ColshapeMp) => void;
playerEnterVehicle: (this: EventMpThis, player: PlayerMp, vehicle: VehicleMp, seat: RageEnums.VehicleSeat) => void;
playerExitCheckpoint: (this: EventMpThis, player: PlayerMp, checkpoint: CheckpointMp) => void;
playerExitColshape: (this: EventMpThis, player: PlayerMp, colshape: ColshapeMp) => void;
playerExitVehicle: (this: EventMpThis, player: PlayerMp, vehicle: VehicleMp, seat: number) => void;
playerJoin: (this: EventMpThis, player: PlayerMp) => void;
playerQuit: (this: EventMpThis, player: PlayerMp, exitType: string, reason: string) => void;
playerReachWaypoint: (this: EventMpThis, player: PlayerMp) => void;
playerReady: (this: EventMpThis, player: PlayerMp) => void;
playerSpawn: (this: EventMpThis, player: PlayerMp) => void;
playerStartEnterVehicle: (this: EventMpThis, player: PlayerMp, vehicle: VehicleMp, seat: RageEnums.VehicleSeat) => void;
playerStartExitVehicle: (this: EventMpThis, player: PlayerMp) => void;
playerStreamIn: (this: EventMpThis, player: PlayerMp, forPlayer: PlayerMp) => void;
playerStreamOut: (this: EventMpThis, player: PlayerMp, forPlayer: PlayerMp) => void;
playerWeaponChange: (this: EventMpThis, player: PlayerMp, oldWeapon: number, newWeapon: number) => void;
serverShutdown: (this: EventMpThis) => void;
trailerAttached: (this: EventMpThis, vehicle: VehicleMp, trailer: VehicleMp) => void;
vehicleDamage: (this: EventMpThis, vehicle: VehicleMp, bodyHealthLoss: number, engineHealthLoss: number) => void;
vehicleDeath: (this: EventMpThis, vehicle: VehicleMp) => void;
vehicleHornToggle: (this: EventMpThis, vehicle: VehicleMp, toggle: boolean) => void;
vehicleSirenToggle: (this: EventMpThis, vehicle: VehicleMp, toggle: boolean) => void;
entityCreated: (entity: EntityMp) => void;
/*
* @deprecated Broken/Removed in RageMP 1.1 DP1
*/
entityDestroyed: (entity: EntityMp) => void;
entityModelChange: (entity: EntityMp, oldModel: number) => void;
incomingConnection: (ip: string, serial: string, rgscName: string, rgscId: string, gameType: string) => void;
packagesLoaded: () => void;
playerChat: (player: PlayerMp, text: string) => void;
playerCommand: (player: PlayerMp, command: string) => void;
playerDamage: (player: PlayerMp, healthLoss: number, armorLoss: number) => void;
playerDeath: (player: PlayerMp, reason: number, killer?: PlayerMp) => void;
playerEnterCheckpoint: (player: PlayerMp, checkpoint: CheckpointMp) => void;
playerEnterColshape: (player: PlayerMp, colshape: ColshapeMp) => void;
playerEnterVehicle: (player: PlayerMp, vehicle: VehicleMp, seat: RageEnums.VehicleSeat) => void;
playerExitCheckpoint: (player: PlayerMp, checkpoint: CheckpointMp) => void;
playerExitColshape: (player: PlayerMp, colshape: ColshapeMp) => void;
playerExitVehicle: (player: PlayerMp, vehicle: VehicleMp, seat: number) => void;
playerJoin: (player: PlayerMp) => void;
playerQuit: (player: PlayerMp, exitType: string, reason: string) => void;
playerReachWaypoint: (player: PlayerMp) => void;
playerReady: (player: PlayerMp) => void;
playerSpawn: (player: PlayerMp) => void;
playerStartEnterVehicle: (player: PlayerMp, vehicle: VehicleMp, seat: RageEnums.VehicleSeat) => void;
playerStartExitVehicle: (player: PlayerMp) => void;
playerStreamIn: (player: PlayerMp, forPlayer: PlayerMp) => void;
playerStreamOut: (player: PlayerMp, forPlayer: PlayerMp) => void;
playerWeaponChange: (player: PlayerMp, oldWeapon: number, newWeapon: number) => void;
serverShutdown: () => void;
trailerAttached: (vehicle: VehicleMp, trailer: VehicleMp) => void;
vehicleDamage: (vehicle: VehicleMp, bodyHealthLoss: number, engineHealthLoss: number) => void;
vehicleDeath: (vehicle: VehicleMp) => void;
vehicleHornToggle: (vehicle: VehicleMp, toggle: boolean) => void;
vehicleSirenToggle: (vehicle: VehicleMp, toggle: boolean) => void;
}

@@ -1346,2 +1349,6 @@

declare type ThisifyServerEvents = {
[P in keyof IServerEvents]: (this: EventMpThis, ...args: Parameters<IServerEvents[P]>) => void;
}
declare class EventMpPool {

@@ -1373,3 +1380,3 @@ /**

*/
public add<K extends keyof IServerEvents>(eventName: K, callback: IServerEvents[K]): void;
public add<K extends keyof IServerEvents>(eventName: K, callback: ThisifyServerEvents[K]): void;
public add(eventHandlers: MultiEventHandlers): void;

@@ -1413,4 +1420,4 @@ public add(eventName: string, callback: (this: EventMpThis, ...args: any[]) => void): void;

*/
public getAllOf<K extends keyof IServerEvents>(eventName: K): Event[];
public getAllOf(eventName: string): Event[];
public getAllOf<K extends keyof IServerEvents>(eventName: K): Function[];
public getAllOf(eventName: string): Function[];

@@ -1732,2 +1739,7 @@ /**

controller: PlayerMp;
/**
* Property used to gets/sets the ped's heading.
*/
public heading: number;
}

@@ -1744,2 +1756,4 @@

lockController?: boolean;
heading?: number;
dimension?: number;
}

@@ -1751,2 +1765,3 @@ ): PedMp;

rotation: Vector3;
notifyStreaming: boolean;
}

@@ -1859,2 +1874,3 @@

'fastdl-host': string;
'create-fastdl-snapshot': boolean;
}

@@ -1861,0 +1877,0 @@

{
"name": "@ragempcommunity/types-server",
"version": "2.0.6",
"version": "2.1.1",
"description": "Types definitions for RAGE:MP server-side module",

@@ -16,3 +16,3 @@ "main": "index.d.ts",

},
"gitHead": "6d0f03fb35081741420779680905b7b4f23b730f"
"gitHead": "20e116aa9771666dd8239b67f6039733eb405a1b"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc