Skip to content

Commit

Permalink
publish(client): output for dfd88f8
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardssh committed Feb 2, 2022
1 parent 6e82ca9 commit fac0ae6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion game/object.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ declare interface GameObject extends GameObjectLegacy {
setEnableArenaPropPhysics(object: number, toggle: boolean, p2: number): void;
setEnableArenaPropPhysicsOnPed(object: number, toggle: boolean, p2: number, ped: number): void;
getIsArenaPropPhysicsDisabled(object: number, p1: number): boolean;
getAllInRange(position: Vector3, range?: number, includeDistance?: boolean, sortByDistance?: boolean);
getAllInRange(position: Vector3, range?: number, includeDistance?: boolean, sortByDistance?: boolean): void;

unk: GameObjectUnk;
}
Expand Down
11 changes: 6 additions & 5 deletions game/weapon.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,6 @@ declare interface GameWeapon extends GameWeaponLegacy {
doesAirDefenseZoneExist(zoneId: number): boolean;
setCanPedEquip(ped: number, weaponHash: number, toggle: boolean): void;
setCanPedEquipAllS(ped: number, toggle: boolean): void;
/**
* Enables outgoingDamage event calls when issuing weapon damage on local player, peds and vehicles
*/
setEnableLocalOutgoingDamage(toggle: boolean);
setCurrentDamageEventCritical(toggle: boolean);

unk: GameWeaponUnk;
}
Expand All @@ -196,6 +191,12 @@ declare interface GameWeaponEventRelated {
* Can be used only in outgoingDamage or incomingDamage events.
*/
setCurrentDamageEventAmount(amount: number): void;

/**
* Enables outgoingDamage event calls when issuing weapon damage on local player, peds and vehicles
*/
setEnableLocalOutgoingDamage(toggle: boolean): void;
setCurrentDamageEventCritical(toggle: boolean): void;
}

declare interface GameWeaponMp extends GameWeapon, GameWeaponEventRelated {}
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3105,8 +3105,8 @@ declare interface ObjectMp extends EntityMp {
weaponHash: number,
position: Vector3,
options?: { ammo?: number; scale?: number; showWorldObject?: boolean; rotation?: Vector3 }
);
getAllByHash(hash: number);
): void;
getAllByHash(hash: number): void;
}

declare interface ObjectMpPool extends EntityMpPool<ObjectMp> {
Expand Down

0 comments on commit fac0ae6

Please sign in to comment.