Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bump version #330

Open
wants to merge 45 commits into
base: rc
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
50241a0
feat(client): type safety for useStreaming (#298)
xxshady Jan 18, 2024
90c3a25
fix(client): typos (#297)
xxshady Jan 18, 2024
213cf5b
feat(webview): Add getPermissionState typing
xLuxy Jan 28, 2024
600bb1d
chore(webview, client): Bump version
xLuxy Jan 28, 2024
268e9d9
fix(webview): Formatting
xLuxy Jan 28, 2024
524625d
chore(webview, client): Bump version
xLuxy Jan 28, 2024
30ca4ac
fix(shared): Added required first argument to alt.log methods (#299)
WelaurS Feb 28, 2024
f3e4ae0
ci(shared): Bump version
xLuxy Feb 28, 2024
8599d0b
fix(server): virtual entity description (#306)
xxshady Mar 14, 2024
5860297
chore: update imports in examples (#303)
xxshady Mar 14, 2024
994a80c
chore: remove outdated event beforePlayerConnect (#304)
xxshady Mar 14, 2024
1a3baf2
chore: add package.json to first resource article (#302)
xxshady Mar 14, 2024
bf4425c
feat: add server debugging article (#309)
xxshady Mar 14, 2024
c860406
chore: add more descriptions for virtual entity API (#307)
xxshady Mar 14, 2024
3675e2e
chore: edit text labels to avoid confusion with 15.0 text labels (#305)
xxshady Mar 14, 2024
e75c9ed
feat(client): add alt.Object.streamedIn (#312)
xxshady Mar 23, 2024
94fc6e6
chore(client): Bump version
xLuxy Apr 3, 2024
c0d0aef
chore: improve getClosestEntities description (#310)
xxshady Apr 3, 2024
885493e
chore(server): Bump version
xLuxy Apr 3, 2024
beba645
fix(client): add missing Ped.getByRemoteID (#314)
xxshady May 8, 2024
d4ff659
fix(client, server): fix and improve RPC docs (#315)
xxshady May 19, 2024
0c56bda
Update requirements list (#317)
devpanda0 May 28, 2024
7d08b18
Fixed wrong name in event docs (#316)
Dav-Renz May 28, 2024
68b0446
chore: Bump version
xLuxy May 28, 2024
4812ebb
feat(client): Add reloadVehiclePhysics
xLuxy May 29, 2024
9808a79
chore(client)!: Deprecate setWatermarkPosition and it's enum
xLuxy Jun 13, 2024
66c6243
chore: Bump version
xLuxy Jun 13, 2024
13cccc7
chore(server): add some descriptions of voice channel properties (#318)
xxshady Jul 1, 2024
ac156d8
chore: Bump version
xLuxy Jul 1, 2024
aa4cbfd
fix(natives): Fix nullable string parameters
xLuxy Aug 19, 2024
60b3648
fix(natives): Fix nullable string return type
xLuxy Aug 19, 2024
572c87d
chore: Bump version
xLuxy Aug 19, 2024
676ddfb
feat(client, server, shared): switch to normal enums (#319)
xxshady Aug 19, 2024
d641283
chore: Bump version
xLuxy Aug 19, 2024
143fd8f
feat(client): Add new methods
xLuxy Aug 20, 2024
fed355e
chore: Bump version
xLuxy Aug 20, 2024
458d48d
chore: update math snippet (#320)
xxshady Aug 20, 2024
709cce3
chore: remove outdated workers article (#323)
xxshady Sep 16, 2024
ffe50da
feat: add multiple metadata setters (#322)
xxshady Sep 16, 2024
3f22777
chore(shared): fix angleTo return type of vector2 (#324)
S0P4 Sep 16, 2024
10111ce
chore: Bump version
xLuxy Sep 16, 2024
09e1e25
feat(client): Interior API (#325)
xxshady Nov 21, 2024
3fbffa8
fix(client): InteriorRoom and InteriorPortal don't have public constr…
xxshady Nov 29, 2024
27fc7bb
Merge branch 'dev' into rc
xxshady Nov 29, 2024
6b9b54d
chore: Bump version
xxshady Nov 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions client/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,14 @@ declare module "alt-client" {
readonly propertyUpdateTicks: number[][];
}

/**
* Axis-Aligned Bounding Box.
*/
export interface IAABB {
min: number;
max: number;
}

export class BaseObject extends shared.BaseObject {
/**
* Whether this entity was created clientside or serverside. (Clientside = false, Serverside = true).
Expand Down Expand Up @@ -4564,5 +4572,84 @@ declare module "alt-client" {
public static register(path: string): Font;
}

export class Interior {
protected constructor();

/**
* Create interior instance by id. Throws if id is invalid (for example, when it's 0).
*
* @example
* ```js
* // Get the interior where our local player is currently in
* const interiorId = natives.getInteriorFromEntity(alt.Player.local);
* if (interiorId !== 0) {
* const interior = alt.Interior.getForInteriorID(interiorId);
*
* // Output room count of it
* alt.log({
* roomCount: interior.roomCount
* });
* } else {
* alt.logError("Interior id is 0, seems like player is outside");
* }
* ```
*/
public static getForInteriorID(id: number): Interior;

public readonly id: number;
public readonly pos: shared.Vector3;
public readonly rot: shared.Vector3;
public readonly roomCount: number;
public readonly portalCount: number;
public readonly entitiesExtents: IAABB;

/**
* Get room by it's hash. Throws if room hash is invalid.
*/
public getRoomByHash(hash: number): InteriorRoom;

/**
* Get room by it's index: from 0 to {@link roomCount}, for example if `roomCount = 2`, room indexes will be 0 and 1.
* Throws if room index is invalid.
*/
public getRoomByIndex(index: number): InteriorRoom;

/**
* Get portal by it's index: from 0 to {@link portalCount}, for example if `portalCount = 2`, portal indexes will be 0 and 1.
* Throws if portal index is invalid.
*/
public getPortalByIndex(index: number): InteriorPortal;
}

export class InteriorRoom {
protected constructor();

public readonly index: number;
public readonly name: string;
public readonly nameHash: number;
public flag: number;
public timecycle: number;
public extents: IAABB;
}

export class InteriorPortal {
protected constructor();

public readonly index: number;
public readonly cornerCount: number;
public readonly entityCount: number;
public roomFrom: number;
public roomTo: number;
public flag: number;

public getCornerPos(cornerIndex: number): shared.Vector3;
public setCornerPos(cornerIndex: number, value: shared.Vector3): void;
public getEntityArchetype(entityIndex: number): number;
public getEntityFlag(entityIndex: number): number;
public setEntityFlag(entityIndex: number, flag: number): void;
public getEntityPos(entityIndex: number): shared.Vector3;
public getEntityRot(entityIndex: number): shared.Vector3;
}

export * from "alt-shared";
}
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@altv/types-client",
"version": "16.1.13",
"version": "16.1.14",
"description": "This package contains types definitions for alt:V client-side module.",
"types": "index.d.ts",
"files": [
Expand Down