Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Aug 19, 2024
2 parents a8c98c3 + 676ddfb commit 454c234
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 43 deletions.
18 changes: 9 additions & 9 deletions client/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
declare module "alt-client" {
import * as shared from "alt-shared";

export const enum Locale {
export enum Locale {
Arabic = "ar",
Belarusian = "by",
Czech = "cz",
Expand Down Expand Up @@ -42,7 +42,7 @@ declare module "alt-client" {
ChineseTraditional = "zh_tw",
}

export const enum StatName {
export enum StatName {
Stamina = "stamina",
Strength = "strength",
LungCapacity = "lung_capacity",
Expand All @@ -52,7 +52,7 @@ declare module "alt-client" {
Stealth = "stealth_ability",
}

export const enum VehicleIndicatorLights {
export enum VehicleIndicatorLights {
None = 0,
BlinkLeft = 1,
BlinkRight = 2,
Expand All @@ -61,14 +61,14 @@ declare module "alt-client" {
Interior = 64,
}

export const enum WebSocketReadyState {
export enum WebSocketReadyState {
Connecting,
Open,
Closing,
Closed,
}

export const enum ConfigFlag {
export enum ConfigFlag {
DisableAutoWeaponSwap = "DISABLE_AUTO_WEAPON_SWAP",
DisablePedPropKnockOff = "DISABLE_PED_PROP_KNOCK_OFF",
DisableIdleCamera = "DISABLE_IDLE_CAMERA",
Expand All @@ -86,29 +86,29 @@ declare module "alt-client" {
}

/** @deprecated This method will be removed in the next major release. (v17) */
export const enum WatermarkPosition {
export enum WatermarkPosition {
BottomRight = 0,
TopRight = 1,
TopLeft = 2,
TopCenter = 3,
BottomCenter = 4,
}

export const enum GameFont {
export enum GameFont {
ChaletLondon,
HouseScript,
Monospace,
CharletComprimeColonge = 4,
Pricedown = 7,
}

export const enum TextAlign {
export enum TextAlign {
Center,
Left,
Rigth,
}

export const enum TextLabelAlignment {
export enum TextLabelAlignment {
Left,
Right,
Center,
Expand Down
2 changes: 1 addition & 1 deletion natives/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@altv/types-natives",
"version": "16.0.5",
"version": "16.0.6",
"description": "This package contains types definitions for alt:V client-side natives.",
"types": "index.d.ts",
"files": [
Expand Down
34 changes: 17 additions & 17 deletions server/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ declare module "alt-server" {
export type DateTimeDay = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30;
export type DateTimeMonth = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;

export const enum ExplosionType {
export enum ExplosionType {
Grenade,
GrenadeLauncher,
StickyBomb,
Expand Down Expand Up @@ -54,7 +54,7 @@ declare module "alt-server" {
Unknown = -1,
}

export const enum RadioStation {
export enum RadioStation {
LosSantosRockRadio,
NonStopPopFm,
RadioLosSantos,
Expand All @@ -77,7 +77,7 @@ declare module "alt-server" {
RadioOff = 255,
}

export const enum NumberPlateStyle {
export enum NumberPlateStyle {
BlueWhite,
YellowBlack,
YellowBlue,
Expand All @@ -86,18 +86,18 @@ declare module "alt-server" {
Yankton,
}

export const enum VehicleBumper {
export enum VehicleBumper {
Front,
Rear,
}

export const enum VehicleBumperDamage {
export enum VehicleBumperDamage {
NotDamaged,
Damaged,
None,
}

export const enum VehicleDoor {
export enum VehicleDoor {
DriverFront,
PassengerFront,
DriverRear,
Expand All @@ -106,7 +106,7 @@ declare module "alt-server" {
Trunk,
}

export const enum VehicleDoorState {
export enum VehicleDoorState {
Closed,
OpenedLevel1,
OpenedLevel2,
Expand All @@ -118,7 +118,7 @@ declare module "alt-server" {
Unknown = 255,
}

export const enum VehicleModType {
export enum VehicleModType {
Spoiler,
FrontBumper,
RearBumper,
Expand Down Expand Up @@ -170,7 +170,7 @@ declare module "alt-server" {
Livery,
}

export const enum VehiclePart {
export enum VehiclePart {
FrontLeft,
FrontRight,
MiddleLeft,
Expand All @@ -179,14 +179,14 @@ declare module "alt-server" {
RearRight,
}

export const enum VehiclePartDamage {
export enum VehiclePartDamage {
NotDamaged,
DamagedLevel1,
DamagedLevel2,
DamagedLevel3,
}

export const enum WeatherType {
export enum WeatherType {
ExtraSunny,
Clear,
Clouds,
Expand All @@ -204,7 +204,7 @@ declare module "alt-server" {
Halloween,
}

export const enum WindowTint {
export enum WindowTint {
None,
PureBlack,
DarkSmoke,
Expand All @@ -214,19 +214,19 @@ declare module "alt-server" {
Green,
}

export const enum BaseObjectFilterType {
export enum BaseObjectFilterType {
Player = 1,
Vehicle = 2,
Ped = 4,
Object = 8,
}

export const enum Benefit {
export enum Benefit {
None,
CloudAuth,
}

export const enum CloudAuthResult {
export enum CloudAuthResult {
Success,
NoBenefit,
VerifyFailed,
Expand Down Expand Up @@ -278,7 +278,7 @@ declare module "alt-server" {
static getByID(id: number): IConnectionInfo | null;
}

export const enum ConnectDeniedReason {
export enum ConnectDeniedReason {
WRONG_VERSION,
WRONG_BRANCH,
DEBUG_NOT_ALLOWED,
Expand Down Expand Up @@ -500,7 +500,7 @@ declare module "alt-server" {
readonly fixedAfterExplosion: boolean;
}

export const enum AmmoSpecialType {
export enum AmmoSpecialType {
None,
ArmorPiercing,
Explosive,
Expand Down
32 changes: 16 additions & 16 deletions shared/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @module alt-shared
*/
declare module "alt-shared" {
export const enum BaseObjectType {
export enum BaseObjectType {
Player,
Vehicle,
Ped,
Expand Down Expand Up @@ -36,7 +36,7 @@ declare module "alt-shared" {
Size,
}

export const enum BlipSprite {
export enum BlipSprite {
Higher,
Lower,
PolicePed,
Expand Down Expand Up @@ -781,7 +781,7 @@ declare module "alt-shared" {
Agency,
}

export const enum BlipColor {
export enum BlipColor {
White,
Red,
Green,
Expand Down Expand Up @@ -836,7 +836,7 @@ declare module "alt-shared" {
Purple = 83,
}

export const enum BlipType {
export enum BlipType {
Vehicle = 1,
Ped,
Object,
Expand All @@ -851,7 +851,7 @@ declare module "alt-shared" {
PickupObject,
}

export const enum MarkerType {
export enum MarkerType {
MarkerCone = 0,
MarkerCylinder = 1,
MarkerArrow = 2,
Expand Down Expand Up @@ -899,7 +899,7 @@ declare module "alt-shared" {
MarkerPitLane = 44,
}

export const enum ColShapeType {
export enum ColShapeType {
Sphere,
Cylinder,
Circle,
Expand All @@ -909,7 +909,7 @@ declare module "alt-shared" {
Polygon,
}

export const enum AudioCategories {
export enum AudioCategories {
x44E21C90 = "0x44E21C90",
xBAD598C7 = "0xBAD598C7",
xA4D158B0 = "0xA4D158B0",
Expand Down Expand Up @@ -1138,13 +1138,13 @@ declare module "alt-shared" {
xCFF0C1C2 = "0xCFF0C1C2",
}

export const enum FileEncoding {
export enum FileEncoding {
Utf8 = "utf-8",
Utf16 = "utf-16",
Binary = "binary",
}

export const enum Permission {
export enum Permission {
NONE,
SCREEN_CAPTURE,
WEBRTC,
Expand All @@ -1153,7 +1153,7 @@ declare module "alt-shared" {
All,
}

export const enum CheckpointType {
export enum CheckpointType {
CylinderSingleArrow,
CylinderDoubleArrow,
CylinderTripleArrow,
Expand Down Expand Up @@ -1223,7 +1223,7 @@ declare module "alt-shared" {
RingWhirl,
}

export const enum ModelType {
export enum ModelType {
Invalid,
Ped,
Automobile,
Expand All @@ -1244,7 +1244,7 @@ declare module "alt-shared" {
Object,
}

export const enum KeyCode {
export enum KeyCode {
Key0 = 48,
Key1 = 49,
Key2 = 50,
Expand Down Expand Up @@ -1354,7 +1354,7 @@ declare module "alt-shared" {
MouseMiddle = 4,
}

export const enum BodyPart {
export enum BodyPart {
Pelvis,
LeftHip,
LeftLeg,
Expand All @@ -1379,7 +1379,7 @@ declare module "alt-shared" {
Unknown = -1,
}

export const enum PedConfigFlag {
export enum PedConfigFlag {
NoCriticalHits = 2,
DrownsInWater = 3,
DisableReticuleFixedLockon = 4,
Expand Down Expand Up @@ -1666,7 +1666,7 @@ declare module "alt-shared" {
DontChangeTargetFromMelee = 458,
}

export const enum VoiceConnectionState {
export enum VoiceConnectionState {
Disconnected,
Connecting,
Connected,
Expand Down Expand Up @@ -1774,7 +1774,7 @@ declare module "alt-shared" {
readonly components: readonly number[];
}

export const enum VehicleLockState {
export enum VehicleLockState {
None,
Unlocked,
Locked,
Expand Down

0 comments on commit 454c234

Please sign in to comment.