gtac-types 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.d.ts +4 -0
- package/src/runtime/shared/enums/colour.ts +25 -0
- package/src/runtime/shared/enums/icon.ts +81 -0
- package/src/runtime/shared/enums/interior.ts +31 -0
- package/src/runtime/shared/enums/mission.ts +197 -0
- package/src/runtime/shared/enums/ped-skin.ts +377 -0
- package/src/runtime/shared/enums/pickup-model.ts +117 -0
- package/src/runtime/shared/enums/pickup-type.ts +11 -0
- package/src/runtime/shared/enums/vehicle-model.ts +217 -0
- package/src/runtime/shared/enums/weapon.ts +75 -0
- package/src/runtime/shared/enums/weather.ts +13 -0
- package/src/types/shared/constants.d.ts +145 -0
- package/src/types/shared/enums.d.ts +1174 -0
- package/src/types/shared/utils.d.ts +9 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
/// <reference path="types/client/gta.d.ts" />
|
|
18
18
|
/// <reference path="types/client/natives.d.ts" />
|
|
19
19
|
|
|
20
|
+
/// <reference path="types/shared/enums.d.ts" />
|
|
21
|
+
/// <reference path="types/shared/constants.d.ts" />
|
|
22
|
+
/// <reference path="types/shared/utils.d.ts" />
|
|
23
|
+
|
|
20
24
|
/// <reference path="types/server/client.d.ts" />
|
|
21
25
|
/// <reference path="types/server/events.d.ts" />
|
|
22
26
|
/// <reference path="types/server/functions.d.ts" />
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Vehicle colour palette indices for GTA VC. */
|
|
2
|
+
enum Colour {
|
|
3
|
+
/** Black */
|
|
4
|
+
BLACK = 0,
|
|
5
|
+
/** Pink / White */
|
|
6
|
+
PINK_WHITE = 15,
|
|
7
|
+
/** Kaufman Cab primary colour (yellow) */
|
|
8
|
+
CAB_PRIMARY = 89,
|
|
9
|
+
/** Kaufman Cab secondary colour (white) */
|
|
10
|
+
CAB_SECONDARY = 90,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** Standardised blip colour conventions for mission markers and tracking. */
|
|
14
|
+
enum BlipColour {
|
|
15
|
+
/** NPC targets, mission peds, allies/enemies (default for ped tracking). */
|
|
16
|
+
NPC = 0xFFFF00,
|
|
17
|
+
/** Fixed position markers, objectives, checkpoints, non-NPC goals. */
|
|
18
|
+
MARKER = 0xFF00FF,
|
|
19
|
+
/** Vehicles, weapons, pickups, drivable targets. */
|
|
20
|
+
VEHICLE = 0x00FFFF,
|
|
21
|
+
/** Mission-critical unique NPCs (Diaz, Sonny, etc.) — magenta (same as MARKER). */
|
|
22
|
+
BOSS = 0xFF00FF,
|
|
23
|
+
/** Mission-ally unique NPCs (Phil, Kent, etc.) — orange accent. */
|
|
24
|
+
ALLY = 0xFF8C00,
|
|
25
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/** GTA Vice City radar blip/icon identifiers. @see docs/vc/radar-blips.md */
|
|
2
|
+
enum Icon {
|
|
3
|
+
/** No icon */
|
|
4
|
+
NONE = 0,
|
|
5
|
+
/** Centre target */
|
|
6
|
+
CENTRE = 1,
|
|
7
|
+
/** Map here marker */
|
|
8
|
+
MAP_HERE = 2,
|
|
9
|
+
/** North indicator */
|
|
10
|
+
NORTH = 3,
|
|
11
|
+
/** Avery Carrington */
|
|
12
|
+
AVERY = 4,
|
|
13
|
+
/** Biker */
|
|
14
|
+
BIKER = 5,
|
|
15
|
+
/** Cortez */
|
|
16
|
+
CORTEZ = 6,
|
|
17
|
+
/** Diaz */
|
|
18
|
+
DIAZ = 7,
|
|
19
|
+
/** Kent Paul */
|
|
20
|
+
KENT = 8,
|
|
21
|
+
/** Law Firm (Rosenburg) */
|
|
22
|
+
LAWYER = 9,
|
|
23
|
+
/** Phil Cassidy */
|
|
24
|
+
PHIL = 10,
|
|
25
|
+
/** Bikers (gang) */
|
|
26
|
+
BIKERS = 11,
|
|
27
|
+
/** Boatyard */
|
|
28
|
+
BOATYARD = 12,
|
|
29
|
+
/** Malibu Club */
|
|
30
|
+
MALIBUCLUB = 13,
|
|
31
|
+
/** Cubans (gang) */
|
|
32
|
+
CUBANS = 14,
|
|
33
|
+
/** Film Studio */
|
|
34
|
+
FILM = 15,
|
|
35
|
+
/** Gun Shop (Ammunation) */
|
|
36
|
+
GUN = 16,
|
|
37
|
+
/** Haitians (gang) */
|
|
38
|
+
HAITIANS = 17,
|
|
39
|
+
/** Hardware Store */
|
|
40
|
+
HARDWARE = 18,
|
|
41
|
+
/** Savehouse */
|
|
42
|
+
SAVEHOUSE = 19,
|
|
43
|
+
/** Strip Club */
|
|
44
|
+
STRIPCLUB = 20,
|
|
45
|
+
/** Ice Cream (Cherry Popper) */
|
|
46
|
+
ICE = 21,
|
|
47
|
+
/** Kaufman Cabs */
|
|
48
|
+
KCABS = 22,
|
|
49
|
+
/** Love Fist */
|
|
50
|
+
LOVEFIST = 23,
|
|
51
|
+
/** Print Works */
|
|
52
|
+
PRINTWORKS = 24,
|
|
53
|
+
/** Sunyard */
|
|
54
|
+
SUNYARD = 26,
|
|
55
|
+
/** Spray Shop (Pay 'n' Spray) */
|
|
56
|
+
SPRAY = 27,
|
|
57
|
+
/** T-Shirt Shop */
|
|
58
|
+
TSHIRT = 28,
|
|
59
|
+
/** Tommy */
|
|
60
|
+
TOMMY = 29,
|
|
61
|
+
/** Phone */
|
|
62
|
+
PHONE = 30,
|
|
63
|
+
/** Radio: Wildstyle */
|
|
64
|
+
RADIO_WILDSTYLE = 31,
|
|
65
|
+
/** Radio: Flash FM */
|
|
66
|
+
RADIO_FLASH = 32,
|
|
67
|
+
/** Radio: K-CHAT */
|
|
68
|
+
RADIO_KCHAT = 33,
|
|
69
|
+
/** Radio: Fever 105 */
|
|
70
|
+
RADIO_FEVER = 34,
|
|
71
|
+
/** Radio: V-Rock */
|
|
72
|
+
RADIO_VROCK = 35,
|
|
73
|
+
/** Radio: VCPR */
|
|
74
|
+
RADIO_VCPR = 36,
|
|
75
|
+
/** Radio: Espantoso */
|
|
76
|
+
RADIO_ESPANTOSO = 37,
|
|
77
|
+
/** Radio: Emotion 98.3 */
|
|
78
|
+
RADIO_EMOTION = 38,
|
|
79
|
+
/** Radio: Wave 103 */
|
|
80
|
+
RADIO_WAVE = 39,
|
|
81
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** GTA Vice City interior IDs. */
|
|
2
|
+
enum Interior {
|
|
3
|
+
/** No interior / exterior world */
|
|
4
|
+
NONE = 0,
|
|
5
|
+
/** Ocean View Hotel room */
|
|
6
|
+
OCEAN_VIEW_HOTEL = 1,
|
|
7
|
+
/** Vercetti Estate mansion (main safehouse) */
|
|
8
|
+
VERCETTI_MANSION = 2,
|
|
9
|
+
/** Bank (The Job) */
|
|
10
|
+
BANK = 3,
|
|
11
|
+
/** North Point Mall shopping centre */
|
|
12
|
+
NORTH_POINT_MALL = 4,
|
|
13
|
+
/** Pole Position Club (strip club) */
|
|
14
|
+
POLE_POSITION_CLUB = 5,
|
|
15
|
+
/** Office (Print Works) */
|
|
16
|
+
OFFICE = 6,
|
|
17
|
+
/** Umberto's Coffee Shop */
|
|
18
|
+
UMBERTO_CAFE = 7,
|
|
19
|
+
/** Ammunation Shooting Range */
|
|
20
|
+
SHOOTING_RANGE = 10,
|
|
21
|
+
/** Bar (The Boatyard) */
|
|
22
|
+
BAR = 11,
|
|
23
|
+
/** Police Station */
|
|
24
|
+
POLICE_STATION = 12,
|
|
25
|
+
/** Bloodring Arena */
|
|
26
|
+
BLOODRING = 15,
|
|
27
|
+
/** The Old Lituation (Tommy's retail space/lei lounge) */
|
|
28
|
+
OLD_TOMMY = 16,
|
|
29
|
+
/** Malibu Club nightclub */
|
|
30
|
+
MALIBU_CLUB = 17,
|
|
31
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/** GTA Vice City mission identifiers (0-96) matching the game's mission list. */
|
|
2
|
+
enum Mission {
|
|
3
|
+
/** Initial (spawn state, no active mission) */
|
|
4
|
+
INITIAL = 0,
|
|
5
|
+
/** Intro - opening cutscene */
|
|
6
|
+
INTRO = 1,
|
|
7
|
+
/** An Old Friend - meet Ken Rosenberg */
|
|
8
|
+
AN_OLD_FRIEND = 2,
|
|
9
|
+
/** The Party - Tommy meets the cast */
|
|
10
|
+
THE_PARTY = 3,
|
|
11
|
+
/** Back Alley Brawl - gang fight in alley */
|
|
12
|
+
BACK_ALLEY_BRAWL = 4,
|
|
13
|
+
/** Jury Fury - tamper with jury */
|
|
14
|
+
JURY_FURY = 5,
|
|
15
|
+
/** Riot - start a prison riot */
|
|
16
|
+
RIOT = 6,
|
|
17
|
+
/** Treacherous Swine - rescue from funeral home */
|
|
18
|
+
TREACHEROUS_SWINE = 7,
|
|
19
|
+
/** Mall Shootout - shootout at the mall */
|
|
20
|
+
MALL_SHOOTOUT = 8,
|
|
21
|
+
/** Guardian Angels - protect Diaz */
|
|
22
|
+
GUARDIAN_ANGELS = 9,
|
|
23
|
+
/** Sir, Yes Sir! - steal army convoy */
|
|
24
|
+
SIR_YES_SIR = 10,
|
|
25
|
+
/** All Hands On Deck! - yacht party */
|
|
26
|
+
ALL_HANDS_ON_DECK = 11,
|
|
27
|
+
/** The Chase - boat chase */
|
|
28
|
+
THE_CHASE = 12,
|
|
29
|
+
/** Phnom Penh '86 - helicopter raid */
|
|
30
|
+
PHNOM_PENH_86 = 13,
|
|
31
|
+
/** The Fastest Boat - boat race */
|
|
32
|
+
THE_FASTEST_BOAT = 14,
|
|
33
|
+
/** Supply & Demand - drug deal */
|
|
34
|
+
SUPPLY_AND_DEMAND = 15,
|
|
35
|
+
/** Rub Out - kill Diaz */
|
|
36
|
+
RUB_OUT = 16,
|
|
37
|
+
/** Death Row - rescue Lance */
|
|
38
|
+
DEATH_ROW = 17,
|
|
39
|
+
/** Four Iron - golf mission */
|
|
40
|
+
FOUR_IRON = 18,
|
|
41
|
+
/** Demolition Man - RC helicopter bombs */
|
|
42
|
+
DEMOLITION_MAN = 19,
|
|
43
|
+
/** Two Bit Hit - assassination */
|
|
44
|
+
TWO_BIT_HIT = 20,
|
|
45
|
+
/** No Escape? - prison break */
|
|
46
|
+
NO_ESCAPE = 21,
|
|
47
|
+
/** The Shootist - gun range challenge */
|
|
48
|
+
THE_SHOOTIST = 22,
|
|
49
|
+
/** The Driver - street race */
|
|
50
|
+
THE_DRIVER = 23,
|
|
51
|
+
/** The Job - bank heist */
|
|
52
|
+
THE_JOB = 24,
|
|
53
|
+
/** Gun Runner - steal guns */
|
|
54
|
+
GUN_RUNNER = 25,
|
|
55
|
+
/** Boomshine Saigon - destroy drug factory */
|
|
56
|
+
BOOMSHINE_SAIGON = 26,
|
|
57
|
+
/** Recruitment Drive - recruitment montage */
|
|
58
|
+
RECRUITMENT_DRIVE = 27,
|
|
59
|
+
/** Dildo Dodo - fly the seaplane */
|
|
60
|
+
DILDO_DODO = 28,
|
|
61
|
+
/** Martha's Mug Shot - photograph targets */
|
|
62
|
+
MARTHAS_MUG_SHOT = 29,
|
|
63
|
+
/** G-spotlight - destroy concert lights */
|
|
64
|
+
G_SPOTLIGHT = 30,
|
|
65
|
+
/** Shakedown - extort businesses */
|
|
66
|
+
SHAKEDOWN = 31,
|
|
67
|
+
/** Bar Brawl - fight in bar */
|
|
68
|
+
BAR_BRAWL = 32,
|
|
69
|
+
/** Cop Land - kill cops */
|
|
70
|
+
COP_LAND = 33,
|
|
71
|
+
/** Spilling the Beans - cafe meeting */
|
|
72
|
+
SPILLING_THE_BEANS = 34,
|
|
73
|
+
/** Hit the Courier - steal from courier */
|
|
74
|
+
HIT_THE_COURIER = 35,
|
|
75
|
+
/** Printworks Buy - purchase Print Works */
|
|
76
|
+
PRINTWORKS_BUY = 36,
|
|
77
|
+
/** Sunshine Autos - purchase Sunshine Autos */
|
|
78
|
+
SUNSHINE_AUTOS = 37,
|
|
79
|
+
/** Interglobal Films Buy - purchase film studio */
|
|
80
|
+
INTERGLOBAL_FILMS_BUY = 38,
|
|
81
|
+
/** Cherry Popper Icecreams Buy - purchase ice cream factory */
|
|
82
|
+
CHERRY_POPPER_ICECREAMS_BUY = 39,
|
|
83
|
+
/** Kaufman Cabs Buy - purchase taxi company */
|
|
84
|
+
KAUFMAN_CABS_BUY = 40,
|
|
85
|
+
/** Malibu Club Buy - purchase Malibu Club */
|
|
86
|
+
MALIBU_CLUB_BUY = 41,
|
|
87
|
+
/** The Boatyard Buy - purchase boatyard */
|
|
88
|
+
THE_BOATYARD_BUY = 42,
|
|
89
|
+
/** Pole Position Club Buy - purchase strip club */
|
|
90
|
+
POLE_POSITION_CLUB_BUY = 43,
|
|
91
|
+
/** El Swanko Casa Buy - purchase El Swanko Casa */
|
|
92
|
+
EL_SWANKO_CASA_BUY = 44,
|
|
93
|
+
/** Links View Apartment Buy - purchase Links View */
|
|
94
|
+
LINKS_VIEW_APARTMENT_BUY = 45,
|
|
95
|
+
/** Hyman Condo Buy - purchase Hyman Condo */
|
|
96
|
+
HYMAN_CONDO_BUY = 46,
|
|
97
|
+
/** Ocean Heights Apt. Buy - purchase Ocean Heights */
|
|
98
|
+
OCEAN_HEIGHTS_APT_BUY = 47,
|
|
99
|
+
/** 1102 Washington Street Buy - purchase Washington Street */
|
|
100
|
+
WASHINGTON_STREET_BUY = 48,
|
|
101
|
+
/** Vice Point Buy - purchase Vice Point */
|
|
102
|
+
VICE_POINT_BUY = 49,
|
|
103
|
+
/** Skumole Shack Buy - purchase Skumole Shack */
|
|
104
|
+
SKUMOLE_SHACK_BUY = 50,
|
|
105
|
+
/** Cap the Collector - stop the collector */
|
|
106
|
+
CAP_THE_COLLECTOR = 51,
|
|
107
|
+
/** Keep your Friends Close... - final mission */
|
|
108
|
+
KEEP_YOUR_FRIENDS_CLOSE = 52,
|
|
109
|
+
/** Alloy Wheels of Steel - street racing tournament */
|
|
110
|
+
ALLOY_WHEELS_OF_STEEL = 53,
|
|
111
|
+
/** Messing with the Man - destroy cars */
|
|
112
|
+
MESSING_WITH_THE_MAN = 54,
|
|
113
|
+
/** Hog Tied - steal pigs */
|
|
114
|
+
HOG_TIED = 55,
|
|
115
|
+
/** Stunt Boat Challenge - boat stunt */
|
|
116
|
+
STUNT_BOAT_CHALLENGE = 56,
|
|
117
|
+
/** Cannon Fodder - sniper mission */
|
|
118
|
+
CANNON_FODDER = 57,
|
|
119
|
+
/** Naval Engagement - destroy boats */
|
|
120
|
+
NAVAL_ENGAGEMENT = 58,
|
|
121
|
+
/** Trojan Voodoo - drug trade */
|
|
122
|
+
TROJAN_VOODOO = 59,
|
|
123
|
+
/** Juju Scramble - deliver drugs */
|
|
124
|
+
JUJU_SCRAMBLE = 60,
|
|
125
|
+
/** Bombs Away! - bomb planes */
|
|
126
|
+
BOMBS_AWAY = 61,
|
|
127
|
+
/** Dirty Lickin's - fire truck mission */
|
|
128
|
+
DIRTY_LICKINS = 62,
|
|
129
|
+
/** Love Juice - deliver love juice */
|
|
130
|
+
LOVE_JUICE = 63,
|
|
131
|
+
/** Psycho Killer - kill the killer */
|
|
132
|
+
PSYCHO_KILLER = 64,
|
|
133
|
+
/** Publicity Tour - band tour mission */
|
|
134
|
+
PUBLICITY_TOUR = 65,
|
|
135
|
+
/** Weapon Range - shooting range */
|
|
136
|
+
WEAPON_RANGE = 66,
|
|
137
|
+
/** Road Kill - run over targets */
|
|
138
|
+
ROAD_KILL = 67,
|
|
139
|
+
/** Waste the Wife - kill the wife */
|
|
140
|
+
WASTE_THE_WIFE = 68,
|
|
141
|
+
/** Autocide - kill targets */
|
|
142
|
+
AUTOCIDE = 69,
|
|
143
|
+
/** Check Out at the Check In - hotel assassination */
|
|
144
|
+
CHECK_OUT_AT_THE_CHECK_IN = 70,
|
|
145
|
+
/** Loose Ends - escape the mansion */
|
|
146
|
+
LOOSE_ENDS = 71,
|
|
147
|
+
/** V.I.P. - protect VIP */
|
|
148
|
+
V_I_P = 72,
|
|
149
|
+
/** Friendly Rivalry - taxi race */
|
|
150
|
+
FRIENDLY_RIVALRY = 73,
|
|
151
|
+
/** Cabmaggedon - taxi rampage */
|
|
152
|
+
CABMAGGEDON = 74,
|
|
153
|
+
/** Taxi Driver (side mission) */
|
|
154
|
+
TAXI_DRIVER = 75,
|
|
155
|
+
/** Paramedic (side mission) */
|
|
156
|
+
PARAMEDIC = 76,
|
|
157
|
+
/** Firefighter (side mission) */
|
|
158
|
+
FIREFIGHTER = 77,
|
|
159
|
+
/** Vigilante (side mission) */
|
|
160
|
+
VIGILANTE = 78,
|
|
161
|
+
/** Hotring (racing) */
|
|
162
|
+
HOTRING = 79,
|
|
163
|
+
/** Bloodring (arena) */
|
|
164
|
+
BLOODRING = 80,
|
|
165
|
+
/** Dirtring (dirt track) */
|
|
166
|
+
DIRTRING = 81,
|
|
167
|
+
/** Sunshine Autos Races - car sales races */
|
|
168
|
+
SUNSHINE_AUTOS_RACES = 82,
|
|
169
|
+
/** Distribution - drug distribution */
|
|
170
|
+
DISTRIBUTION = 83,
|
|
171
|
+
/** Downtown Chopper Checkpoint - helicopter race */
|
|
172
|
+
DOWNTOWN_CHOPPER_CHECKPOINT = 84,
|
|
173
|
+
/** Ocean Beach Chopper Checkpoint - helicopter race */
|
|
174
|
+
OCEAN_BEACH_CHOPPER_CHECKPOINT = 85,
|
|
175
|
+
/** Vice Point Chopper Checkpoint - helicopter race */
|
|
176
|
+
VICE_POINT_CHOPPER_CHECKPOINT = 86,
|
|
177
|
+
/** Little Haiti Chopper Checkpoint - helicopter race */
|
|
178
|
+
LITTLE_HAITI_CHOPPER_CHECKPOINT = 87,
|
|
179
|
+
/** Trial by Dirt - dirt bike race */
|
|
180
|
+
TRIAL_BY_DIRT = 88,
|
|
181
|
+
/** Test Track - driving test */
|
|
182
|
+
TEST_TRACK = 89,
|
|
183
|
+
/** PCJ Playground - motorcycle stunt */
|
|
184
|
+
PCJ_PLAYGROUND = 90,
|
|
185
|
+
/** Cone Crazy - obstacle course */
|
|
186
|
+
CONE_CRAZY = 91,
|
|
187
|
+
/** Pizza Boy (delivery side mission) */
|
|
188
|
+
PIZZA_BOY = 92,
|
|
189
|
+
/** RC Raider Pickup - RC helicopter pickup */
|
|
190
|
+
RC_RAIDER_PICKUP = 93,
|
|
191
|
+
/** RC Bandit Race - RC car race */
|
|
192
|
+
RC_BANDIT_RACE = 94,
|
|
193
|
+
/** RC Baron Race - RC plane race */
|
|
194
|
+
RC_BARON_RACE = 95,
|
|
195
|
+
/** Checkpoint Charlie - boat checkpoint */
|
|
196
|
+
CHECKPOINT_CHARLIE = 96,
|
|
197
|
+
}
|