Skip to content

Commit

Permalink
Merge pull request #59 from Kopraa/main
Browse files Browse the repository at this point in the history
Small `GameObject` correction
  • Loading branch information
leonardssh authored Aug 18, 2023
2 parents 7a58907 + 3b29a6f commit f8159f3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/client/game/object.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,16 @@ 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): void;

/**
* Returns data of world objects within specified range.
*
* Each element in the array that is returned will contain:
* [Number model, Vector3 position, Vector3 rotation, Number distanceSquared(if includeDistance is set to true)]
* [RAGE:MP Wiki article](https://wiki.rage.mp/index.php?title=Object::getAllInRange)
*/
getAllInRange(position: Vector3, range?: number, includeDistance?: boolean, sortByDistance?: boolean) : [number, Vector3, Vector3, number?][] | undefined;
getAllByHash(hash: number): Vector3[];

unk: GameObjectUnk;
}
Expand Down

0 comments on commit f8159f3

Please sign in to comment.