Skip to content

Commit

Permalink
feat(server): Add Vehicle.setBadge
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Dec 29, 2023
1 parent 505548e commit 2585954
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions server/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,16 @@ declare module "alt-server" {
VerifyFailed,
}

export interface VehicleBadgePosition {
active: boolean;
alpha: number;
size: number;
boneIndex: number;
offset: shared.Vector3;
direction: shared.Vector3;
side: shared.Vector3;
}

export interface IConnectionInfo {
readonly name: string;
readonly socialID: string;
Expand Down Expand Up @@ -2456,6 +2466,8 @@ declare module "alt-server" {

public setWeaponCapacity(weaponIndex: number, capacity: number): void;

setBadge(textureDictionary: number, texture: number, pos: VehicleBadgePosition, pos2?: VehicleBadgePosition, pos3?: VehicleBadgePosition, pos4?: VehicleBadgePosition): void;

public hybridExtraActive: boolean;

public hybridExtraState: number;
Expand Down

0 comments on commit 2585954

Please sign in to comment.