@nativewrappers/redm 0.0.44

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.
@@ -0,0 +1,334 @@
1
+ import { Attributes } from "../Attribute";
2
+ import { _N } from "../utils";
3
+ import { BaseEntity } from "./BaseEntity";
4
+ import { Vehicle } from "./Vehicle";
5
+ export class Ped extends BaseEntity {
6
+ attributes;
7
+ constructor(handle) {
8
+ super(handle);
9
+ }
10
+ /**
11
+ * Blocks scenarios inbetween the specified vectors
12
+ * @todo Move to Game
13
+ * @param vec1
14
+ * @param vec2
15
+ * @param blockingFlags you can find blocking flags [here](https://github.com/Halen84/RDR3-Native-Flags-And-Enums/blob/main/ADD_SCENARIO_BLOCKING_AREA/README.md)
16
+ * @returns the scenarioId that can be used in {@link removeScenarioBlock} to unblock
17
+ */
18
+ static blockScenariosInArea(vec1, vec2, blockingFlags) {
19
+ return AddScenarioBlockingArea(vec1.x, vec1.y, vec1.z, vec2.x, vec2.y, vec2.z, true, blockingFlags);
20
+ }
21
+ /**
22
+ * Removes the blocking of scenarios in the specified area
23
+ * @param scenarioId the number returned from {@link blockScenariosInArea}
24
+ */
25
+ static removeScenarioBlock(scenarioId) {
26
+ RemoveScenarioBlockingArea(scenarioId, false);
27
+ }
28
+ /**
29
+ * While this increases the peds max health, if used on a player it wont increase the max core value on the hud
30
+ */
31
+ set MaxHealth(amount) {
32
+ SetPedMaxHealth(this.Handle, amount);
33
+ }
34
+ /**
35
+ * @returns the maximum health of the ped
36
+ */
37
+ get MaxHealth() {
38
+ return GetPedMaxHealth(this.Handle);
39
+ }
40
+ /**
41
+ * @returns the {@link Attributes} for the current ped
42
+ */
43
+ get Attributes() {
44
+ if (this.attributes)
45
+ return this.attributes;
46
+ return (this.attributes = new Attributes(this));
47
+ }
48
+ get InVehicle() {
49
+ return IsPedInAnyVehicle(this.Handle, true);
50
+ }
51
+ get IsInjured() {
52
+ return IsPedInjured(this.Handle);
53
+ }
54
+ get IsFatallyInjured() {
55
+ return IsPedFatallyInjured(this.Handle);
56
+ }
57
+ get IsPlayer() {
58
+ return IsPedAPlayer(this.Handle);
59
+ }
60
+ get Heading() {
61
+ return GetEntityHeading(this.Handle);
62
+ }
63
+ set Heading(heading) {
64
+ SetEntityHeading(this.Handle, heading);
65
+ }
66
+ get IsShooting() {
67
+ return IsPedShooting(this.Handle);
68
+ }
69
+ get Accuracy() {
70
+ return GetPedAccuracy(this.Handle);
71
+ }
72
+ set Accuracy(accuracy) {
73
+ SetPedAccuracy(this.Handle, accuracy);
74
+ }
75
+ get CanBeKnockedOffVehicle() {
76
+ return CanKnockPedOffVehicle(this.Handle);
77
+ }
78
+ get IsMale() {
79
+ return IsPedMale(this.Handle);
80
+ }
81
+ get IsHuman() {
82
+ return IsPedHuman(this.Handle);
83
+ }
84
+ get IsOnTopOfVehicle() {
85
+ return IsPedOnVehicle(this.Handle, false);
86
+ }
87
+ get Vehicle() {
88
+ return new Vehicle(GetVehiclePedIsIn(this.Handle, false));
89
+ }
90
+ /**
91
+ * @returns the last mount that this ped was on, or null if it doesn't exist
92
+ */
93
+ get Mount() {
94
+ // GET_LAST_MOUNT
95
+ const pedId = _N("0x4C8B59171957BCF7", this.Handle, Citizen.resultAsInteger());
96
+ return pedId ? new Ped(pedId) : null;
97
+ }
98
+ /**
99
+ * returns the horse that this ped is leading
100
+ */
101
+ get LeadingHorse() {
102
+ // GET_LAST_LED_MOUNT
103
+ const pedId = _N("0x693126B5D0457D0D", this.Handle, Citizen.resultAsInteger());
104
+ return pedId ? new Ped(pedId) : null;
105
+ }
106
+ /**
107
+ * returns the owner of the current animal
108
+ */
109
+ get Owner() {
110
+ // _GET_ACTIVE_ANIMAL_OWNER
111
+ const pedId = _N("0xF103823FFE72BB49", this.Handle, Citizen.resultAsInteger());
112
+ return pedId ? new Ped(pedId) : null;
113
+ }
114
+ get TamingState() {
115
+ // _GET_HORSE_TAMING_STATE
116
+ return _N("0x454AD4DA6C41B5BD", this.Handle, Citizen.resultAsInteger());
117
+ }
118
+ get IsInteractingWithAnimal() {
119
+ // _IS_ANIMAL_INTERACTION_RUNNING
120
+ return _N("0x7FC84E85D98F063D", this.Handle, Citizen.resultAsInteger());
121
+ }
122
+ get IsSittingInAnyVehicle() {
123
+ return IsPedSittingInAnyVehicle(this.Handle);
124
+ }
125
+ get IsPlantingBomb() {
126
+ return IsPedPlantingBomb(this.Handle);
127
+ }
128
+ get IsInAnyBoat() {
129
+ return IsPedInAnyBoat(this.Handle);
130
+ }
131
+ get IsInAnyHeli() {
132
+ return IsPedInAnyHeli(this.Handle);
133
+ }
134
+ get IsInAnyPlane() {
135
+ return IsPedInAnyPlane(this.Handle);
136
+ }
137
+ get IsInFlyingVehicle() {
138
+ return IsPedInFlyingVehicle(this.Handle);
139
+ }
140
+ get IsFalling() {
141
+ return IsPedFalling(this.Handle);
142
+ }
143
+ get IsSliding() {
144
+ // _IS_PED_SLIDING
145
+ return _N("0xD6740E14E4CEFC0B", this.Handle, Citizen.resultAsInteger());
146
+ }
147
+ get IsJumping() {
148
+ return IsPedJumping(this.Handle);
149
+ }
150
+ get IsClimbing() {
151
+ return IsPedClimbing(this.Handle);
152
+ }
153
+ get IsClimbingLadder() {
154
+ // _IS_PED_CLIMBING_LADDER
155
+ return _N("0x59643424B68D52B5", this.Handle, Citizen.resultAsInteger());
156
+ }
157
+ get IsVaulting() {
158
+ return IsPedVaulting(this.Handle);
159
+ }
160
+ get IsDiving() {
161
+ return IsPedDiving(this.Handle);
162
+ }
163
+ get IsOpeningADoor() {
164
+ return IsPedOpeningADoor(this.Handle);
165
+ }
166
+ set SeeingRange(value) {
167
+ SetPedSeeingRange(this.Handle, value);
168
+ }
169
+ set HearingRange(value) {
170
+ SetPedHearingRange(this.Handle, value);
171
+ }
172
+ get IsStealthed() {
173
+ return GetPedStealthMovement(this.Handle);
174
+ }
175
+ get IsJacking() {
176
+ return IsPedJacking(this.Handle);
177
+ }
178
+ get IsStunned() {
179
+ return IsPedBeingStunned(this.Handle, 0);
180
+ }
181
+ get IsBeingJacked() {
182
+ return IsPedBeingJacked(this.Handle);
183
+ }
184
+ get IsInCombatRoll() {
185
+ return _N("0xC48A9EB0D499B3E5", this.Handle, Citizen.resultAsInteger());
186
+ }
187
+ get CrouchMovement() {
188
+ return _N("0xD5FE956C70FF370B", this.Handle, Citizen.resultAsInteger());
189
+ }
190
+ /**
191
+ * returns true if {@link DamageCleanliness} was ever lower than {@link eDamageCleanliness.Good}
192
+ */
193
+ get IsDamaged() {
194
+ return _N("0x6CFC373008A1EDAF", this.Handle, Citizen.resultAsInteger());
195
+ }
196
+ set IsDamaged(damaged) {
197
+ _N("_SET_PED_DAMAGED", this.Handle, damaged);
198
+ }
199
+ get DamageCleanliness() {
200
+ return _N("0x88EFFED5FE8B0B4A", this.Handle, Citizen.resultAsInteger());
201
+ }
202
+ set DamageCleanliness(cleanliness) {
203
+ _N("0x7528720101A807A5", this.Handle, cleanliness);
204
+ }
205
+ set DefenseModifier(amount) {
206
+ _N("0x9B6808EC46BE849B", this.Handle, amount);
207
+ }
208
+ set CanBeTargeted(toggle) {
209
+ SetPedCanBeTargetted(this.Handle, toggle);
210
+ }
211
+ // TODO: Team class wrapper
212
+ // TODO: Bone wrapper `GET_PED_LAST_DAMAGE_BONE`
213
+ /**
214
+ * returns the ped who jacked this ped
215
+ */
216
+ getJacker() {
217
+ return new Ped(GetPedsJacker(this.Handle));
218
+ }
219
+ setCrouchMovement(state, immediately = false) {
220
+ // SET_PED_CROUCH_MOVEMENT
221
+ _N("0x7DE9692C6F64CFE8", this.Handle, state, 0, immediately);
222
+ }
223
+ canBeTargetedByPlayer(player, toggle) {
224
+ SetPedCanBeTargettedByPlayer(this.Handle, player.Handle, toggle);
225
+ }
226
+ clearLastBoneDamage() {
227
+ ClearPedLastDamageBone(this.Handle);
228
+ }
229
+ set OwnsAnimal(animal) {
230
+ // SET_PED_OWNS_ANIMAL
231
+ _N("0x931B241409216C1F", this.Handle, animal.Handle, false);
232
+ }
233
+ isInteractionPossible(animal) {
234
+ // IS_ANIMAL_INTERACTION_POSSIBLE
235
+ return _N("0xD543D3A8FDE4F185", this.Handle, animal.Handle, Citizen.resultAsInteger());
236
+ }
237
+ isOnVehicle(vehicle) {
238
+ return IsPedOnSpecificVehicle(this.Handle, vehicle.Handle);
239
+ }
240
+ isSittingInVehicle(vehicle) {
241
+ return IsPedSittingInVehicle(this.Handle, vehicle.Handle);
242
+ }
243
+ warpOutOfVehicle() {
244
+ // _WARP_PED_OUT_OF_VEHICLE
245
+ _N("0xE0B61ED8BB37712F", this.Handle);
246
+ }
247
+ /**
248
+ * puts the ped onto the specified mount
249
+ * @param targetPed the horse to put the ped on
250
+ * @param seatIndex the seat index to put the ped on
251
+ */
252
+ setOntoMount(targetPed, seatIndex) {
253
+ // SET_PED_ONTO_MOUNT
254
+ _N("0x028F76B6E78246EB", this.Handle, targetPed.Handle, seatIndex, true);
255
+ }
256
+ removeFromMount() {
257
+ // REMOVE_PED_FROM_MOUNT
258
+ _N("0x5337B721C51883A9", this.Handle, true, true);
259
+ }
260
+ /**
261
+ *
262
+ * @param seatIndex the seat index to check
263
+ * @returns true of the specified seat is free on the mount
264
+ */
265
+ isSeatFree(seatIndex) {
266
+ return _N("0xAAB0FE202E9FC9F0", this.Vehicle.Handle, seatIndex, Citizen.resultAsInteger());
267
+ }
268
+ /**
269
+ * Sets the ped into the specified vehicle
270
+ * @param vehicle the vehicle to put the ped into
271
+ * @param seatIndex the seat index to put the ped into
272
+ */
273
+ setIntoVehicle(vehicle, seatIndex) {
274
+ SetPedIntoVehicle(this.Handle, vehicle.Handle, seatIndex);
275
+ }
276
+ /**
277
+ * kills the ped and optionally sets the killer
278
+ * @param killer the entity that killed the ped
279
+ */
280
+ killPed(killer) {
281
+ SetEntityHealth(this.Handle, 0, killer ? killer.Handle : 0);
282
+ }
283
+ damage(amount, boneId = 0, killer) {
284
+ ApplyDamageToPed(this.Handle, amount, 0, boneId, killer ? killer.Handle : 0);
285
+ }
286
+ /**
287
+ * this returns a different type then the getter so we can't use set, maybe ts will fix soon (tm)
288
+ * @param state how hard it will be to knock a ped off their vehicle
289
+ */
290
+ setCanBeKnockedOffVehicle(state) {
291
+ SetPedCanBeKnockedOffVehicle(this.Handle, state);
292
+ }
293
+ /**
294
+ * Removes the specified ped if its not a player entity
295
+ */
296
+ delete() {
297
+ SetEntityAsMissionEntity(this.Handle, true, true);
298
+ DeletePed(this.Handle);
299
+ }
300
+ /**
301
+ * creates a clone of the ped
302
+ * @param network if the ped should be a networked entity
303
+ * @param bScriptHostPed whether to register the ped as pinned to the script host in the R* network model.
304
+ * @param copyHeadBlend whether to copy the peds head blend
305
+ * @returns the cloned ped
306
+ */
307
+ clone(network, bScriptHostPed, copyHeadBlend) {
308
+ return new Ped(ClonePed(this.Handle, network, bScriptHostPed, copyHeadBlend));
309
+ }
310
+ /**
311
+ * clones the ped onto the target ped
312
+ * @param targetPed the ped to clone onto
313
+ */
314
+ cloneTo(targetPed) {
315
+ ClonePedToTarget(this.Handle, targetPed.Handle);
316
+ }
317
+ /**
318
+ * @param amount - the amount of armour to add to the ped
319
+ */
320
+ addArmour(amount) {
321
+ AddArmourToPed(this.Handle, amount);
322
+ }
323
+ applyDamage(damageAmount, boneId = 0, pedKiller = null) {
324
+ ApplyDamageToPed(this.Handle, damageAmount, 0, boneId, pedKiller ? pedKiller.Handle : 0);
325
+ }
326
+ /**
327
+ * @param damagePack - the damage decal to apply see [here](https://github.com/femga/rdr3_discoveries/blob/master/peds_customization/ped_decals.lua) for more documentation
328
+ * @param damage - the damage to apply
329
+ * @param mult - the multiplier?
330
+ */
331
+ applyDamagePack(damagePack, damage, mult) {
332
+ ApplyPedDamagePack(this.Handle, damagePack, damage, mult);
333
+ }
334
+ }
@@ -0,0 +1,21 @@
1
+ export declare class Player {
2
+ private handle;
3
+ static fromPedHandle(handle: number): Player;
4
+ static fromServerId(serverId: number): Player;
5
+ /**
6
+ * @param handle the player handle
7
+ */
8
+ constructor(handle: number);
9
+ get Handle(): number;
10
+ /**
11
+ * Adds the amount of stamina player has on the hud
12
+ * @param amount the amount of upgrade to give 6 is half the bar while 12 is the full bar
13
+ */
14
+ addStaminaUpgrade(amount: number): void;
15
+ addHealthUpgrade(amount: number): void;
16
+ /**
17
+ * Doesn't seem to work :*
18
+ * @param amount
19
+ */
20
+ addDeadeyeUpgrade(amount: number): void;
21
+ }
@@ -0,0 +1,43 @@
1
+ import { _N } from "../utils/Native";
2
+ const handleUpgrade = (name, amount) => {
3
+ const b1 = new ArrayBuffer(8 * 24);
4
+ const a2 = new DataView(b1);
5
+ const b2 = new ArrayBuffer(8 * 12);
6
+ const a3 = new DataView(b2);
7
+ _N("0xCB5D11F9508A928D", 1, a2, a3, GetHashKey(name), 1084182731, amount, 752097756);
8
+ };
9
+ export class Player {
10
+ handle;
11
+ static fromPedHandle(handle) {
12
+ return new Player(NetworkGetPlayerIndexFromPed(handle));
13
+ }
14
+ static fromServerId(serverId) {
15
+ return new Player(GetPlayerFromServerId(serverId));
16
+ }
17
+ /**
18
+ * @param handle the player handle
19
+ */
20
+ constructor(handle) {
21
+ this.handle = handle;
22
+ }
23
+ get Handle() {
24
+ return this.handle;
25
+ }
26
+ /**
27
+ * Adds the amount of stamina player has on the hud
28
+ * @param amount the amount of upgrade to give 6 is half the bar while 12 is the full bar
29
+ */
30
+ addStaminaUpgrade(amount) {
31
+ handleUpgrade("UPGRADE_STAMINA_TANK_1", amount);
32
+ }
33
+ addHealthUpgrade(amount) {
34
+ handleUpgrade("UPGRADE_HEALTH_TANK_1", amount);
35
+ }
36
+ /**
37
+ * Doesn't seem to work :*
38
+ * @param amount
39
+ */
40
+ addDeadeyeUpgrade(amount) {
41
+ handleUpgrade("UPGRADE_DEADEYE_TANK_1", amount);
42
+ }
43
+ }
@@ -0,0 +1,4 @@
1
+ import { BaseEntity } from "./BaseEntity";
2
+ export declare class Vehicle extends BaseEntity {
3
+ constructor(handle: number);
4
+ }
@@ -0,0 +1,6 @@
1
+ import { BaseEntity } from "./BaseEntity";
2
+ export class Vehicle extends BaseEntity {
3
+ constructor(handle) {
4
+ super(handle);
5
+ }
6
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./Entity";
2
+ export * from "./Ped";
3
+ export * from "./Player";
4
+ export * from "./Vehicle";
@@ -0,0 +1,4 @@
1
+ export * from "./Entity";
2
+ export * from "./Ped";
3
+ export * from "./Player";
4
+ export * from "./Vehicle";
@@ -0,0 +1,48 @@
1
+ export declare enum ePedAttribute {
2
+ Health = 0,
3
+ Stamina = 1,
4
+ SpecialAbility = 2,
5
+ Courage = 3,
6
+ Agility = 4,
7
+ Speed = 5,
8
+ Acceleration = 6,
9
+ Bonding = 7,
10
+ Hunger = 8,
11
+ Fatigued = 9,
12
+ Inebriated = 10,
13
+ Poisoned = 11,
14
+ BodyHeat = 12,
15
+ BodyWeight = 13,
16
+ Overfed = 14,
17
+ Sickness = 15,
18
+ Dirtiness = 16,
19
+ DirtinessHat = 17,
20
+ Strength = 18,
21
+ Grit = 19,
22
+ Instinct = 20,
23
+ Unruliness = 21,
24
+ DirtinessSkin = 22
25
+ }
26
+ export declare enum eAttributeCore {
27
+ Health = 0,
28
+ Stamina = 1,
29
+ Deadeye = 2
30
+ }
31
+ export declare enum eHudStatusEffect {
32
+ None = 0,
33
+ Cold = 1,
34
+ Hot = 2,
35
+ Overfed = 3,
36
+ Dirty = 4,
37
+ SnakeVenom = 5,
38
+ ArrowWounded = 6,
39
+ ArrowDrained = 7,
40
+ ArrowDisoriented = 8,
41
+ ArrowTracked = 9,
42
+ ArrowConfusion = 10,
43
+ Underweight = 11,
44
+ Overweight = 12,
45
+ Sick1 = 13,
46
+ Sick2 = 14,
47
+ PredatorInvulnerable = 15
48
+ }
@@ -0,0 +1,51 @@
1
+ export var ePedAttribute;
2
+ (function (ePedAttribute) {
3
+ ePedAttribute[ePedAttribute["Health"] = 0] = "Health";
4
+ ePedAttribute[ePedAttribute["Stamina"] = 1] = "Stamina";
5
+ ePedAttribute[ePedAttribute["SpecialAbility"] = 2] = "SpecialAbility";
6
+ ePedAttribute[ePedAttribute["Courage"] = 3] = "Courage";
7
+ ePedAttribute[ePedAttribute["Agility"] = 4] = "Agility";
8
+ ePedAttribute[ePedAttribute["Speed"] = 5] = "Speed";
9
+ ePedAttribute[ePedAttribute["Acceleration"] = 6] = "Acceleration";
10
+ ePedAttribute[ePedAttribute["Bonding"] = 7] = "Bonding";
11
+ ePedAttribute[ePedAttribute["Hunger"] = 8] = "Hunger";
12
+ ePedAttribute[ePedAttribute["Fatigued"] = 9] = "Fatigued";
13
+ ePedAttribute[ePedAttribute["Inebriated"] = 10] = "Inebriated";
14
+ ePedAttribute[ePedAttribute["Poisoned"] = 11] = "Poisoned";
15
+ ePedAttribute[ePedAttribute["BodyHeat"] = 12] = "BodyHeat";
16
+ ePedAttribute[ePedAttribute["BodyWeight"] = 13] = "BodyWeight";
17
+ ePedAttribute[ePedAttribute["Overfed"] = 14] = "Overfed";
18
+ ePedAttribute[ePedAttribute["Sickness"] = 15] = "Sickness";
19
+ ePedAttribute[ePedAttribute["Dirtiness"] = 16] = "Dirtiness";
20
+ ePedAttribute[ePedAttribute["DirtinessHat"] = 17] = "DirtinessHat";
21
+ ePedAttribute[ePedAttribute["Strength"] = 18] = "Strength";
22
+ ePedAttribute[ePedAttribute["Grit"] = 19] = "Grit";
23
+ ePedAttribute[ePedAttribute["Instinct"] = 20] = "Instinct";
24
+ ePedAttribute[ePedAttribute["Unruliness"] = 21] = "Unruliness";
25
+ ePedAttribute[ePedAttribute["DirtinessSkin"] = 22] = "DirtinessSkin";
26
+ })(ePedAttribute || (ePedAttribute = {}));
27
+ export var eAttributeCore;
28
+ (function (eAttributeCore) {
29
+ eAttributeCore[eAttributeCore["Health"] = 0] = "Health";
30
+ eAttributeCore[eAttributeCore["Stamina"] = 1] = "Stamina";
31
+ eAttributeCore[eAttributeCore["Deadeye"] = 2] = "Deadeye";
32
+ })(eAttributeCore || (eAttributeCore = {}));
33
+ export var eHudStatusEffect;
34
+ (function (eHudStatusEffect) {
35
+ eHudStatusEffect[eHudStatusEffect["None"] = 0] = "None";
36
+ eHudStatusEffect[eHudStatusEffect["Cold"] = 1] = "Cold";
37
+ eHudStatusEffect[eHudStatusEffect["Hot"] = 2] = "Hot";
38
+ eHudStatusEffect[eHudStatusEffect["Overfed"] = 3] = "Overfed";
39
+ eHudStatusEffect[eHudStatusEffect["Dirty"] = 4] = "Dirty";
40
+ eHudStatusEffect[eHudStatusEffect["SnakeVenom"] = 5] = "SnakeVenom";
41
+ eHudStatusEffect[eHudStatusEffect["ArrowWounded"] = 6] = "ArrowWounded";
42
+ eHudStatusEffect[eHudStatusEffect["ArrowDrained"] = 7] = "ArrowDrained";
43
+ eHudStatusEffect[eHudStatusEffect["ArrowDisoriented"] = 8] = "ArrowDisoriented";
44
+ eHudStatusEffect[eHudStatusEffect["ArrowTracked"] = 9] = "ArrowTracked";
45
+ eHudStatusEffect[eHudStatusEffect["ArrowConfusion"] = 10] = "ArrowConfusion";
46
+ eHudStatusEffect[eHudStatusEffect["Underweight"] = 11] = "Underweight";
47
+ eHudStatusEffect[eHudStatusEffect["Overweight"] = 12] = "Overweight";
48
+ eHudStatusEffect[eHudStatusEffect["Sick1"] = 13] = "Sick1";
49
+ eHudStatusEffect[eHudStatusEffect["Sick2"] = 14] = "Sick2";
50
+ eHudStatusEffect[eHudStatusEffect["PredatorInvulnerable"] = 15] = "PredatorInvulnerable";
51
+ })(eHudStatusEffect || (eHudStatusEffect = {}));
@@ -0,0 +1,15 @@
1
+ export declare enum ForceType {
2
+ MinForce = 0,
3
+ MaxForceRot = 1,
4
+ MinForce2 = 2,
5
+ MaxForceRot2 = 3,
6
+ ForceNoRot = 4,
7
+ ForceRotPlusForce = 5
8
+ }
9
+ export declare enum EntityType {
10
+ Invalid = 0,
11
+ Ped = 1,
12
+ Vehicle = 2,
13
+ Object = 3
14
+ }
15
+ export type BoneIndex = number;
@@ -0,0 +1,16 @@
1
+ export var ForceType;
2
+ (function (ForceType) {
3
+ ForceType[ForceType["MinForce"] = 0] = "MinForce";
4
+ ForceType[ForceType["MaxForceRot"] = 1] = "MaxForceRot";
5
+ ForceType[ForceType["MinForce2"] = 2] = "MinForce2";
6
+ ForceType[ForceType["MaxForceRot2"] = 3] = "MaxForceRot2";
7
+ ForceType[ForceType["ForceNoRot"] = 4] = "ForceNoRot";
8
+ ForceType[ForceType["ForceRotPlusForce"] = 5] = "ForceRotPlusForce";
9
+ })(ForceType || (ForceType = {}));
10
+ export var EntityType;
11
+ (function (EntityType) {
12
+ EntityType[EntityType["Invalid"] = 0] = "Invalid";
13
+ EntityType[EntityType["Ped"] = 1] = "Ped";
14
+ EntityType[EntityType["Vehicle"] = 2] = "Vehicle";
15
+ EntityType[EntityType["Object"] = 3] = "Object";
16
+ })(EntityType || (EntityType = {}));
@@ -0,0 +1,8 @@
1
+ export declare enum Keys {
2
+ Up = 2434576542,
3
+ Down = 1141111167,
4
+ Left = 2910833755,
5
+ Right = 1710877787,
6
+ Select = 3350541322,
7
+ Back = 814057702
8
+ }
package/enums/Keys.js ADDED
@@ -0,0 +1,9 @@
1
+ export var Keys;
2
+ (function (Keys) {
3
+ Keys[Keys["Up"] = 2434576542] = "Up";
4
+ Keys[Keys["Down"] = 1141111167] = "Down";
5
+ Keys[Keys["Left"] = 2910833755] = "Left";
6
+ Keys[Keys["Right"] = 1710877787] = "Right";
7
+ Keys[Keys["Select"] = 3350541322] = "Select";
8
+ Keys[Keys["Back"] = 814057702] = "Back";
9
+ })(Keys || (Keys = {}));
package/enums/Ped.d.ts ADDED
@@ -0,0 +1,23 @@
1
+ export declare enum KnockOffVehicle {
2
+ Default = 0,
3
+ Never = 1,
4
+ Easy = 2,
5
+ Hard = 3
6
+ }
7
+ export declare enum TamingState {
8
+ Invalid = 0,
9
+ Inactive = 1,
10
+ TargetDetected = 2,
11
+ CalledOut = 3,
12
+ Mountable = 4,
13
+ BeingPatted = 5,
14
+ BreakingActive = 6,
15
+ Spooked = 7,
16
+ Retreating = 8,
17
+ Fleeing = 9
18
+ }
19
+ export declare enum eDamageCleanliness {
20
+ Poor = 0,
21
+ Good = 1,
22
+ Perfect = 2
23
+ }
package/enums/Ped.js ADDED
@@ -0,0 +1,26 @@
1
+ export var KnockOffVehicle;
2
+ (function (KnockOffVehicle) {
3
+ KnockOffVehicle[KnockOffVehicle["Default"] = 0] = "Default";
4
+ KnockOffVehicle[KnockOffVehicle["Never"] = 1] = "Never";
5
+ KnockOffVehicle[KnockOffVehicle["Easy"] = 2] = "Easy";
6
+ KnockOffVehicle[KnockOffVehicle["Hard"] = 3] = "Hard";
7
+ })(KnockOffVehicle || (KnockOffVehicle = {}));
8
+ export var TamingState;
9
+ (function (TamingState) {
10
+ TamingState[TamingState["Invalid"] = 0] = "Invalid";
11
+ TamingState[TamingState["Inactive"] = 1] = "Inactive";
12
+ TamingState[TamingState["TargetDetected"] = 2] = "TargetDetected";
13
+ TamingState[TamingState["CalledOut"] = 3] = "CalledOut";
14
+ TamingState[TamingState["Mountable"] = 4] = "Mountable";
15
+ TamingState[TamingState["BeingPatted"] = 5] = "BeingPatted";
16
+ TamingState[TamingState["BreakingActive"] = 6] = "BreakingActive";
17
+ TamingState[TamingState["Spooked"] = 7] = "Spooked";
18
+ TamingState[TamingState["Retreating"] = 8] = "Retreating";
19
+ TamingState[TamingState["Fleeing"] = 9] = "Fleeing";
20
+ })(TamingState || (TamingState = {}));
21
+ export var eDamageCleanliness;
22
+ (function (eDamageCleanliness) {
23
+ eDamageCleanliness[eDamageCleanliness["Poor"] = 0] = "Poor";
24
+ eDamageCleanliness[eDamageCleanliness["Good"] = 1] = "Good";
25
+ eDamageCleanliness[eDamageCleanliness["Perfect"] = 2] = "Perfect";
26
+ })(eDamageCleanliness || (eDamageCleanliness = {}));
@@ -0,0 +1,9 @@
1
+ export declare enum Relationship {
2
+ Hate = 5,
3
+ Dislike = 4,
4
+ Neutral = 3,
5
+ Like = 2,
6
+ Respect = 1,
7
+ Companion = 0,
8
+ Pedestrians = 255
9
+ }
@@ -0,0 +1,10 @@
1
+ export var Relationship;
2
+ (function (Relationship) {
3
+ Relationship[Relationship["Hate"] = 5] = "Hate";
4
+ Relationship[Relationship["Dislike"] = 4] = "Dislike";
5
+ Relationship[Relationship["Neutral"] = 3] = "Neutral";
6
+ Relationship[Relationship["Like"] = 2] = "Like";
7
+ Relationship[Relationship["Respect"] = 1] = "Respect";
8
+ Relationship[Relationship["Companion"] = 0] = "Companion";
9
+ Relationship[Relationship["Pedestrians"] = 255] = "Pedestrians";
10
+ })(Relationship || (Relationship = {}));
@@ -0,0 +1,13 @@
1
+ export declare enum VehicleSeat {
2
+ AnyPassenger = -2,
3
+ Driver = -1,
4
+ FrontRight = 0,
5
+ BackLeft = 1,
6
+ BackRight = 2,
7
+ ExtraLeft1 = 3,
8
+ ExtraRight1 = 4,
9
+ ExtraLeft2 = 5,
10
+ ExtraRight2 = 6,
11
+ ExtraLeft3 = 7,
12
+ ExtraRight3 = 8
13
+ }
@@ -0,0 +1,14 @@
1
+ export var VehicleSeat;
2
+ (function (VehicleSeat) {
3
+ VehicleSeat[VehicleSeat["AnyPassenger"] = -2] = "AnyPassenger";
4
+ VehicleSeat[VehicleSeat["Driver"] = -1] = "Driver";
5
+ VehicleSeat[VehicleSeat["FrontRight"] = 0] = "FrontRight";
6
+ VehicleSeat[VehicleSeat["BackLeft"] = 1] = "BackLeft";
7
+ VehicleSeat[VehicleSeat["BackRight"] = 2] = "BackRight";
8
+ VehicleSeat[VehicleSeat["ExtraLeft1"] = 3] = "ExtraLeft1";
9
+ VehicleSeat[VehicleSeat["ExtraRight1"] = 4] = "ExtraRight1";
10
+ VehicleSeat[VehicleSeat["ExtraLeft2"] = 5] = "ExtraLeft2";
11
+ VehicleSeat[VehicleSeat["ExtraRight2"] = 6] = "ExtraRight2";
12
+ VehicleSeat[VehicleSeat["ExtraLeft3"] = 7] = "ExtraLeft3";
13
+ VehicleSeat[VehicleSeat["ExtraRight3"] = 8] = "ExtraRight3";
14
+ })(VehicleSeat || (VehicleSeat = {}));