@nativewrappers/redm 0.0.79 → 0.0.81

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.
Files changed (82) hide show
  1. package/Attribute.js +143 -0
  2. package/Controls.js +22 -0
  3. package/Game.d.ts +2 -2
  4. package/Game.js +18 -0
  5. package/GameConstants.d.ts +1 -1
  6. package/GameConstants.js +24 -0
  7. package/Model.js +153 -0
  8. package/RawControls.d.ts +1 -1
  9. package/RawControls.js +22 -0
  10. package/RelationshipGroup.js +72 -0
  11. package/Volume.d.ts +1 -1
  12. package/Volume.js +32 -0
  13. package/common/Command.js +111 -0
  14. package/common/Convar.js +58 -0
  15. package/common/GlobalData.js +16 -0
  16. package/common/Kvp.js +137 -0
  17. package/common/Resource.js +54 -0
  18. package/common/decors/Events.js +170 -0
  19. package/common/net/NetworkedMap.js +225 -0
  20. package/common/utils/ClassTypes.js +15 -0
  21. package/common/utils/Color.js +33 -0
  22. package/common/utils/Delay.d.ts +1 -0
  23. package/common/utils/Delay.js +6 -0
  24. package/common/utils/Maths.js +18 -0
  25. package/common/utils/Point.d.ts +9 -0
  26. package/common/utils/Point.js +36 -0
  27. package/common/utils/PointF.d.ts +1 -1
  28. package/common/utils/PointF.js +18 -0
  29. package/common/utils/Quaternion.d.ts +1 -1
  30. package/common/utils/Quaternion.js +33 -0
  31. package/common/utils/Vector.js +589 -0
  32. package/common/utils/cleanPlayerName.js +17 -0
  33. package/common/utils/enumValues.js +20 -0
  34. package/common/utils/getStringFromUInt8Array.js +6 -0
  35. package/common/utils/getUInt32FromUint8Array.js +6 -0
  36. package/definitions/Citizen.d.js +0 -0
  37. package/definitions/index.d.js +0 -0
  38. package/definitions/redm.d.js +0 -0
  39. package/entities/BaseEntity.d.ts +1 -1
  40. package/entities/BaseEntity.js +99 -0
  41. package/entities/Entity.d.ts +1 -1
  42. package/entities/Entity.js +99 -0
  43. package/entities/Ped.d.ts +1 -1
  44. package/entities/Ped.js +336 -0
  45. package/entities/Pickup.d.ts +4 -0
  46. package/entities/Pickup.js +14 -0
  47. package/entities/Player.js +57 -0
  48. package/entities/Prop.js +11 -0
  49. package/entities/Vehicle.d.ts +1 -1
  50. package/entities/Vehicle.js +23 -0
  51. package/enums/Attributes.js +56 -0
  52. package/enums/Entity.js +20 -0
  53. package/enums/Keys.js +809 -0
  54. package/enums/Ped.js +31 -0
  55. package/enums/RawKeys.js +234 -0
  56. package/enums/Relationship.js +13 -0
  57. package/enums/VehicleSeat.js +17 -0
  58. package/interfaces/Dimensions.d.ts +1 -1
  59. package/interfaces/Dimensions.js +0 -0
  60. package/package.json +2 -2
  61. package/types/Throwable.js +0 -0
  62. package/utils/Native.js +8 -0
  63. package/world/createDraftVehicle.d.ts +2 -2
  64. package/world/createDraftVehicle.js +32 -0
  65. package/world/createPed.d.ts +2 -2
  66. package/world/createPed.js +28 -0
  67. package/world/createProp.d.ts +1 -1
  68. package/world/createProp.js +28 -0
  69. package/world/createVehicle.d.ts +2 -2
  70. package/world/createVehicle.js +28 -0
  71. package/common/index.d.ts +0 -8
  72. package/common/utils/Vector2.d.ts +0 -1
  73. package/common/utils/Vector3.d.ts +0 -1
  74. package/common/utils/Vector4.d.ts +0 -1
  75. package/common/utils/index.d.ts +0 -12
  76. package/entities/index.d.ts +0 -4
  77. package/enums/index.d.ts +0 -6
  78. package/index.d.ts +0 -11
  79. package/index.js +0 -3613
  80. package/utils/index.d.ts +0 -2
  81. package/world/index.d.ts +0 -4
  82. /package/{game/index.d.ts → common/types.js} +0 -0
package/index.js DELETED
@@ -1,3613 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
- // src/redm/utils/Native.ts
5
- var _N = /* @__PURE__ */ __name((hash, ...args) => {
6
- return Citizen.invokeNative(hash, ...args);
7
- }, "_N");
8
-
9
- // src/common/utils/Vector.ts
10
- var EXT_VECTOR2 = 20;
11
- var EXT_VECTOR3 = 21;
12
- var EXT_VECTOR4 = 22;
13
- var size = Symbol("size");
14
- var Vector = class _Vector {
15
- static {
16
- __name(this, "Vector");
17
- }
18
- static create(x, y = x, z, w) {
19
- if (typeof x === "object") ({ x, y, z, w } = x);
20
- const size2 = this instanceof _Vector && this.size || [x, y, z, w].filter((arg) => arg !== void 0).length;
21
- switch (size2) {
22
- case 1:
23
- case 2:
24
- return new Vector2(x, y);
25
- case 3:
26
- return new Vector3(x, y, z);
27
- case 4:
28
- return new Vector4(x, y, z, w);
29
- default:
30
- throw new Error(`Cannot instantiate Vector with size of ${size2}.`);
31
- }
32
- }
33
- /**
34
- * Creates a deep copy of the provided vector.
35
- * @param obj The vector to clone.
36
- * @returns A new vector instance that is a copy of the provided vector.
37
- */
38
- static clone(obj) {
39
- return this.create(obj);
40
- }
41
- /**
42
- * Creates a vector from binary data in a MsgpackBuffer.
43
- * @param msgpackBuffer The buffer containing binary data.
44
- * @returns A new vector instance.
45
- */
46
- static fromBuffer({ buffer, type }) {
47
- if (type !== EXT_VECTOR2 && type !== EXT_VECTOR3 && type !== EXT_VECTOR4)
48
- throw new Error("Buffer type is not a valid Vector.");
49
- const arr = new Array(buffer.length / 4);
50
- for (let i = 0; i < arr.length; i++) arr[i] = Number(buffer.readFloatLE(i * 4).toPrecision(7));
51
- return this.fromArray(arr);
52
- }
53
- /**
54
- * Performs an operation between a vector and either another vector or scalar value.
55
- * @param a - The first vector.
56
- * @param b - The second vector or scalar value.
57
- * @param operator - The function defining the operation to perform.
58
- * @returns A new vector resulting from the operation.
59
- */
60
- static operate(a, b, operator) {
61
- let { x, y, z, w } = a;
62
- const isNumber = typeof b === "number";
63
- x = operator(x, isNumber ? b : b.x ?? 0);
64
- y = operator(y, isNumber ? b : b.y ?? 0);
65
- if (z !== void 0) z = operator(z, isNumber ? b : b.z ?? 0);
66
- if (w !== void 0) w = operator(w, isNumber ? b : b.w ?? 0);
67
- return this.create(x, y, z, w);
68
- }
69
- /**
70
- * Adds two vectors or a scalar value to a vector.
71
- * @param a - The first vector or scalar value.
72
- * @param b - The second vector or scalar value.
73
- * @returns A new vector with incremented components.
74
- */
75
- static add(a, b) {
76
- return this.operate(a, b, (x, y) => x + y);
77
- }
78
- /**
79
- * Adds a scalar value to the x-component of a vector.
80
- * @param obj - The vector.
81
- * @param x - The value to add to the x-component.
82
- * @returns A new vector with the x-component incremented.
83
- */
84
- static addX(obj, x) {
85
- return this.create(obj.x + x, obj.y, obj.z, obj.w);
86
- }
87
- /**
88
- * Adds a scalar value to the y-component of a vector.
89
- * @param obj - The vector.
90
- * @param y - The value to add to the y-component.
91
- * @returns A new vector with the y-component incremented.
92
- */
93
- static addY(obj, y) {
94
- return this.create(obj.x, obj.y + y, obj.z, obj.w);
95
- }
96
- /**
97
- * Adds a scalar value to the z-component of a vector.
98
- * @param obj - The vector.
99
- * @param z - The value to add to the z-component.
100
- * @returns A new vector with the z-component incremented.
101
- */
102
- static addZ(obj, z) {
103
- return this.create(obj.x, obj.y, obj.z + z, obj.w);
104
- }
105
- /**
106
- * Adds a scalar value to the w-component of a vector.
107
- * @param obj - The vector.
108
- * @param w - The value to add to the w-component.
109
- * @returns A new vector with the w-component incremented.
110
- */
111
- static addW(obj, w) {
112
- return this.create(obj.x, obj.y, obj.z, obj.w + w);
113
- }
114
- /**
115
- * Subtracts one vector from another or subtracts a scalar value from a vector.
116
- * @param a - The vector.
117
- * @param b - The second vector or scalar value.
118
- * @returns A new vector with subtracted components.
119
- */
120
- static subtract(a, b) {
121
- return this.operate(a, b, (x, y) => x - y);
122
- }
123
- /**
124
- * Multiplies two vectors by their components, or multiplies a vector by a scalar value.
125
- * @param a - The vector.
126
- * @param b - The second vector or scalar value.
127
- * @returns A new vector with multiplied components.
128
- */
129
- static multiply(a, b) {
130
- return this.operate(a, b, (x, y) => x * y);
131
- }
132
- /**
133
- * Divides two vectors by their components, or divides a vector by a scalar value.
134
- * @param a - The vector.
135
- * @param b - The second vector or scalar vector.
136
- * @returns A new vector with divided components.
137
- */
138
- static divide(a, b) {
139
- return this.operate(a, b, (x, y) => x / y);
140
- }
141
- /**
142
- * Performs an operation between a vector and either another vector or scalar value converting the vector into absolute values.
143
- * @param a - The first vector.
144
- * @param b - The second vector or scalar value.
145
- * @param operator - The function defining the operation to perform.
146
- * @returns A new vector resulting from the operation.
147
- */
148
- static operateAbsolute(a, b, operator) {
149
- let { x, y, z, w } = a;
150
- const isNumber = typeof b === "number";
151
- x = operator(Math.abs(x), isNumber ? b : Math.abs(b.x ?? 0));
152
- y = operator(Math.abs(y), isNumber ? b : Math.abs(b.y ?? 0));
153
- if (z !== void 0) z = operator(Math.abs(z), isNumber ? b : Math.abs(b.z ?? 0));
154
- if (w !== void 0) w = operator(Math.abs(w), isNumber ? b : Math.abs(b.w ?? 0));
155
- return this.create(x, y, z, w);
156
- }
157
- /**
158
- * Adds two vectors or a scalar value to a vector.
159
- * @param a - The first vector or scalar value.
160
- * @param b - The second vector or scalar value.
161
- * @returns A new vector with incremented components.
162
- */
163
- static addAbsolute(a, b) {
164
- return this.operateAbsolute(a, b, (x, y) => x + y);
165
- }
166
- /**
167
- * Subtracts one vector from another or subtracts a scalar value from a vector.
168
- * @param a - The vector.
169
- * @param b - The second vector or scalar value.
170
- * @returns A new vector with subtracted components.
171
- */
172
- static subtractAbsolute(a, b) {
173
- return this.operateAbsolute(a, b, (x, y) => x - y);
174
- }
175
- /**
176
- * Multiplies two vectors by their components, or multiplies a vector by a scalar value.
177
- * @param a - The vector.
178
- * @param b - The second vector or scalar value.
179
- * @returns A new vector with multiplied components.
180
- */
181
- static multiplyAbsolute(a, b) {
182
- return this.operateAbsolute(a, b, (x, y) => x * y);
183
- }
184
- /**
185
- * Divides two vectors by their components, or divides a vector by a scalar value
186
- * @param a - The vector.
187
- * @param b - The second vector or scalar vector.
188
- * @returns A new vector with divided components.
189
- */
190
- static divideAbsolute(a, b) {
191
- return this.operateAbsolute(a, b, (x, y) => x / y);
192
- }
193
- /**
194
- * Calculates the dot product of two vectors.
195
- * @param a - The first vector.
196
- * @param b - The second vector.
197
- * @returns A scalar value representing the degree of alignment between the input vectors.
198
- */
199
- static dotProduct(a, b) {
200
- let result = 0;
201
- for (const key of ["x", "y", "z", "w"]) {
202
- const x = a[key];
203
- const y = b[key];
204
- if (!!x && !!y) result += x * y;
205
- else if (x || y) throw new Error("Vectors must have the same dimensions.");
206
- }
207
- return result;
208
- }
209
- /**
210
- * Calculates the cross product of two vectors in three-dimensional space.
211
- * @param a - The first vector.
212
- * @param b - The second vector.
213
- * @returns A new vector perpendicular to both input vectors.
214
- */
215
- static crossProduct(a, b) {
216
- const { x: ax, y: ay, z: az, w: aw } = a;
217
- const { x: bx, y: by, z: bz } = b;
218
- if (ax === void 0 || ay === void 0 || az === void 0 || bx === void 0 || by === void 0 || bz === void 0)
219
- throw new Error("Vector.crossProduct requires two three-dimensional vectors.");
220
- return this.create(ay * bz - az * by, az * bx - ax * bz, ax * by - ay * bx, aw);
221
- }
222
- /**
223
- * Normalizes a vector, producing a new vector with the same direction but with a magnitude of 1.
224
- * @param vector - The vector to be normalized.
225
- * @returns The new normalized vector.
226
- */
227
- static normalize(a) {
228
- const length = a instanceof _Vector ? a.Length : this.Length(a);
229
- return this.divide(a, length);
230
- }
231
- /**
232
- * Creates a vector from an array of numbers.
233
- * @param primitive An array of numbers (usually returned by a native).
234
- */
235
- static fromArray(primitive) {
236
- const [x, y, z, w] = primitive;
237
- return this.create(x, y, z, w);
238
- }
239
- /**
240
- * Creates a vector from an array or object containing vector components.
241
- * @param primitive The object to use as a vector.
242
- */
243
- static fromObject(primitive) {
244
- if (Array.isArray(primitive)) return this.fromArray(primitive);
245
- if ("buffer" in primitive) return this.fromBuffer(primitive);
246
- const { x, y, z, w } = primitive;
247
- return this.create(x, y, z, w);
248
- }
249
- /**
250
- * Creates an array of vectors from an array of number arrays
251
- * @param primitives A multi-dimensional array of number arrays
252
- */
253
- static fromArrays(primitives) {
254
- return primitives.map(this.fromArray);
255
- }
256
- /**
257
- * Calculates the length (magnitude) of a vector.
258
- * @param obj - The vector for which to calculate the length.
259
- * @returns The magnitude of the vector.
260
- */
261
- static Length(obj) {
262
- let sum = 0;
263
- for (const key of ["x", "y", "z", "w"]) {
264
- if (key in obj) {
265
- const value = obj[key];
266
- sum += value * value;
267
- }
268
- }
269
- return Math.sqrt(sum);
270
- }
271
- type;
272
- [size] = 2;
273
- x = 0;
274
- y = 0;
275
- z;
276
- w;
277
- /**
278
- * Constructs a new vector.
279
- * @param x The x-component of the vector.
280
- * @param y The y-component of the vector (optional, defaults to x).
281
- * @param z The z-component of the vector (optional).
282
- * @param w The w-component of the vector (optional).
283
- */
284
- constructor(x, y = x, z, w) {
285
- for (let i = 0; i < arguments.length; i++) {
286
- if (typeof arguments[i] !== "number") {
287
- throw new TypeError(
288
- `${this.constructor.name} argument at index ${i} must be a number, but got ${typeof arguments[i]}`
289
- );
290
- }
291
- }
292
- this.x = x;
293
- this.y = y;
294
- }
295
- *[Symbol.iterator]() {
296
- yield this.x;
297
- yield this.y;
298
- if (this.z !== void 0) yield this.z;
299
- if (this.w !== void 0) yield this.w;
300
- }
301
- get size() {
302
- return this[size];
303
- }
304
- toString() {
305
- return `vector${this.size}(${this.toArray().join(", ")})`;
306
- }
307
- /**
308
- * @see Vector.clone
309
- */
310
- clone() {
311
- return _Vector.clone(this);
312
- }
313
- /**
314
- * The product of the Euclidean magnitudes of this and another Vector.
315
- *
316
- * @param v Vector to find Euclidean magnitude between.
317
- * @returns Euclidean magnitude with another vector.
318
- */
319
- distanceSquared(v) {
320
- const w = this.subtract(v);
321
- return _Vector.dotProduct(w, w);
322
- }
323
- /**
324
- * The distance between two Vectors.
325
- *
326
- * @param v Vector to find distance between.
327
- * @returns Distance between this and another vector.
328
- */
329
- distance(v) {
330
- return Math.sqrt(this.distanceSquared(v));
331
- }
332
- /**
333
- * @see Vector.normalize
334
- */
335
- normalize() {
336
- return _Vector.normalize(this);
337
- }
338
- /**
339
- * @see Vector.dotProduct
340
- */
341
- dotProduct(v) {
342
- return _Vector.dotProduct(this, v);
343
- }
344
- /**
345
- * @see Vector.add
346
- */
347
- add(v) {
348
- return _Vector.add(this, v);
349
- }
350
- /**
351
- * @see Vector.addX
352
- */
353
- addX(x) {
354
- return _Vector.addX(this, x);
355
- }
356
- /**
357
- * @see Vector.addY
358
- */
359
- addY(y) {
360
- return _Vector.addY(this, y);
361
- }
362
- /**
363
- * @see Vector.subtract
364
- */
365
- subtract(v) {
366
- return _Vector.subtract(this, v);
367
- }
368
- /**
369
- * @see Vector.multiply
370
- */
371
- multiply(v) {
372
- return _Vector.multiply(this, v);
373
- }
374
- /**
375
- * @see Vector.divide
376
- */
377
- divide(v) {
378
- return _Vector.divide(this, v);
379
- }
380
- /**
381
- * @see Vector.addAbsolute
382
- */
383
- addAbsolute(v) {
384
- return _Vector.addAbsolute(this, v);
385
- }
386
- /**
387
- * @see Vector.subtractAbsolute
388
- */
389
- subtractAbsolute(v) {
390
- return _Vector.subtractAbsolute(this, v);
391
- }
392
- /**
393
- * @see Vector.multiply
394
- */
395
- multiplyAbsolute(v) {
396
- return _Vector.multiplyAbsolute(this, v);
397
- }
398
- /**
399
- * @see Vector.divide
400
- */
401
- divideAbsolute(v) {
402
- return _Vector.divideAbsolute(this, v);
403
- }
404
- /**
405
- * Converts the vector to an array of its components.
406
- */
407
- toArray() {
408
- return [...this];
409
- }
410
- /**
411
- * Replaces the components of the vector with the components of another vector object.
412
- * @param v - The object whose components will replace the current vector's components.
413
- */
414
- replace(v) {
415
- for (const key of ["x", "y", "z", "w"]) {
416
- if (key in this && key in v) this[key] = v[key];
417
- }
418
- }
419
- /**
420
- * Calculates the length (magnitude) of a vector.
421
- * @returns The magnitude of the vector.
422
- */
423
- get Length() {
424
- let sum = 0;
425
- for (const value of this) sum += value * value;
426
- return Math.sqrt(sum);
427
- }
428
- swizzle(components) {
429
- if (!/^[xyzw]+$/.test(components)) throw new Error(`Invalid key in swizzle components (${components}).`);
430
- const arr = components.split("").map((char) => this[char] ?? 0);
431
- return _Vector.create(...arr);
432
- }
433
- };
434
- var Vector2 = class _Vector2 extends Vector {
435
- static {
436
- __name(this, "Vector2");
437
- }
438
- // DO NOT USE, ONLY EXPOSED BECAUSE TS IS TRASH, THIS TYPE IS NOT GUARANTEED
439
- // TO EXIST, CHANGING IT WILL BREAK STUFF
440
- type = 5 /* Vector2 */;
441
- [size] = 2;
442
- static Zero = new _Vector2(0, 0);
443
- /**
444
- * Constructs a new 2D vector.
445
- * @param x The x-component of the vector.
446
- * @param y The y-component of the vector (optional, defaults to x).
447
- */
448
- constructor(x, y = x) {
449
- super(x, y);
450
- }
451
- /**
452
- * Creates a new vector based on the provided parameters.
453
- * @param x The x-component of the vector.
454
- * @param y The y-component of the vector (optional, defaults to the value of x).
455
- * @returns A new vector instance.
456
- */
457
- static create(x, y = x) {
458
- if (typeof x === "object") ({ x, y } = x);
459
- return new this(x, y);
460
- }
461
- };
462
- var Vector3 = class _Vector3 extends Vector {
463
- static {
464
- __name(this, "Vector3");
465
- }
466
- // DO NOT USE, ONLY EXPOSED BECAUSE TS IS TRASH, THIS TYPE IS NOT GUARANTEED
467
- // TO EXIST, CHANGING IT WILL BREAK STUFF
468
- type = 6 /* Vector3 */;
469
- [size] = 3;
470
- z = 0;
471
- static Zero = new _Vector3(0, 0, 0);
472
- static UnitX = new _Vector3(1, 0, 0);
473
- static UnitY = new _Vector3(0, 1, 0);
474
- static UnitZ = new _Vector3(0, 0, 1);
475
- static One = new _Vector3(1, 1, 1);
476
- static Up = new _Vector3(0, 0, 1);
477
- static Down = new _Vector3(0, 0, -1);
478
- static Left = new _Vector3(-1, 0, 0);
479
- static Right = new _Vector3(1, 0, 0);
480
- static ForwardRH = new _Vector3(0, 1, 0);
481
- static ForwardLH = new _Vector3(0, -1, 0);
482
- static BackwardRH = new _Vector3(0, -1, 0);
483
- static BackwardLH = new _Vector3(0, 1, 0);
484
- static Backward = _Vector3.BackwardRH;
485
- /**
486
- * Constructs a new 3D vector.
487
- * @param x The x-component of the vector.
488
- * @param y The y-component of the vector (optional, defaults to x).
489
- * @param z The z-component of the vector (optional, defaults to y).
490
- */
491
- constructor(x, y = x, z = y) {
492
- super(x, y, z);
493
- this.z = z;
494
- }
495
- /**
496
- * Creates a new vector based on the provided parameters.
497
- * @param x The x-component of the vector.
498
- * @param y The y-component of the vector (optional, defaults to the value of x).
499
- * @param z The z-component of the vector (optional, defaults to the value of y).
500
- * @returns A new vector instance.
501
- */
502
- static create(x, y = x, z = y) {
503
- if (typeof x === "object") ({ x, y, z = y } = x);
504
- return new this(x, y, z);
505
- }
506
- /**
507
- * @see Vector.addZ
508
- */
509
- addZ(z) {
510
- return Vector.addZ(this, z);
511
- }
512
- /**
513
- * @see Vector.crossProduct
514
- */
515
- crossProduct(v) {
516
- return Vector.crossProduct(this, v);
517
- }
518
- /**
519
- * @returns the x and y values as Vec2
520
- */
521
- toVec2() {
522
- return new Vector2(this.x, this.y);
523
- }
524
- };
525
- var Vector4 = class _Vector4 extends Vector {
526
- static {
527
- __name(this, "Vector4");
528
- }
529
- // DO NOT USE, ONLY EXPOSED BECAUSE TS IS TRASH, THIS TYPE IS NOT GUARANTEED
530
- // TO EXIST, CHANGING IT WILL BREAK STUFF
531
- type = 7 /* Vector4 */;
532
- [size] = 4;
533
- z = 0;
534
- w = 0;
535
- static Zero = new _Vector4(0, 0, 0, 0);
536
- /**
537
- * Constructs a new 4D vector.
538
- * @param x The x-component of the vector.
539
- * @param y The y-component of the vector (optional, defaults to x).
540
- * @param z The z-component of the vector (optional, defaults to y).
541
- * @param w The w-component of the vector (optional, defaults to z).
542
- */
543
- constructor(x, y = x, z = y, w = z) {
544
- super(x, y, z, w);
545
- this.z = z;
546
- this.w = w;
547
- }
548
- /**
549
- * Creates a new vector based on the provided parameters.
550
- * @param x The x-component of the vector.
551
- * @param y The y-component of the vector (optional, defaults to the value of x).
552
- * @param z The z-component of the vector (optional, defaults to the value of y).
553
- * @param w The w-component of the vector (optional, defaults to the value of z).
554
- * @returns A new vector instance.
555
- */
556
- static create(x, y = x, z = y, w = z) {
557
- if (typeof x === "object") ({ x, y, z = y, w = z } = x);
558
- return new this(x, y, z, w);
559
- }
560
- /**
561
- * @see Vector.addZ
562
- */
563
- addZ(z) {
564
- return Vector.addZ(this, z);
565
- }
566
- /**
567
- * @see Vector.addW
568
- */
569
- addW(w) {
570
- return Vector.addW(this, w);
571
- }
572
- /**
573
- * @see Vector.crossProduct
574
- */
575
- crossProduct(v) {
576
- return Vector.crossProduct(this, v);
577
- }
578
- /**
579
- * @returns the x and y values as Vec2
580
- */
581
- toVec2() {
582
- return new Vector2(this.x, this.y);
583
- }
584
- /**
585
- * @returns the x and y values as Vec3
586
- */
587
- toVec3() {
588
- return new Vector3(this.x, this.y, this.z);
589
- }
590
- };
591
-
592
- // src/common/utils/PointF.ts
593
- var PointF = class _PointF {
594
- constructor(x, y, z) {
595
- this.x = x;
596
- this.y = y;
597
- this.z = z;
598
- }
599
- static {
600
- __name(this, "PointF");
601
- }
602
- static empty() {
603
- return new _PointF(0, 0, 0);
604
- }
605
- };
606
-
607
- // src/common/utils/Maths.ts
608
- var Maths = class {
609
- static {
610
- __name(this, "Maths");
611
- }
612
- static clamp(num, min, max) {
613
- return num <= min ? min : num >= max ? max : num;
614
- }
615
- static getRandomInt(min, max) {
616
- min = Math.ceil(min);
617
- max = Math.floor(max);
618
- return Math.floor(Math.random() * (max - min)) + min;
619
- }
620
- };
621
-
622
- // src/common/utils/Quaternion.ts
623
- var Quaternion = class {
624
- static {
625
- __name(this, "Quaternion");
626
- }
627
- x;
628
- y;
629
- z;
630
- w;
631
- constructor(valueXOrVector, yOrW, z, w) {
632
- if (valueXOrVector instanceof Vector3) {
633
- this.x = valueXOrVector.x;
634
- this.y = valueXOrVector.y;
635
- this.z = valueXOrVector.z;
636
- this.w = yOrW ?? 0;
637
- } else if (yOrW === void 0) {
638
- this.x = valueXOrVector;
639
- this.y = valueXOrVector;
640
- this.z = valueXOrVector;
641
- this.w = valueXOrVector;
642
- } else {
643
- this.x = valueXOrVector;
644
- this.y = yOrW;
645
- this.z = z ?? 0;
646
- this.w = w ?? 0;
647
- }
648
- }
649
- };
650
-
651
- // src/common/utils/Color.ts
652
- var Color = class _Color {
653
- static {
654
- __name(this, "Color");
655
- }
656
- static Transparent = new _Color(0, 0, 0, 0);
657
- static Black = new _Color(0, 0, 0);
658
- static White = new _Color(255, 255, 255);
659
- static WhiteSmoke = new _Color(245, 245, 245);
660
- static fromArgb(a, r, g, b) {
661
- return new _Color(r, g, b, a);
662
- }
663
- static fromRgb(r, g, b) {
664
- return new _Color(r, g, b);
665
- }
666
- static fromArray(primitive) {
667
- return new _Color(primitive[0], primitive[1], primitive[2], 255);
668
- }
669
- a;
670
- r;
671
- g;
672
- b;
673
- constructor(r, g, b, a = 255) {
674
- this.r = r;
675
- this.g = g;
676
- this.b = b;
677
- this.a = a;
678
- }
679
- };
680
-
681
- // src/common/utils/cleanPlayerName.ts
682
- var cleanPlayerName = /* @__PURE__ */ __name((original) => {
683
- let displayName = original.substring(0, 75).replace(
684
- // biome-ignore lint/suspicious/noMisleadingCharacterClass: <explanation>
685
- /[\u0000-\u001F\u007F-\u009F\u200B-\u200D\uFEFF\u200E\uA9C1-\uA9C5\u239B-\u23AD]/g,
686
- ""
687
- ).replace(
688
- /~(HUD_\S+|HC_\S+|[a-z]|[a1]_\d+|bold|italic|ws|wanted_star|nrt|EX_R\*|BLIP_\S+|ACCEPT|CANCEL|PAD_\S+|INPUT_\S+|INPUTGROUP_\S+)~/gi,
689
- ""
690
- ).replace(/\^\d/gi, "").replace(/\p{Mark}{2,}/gu, "").replace(/\s+/g, " ").trim();
691
- if (!displayName.length) displayName = "empty name";
692
- return displayName;
693
- }, "cleanPlayerName");
694
-
695
- // src/common/utils/enumValues.ts
696
- function* enumValues(enumObj) {
697
- let isStringEnum = true;
698
- for (const property in enumObj) {
699
- if (typeof enumObj[property] === "number") {
700
- isStringEnum = false;
701
- break;
702
- }
703
- }
704
- for (const property in enumObj) {
705
- if (isStringEnum || typeof enumObj[property] === "number") {
706
- yield enumObj[property];
707
- }
708
- }
709
- }
710
- __name(enumValues, "enumValues");
711
-
712
- // src/common/utils/getStringFromUInt8Array.ts
713
- var getStringFromUInt8Array = /* @__PURE__ */ __name((buffer, start, end) => String.fromCharCode(...buffer.slice(start, end)).replace(/\u0000/g, ""), "getStringFromUInt8Array");
714
-
715
- // src/common/utils/getUInt32FromUint8Array.ts
716
- var getUInt32FromUint8Array = /* @__PURE__ */ __name((buffer, start, end) => new Uint32Array(buffer.slice(start, end).buffer)[0], "getUInt32FromUint8Array");
717
-
718
- // src/common/utils/index.ts
719
- var Delay = /* @__PURE__ */ __name((milliseconds) => new Promise((resolve) => setTimeout(resolve, milliseconds)), "Delay");
720
-
721
- // src/redm/entities/BaseEntity.ts
722
- var BaseEntity = class {
723
- static {
724
- __name(this, "BaseEntity");
725
- }
726
- handle;
727
- constructor(entHandle) {
728
- this.handle = entHandle;
729
- }
730
- /**
731
- * Replaces the current handle for the entity used on, this hsould be used sparringly, mainly
732
- * in situations where you're going to reuse an entity over and over and don't want to make a
733
- * new entity every time.
734
- *
735
- * **WARNING**: This does no checks, if you provide it an invalid entity it will use it
736
- *
737
- * ```ts
738
- * const REUSABLE_ENTITY = new Entity(entityHandle);
739
- *
740
- * onNet("entityHandler", (entNetId: number) => {
741
- * // if no net entity we should ignore
742
- * if (!NetworkDoesEntityExistWithNetworkId(entNetId)) return;
743
- *
744
- * // Reuse our entity so we don't have to initialize a new one
745
- * REUSABLE_ENTITY.replaceHandle(NetworkGetEntityFromNetworkId(entNetId));
746
- * // Do something with REUSABLE_ENTITY entity
747
- * })
748
- ```
749
- */
750
- replaceHandle(newHandle) {
751
- this.handle = newHandle;
752
- }
753
- /**
754
- * @returns the network for the specified entity, this doesn't check if the entity is networked, you should use {@link BaseEntity.IsNetworked}
755
- */
756
- get NetworkId() {
757
- return NetworkGetNetworkIdFromEntity(this.Handle);
758
- }
759
- /**
760
- * @returns `true` if the current entity is networked, false otherwise
761
- */
762
- get IsNetworked() {
763
- return NetworkGetEntityIsNetworked(this.Handle);
764
- }
765
- /**
766
- * @returns Returns true if the entity handle is not 0 and exists in the game engine
767
- */
768
- get Exists() {
769
- return this.handle !== 0 && DoesEntityExist(this.Handle);
770
- }
771
- /**
772
- * @returns The entitys current handle.
773
- */
774
- get Handle() {
775
- return this.handle;
776
- }
777
- /**
778
- * @param amount the health to set the health to, setting to `0` will kill the entity, if using on a {@link Ped} you should check the MaxHealth before setting.
779
- */
780
- set Health(amount) {
781
- SetEntityHealth(this.Handle, amount, 0);
782
- }
783
- /**
784
- * @returns the amount of health the current {@link BaseEntity} has
785
- */
786
- get Health() {
787
- return GetEntityHealth(this.Handle);
788
- }
789
- /**
790
- * @returns the heading of the current {@link BaseEntity}
791
- */
792
- get Heading() {
793
- return GetEntityHeading(this.Handle);
794
- }
795
- /**
796
- * @param heading sets the entitys heading to the specified heading, this can be in the range of 0..360
797
- */
798
- set Heading(heading) {
799
- SetEntityHeading(this.Handle, heading);
800
- }
801
- /**
802
- * @returns the position of the current Entity
803
- */
804
- get Position() {
805
- return Vector3.fromArray(GetEntityCoords(this.handle, true, true));
806
- }
807
- /**
808
- * You should (almost) always try to load the collisions before setting the entitys position if going a long distance.
809
- * @param pos sets the position for the current ped
810
- */
811
- set Position(pos) {
812
- SetEntityCoords(this.handle, pos.x, pos.y, pos.z, false, false, false, false);
813
- }
814
- };
815
-
816
- // src/redm/entities/Entity.ts
817
- var Entity = class extends BaseEntity {
818
- static {
819
- __name(this, "Entity");
820
- }
821
- // NOTE: There is nothing stopping you from using creating an invalid entity, you should do your own due-diligence
822
- constructor(handle) {
823
- super(handle);
824
- }
825
- addTrackingTrails() {
826
- _N("0x1AD922AB5038DEF3", this.Handle);
827
- }
828
- get EntityType() {
829
- return GetEntityType(this.Handle);
830
- }
831
- /**
832
- * @param direction - the direction to apply the force towards
833
- * @param offset - the offset to apply the force to
834
- * @param forceType - the force type to apply
835
- * @param boneIndex - the boneIndex to apply the force to, or 0
836
- * @param isDirectional - whether the direction is relational?
837
- * @param ignoreUpVec - ?
838
- * @param isForceRel - whether to multiply the force by the object mass & acceleration
839
- */
840
- applyForce(direction, offset, forceType = 0 /* MinForce */, boneIndex = 0, isDirectional = false, ignoreUpVec = true, isForceRel = true) {
841
- const d = direction;
842
- const o = offset;
843
- ApplyForceToEntity(
844
- this.Handle,
845
- forceType,
846
- d.x,
847
- d.y,
848
- d.z,
849
- o.x,
850
- o.y,
851
- o.z,
852
- boneIndex,
853
- isDirectional,
854
- ignoreUpVec,
855
- isForceRel,
856
- false,
857
- true
858
- );
859
- }
860
- /**
861
- * @param direction - the direction to apply the force towards
862
- * @param forceType - the force type to use
863
- * @param isDirectional - whether the direction is local?
864
- * @param isForceRel - whether to multiply the force by the object mass & acceleration
865
- */
866
- applyForceToCenter(direction, forceType = 0 /* MinForce */, isDirectional = false, isForceRel = true) {
867
- const d = direction;
868
- ApplyForceToEntityCenterOfMass(this.Handle, forceType, d.x, d.y, d.z, false, isDirectional, isForceRel, false);
869
- }
870
- /**
871
- * @param tgtEntity - the entity to attach to the {@Entity}
872
- * @param pos - the position offset
873
- * @param rot - the rotation to apply to the entity
874
- * @param boneIndex - the bone to attach the entity to, or 0 for the center of the entity
875
- * @param enableCollision - whether the entity should have collision enabled
876
- * @param useSoftPinning - when false the entity will not detach from the {@Entity}
877
- * @param vertexIndex - ?
878
- * @param fixedRot - ?
879
- * @throws Error if tgtEntity and {@Entity} are the same entity
880
- */
881
- attachTo(tgtEntity, pos, rot, boneIndex = 0, enableCollision = true, useSoftPinning = false, vertexIndex = 0, fixedRot = true) {
882
- if (tgtEntity.Handle === this.Handle) {
883
- throw new Error("tgtEntity had the same handle as the current entity, attaching an entity to itself will crash");
884
- }
885
- const p = pos;
886
- const r = rot;
887
- AttachEntityToEntity(
888
- tgtEntity.Handle,
889
- this.Handle,
890
- boneIndex,
891
- p.x,
892
- p.y,
893
- p.z,
894
- r.x,
895
- r.y,
896
- r.z,
897
- false,
898
- useSoftPinning,
899
- enableCollision,
900
- this.EntityType === 1 /* Ped */,
901
- vertexIndex,
902
- fixedRot,
903
- false,
904
- false
905
- );
906
- }
907
- };
908
-
909
- // src/redm/Attribute.ts
910
- var CoreAttribute = class {
911
- static {
912
- __name(this, "CoreAttribute");
913
- }
914
- handle;
915
- attribute;
916
- constructor(ped, attribute) {
917
- this.handle = ped.Handle;
918
- this.attribute = attribute;
919
- }
920
- /**
921
- * This doesn't seem to actually do anything
922
- * @todo maybe remove unless theres a valid use case
923
- * @param amount
924
- * @param makeSound
925
- */
926
- enableOverpower(amount, makeSound = false) {
927
- _N("0x4AF5A4C7B9157D14", this.handle, this.attribute, amount, makeSound);
928
- }
929
- get Overpowered() {
930
- return _N("0x200373A8DF081F22", this.attribute, Citizen.resultAsInteger());
931
- }
932
- /**
933
- * @returns the amount of overpower time left in seconds
934
- */
935
- get OverpoweredTimeLeft() {
936
- return _N("0xB429F58803D285B1", this.handle, this.attribute, Citizen.resultAsInteger());
937
- }
938
- /**
939
- * Returns how full the core is
940
- */
941
- get CoreValue() {
942
- return GetAttributeCoreValue(this.handle, this.attribute);
943
- }
944
- set CoreValue(amount) {
945
- _N("0xC6258F41D86676E0", this.handle, this.attribute, amount);
946
- }
947
- };
948
- var PedAttribute = class {
949
- static {
950
- __name(this, "PedAttribute");
951
- }
952
- handle;
953
- attribute;
954
- constructor(ped, attribute) {
955
- this.handle = ped.Handle;
956
- this.attribute = attribute;
957
- }
958
- /**
959
- *
960
- * @param amount the amount of points to add to the attribute
961
- */
962
- addPoints(amount) {
963
- AddAttributePoints(this.handle, this.attribute, amount);
964
- }
965
- /**
966
- * Disables the overpower state on this attribute, see {@link enableOverpower} on how to enable
967
- */
968
- disableOverpower() {
969
- DisableAttributeOverpower(this.handle, this.attribute);
970
- }
971
- /**
972
- *
973
- * @param amount the amount to overpower this attribute by
974
- * @param makeSound if activating the overpower should play sound
975
- */
976
- enableOverpower(amount, makeSound = false) {
977
- _N("0xF6A7C08DF2E28B28", this.handle, this.attribute, amount, makeSound);
978
- }
979
- /**
980
- * Gets the amount of attribute points the ped has
981
- */
982
- get Points() {
983
- return GetAttributePoints(this.handle, this.attribute);
984
- }
985
- set Points(amount) {
986
- SetAttributePoints(this.handle, this.attribute, amount);
987
- }
988
- get Rank() {
989
- return GetAttributeRank(this.handle, this.attribute);
990
- }
991
- set BaseRank(amount) {
992
- SetAttributeBaseRank(this.handle, this.attribute, amount);
993
- }
994
- get BaseRank() {
995
- return GetAttributeBaseRank(this.handle, this.attribute);
996
- }
997
- set BonusRank(amount) {
998
- SetAttributeBonusRank(this.handle, this.attribute, amount);
999
- }
1000
- get BonusRank() {
1001
- return GetAttributeBonusRank(this.handle, this.attribute);
1002
- }
1003
- get MaxRank() {
1004
- return _N("0x704674A0535A471D", this.attribute, Citizen.resultAsInteger());
1005
- }
1006
- get Overpowered() {
1007
- return _N("0x103C2F885ABEB00B", this.attribute, Citizen.resultAsInteger());
1008
- }
1009
- };
1010
- var Attributes = class {
1011
- static {
1012
- __name(this, "Attributes");
1013
- }
1014
- pedAttributes = [];
1015
- coreAttributes = [];
1016
- constructor(ped) {
1017
- for (let i = 0; i <= 21; i++) {
1018
- this.pedAttributes[i] = new PedAttribute(ped, i);
1019
- }
1020
- for (let i = 0; i <= 2; i++) {
1021
- this.coreAttributes[i] = new CoreAttribute(ped, i);
1022
- }
1023
- }
1024
- getCore(attribute) {
1025
- if (attribute > 2) throw new RangeError("The max enum for CoreAttribute is 2");
1026
- if (attribute < 0) throw new RangeError("The minimum enum for CoreAttribute is 0");
1027
- return this.coreAttributes[attribute];
1028
- }
1029
- get(attribute) {
1030
- if (attribute > 22) throw new RangeError("The max enum for PedAttribute is 22");
1031
- if (attribute < 0) throw new RangeError("The minimum enum for PedAttribute is 0");
1032
- return this.pedAttributes[attribute];
1033
- }
1034
- set CoreIcon(status) {
1035
- if (status > 15) throw new RangeError("The max enum for StatusEffect is 15");
1036
- if (status < 0) throw new RangeError("The minimum enum for StatusEffect is 0");
1037
- _N("0xA4D3A1C008F250DF", status);
1038
- }
1039
- set PeriodicIcon(status) {
1040
- if (status > 15) throw new RangeError("The max enum for StatusEffect is 15!");
1041
- if (status < 0) throw new RangeError("The minimum enum for StatusEffect is 0");
1042
- _N("0xFB6E111908502871", status);
1043
- }
1044
- };
1045
-
1046
- // src/redm/entities/Vehicle.ts
1047
- var Vehicle = class extends BaseEntity {
1048
- static {
1049
- __name(this, "Vehicle");
1050
- }
1051
- constructor(handle) {
1052
- super(handle);
1053
- }
1054
- /**
1055
- *
1056
- * @param seatIndex the seat index to check
1057
- * @returns true of the specified seat is free on the mount
1058
- */
1059
- isSeatFree(seatIndex) {
1060
- return _N("0xAAB0FE202E9FC9F0", this.Handle, seatIndex, Citizen.resultAsInteger());
1061
- }
1062
- };
1063
-
1064
- // src/redm/entities/Ped.ts
1065
- var Ped = class _Ped extends BaseEntity {
1066
- static {
1067
- __name(this, "Ped");
1068
- }
1069
- attributes;
1070
- constructor(handle) {
1071
- super(handle);
1072
- }
1073
- /**
1074
- * Blocks scenarios inbetween the specified vectors
1075
- * @todo Move to Game
1076
- * @param vec1
1077
- * @param vec2
1078
- * @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)
1079
- * @returns the scenarioId that can be used in {@link removeScenarioBlock} to unblock
1080
- */
1081
- static blockScenariosInArea(vec1, vec2, blockingFlags) {
1082
- return AddScenarioBlockingArea(
1083
- vec1.x,
1084
- vec1.y,
1085
- vec1.z,
1086
- vec2.x,
1087
- vec2.y,
1088
- vec2.z,
1089
- true,
1090
- blockingFlags
1091
- );
1092
- }
1093
- /**
1094
- * Removes the blocking of scenarios in the specified area
1095
- * @param scenarioId the number returned from {@link blockScenariosInArea}
1096
- */
1097
- static removeScenarioBlock(scenarioId) {
1098
- RemoveScenarioBlockingArea(scenarioId, false);
1099
- }
1100
- /**
1101
- * While this increases the peds max health, if used on a player it wont increase the max core value on the hud
1102
- */
1103
- set MaxHealth(amount) {
1104
- SetPedMaxHealth(this.Handle, amount);
1105
- }
1106
- /**
1107
- * @returns the maximum health of the ped
1108
- */
1109
- get MaxHealth() {
1110
- return GetPedMaxHealth(this.Handle);
1111
- }
1112
- /**
1113
- * @returns the {@link Attributes} for the current ped
1114
- */
1115
- get Attributes() {
1116
- if (this.attributes) return this.attributes;
1117
- return this.attributes = new Attributes(this);
1118
- }
1119
- get InVehicle() {
1120
- return IsPedInAnyVehicle(this.Handle, true);
1121
- }
1122
- get IsInjured() {
1123
- return IsPedInjured(this.Handle);
1124
- }
1125
- get IsFatallyInjured() {
1126
- return IsPedFatallyInjured(this.Handle);
1127
- }
1128
- get IsPlayer() {
1129
- return IsPedAPlayer(this.Handle);
1130
- }
1131
- get IsShooting() {
1132
- return IsPedShooting(this.Handle);
1133
- }
1134
- get Accuracy() {
1135
- return GetPedAccuracy(this.Handle);
1136
- }
1137
- set Accuracy(accuracy) {
1138
- SetPedAccuracy(this.Handle, accuracy);
1139
- }
1140
- get CanBeKnockedOffVehicle() {
1141
- return CanKnockPedOffVehicle(this.Handle);
1142
- }
1143
- get IsMale() {
1144
- return IsPedMale(this.Handle);
1145
- }
1146
- get IsHuman() {
1147
- return IsPedHuman(this.Handle);
1148
- }
1149
- get IsOnTopOfVehicle() {
1150
- return IsPedOnVehicle(this.Handle, false);
1151
- }
1152
- get Vehicle() {
1153
- const vehicle = GetVehiclePedIsIn(this.Handle, false);
1154
- if (vehicle === 0) {
1155
- return null;
1156
- }
1157
- return new Vehicle(vehicle);
1158
- }
1159
- /**
1160
- * @returns the last mount that this ped was on, or null if it doesn't exist
1161
- */
1162
- get Mount() {
1163
- const pedId = _N("0x4C8B59171957BCF7", this.Handle, Citizen.resultAsInteger());
1164
- return pedId ? new _Ped(pedId) : null;
1165
- }
1166
- /**
1167
- * returns the horse that this ped is leading
1168
- */
1169
- get LeadingHorse() {
1170
- const pedId = _N("0x693126B5D0457D0D", this.Handle, Citizen.resultAsInteger());
1171
- return pedId ? new _Ped(pedId) : null;
1172
- }
1173
- /**
1174
- * returns the owner of the current animal
1175
- */
1176
- get Owner() {
1177
- const pedId = _N("0xF103823FFE72BB49", this.Handle, Citizen.resultAsInteger());
1178
- return pedId ? new _Ped(pedId) : null;
1179
- }
1180
- get TamingState() {
1181
- return _N("0x454AD4DA6C41B5BD", this.Handle, Citizen.resultAsInteger());
1182
- }
1183
- get IsInteractingWithAnimal() {
1184
- return _N("0x7FC84E85D98F063D", this.Handle, Citizen.resultAsInteger());
1185
- }
1186
- get IsSittingInAnyVehicle() {
1187
- return IsPedSittingInAnyVehicle(this.Handle);
1188
- }
1189
- get IsPlantingBomb() {
1190
- return IsPedPlantingBomb(this.Handle);
1191
- }
1192
- get IsInAnyBoat() {
1193
- return IsPedInAnyBoat(this.Handle);
1194
- }
1195
- get IsInAnyHeli() {
1196
- return IsPedInAnyHeli(this.Handle);
1197
- }
1198
- get IsInAnyPlane() {
1199
- return IsPedInAnyPlane(this.Handle);
1200
- }
1201
- get IsInFlyingVehicle() {
1202
- return IsPedInFlyingVehicle(this.Handle);
1203
- }
1204
- get IsFalling() {
1205
- return IsPedFalling(this.Handle);
1206
- }
1207
- get IsSliding() {
1208
- return _N("0xD6740E14E4CEFC0B", this.Handle, Citizen.resultAsInteger());
1209
- }
1210
- get IsJumping() {
1211
- return IsPedJumping(this.Handle);
1212
- }
1213
- get IsClimbing() {
1214
- return IsPedClimbing(this.Handle);
1215
- }
1216
- get IsClimbingLadder() {
1217
- return _N("0x59643424B68D52B5", this.Handle, Citizen.resultAsInteger());
1218
- }
1219
- get IsVaulting() {
1220
- return IsPedVaulting(this.Handle);
1221
- }
1222
- get IsDiving() {
1223
- return IsPedDiving(this.Handle);
1224
- }
1225
- get IsOpeningADoor() {
1226
- return IsPedOpeningADoor(this.Handle);
1227
- }
1228
- set SeeingRange(value) {
1229
- SetPedSeeingRange(this.Handle, value);
1230
- }
1231
- set HearingRange(value) {
1232
- SetPedHearingRange(this.Handle, value);
1233
- }
1234
- get IsStealthed() {
1235
- return GetPedStealthMovement(this.Handle);
1236
- }
1237
- get IsJacking() {
1238
- return IsPedJacking(this.Handle);
1239
- }
1240
- get IsStunned() {
1241
- return IsPedBeingStunned(this.Handle, 0);
1242
- }
1243
- get IsBeingJacked() {
1244
- return IsPedBeingJacked(this.Handle);
1245
- }
1246
- get IsInCombatRoll() {
1247
- return _N("0xC48A9EB0D499B3E5", this.Handle, Citizen.resultAsInteger());
1248
- }
1249
- get CrouchMovement() {
1250
- return _N("0xD5FE956C70FF370B", this.Handle, Citizen.resultAsInteger());
1251
- }
1252
- /**
1253
- * returns true if {@link DamageCleanliness} was ever lower than {@link eDamageCleanliness.Good}
1254
- */
1255
- get IsDamaged() {
1256
- return _N("0x6CFC373008A1EDAF", this.Handle, Citizen.resultAsInteger());
1257
- }
1258
- set IsDamaged(damaged) {
1259
- _N("0xDACE03C65C6666DB", this.Handle, damaged);
1260
- }
1261
- get DamageCleanliness() {
1262
- return _N("0x88EFFED5FE8B0B4A", this.Handle, Citizen.resultAsInteger());
1263
- }
1264
- set DamageCleanliness(cleanliness) {
1265
- _N("0x7528720101A807A5", this.Handle, cleanliness);
1266
- }
1267
- set DefenseModifier(amount) {
1268
- _N("0x9B6808EC46BE849B", this.Handle, amount);
1269
- }
1270
- set CanBeTargeted(toggle) {
1271
- SetPedCanBeTargetted(this.Handle, toggle);
1272
- }
1273
- // TODO: Team class wrapper
1274
- // TODO: Bone wrapper `GET_PED_LAST_DAMAGE_BONE`
1275
- /**
1276
- * returns the ped who jacked this ped
1277
- */
1278
- getJacker() {
1279
- return new _Ped(GetPedsJacker(this.Handle));
1280
- }
1281
- setCrouchMovement(state, immediately = false) {
1282
- _N("0x7DE9692C6F64CFE8", this.Handle, state, 0, immediately);
1283
- }
1284
- canBeTargetedByPlayer(player, toggle) {
1285
- SetPedCanBeTargettedByPlayer(this.Handle, player.Handle, toggle);
1286
- }
1287
- clearLastBoneDamage() {
1288
- ClearPedLastDamageBone(this.Handle);
1289
- }
1290
- set OwnsAnimal(animal) {
1291
- _N("0x931B241409216C1F", this.Handle, animal.Handle, false);
1292
- }
1293
- isInteractionPossible(animal) {
1294
- return _N("0xD543D3A8FDE4F185", this.Handle, animal.Handle, Citizen.resultAsInteger());
1295
- }
1296
- isOnVehicle(vehicle) {
1297
- return IsPedOnSpecificVehicle(this.Handle, vehicle.Handle);
1298
- }
1299
- isSittingInVehicle(vehicle) {
1300
- return IsPedSittingInVehicle(this.Handle, vehicle.Handle);
1301
- }
1302
- warpOutOfVehicle() {
1303
- _N("0xE0B61ED8BB37712F", this.Handle);
1304
- }
1305
- /**
1306
- * puts the ped onto the specified mount
1307
- * @param targetPed the horse to put the ped on
1308
- * @param seatIndex the seat index to put the ped on
1309
- */
1310
- setOntoMount(targetPed, seatIndex) {
1311
- _N("0x028F76B6E78246EB", this.Handle, targetPed.Handle, seatIndex, true);
1312
- }
1313
- removeFromMount() {
1314
- _N("0x5337B721C51883A9", this.Handle, true, true);
1315
- }
1316
- /**
1317
- * Sets the ped into the specified vehicle
1318
- * @param vehicle the vehicle to put the ped into
1319
- * @param seatIndex the seat index to put the ped into
1320
- */
1321
- setIntoVehicle(vehicle, seatIndex) {
1322
- SetPedIntoVehicle(this.Handle, vehicle.Handle, seatIndex);
1323
- }
1324
- /**
1325
- * kills the ped and optionally sets the killer
1326
- * @param killer the entity that killed the ped
1327
- */
1328
- killPed(killer) {
1329
- SetEntityHealth(this.Handle, 0, killer ? killer.Handle : 0);
1330
- }
1331
- damage(amount, boneId = 0, killer) {
1332
- ApplyDamageToPed(this.Handle, amount, 0, boneId, killer ? killer.Handle : 0);
1333
- }
1334
- /**
1335
- * this returns a different type then the getter so we can't use set, maybe ts will fix soon (tm)
1336
- * @param state how hard it will be to knock a ped off their vehicle
1337
- */
1338
- setCanBeKnockedOffVehicle(state) {
1339
- SetPedCanBeKnockedOffVehicle(this.Handle, state);
1340
- }
1341
- /**
1342
- * Removes the specified ped if its not a player entity
1343
- */
1344
- delete() {
1345
- SetEntityAsMissionEntity(this.Handle, true, true);
1346
- DeletePed(this.Handle);
1347
- }
1348
- /**
1349
- * creates a clone of the ped
1350
- * @param network if the ped should be a networked entity
1351
- * @param bScriptHostPed whether to register the ped as pinned to the script host in the R* network model.
1352
- * @param copyHeadBlend whether to copy the peds head blend
1353
- * @returns the cloned ped
1354
- */
1355
- clone(network, bScriptHostPed, copyHeadBlend) {
1356
- return new _Ped(ClonePed(this.Handle, network, bScriptHostPed, copyHeadBlend));
1357
- }
1358
- /**
1359
- * clones the ped onto the target ped
1360
- * @param targetPed the ped to clone onto
1361
- */
1362
- cloneTo(targetPed) {
1363
- ClonePedToTarget(this.Handle, targetPed.Handle);
1364
- }
1365
- /**
1366
- * @param amount - the amount of armour to add to the ped
1367
- */
1368
- addArmour(amount) {
1369
- AddArmourToPed(this.Handle, amount);
1370
- }
1371
- applyDamage(damageAmount, boneId = 0, pedKiller = null) {
1372
- ApplyDamageToPed(this.Handle, damageAmount, 0, boneId, pedKiller ? pedKiller.Handle : 0);
1373
- }
1374
- /**
1375
- * @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
1376
- * @param damage - the damage to apply
1377
- * @param mult - the multiplier?
1378
- */
1379
- applyDamagePack(damagePack, damage, mult) {
1380
- ApplyPedDamagePack(this.Handle, damagePack, damage, mult);
1381
- }
1382
- get CurrentVehicle() {
1383
- const veh = GetVehiclePedIsIn(this.Handle, false);
1384
- if (veh === 0) return null;
1385
- return new Vehicle(veh);
1386
- }
1387
- // No documentation
1388
- // applyBloodSpecific() {
1389
- // ApplyPedBloodSpecific
1390
- // }
1391
- };
1392
-
1393
- // src/redm/GameConstants.ts
1394
- var GameConstants = class _GameConstants {
1395
- static {
1396
- __name(this, "GameConstants");
1397
- }
1398
- // the actual player object that will get initialized on the first call to the `get Player()`
1399
- static player = null;
1400
- // The player id of the local client
1401
- static PlayerId = PlayerId();
1402
- // The server id of the local client.
1403
- static ServerId = GetPlayerServerId(_GameConstants.PlayerId);
1404
- // The player class of the local object
1405
- static get Player() {
1406
- if (_GameConstants.player === null) {
1407
- _GameConstants.player = new Player(_GameConstants.PlayerId);
1408
- }
1409
- return _GameConstants.player;
1410
- }
1411
- };
1412
-
1413
- // src/redm/entities/Player.ts
1414
- var handleUpgrade = /* @__PURE__ */ __name((name, amount) => {
1415
- const b1 = new ArrayBuffer(8 * 24);
1416
- const a2 = new DataView(b1);
1417
- const b2 = new ArrayBuffer(8 * 12);
1418
- const a3 = new DataView(b2);
1419
- _N("0xCB5D11F9508A928D", 1, a2, a3, GetHashKey(name), 1084182731, amount, 752097756);
1420
- }, "handleUpgrade");
1421
- var Player = class _Player {
1422
- static {
1423
- __name(this, "Player");
1424
- }
1425
- handle;
1426
- static fromPedHandle(handle) {
1427
- return new _Player(NetworkGetPlayerIndexFromPed(handle));
1428
- }
1429
- /**
1430
- * Gets the player from the specified {@param serverId}
1431
- * @returns the player object, or null if the player didn't exist
1432
- */
1433
- static fromServerId(serverId) {
1434
- if (serverId === GameConstants.ServerId) {
1435
- return GameConstants.Player;
1436
- }
1437
- const player = GetPlayerFromServerId(serverId);
1438
- if (player === -1) return null;
1439
- return new _Player(player);
1440
- }
1441
- /**
1442
- * @param handle the player handle
1443
- */
1444
- constructor(handle) {
1445
- this.handle = handle;
1446
- }
1447
- get Handle() {
1448
- return this.handle;
1449
- }
1450
- /**
1451
- * Adds the amount of stamina player has on the hud
1452
- * @param amount the amount of upgrade to give 6 is half the bar while 12 is the full bar
1453
- */
1454
- addStaminaUpgrade(amount) {
1455
- handleUpgrade("UPGRADE_STAMINA_TANK_1", amount);
1456
- }
1457
- addHealthUpgrade(amount) {
1458
- handleUpgrade("UPGRADE_HEALTH_TANK_1", amount);
1459
- }
1460
- addDeadeyeUpgrade(amount) {
1461
- handleUpgrade("UPGRADE_DEADEYE_TANK_1", amount);
1462
- }
1463
- };
1464
-
1465
- // src/redm/enums/Attributes.ts
1466
- var ePedAttribute = /* @__PURE__ */ ((ePedAttribute2) => {
1467
- ePedAttribute2[ePedAttribute2["Health"] = 0] = "Health";
1468
- ePedAttribute2[ePedAttribute2["Stamina"] = 1] = "Stamina";
1469
- ePedAttribute2[ePedAttribute2["SpecialAbility"] = 2] = "SpecialAbility";
1470
- ePedAttribute2[ePedAttribute2["Courage"] = 3] = "Courage";
1471
- ePedAttribute2[ePedAttribute2["Agility"] = 4] = "Agility";
1472
- ePedAttribute2[ePedAttribute2["Speed"] = 5] = "Speed";
1473
- ePedAttribute2[ePedAttribute2["Acceleration"] = 6] = "Acceleration";
1474
- ePedAttribute2[ePedAttribute2["Bonding"] = 7] = "Bonding";
1475
- ePedAttribute2[ePedAttribute2["Hunger"] = 8] = "Hunger";
1476
- ePedAttribute2[ePedAttribute2["Fatigued"] = 9] = "Fatigued";
1477
- ePedAttribute2[ePedAttribute2["Inebriated"] = 10] = "Inebriated";
1478
- ePedAttribute2[ePedAttribute2["Poisoned"] = 11] = "Poisoned";
1479
- ePedAttribute2[ePedAttribute2["BodyHeat"] = 12] = "BodyHeat";
1480
- ePedAttribute2[ePedAttribute2["BodyWeight"] = 13] = "BodyWeight";
1481
- ePedAttribute2[ePedAttribute2["Overfed"] = 14] = "Overfed";
1482
- ePedAttribute2[ePedAttribute2["Sickness"] = 15] = "Sickness";
1483
- ePedAttribute2[ePedAttribute2["Dirtiness"] = 16] = "Dirtiness";
1484
- ePedAttribute2[ePedAttribute2["DirtinessHat"] = 17] = "DirtinessHat";
1485
- ePedAttribute2[ePedAttribute2["Strength"] = 18] = "Strength";
1486
- ePedAttribute2[ePedAttribute2["Grit"] = 19] = "Grit";
1487
- ePedAttribute2[ePedAttribute2["Instinct"] = 20] = "Instinct";
1488
- ePedAttribute2[ePedAttribute2["Unruliness"] = 21] = "Unruliness";
1489
- ePedAttribute2[ePedAttribute2["DirtinessSkin"] = 22] = "DirtinessSkin";
1490
- return ePedAttribute2;
1491
- })(ePedAttribute || {});
1492
- var eAttributeCore = /* @__PURE__ */ ((eAttributeCore2) => {
1493
- eAttributeCore2[eAttributeCore2["Health"] = 0] = "Health";
1494
- eAttributeCore2[eAttributeCore2["Stamina"] = 1] = "Stamina";
1495
- eAttributeCore2[eAttributeCore2["Deadeye"] = 2] = "Deadeye";
1496
- return eAttributeCore2;
1497
- })(eAttributeCore || {});
1498
- var eHudStatusEffect = /* @__PURE__ */ ((eHudStatusEffect2) => {
1499
- eHudStatusEffect2[eHudStatusEffect2["None"] = 0] = "None";
1500
- eHudStatusEffect2[eHudStatusEffect2["Cold"] = 1] = "Cold";
1501
- eHudStatusEffect2[eHudStatusEffect2["Hot"] = 2] = "Hot";
1502
- eHudStatusEffect2[eHudStatusEffect2["Overfed"] = 3] = "Overfed";
1503
- eHudStatusEffect2[eHudStatusEffect2["Dirty"] = 4] = "Dirty";
1504
- eHudStatusEffect2[eHudStatusEffect2["SnakeVenom"] = 5] = "SnakeVenom";
1505
- eHudStatusEffect2[eHudStatusEffect2["ArrowWounded"] = 6] = "ArrowWounded";
1506
- eHudStatusEffect2[eHudStatusEffect2["ArrowDrained"] = 7] = "ArrowDrained";
1507
- eHudStatusEffect2[eHudStatusEffect2["ArrowDisoriented"] = 8] = "ArrowDisoriented";
1508
- eHudStatusEffect2[eHudStatusEffect2["ArrowTracked"] = 9] = "ArrowTracked";
1509
- eHudStatusEffect2[eHudStatusEffect2["ArrowConfusion"] = 10] = "ArrowConfusion";
1510
- eHudStatusEffect2[eHudStatusEffect2["Underweight"] = 11] = "Underweight";
1511
- eHudStatusEffect2[eHudStatusEffect2["Overweight"] = 12] = "Overweight";
1512
- eHudStatusEffect2[eHudStatusEffect2["Sick1"] = 13] = "Sick1";
1513
- eHudStatusEffect2[eHudStatusEffect2["Sick2"] = 14] = "Sick2";
1514
- eHudStatusEffect2[eHudStatusEffect2["PredatorInvulnerable"] = 15] = "PredatorInvulnerable";
1515
- return eHudStatusEffect2;
1516
- })(eHudStatusEffect || {});
1517
-
1518
- // src/redm/enums/Ped.ts
1519
- var KnockOffVehicle = /* @__PURE__ */ ((KnockOffVehicle2) => {
1520
- KnockOffVehicle2[KnockOffVehicle2["Default"] = 0] = "Default";
1521
- KnockOffVehicle2[KnockOffVehicle2["Never"] = 1] = "Never";
1522
- KnockOffVehicle2[KnockOffVehicle2["Easy"] = 2] = "Easy";
1523
- KnockOffVehicle2[KnockOffVehicle2["Hard"] = 3] = "Hard";
1524
- return KnockOffVehicle2;
1525
- })(KnockOffVehicle || {});
1526
- var TamingState = /* @__PURE__ */ ((TamingState2) => {
1527
- TamingState2[TamingState2["Invalid"] = 0] = "Invalid";
1528
- TamingState2[TamingState2["Inactive"] = 1] = "Inactive";
1529
- TamingState2[TamingState2["TargetDetected"] = 2] = "TargetDetected";
1530
- TamingState2[TamingState2["CalledOut"] = 3] = "CalledOut";
1531
- TamingState2[TamingState2["Mountable"] = 4] = "Mountable";
1532
- TamingState2[TamingState2["BeingPatted"] = 5] = "BeingPatted";
1533
- TamingState2[TamingState2["BreakingActive"] = 6] = "BreakingActive";
1534
- TamingState2[TamingState2["Spooked"] = 7] = "Spooked";
1535
- TamingState2[TamingState2["Retreating"] = 8] = "Retreating";
1536
- TamingState2[TamingState2["Fleeing"] = 9] = "Fleeing";
1537
- return TamingState2;
1538
- })(TamingState || {});
1539
- var eDamageCleanliness = /* @__PURE__ */ ((eDamageCleanliness2) => {
1540
- eDamageCleanliness2[eDamageCleanliness2["Poor"] = 0] = "Poor";
1541
- eDamageCleanliness2[eDamageCleanliness2["Good"] = 1] = "Good";
1542
- eDamageCleanliness2[eDamageCleanliness2["Perfect"] = 2] = "Perfect";
1543
- return eDamageCleanliness2;
1544
- })(eDamageCleanliness || {});
1545
-
1546
- // src/redm/enums/Relationship.ts
1547
- var Relationship = /* @__PURE__ */ ((Relationship2) => {
1548
- Relationship2[Relationship2["Hate"] = 5] = "Hate";
1549
- Relationship2[Relationship2["Dislike"] = 4] = "Dislike";
1550
- Relationship2[Relationship2["Neutral"] = 3] = "Neutral";
1551
- Relationship2[Relationship2["Like"] = 2] = "Like";
1552
- Relationship2[Relationship2["Respect"] = 1] = "Respect";
1553
- Relationship2[Relationship2["Companion"] = 0] = "Companion";
1554
- Relationship2[Relationship2["Pedestrians"] = 255] = "Pedestrians";
1555
- return Relationship2;
1556
- })(Relationship || {});
1557
-
1558
- // src/redm/enums/VehicleSeat.ts
1559
- var VehicleSeat = /* @__PURE__ */ ((VehicleSeat2) => {
1560
- VehicleSeat2[VehicleSeat2["AnyPassenger"] = -2] = "AnyPassenger";
1561
- VehicleSeat2[VehicleSeat2["Driver"] = -1] = "Driver";
1562
- VehicleSeat2[VehicleSeat2["FrontRight"] = 0] = "FrontRight";
1563
- VehicleSeat2[VehicleSeat2["BackLeft"] = 1] = "BackLeft";
1564
- VehicleSeat2[VehicleSeat2["BackRight"] = 2] = "BackRight";
1565
- VehicleSeat2[VehicleSeat2["ExtraLeft1"] = 3] = "ExtraLeft1";
1566
- VehicleSeat2[VehicleSeat2["ExtraRight1"] = 4] = "ExtraRight1";
1567
- VehicleSeat2[VehicleSeat2["ExtraLeft2"] = 5] = "ExtraLeft2";
1568
- VehicleSeat2[VehicleSeat2["ExtraRight2"] = 6] = "ExtraRight2";
1569
- VehicleSeat2[VehicleSeat2["ExtraLeft3"] = 7] = "ExtraLeft3";
1570
- VehicleSeat2[VehicleSeat2["ExtraRight3"] = 8] = "ExtraRight3";
1571
- return VehicleSeat2;
1572
- })(VehicleSeat || {});
1573
-
1574
- // src/redm/enums/Keys.ts
1575
- var KeyHash = /* @__PURE__ */ ((KeyHash2) => {
1576
- KeyHash2[KeyHash2["AccurateAim"] = 1080745902] = "AccurateAim";
1577
- KeyHash2[KeyHash2["Aim"] = 4165969743] = "Aim";
1578
- KeyHash2[KeyHash2["AimInAir"] = 3640078424] = "AimInAir";
1579
- KeyHash2[KeyHash2["Arrest"] = 2767257707] = "Arrest";
1580
- KeyHash2[KeyHash2["Attack"] = 130948705] = "Attack";
1581
- KeyHash2[KeyHash2["Attack2"] = 42190210] = "Attack2";
1582
- KeyHash2[KeyHash2["BreakDoorLock"] = 1997605642] = "BreakDoorLock";
1583
- KeyHash2[KeyHash2["BreakVehicleLock"] = 2546408232] = "BreakVehicleLock";
1584
- KeyHash2[KeyHash2["BuyGeneric"] = 1912940132] = "BuyGeneric";
1585
- KeyHash2[KeyHash2["CameraBack"] = 2763879589] = "CameraBack";
1586
- KeyHash2[KeyHash2["CameraContextGallery"] = 3895685974] = "CameraContextGallery";
1587
- KeyHash2[KeyHash2["CameraDof"] = 805566940] = "CameraDof";
1588
- KeyHash2[KeyHash2["CameraExpressionNext"] = 3483829203] = "CameraExpressionNext";
1589
- KeyHash2[KeyHash2["CameraExpressionPrev"] = 129385309] = "CameraExpressionPrev";
1590
- KeyHash2[KeyHash2["CameraHandheldUse"] = 2003789289] = "CameraHandheldUse";
1591
- KeyHash2[KeyHash2["CameraPoseNext"] = 4161862453] = "CameraPoseNext";
1592
- KeyHash2[KeyHash2["CameraPosePrev"] = 2371611089] = "CameraPosePrev";
1593
- KeyHash2[KeyHash2["CameraPutAway"] = 1606906090] = "CameraPutAway";
1594
- KeyHash2[KeyHash2["CameraSelfie"] = 2891522794] = "CameraSelfie";
1595
- KeyHash2[KeyHash2["CameraTakePhoto"] = 1157240002] = "CameraTakePhoto";
1596
- KeyHash2[KeyHash2["CameraZoom"] = 1206668322] = "CameraZoom";
1597
- KeyHash2[KeyHash2["CampBedInspect"] = 3330151355] = "CampBedInspect";
1598
- KeyHash2[KeyHash2["CampSetupTent"] = 186376936] = "CampSetupTent";
1599
- KeyHash2[KeyHash2["CarriableBreakFree"] = 693204415] = "CarriableBreakFree";
1600
- KeyHash2[KeyHash2["CarriableSuicide"] = 1855403240] = "CarriableSuicide";
1601
- KeyHash2[KeyHash2["CellphoneCameraDof"] = 1497216137] = "CellphoneCameraDof";
1602
- KeyHash2[KeyHash2["CellphoneCameraExpression"] = 3621942503] = "CellphoneCameraExpression";
1603
- KeyHash2[KeyHash2["CellphoneCameraFocusLock"] = 1522630750] = "CellphoneCameraFocusLock";
1604
- KeyHash2[KeyHash2["CellphoneCameraGrid"] = 3784099194] = "CellphoneCameraGrid";
1605
- KeyHash2[KeyHash2["CellphoneCameraSelfie"] = 1782844414] = "CellphoneCameraSelfie";
1606
- KeyHash2[KeyHash2["CellphoneCancel"] = 3716362887] = "CellphoneCancel";
1607
- KeyHash2[KeyHash2["CellphoneDown"] = 2182701058] = "CellphoneDown";
1608
- KeyHash2[KeyHash2["CellphoneExtraOption"] = 3191160849] = "CellphoneExtraOption";
1609
- KeyHash2[KeyHash2["CellphoneLeft"] = 985393552] = "CellphoneLeft";
1610
- KeyHash2[KeyHash2["CellphoneOption"] = 3535965108] = "CellphoneOption";
1611
- KeyHash2[KeyHash2["CellphoneRight"] = 3529440717] = "CellphoneRight";
1612
- KeyHash2[KeyHash2["CellphoneScrollBackward"] = 1204621115] = "CellphoneScrollBackward";
1613
- KeyHash2[KeyHash2["CellphoneScrollForward"] = 3410892696] = "CellphoneScrollForward";
1614
- KeyHash2[KeyHash2["CellphoneSelect"] = 3693494296] = "CellphoneSelect";
1615
- KeyHash2[KeyHash2["CellphoneUp"] = 3538828062] = "CellphoneUp";
1616
- KeyHash2[KeyHash2["CharacterWheel"] = 2536475934] = "CharacterWheel";
1617
- KeyHash2[KeyHash2["CinematicCam"] = 1644850270] = "CinematicCam";
1618
- KeyHash2[KeyHash2["CinematicCamChangeShot"] = 2798023235] = "CinematicCamChangeShot";
1619
- KeyHash2[KeyHash2["CinematicCamDownOnly"] = 598619298] = "CinematicCamDownOnly";
1620
- KeyHash2[KeyHash2["CinematicCamHold"] = 3622286197] = "CinematicCamHold";
1621
- KeyHash2[KeyHash2["CinematicCamLr"] = 1808336124] = "CinematicCamLr";
1622
- KeyHash2[KeyHash2["CinematicCamUd"] = 2220313320] = "CinematicCamUd";
1623
- KeyHash2[KeyHash2["CinematicCamUpOnly"] = 4023379639] = "CinematicCamUpOnly";
1624
- KeyHash2[KeyHash2["CinematicSlowmo"] = 2056295390] = "CinematicSlowmo";
1625
- KeyHash2[KeyHash2["ClaimGeneric"] = 3750750661] = "ClaimGeneric";
1626
- KeyHash2[KeyHash2["Context"] = 3074148983] = "Context";
1627
- KeyHash2[KeyHash2["ContextA"] = 1367437629] = "ContextA";
1628
- KeyHash2[KeyHash2["ContextAction"] = 2994936e3] = "ContextAction";
1629
- KeyHash2[KeyHash2["ContextB"] = 992265328] = "ContextB";
1630
- KeyHash2[KeyHash2["ContextLt"] = 3241829732] = "ContextLt";
1631
- KeyHash2[KeyHash2["ContextRt"] = 129547951] = "ContextRt";
1632
- KeyHash2[KeyHash2["ContextSecondary"] = 4053525381] = "ContextSecondary";
1633
- KeyHash2[KeyHash2["ContextX"] = 3820983707] = "ContextX";
1634
- KeyHash2[KeyHash2["ContextY"] = 3575347279] = "ContextY";
1635
- KeyHash2[KeyHash2["Count"] = 2397043504] = "Count";
1636
- KeyHash2[KeyHash2["Cover"] = 3732491838] = "Cover";
1637
- KeyHash2[KeyHash2["CoverTransition"] = 1963753488] = "CoverTransition";
1638
- KeyHash2[KeyHash2["CraftingEat"] = 3113917613] = "CraftingEat";
1639
- KeyHash2[KeyHash2["CreatorAccept"] = 752170046] = "CreatorAccept";
1640
- KeyHash2[KeyHash2["CreatorDelete"] = 1062060271] = "CreatorDelete";
1641
- KeyHash2[KeyHash2["CreatorDrop"] = 1094726869] = "CreatorDrop";
1642
- KeyHash2[KeyHash2["CreatorFunction"] = 2959071781] = "CreatorFunction";
1643
- KeyHash2[KeyHash2["CreatorGrab"] = 864685381] = "CreatorGrab";
1644
- KeyHash2[KeyHash2["CreatorLookLr"] = 2930944455] = "CreatorLookLr";
1645
- KeyHash2[KeyHash2["CreatorLookUd"] = 1441408243] = "CreatorLookUd";
1646
- KeyHash2[KeyHash2["CreatorLower"] = 467545779] = "CreatorLower";
1647
- KeyHash2[KeyHash2["CreatorLs"] = 866072368] = "CreatorLs";
1648
- KeyHash2[KeyHash2["CreatorLt"] = 1147295926] = "CreatorLt";
1649
- KeyHash2[KeyHash2["CreatorMenuAccept"] = 4221317681] = "CreatorMenuAccept";
1650
- KeyHash2[KeyHash2["CreatorMenuCancel"] = 3141518432] = "CreatorMenuCancel";
1651
- KeyHash2[KeyHash2["CreatorMenuDown"] = 2537621333] = "CreatorMenuDown";
1652
- KeyHash2[KeyHash2["CreatorMenuExtraFunction"] = 3870880003] = "CreatorMenuExtraFunction";
1653
- KeyHash2[KeyHash2["CreatorMenuFunction"] = 1510192115] = "CreatorMenuFunction";
1654
- KeyHash2[KeyHash2["CreatorMenuLeft"] = 3966382250] = "CreatorMenuLeft";
1655
- KeyHash2[KeyHash2["CreatorMenuRaise"] = 491981946] = "CreatorMenuRaise";
1656
- KeyHash2[KeyHash2["CreatorMenuRight"] = 433599308] = "CreatorMenuRight";
1657
- KeyHash2[KeyHash2["CreatorMenuSelect"] = 159704074] = "CreatorMenuSelect";
1658
- KeyHash2[KeyHash2["CreatorMenuToggle"] = 2245149701] = "CreatorMenuToggle";
1659
- KeyHash2[KeyHash2["CreatorMenuUp"] = 3167831115] = "CreatorMenuUp";
1660
- KeyHash2[KeyHash2["CreatorMoveLr"] = 1500856028] = "CreatorMoveLr";
1661
- KeyHash2[KeyHash2["CreatorMoveUd"] = 2185397878] = "CreatorMoveUd";
1662
- KeyHash2[KeyHash2["CreatorPlace"] = 3612126381] = "CreatorPlace";
1663
- KeyHash2[KeyHash2["CreatorRaise"] = 219134385] = "CreatorRaise";
1664
- KeyHash2[KeyHash2["CreatorRotateLeft"] = 3558775850] = "CreatorRotateLeft";
1665
- KeyHash2[KeyHash2["CreatorRotateRight"] = 2641717070] = "CreatorRotateRight";
1666
- KeyHash2[KeyHash2["CreatorRs"] = 3637447829] = "CreatorRs";
1667
- KeyHash2[KeyHash2["CreatorRt"] = 1010684785] = "CreatorRt";
1668
- KeyHash2[KeyHash2["CreatorSearch"] = 4116210893] = "CreatorSearch";
1669
- KeyHash2[KeyHash2["CreatorSwitchCam"] = 382533318] = "CreatorSwitchCam";
1670
- KeyHash2[KeyHash2["CreatorZoomIn"] = 861769078] = "CreatorZoomIn";
1671
- KeyHash2[KeyHash2["CreatorZoomOut"] = 614739859] = "CreatorZoomOut";
1672
- KeyHash2[KeyHash2["CursorAccept"] = 2636835464] = "CursorAccept";
1673
- KeyHash2[KeyHash2["CursorAcceptDoubleClick"] = 475373358] = "CursorAcceptDoubleClick";
1674
- KeyHash2[KeyHash2["CursorAcceptHold"] = 3832869200] = "CursorAcceptHold";
1675
- KeyHash2[KeyHash2["CursorBackwardClick"] = 2599651219] = "CursorBackwardClick";
1676
- KeyHash2[KeyHash2["CursorBackwardDoubleClick"] = 2706088444] = "CursorBackwardDoubleClick";
1677
- KeyHash2[KeyHash2["CursorBackwardHold"] = 27959201] = "CursorBackwardHold";
1678
- KeyHash2[KeyHash2["CursorCancel"] = 659981625] = "CursorCancel";
1679
- KeyHash2[KeyHash2["CursorCancelDoubleClick"] = 2629102798] = "CursorCancelDoubleClick";
1680
- KeyHash2[KeyHash2["CursorCancelHold"] = 3623292726] = "CursorCancelHold";
1681
- KeyHash2[KeyHash2["CursorForwardClick"] = 299612857] = "CursorForwardClick";
1682
- KeyHash2[KeyHash2["CursorForwardDoubleClick"] = 2550519573] = "CursorForwardDoubleClick";
1683
- KeyHash2[KeyHash2["CursorForwardHold"] = 1982908833] = "CursorForwardHold";
1684
- KeyHash2[KeyHash2["CursorScrollClick"] = 1789437723] = "CursorScrollClick";
1685
- KeyHash2[KeyHash2["CursorScrollDoubleClick"] = 3786861933] = "CursorScrollDoubleClick";
1686
- KeyHash2[KeyHash2["CursorScrollDown"] = 2346611779] = "CursorScrollDown";
1687
- KeyHash2[KeyHash2["CursorScrollHold"] = 1417993181] = "CursorScrollHold";
1688
- KeyHash2[KeyHash2["CursorScrollUp"] = 1652558994] = "CursorScrollUp";
1689
- KeyHash2[KeyHash2["CursorX"] = 3603229916] = "CursorX";
1690
- KeyHash2[KeyHash2["CursorY"] = 3826452344] = "CursorY";
1691
- KeyHash2[KeyHash2["CutFree"] = 3536602692] = "CutFree";
1692
- KeyHash2[KeyHash2["DeprecatedAbove"] = 3251785618] = "DeprecatedAbove";
1693
- KeyHash2[KeyHash2["Detonate"] = 1938056823] = "Detonate";
1694
- KeyHash2[KeyHash2["DisableRadar"] = 1892407181] = "DisableRadar";
1695
- KeyHash2[KeyHash2["Dive"] = 101002513] = "Dive";
1696
- KeyHash2[KeyHash2["DocumentPageNext"] = 3380056759] = "DocumentPageNext";
1697
- KeyHash2[KeyHash2["DocumentPagePrev"] = 538512052] = "DocumentPagePrev";
1698
- KeyHash2[KeyHash2["DocumentScroll"] = 2893083409] = "DocumentScroll";
1699
- KeyHash2[KeyHash2["DocumentScrollDownOnly"] = 3610197545] = "DocumentScrollDownOnly";
1700
- KeyHash2[KeyHash2["DocumentScrollUpOnly"] = 1024203244] = "DocumentScrollUpOnly";
1701
- KeyHash2[KeyHash2["Drop"] = 3532816515] = "Drop";
1702
- KeyHash2[KeyHash2["DropAmmo"] = 1312975214] = "DropAmmo";
1703
- KeyHash2[KeyHash2["DropWeapon"] = 2109526038] = "DropWeapon";
1704
- KeyHash2[KeyHash2["Duck"] = 3674827653] = "Duck";
1705
- KeyHash2[KeyHash2["DynamicScenario"] = 782960533] = "DynamicScenario";
1706
- KeyHash2[KeyHash2["EmoteAction"] = 331623346] = "EmoteAction";
1707
- KeyHash2[KeyHash2["EmoteComm"] = 1712871347] = "EmoteComm";
1708
- KeyHash2[KeyHash2["EmoteDance"] = 4077981708] = "EmoteDance";
1709
- KeyHash2[KeyHash2["EmoteGreet"] = 1924847018] = "EmoteGreet";
1710
- KeyHash2[KeyHash2["EmoteGroupLink"] = 478307170] = "EmoteGroupLink";
1711
- KeyHash2[KeyHash2["EmoteGroupLinkHorse"] = 1339147643] = "EmoteGroupLinkHorse";
1712
- KeyHash2[KeyHash2["EmoteTaunt"] = 1192083856] = "EmoteTaunt";
1713
- KeyHash2[KeyHash2["EmoteTwirlGunHold"] = 83591569] = "EmoteTwirlGunHold";
1714
- KeyHash2[KeyHash2["EmoteTwirlGunVarA"] = 1771093471] = "EmoteTwirlGunVarA";
1715
- KeyHash2[KeyHash2["EmoteTwirlGunVarB"] = 1389531235] = "EmoteTwirlGunVarB";
1716
- KeyHash2[KeyHash2["EmoteTwirlGunVarC"] = 3156927250] = "EmoteTwirlGunVarC";
1717
- KeyHash2[KeyHash2["EmoteTwirlGunVarD"] = 2926135183] = "EmoteTwirlGunVarD";
1718
- KeyHash2[KeyHash2["EmotesFavorite"] = 2822055451] = "EmotesFavorite";
1719
- KeyHash2[KeyHash2["EmotesManage"] = 2121659612] = "EmotesManage";
1720
- KeyHash2[KeyHash2["EmotesSlotNavNext"] = 3417386887] = "EmotesSlotNavNext";
1721
- KeyHash2[KeyHash2["Enter"] = 3472724512] = "Enter";
1722
- KeyHash2[KeyHash2["EnterCheatCode"] = 2079742664] = "EnterCheatCode";
1723
- KeyHash2[KeyHash2["ExpandRadar"] = 3473609182] = "ExpandRadar";
1724
- KeyHash2[KeyHash2["FeedInteract"] = 2833511527] = "FeedInteract";
1725
- KeyHash2[KeyHash2["FeedInteractGeneric"] = 3584624748] = "FeedInteractGeneric";
1726
- KeyHash2[KeyHash2["FocusCam"] = 3878372340] = "FocusCam";
1727
- KeyHash2[KeyHash2["FrontendAccept"] = 3350541322] = "FrontendAccept";
1728
- KeyHash2[KeyHash2["FrontendAxisX"] = 4216773979] = "FrontendAxisX";
1729
- KeyHash2[KeyHash2["FrontendAxisY"] = 152139984] = "FrontendAxisY";
1730
- KeyHash2[KeyHash2["FrontendCancel"] = 359624985] = "FrontendCancel";
1731
- KeyHash2[KeyHash2["FrontendDelete"] = 1257559155] = "FrontendDelete";
1732
- KeyHash2[KeyHash2["FrontendDown"] = 97156178] = "FrontendDown";
1733
- KeyHash2[KeyHash2["FrontendEndscreenAccept"] = 1043528942] = "FrontendEndscreenAccept";
1734
- KeyHash2[KeyHash2["FrontendEndscreenExpand"] = 3348881055] = "FrontendEndscreenExpand";
1735
- KeyHash2[KeyHash2["FrontendKeymappingCancel"] = 1049167194] = "FrontendKeymappingCancel";
1736
- KeyHash2[KeyHash2["FrontendLb"] = 3901091606] = "FrontendLb";
1737
- KeyHash2[KeyHash2["FrontendLeaderboard"] = 2665254245] = "FrontendLeaderboard";
1738
- KeyHash2[KeyHash2["FrontendLeft"] = 2791226036] = "FrontendLeft";
1739
- KeyHash2[KeyHash2["FrontendLs"] = 1137550768] = "FrontendLs";
1740
- KeyHash2[KeyHash2["FrontendLt"] = 1360019509] = "FrontendLt";
1741
- KeyHash2[KeyHash2["FrontendMapNavDown"] = 4165471981] = "FrontendMapNavDown";
1742
- KeyHash2[KeyHash2["FrontendMapNavLeft"] = 3772209920] = "FrontendMapNavLeft";
1743
- KeyHash2[KeyHash2["FrontendMapNavRight"] = 678583901] = "FrontendMapNavRight";
1744
- KeyHash2[KeyHash2["FrontendMapNavUp"] = 307917029] = "FrontendMapNavUp";
1745
- KeyHash2[KeyHash2["FrontendMapZoom"] = 1798674983] = "FrontendMapZoom";
1746
- KeyHash2[KeyHash2["FrontendNavDown"] = 2014399155] = "FrontendNavDown";
1747
- KeyHash2[KeyHash2["FrontendNavLeft"] = 2273251367] = "FrontendNavLeft";
1748
- KeyHash2[KeyHash2["FrontendNavRight"] = 146634124] = "FrontendNavRight";
1749
- KeyHash2[KeyHash2["FrontendNavUp"] = 2365579425] = "FrontendNavUp";
1750
- KeyHash2[KeyHash2["FrontendPause"] = 3626896338] = "FrontendPause";
1751
- KeyHash2[KeyHash2["FrontendPauseAlternate"] = 1250966545] = "FrontendPauseAlternate";
1752
- KeyHash2[KeyHash2["FrontendPhotoMode"] = 1154297883] = "FrontendPhotoMode";
1753
- KeyHash2[KeyHash2["FrontendRb"] = 398377320] = "FrontendRb";
1754
- KeyHash2[KeyHash2["FrontendRdown"] = 1463068996] = "FrontendRdown";
1755
- KeyHash2[KeyHash2["FrontendRight"] = 3736290067] = "FrontendRight";
1756
- KeyHash2[KeyHash2["FrontendRightAxisX"] = 1025725594] = "FrontendRightAxisX";
1757
- KeyHash2[KeyHash2["FrontendRightAxisY"] = 3946918111] = "FrontendRightAxisY";
1758
- KeyHash2[KeyHash2["FrontendRleft"] = 959670863] = "FrontendRleft";
1759
- KeyHash2[KeyHash2["FrontendRright"] = 1531509048] = "FrontendRright";
1760
- KeyHash2[KeyHash2["FrontendRs"] = 2107936042] = "FrontendRs";
1761
- KeyHash2[KeyHash2["FrontendRt"] = 1877832124] = "FrontendRt";
1762
- KeyHash2[KeyHash2["FrontendRup"] = 3621677854] = "FrontendRup";
1763
- KeyHash2[KeyHash2["FrontendScrollAxisX"] = 841268309] = "FrontendScrollAxisX";
1764
- KeyHash2[KeyHash2["FrontendScrollAxisY"] = 560274134] = "FrontendScrollAxisY";
1765
- KeyHash2[KeyHash2["FrontendSelect"] = 387518684] = "FrontendSelect";
1766
- KeyHash2[KeyHash2["FrontendSocialClub"] = 105715352] = "FrontendSocialClub";
1767
- KeyHash2[KeyHash2["FrontendSocialClubSecondary"] = 3183007475] = "FrontendSocialClubSecondary";
1768
- KeyHash2[KeyHash2["FrontendStart"] = 3441418762] = "FrontendStart";
1769
- KeyHash2[KeyHash2["FrontendTouchDoubleTapX"] = 375519920] = "FrontendTouchDoubleTapX";
1770
- KeyHash2[KeyHash2["FrontendTouchDoubleTapY"] = 2531818431] = "FrontendTouchDoubleTapY";
1771
- KeyHash2[KeyHash2["FrontendTouchDragX"] = 3969078414] = "FrontendTouchDragX";
1772
- KeyHash2[KeyHash2["FrontendTouchDragY"] = 2596352235] = "FrontendTouchDragY";
1773
- KeyHash2[KeyHash2["FrontendTouchHoldX"] = 267484957] = "FrontendTouchHoldX";
1774
- KeyHash2[KeyHash2["FrontendTouchHoldY"] = 965661271] = "FrontendTouchHoldY";
1775
- KeyHash2[KeyHash2["FrontendTouchSwipeDownX"] = 3820161365] = "FrontendTouchSwipeDownX";
1776
- KeyHash2[KeyHash2["FrontendTouchSwipeDownY"] = 3187621354] = "FrontendTouchSwipeDownY";
1777
- KeyHash2[KeyHash2["FrontendTouchSwipeLeftX"] = 625324254] = "FrontendTouchSwipeLeftX";
1778
- KeyHash2[KeyHash2["FrontendTouchSwipeLeftY"] = 3560771278] = "FrontendTouchSwipeLeftY";
1779
- KeyHash2[KeyHash2["FrontendTouchSwipeRightX"] = 3937829783] = "FrontendTouchSwipeRightX";
1780
- KeyHash2[KeyHash2["FrontendTouchSwipeRightY"] = 1734048995] = "FrontendTouchSwipeRightY";
1781
- KeyHash2[KeyHash2["FrontendTouchSwipeUpX"] = 192009273] = "FrontendTouchSwipeUpX";
1782
- KeyHash2[KeyHash2["FrontendTouchSwipeUpY"] = 432697578] = "FrontendTouchSwipeUpY";
1783
- KeyHash2[KeyHash2["FrontendTouchTapX"] = 3238926346] = "FrontendTouchTapX";
1784
- KeyHash2[KeyHash2["FrontendTouchTapY"] = 3477812356] = "FrontendTouchTapY";
1785
- KeyHash2[KeyHash2["FrontendTouchZoomFactor"] = 3891829816] = "FrontendTouchZoomFactor";
1786
- KeyHash2[KeyHash2["FrontendTouchZoomX"] = 375790288] = "FrontendTouchZoomX";
1787
- KeyHash2[KeyHash2["FrontendTouchZoomY"] = 624801919] = "FrontendTouchZoomY";
1788
- KeyHash2[KeyHash2["FrontendUp"] = 1662638961] = "FrontendUp";
1789
- KeyHash2[KeyHash2["FrontendX"] = 1840825903] = "FrontendX";
1790
- KeyHash2[KeyHash2["FrontendY"] = 2080465600] = "FrontendY";
1791
- KeyHash2[KeyHash2["GameMenuAccept"] = 1138488863] = "GameMenuAccept";
1792
- KeyHash2[KeyHash2["GameMenuCancel"] = 814057702] = "GameMenuCancel";
1793
- KeyHash2[KeyHash2["GameMenuDown"] = 1141111167] = "GameMenuDown";
1794
- KeyHash2[KeyHash2["GameMenuExtraOption"] = 3583430576] = "GameMenuExtraOption";
1795
- KeyHash2[KeyHash2["GameMenuLeft"] = 2910833755] = "GameMenuLeft";
1796
- KeyHash2[KeyHash2["GameMenuLeftAxisX"] = 4096906618] = "GameMenuLeftAxisX";
1797
- KeyHash2[KeyHash2["GameMenuLeftAxisY"] = 577679855] = "GameMenuLeftAxisY";
1798
- KeyHash2[KeyHash2["GameMenuLs"] = 2834751078] = "GameMenuLs";
1799
- KeyHash2[KeyHash2["GameMenuOption"] = 4225217510] = "GameMenuOption";
1800
- KeyHash2[KeyHash2["GameMenuRight"] = 1710877787] = "GameMenuRight";
1801
- KeyHash2[KeyHash2["GameMenuRightAxisX"] = 1183164979] = "GameMenuRightAxisX";
1802
- KeyHash2[KeyHash2["GameMenuRightAxisY"] = 1623613108] = "GameMenuRightAxisY";
1803
- KeyHash2[KeyHash2["GameMenuRightStickDown"] = 2914485875] = "GameMenuRightStickDown";
1804
- KeyHash2[KeyHash2["GameMenuRightStickLeft"] = 1910737254] = "GameMenuRightStickLeft";
1805
- KeyHash2[KeyHash2["GameMenuRightStickRight"] = 3788426827] = "GameMenuRightStickRight";
1806
- KeyHash2[KeyHash2["GameMenuRightStickUp"] = 4028836355] = "GameMenuRightStickUp";
1807
- KeyHash2[KeyHash2["GameMenuRs"] = 2313830309] = "GameMenuRs";
1808
- KeyHash2[KeyHash2["GameMenuScrollBackward"] = 2644780612] = "GameMenuScrollBackward";
1809
- KeyHash2[KeyHash2["GameMenuScrollForward"] = 2168814106] = "GameMenuScrollForward";
1810
- KeyHash2[KeyHash2["GameMenuStickDown"] = 1669958966] = "GameMenuStickDown";
1811
- KeyHash2[KeyHash2["GameMenuStickLeft"] = 113281492] = "GameMenuStickLeft";
1812
- KeyHash2[KeyHash2["GameMenuStickRight"] = 1541138497] = "GameMenuStickRight";
1813
- KeyHash2[KeyHash2["GameMenuStickUp"] = 2628350873] = "GameMenuStickUp";
1814
- KeyHash2[KeyHash2["GameMenuTabLeft"] = 3419779694] = "GameMenuTabLeft";
1815
- KeyHash2[KeyHash2["GameMenuTabLeftSecondary"] = 652860416] = "GameMenuTabLeftSecondary";
1816
- KeyHash2[KeyHash2["GameMenuTabRight"] = 285921746] = "GameMenuTabRight";
1817
- KeyHash2[KeyHash2["GameMenuTabRightSecondary"] = 2362035522] = "GameMenuTabRightSecondary";
1818
- KeyHash2[KeyHash2["GameMenuUp"] = 2434576542] = "GameMenuUp";
1819
- KeyHash2[KeyHash2["HitchAnimal"] = 2841515112] = "HitchAnimal";
1820
- KeyHash2[KeyHash2["Hogtie"] = 3653567794] = "Hogtie";
1821
- KeyHash2[KeyHash2["HorseAim"] = 1632043089] = "HorseAim";
1822
- KeyHash2[KeyHash2["HorseAttack"] = 1623727326] = "HorseAttack";
1823
- KeyHash2[KeyHash2["HorseAttack2"] = 3372489069] = "HorseAttack2";
1824
- KeyHash2[KeyHash2["HorseCollect"] = 2103129879] = "HorseCollect";
1825
- KeyHash2[KeyHash2["HorseCommandFlee"] = 1108782854] = "HorseCommandFlee";
1826
- KeyHash2[KeyHash2["HorseCommandFollow"] = 1983794471] = "HorseCommandFollow";
1827
- KeyHash2[KeyHash2["HorseCommandStay"] = 2925395437] = "HorseCommandStay";
1828
- KeyHash2[KeyHash2["HorseCoverTransition"] = 697752853] = "HorseCoverTransition";
1829
- KeyHash2[KeyHash2["HorseExit"] = 3420160680] = "HorseExit";
1830
- KeyHash2[KeyHash2["HorseGunLr"] = 1033498310] = "HorseGunLr";
1831
- KeyHash2[KeyHash2["HorseGunUd"] = 3220469497] = "HorseGunUd";
1832
- KeyHash2[KeyHash2["HorseJump"] = 3839020573] = "HorseJump";
1833
- KeyHash2[KeyHash2["HorseLookBehind"] = 2166883689] = "HorseLookBehind";
1834
- KeyHash2[KeyHash2["HorseMelee"] = 440314811] = "HorseMelee";
1835
- KeyHash2[KeyHash2["HorseMoveDownOnly"] = 1459101765] = "HorseMoveDownOnly";
1836
- KeyHash2[KeyHash2["HorseMoveLeftOnly"] = 2262266870] = "HorseMoveLeftOnly";
1837
- KeyHash2[KeyHash2["HorseMoveLr"] = 308778731] = "HorseMoveLr";
1838
- KeyHash2[KeyHash2["HorseMoveRightOnly"] = 2120975890] = "HorseMoveRightOnly";
1839
- KeyHash2[KeyHash2["HorseMoveUd"] = 1002303471] = "HorseMoveUd";
1840
- KeyHash2[KeyHash2["HorseMoveUpOnly"] = 1771341755] = "HorseMoveUpOnly";
1841
- KeyHash2[KeyHash2["HorseSpecial"] = 1879610457] = "HorseSpecial";
1842
- KeyHash2[KeyHash2["HorseSprint"] = 1520437207] = "HorseSprint";
1843
- KeyHash2[KeyHash2["HorseStop"] = 3781925549] = "HorseStop";
1844
- KeyHash2[KeyHash2["HudSpecial"] = 1477198963] = "HudSpecial";
1845
- KeyHash2[KeyHash2["IconStackLayoutDefault"] = 1308371794] = "IconStackLayoutDefault";
1846
- KeyHash2[KeyHash2["IconStackLayoutWithInfoIcon"] = 547403334] = "IconStackLayoutWithInfoIcon";
1847
- KeyHash2[KeyHash2["Ignite"] = 3344705456] = "Ignite";
1848
- KeyHash2[KeyHash2["Inspect"] = 2786969136] = "Inspect";
1849
- KeyHash2[KeyHash2["InspectLr"] = 394838659] = "InspectLr";
1850
- KeyHash2[KeyHash2["InspectOpenSatchel"] = 2602346714] = "InspectOpenSatchel";
1851
- KeyHash2[KeyHash2["InspectUd"] = 4185397655] = "InspectUd";
1852
- KeyHash2[KeyHash2["InspectZoom"] = 1395223413] = "InspectZoom";
1853
- KeyHash2[KeyHash2["InteractAnimal"] = 2712385875] = "InteractAnimal";
1854
- KeyHash2[KeyHash2["InteractHitCarriable"] = 86159939] = "InteractHitCarriable";
1855
- KeyHash2[KeyHash2["InteractHorseBrush"] = 1671663404] = "InteractHorseBrush";
1856
- KeyHash2[KeyHash2["InteractHorseCare"] = 2965169622] = "InteractHorseCare";
1857
- KeyHash2[KeyHash2["InteractHorseFeed"] = 223715568] = "InteractHorseFeed";
1858
- KeyHash2[KeyHash2["InteractLeadAnimal"] = 399753205] = "InteractLeadAnimal";
1859
- KeyHash2[KeyHash2["InteractLockon"] = 4170723072] = "InteractLockon";
1860
- KeyHash2[KeyHash2["InteractLockonA"] = 3507108406] = "InteractLockonA";
1861
- KeyHash2[KeyHash2["InteractLockonAnimal"] = 1410711112] = "InteractLockonAnimal";
1862
- KeyHash2[KeyHash2["InteractLockonCallAnimal"] = 1912118204] = "InteractLockonCallAnimal";
1863
- KeyHash2[KeyHash2["InteractLockonDetachHorse"] = 4123291675] = "InteractLockonDetachHorse";
1864
- KeyHash2[KeyHash2["InteractLockonNeg"] = 648122183] = "InteractLockonNeg";
1865
- KeyHash2[KeyHash2["InteractLockonPos"] = 4131002361] = "InteractLockonPos";
1866
- KeyHash2[KeyHash2["InteractLockonRob"] = 2678435079] = "InteractLockonRob";
1867
- KeyHash2[KeyHash2["InteractLockonStudyBinoculars"] = 3019081916] = "InteractLockonStudyBinoculars";
1868
- KeyHash2[KeyHash2["InteractLockonTargetInfo"] = 824284304] = "InteractLockonTargetInfo";
1869
- KeyHash2[KeyHash2["InteractLockonTrackAnimal"] = 3796319216] = "InteractLockonTrackAnimal";
1870
- KeyHash2[KeyHash2["InteractLockonY"] = 162081675] = "InteractLockonY";
1871
- KeyHash2[KeyHash2["InteractNeg"] = 1112265426] = "InteractNeg";
1872
- KeyHash2[KeyHash2["InteractOption1"] = 1980406895] = "InteractOption1";
1873
- KeyHash2[KeyHash2["InteractOption2"] = 2220112130] = "InteractOption2";
1874
- KeyHash2[KeyHash2["InteractPos"] = 4139479928] = "InteractPos";
1875
- KeyHash2[KeyHash2["InteractWildAnimal"] = 2314457824] = "InteractWildAnimal";
1876
- KeyHash2[KeyHash2["InteractionMenu"] = 3427864153] = "InteractionMenu";
1877
- KeyHash2[KeyHash2["InterrogateBeat"] = 1847463266] = "InterrogateBeat";
1878
- KeyHash2[KeyHash2["InterrogateKill"] = 2175984401] = "InterrogateKill";
1879
- KeyHash2[KeyHash2["InterrogateQuestion"] = 2712284557] = "InterrogateQuestion";
1880
- KeyHash2[KeyHash2["InterrogateRelease"] = 1008922382] = "InterrogateRelease";
1881
- KeyHash2[KeyHash2["IronSight"] = 2215788713] = "IronSight";
1882
- KeyHash2[KeyHash2["Jump"] = 3654345152] = "Jump";
1883
- KeyHash2[KeyHash2["LookBehind"] = 2572789488] = "LookBehind";
1884
- KeyHash2[KeyHash2["LookDownOnly"] = 2396597782] = "LookDownOnly";
1885
- KeyHash2[KeyHash2["LookLeftOnly"] = 150518893] = "LookLeftOnly";
1886
- KeyHash2[KeyHash2["LookLr"] = 2844205919] = "LookLr";
1887
- KeyHash2[KeyHash2["LookRightOnly"] = 2716537683] = "LookRightOnly";
1888
- KeyHash2[KeyHash2["LookUd"] = 3523508616] = "LookUd";
1889
- KeyHash2[KeyHash2["LookUpOnly"] = 3227852096] = "LookUpOnly";
1890
- KeyHash2[KeyHash2["Loot"] = 1101824977] = "Loot";
1891
- KeyHash2[KeyHash2["LootAliveComponent"] = 4286646744] = "LootAliveComponent";
1892
- KeyHash2[KeyHash2["LootAmmo"] = 3258809246] = "LootAmmo";
1893
- KeyHash2[KeyHash2["LootVehicle"] = 349924446] = "LootVehicle";
1894
- KeyHash2[KeyHash2["Loot2"] = 966551065] = "Loot2";
1895
- KeyHash2[KeyHash2["Loot3"] = 668058244] = "Loot3";
1896
- KeyHash2[KeyHash2["Map"] = 3810290241] = "Map";
1897
- KeyHash2[KeyHash2["MapPoi"] = 2616103443] = "MapPoi";
1898
- KeyHash2[KeyHash2["MeleeAttack"] = 3002300392] = "MeleeAttack";
1899
- KeyHash2[KeyHash2["MeleeBlock"] = 3052335031] = "MeleeBlock";
1900
- KeyHash2[KeyHash2["MeleeGrapple"] = 578288361] = "MeleeGrapple";
1901
- KeyHash2[KeyHash2["MeleeGrappleAttack"] = 2917856396] = "MeleeGrappleAttack";
1902
- KeyHash2[KeyHash2["MeleeGrappleBreakout"] = 3502374655] = "MeleeGrappleBreakout";
1903
- KeyHash2[KeyHash2["MeleeGrappleChoke"] = 25970639] = "MeleeGrappleChoke";
1904
- KeyHash2[KeyHash2["MeleeGrappleMountSwitch"] = 1743595310] = "MeleeGrappleMountSwitch";
1905
- KeyHash2[KeyHash2["MeleeGrappleReversal"] = 2445912087] = "MeleeGrappleReversal";
1906
- KeyHash2[KeyHash2["MeleeGrappleStandSwitch"] = 3189720729] = "MeleeGrappleStandSwitch";
1907
- KeyHash2[KeyHash2["MeleeHorseAttackPrimary"] = 2028806450] = "MeleeHorseAttackPrimary";
1908
- KeyHash2[KeyHash2["MeleeHorseAttackSecondary"] = 371916472] = "MeleeHorseAttackSecondary";
1909
- KeyHash2[KeyHash2["MeleeModifier"] = 511537781] = "MeleeModifier";
1910
- KeyHash2[KeyHash2["MercyKill"] = 2506893838] = "MercyKill";
1911
- KeyHash2[KeyHash2["MinigameActionDown"] = 4127309052] = "MinigameActionDown";
1912
- KeyHash2[KeyHash2["MinigameActionLeft"] = 169802761] = "MinigameActionLeft";
1913
- KeyHash2[KeyHash2["MinigameActionRight"] = 383189881] = "MinigameActionRight";
1914
- KeyHash2[KeyHash2["MinigameActionUp"] = 4120984077] = "MinigameActionUp";
1915
- KeyHash2[KeyHash2["MinigameActionX"] = 496139762] = "MinigameActionX";
1916
- KeyHash2[KeyHash2["MinigameBartenderPour"] = 3401327712] = "MinigameBartenderPour";
1917
- KeyHash2[KeyHash2["MinigameBartenderRaiseBottle"] = 4037169426] = "MinigameBartenderRaiseBottle";
1918
- KeyHash2[KeyHash2["MinigameBartenderRaiseGlass"] = 2704564469] = "MinigameBartenderRaiseGlass";
1919
- KeyHash2[KeyHash2["MinigameBartenderServe"] = 3691229251] = "MinigameBartenderServe";
1920
- KeyHash2[KeyHash2["MinigameBlackjackBet"] = 1713211953] = "MinigameBlackjackBet";
1921
- KeyHash2[KeyHash2["MinigameBlackjackBetAxisY"] = 1026465938] = "MinigameBlackjackBetAxisY";
1922
- KeyHash2[KeyHash2["MinigameBlackjackDecline"] = 3447578523] = "MinigameBlackjackDecline";
1923
- KeyHash2[KeyHash2["MinigameBlackjackDouble"] = 1950903460] = "MinigameBlackjackDouble";
1924
- KeyHash2[KeyHash2["MinigameBlackjackHandView"] = 66185163] = "MinigameBlackjackHandView";
1925
- KeyHash2[KeyHash2["MinigameBlackjackHit"] = 2819893011] = "MinigameBlackjackHit";
1926
- KeyHash2[KeyHash2["MinigameBlackjackSplit"] = 1126895903] = "MinigameBlackjackSplit";
1927
- KeyHash2[KeyHash2["MinigameBlackjackStand"] = 824575239] = "MinigameBlackjackStand";
1928
- KeyHash2[KeyHash2["MinigameBlackjackTableView"] = 2917176373] = "MinigameBlackjackTableView";
1929
- KeyHash2[KeyHash2["MinigameBuildingCameraNext"] = 380694264] = "MinigameBuildingCameraNext";
1930
- KeyHash2[KeyHash2["MinigameBuildingCameraPrev"] = 1603777073] = "MinigameBuildingCameraPrev";
1931
- KeyHash2[KeyHash2["MinigameBuildingHammer"] = 4203851469] = "MinigameBuildingHammer";
1932
- KeyHash2[KeyHash2["MinigameChangeBetAxisY"] = 3183948782] = "MinigameChangeBetAxisY";
1933
- KeyHash2[KeyHash2["MinigameClearBet"] = 1243727467] = "MinigameClearBet";
1934
- KeyHash2[KeyHash2["MinigameCrackpotBoatShowControls"] = 1380726663] = "MinigameCrackpotBoatShowControls";
1935
- KeyHash2[KeyHash2["MinigameCrapsAcceptDice"] = 1517387392] = "MinigameCrapsAcceptDice";
1936
- KeyHash2[KeyHash2["MinigameCrapsSkip"] = 864590660] = "MinigameCrapsSkip";
1937
- KeyHash2[KeyHash2["MinigameCrapsThrowDice"] = 1698663412] = "MinigameCrapsThrowDice";
1938
- KeyHash2[KeyHash2["MinigameDanceNext"] = 1072537860] = "MinigameDanceNext";
1939
- KeyHash2[KeyHash2["MinigameDancePrev"] = 3906459441] = "MinigameDancePrev";
1940
- KeyHash2[KeyHash2["MinigameDecreaseBet"] = 3555456037] = "MinigameDecreaseBet";
1941
- KeyHash2[KeyHash2["MinigameDominoesDrawTile"] = 1064813367] = "MinigameDominoesDrawTile";
1942
- KeyHash2[KeyHash2["MinigameDominoesMoveDownOnly"] = 4255107181] = "MinigameDominoesMoveDownOnly";
1943
- KeyHash2[KeyHash2["MinigameDominoesMoveLeftOnly"] = 4259154388] = "MinigameDominoesMoveLeftOnly";
1944
- KeyHash2[KeyHash2["MinigameDominoesMoveRightOnly"] = 2102495177] = "MinigameDominoesMoveRightOnly";
1945
- KeyHash2[KeyHash2["MinigameDominoesMoveUpOnly"] = 3333131443] = "MinigameDominoesMoveUpOnly";
1946
- KeyHash2[KeyHash2["MinigameDominoesPlayAgain"] = 1729872669] = "MinigameDominoesPlayAgain";
1947
- KeyHash2[KeyHash2["MinigameDominoesPlayTile"] = 2515909500] = "MinigameDominoesPlayTile";
1948
- KeyHash2[KeyHash2["MinigameDominoesSkipDeal"] = 3320193751] = "MinigameDominoesSkipDeal";
1949
- KeyHash2[KeyHash2["MinigameDominoesViewDominoes"] = 2298001073] = "MinigameDominoesViewDominoes";
1950
- KeyHash2[KeyHash2["MinigameDominoesViewMoves"] = 1999884076] = "MinigameDominoesViewMoves";
1951
- KeyHash2[KeyHash2["MinigameFffA"] = 242318790] = "MinigameFffA";
1952
- KeyHash2[KeyHash2["MinigameFffB"] = 466098291] = "MinigameFffB";
1953
- KeyHash2[KeyHash2["MinigameFffCycleSequenceLeft"] = 698569998] = "MinigameFffCycleSequenceLeft";
1954
- KeyHash2[KeyHash2["MinigameFffCycleSequenceRight"] = 2069596525] = "MinigameFffCycleSequenceRight";
1955
- KeyHash2[KeyHash2["MinigameFffFlourishContinue"] = 1875500648] = "MinigameFffFlourishContinue";
1956
- KeyHash2[KeyHash2["MinigameFffFlourishEnd"] = 4151642917] = "MinigameFffFlourishEnd";
1957
- KeyHash2[KeyHash2["MinigameFffPractice"] = 3392642946] = "MinigameFffPractice";
1958
- KeyHash2[KeyHash2["MinigameFffSkipTurn"] = 812869659] = "MinigameFffSkipTurn";
1959
- KeyHash2[KeyHash2["MinigameFffX"] = 1710271711] = "MinigameFffX";
1960
- KeyHash2[KeyHash2["MinigameFffY"] = 1940736088] = "MinigameFffY";
1961
- KeyHash2[KeyHash2["MinigameFffZoom"] = 1642384076] = "MinigameFffZoom";
1962
- KeyHash2[KeyHash2["MinigameFishingHook"] = 2714570810] = "MinigameFishingHook";
1963
- KeyHash2[KeyHash2["MinigameFishingKeepFish"] = 1388692298] = "MinigameFishingKeepFish";
1964
- KeyHash2[KeyHash2["MinigameFishingLeanLeft"] = 223099578] = "MinigameFishingLeanLeft";
1965
- KeyHash2[KeyHash2["MinigameFishingLeanRight"] = 84363931] = "MinigameFishingLeanRight";
1966
- KeyHash2[KeyHash2["MinigameFishingLeftAxisX"] = 1773209123] = "MinigameFishingLeftAxisX";
1967
- KeyHash2[KeyHash2["MinigameFishingLeftAxisY"] = 163530309] = "MinigameFishingLeftAxisY";
1968
- KeyHash2[KeyHash2["MinigameFishingManualReelIn"] = 2734945378] = "MinigameFishingManualReelIn";
1969
- KeyHash2[KeyHash2["MinigameFishingManualReelOutModifer"] = 867346636] = "MinigameFishingManualReelOutModifer";
1970
- KeyHash2[KeyHash2["MinigameFishingQuickEquip"] = 636822989] = "MinigameFishingQuickEquip";
1971
- KeyHash2[KeyHash2["MinigameFishingReelSpeedAxis"] = 1237793970] = "MinigameFishingReelSpeedAxis";
1972
- KeyHash2[KeyHash2["MinigameFishingReelSpeedDown"] = 3618592416] = "MinigameFishingReelSpeedDown";
1973
- KeyHash2[KeyHash2["MinigameFishingReelSpeedUp"] = 799610357] = "MinigameFishingReelSpeedUp";
1974
- KeyHash2[KeyHash2["MinigameFishingReleaseFish"] = 4048540725] = "MinigameFishingReleaseFish";
1975
- KeyHash2[KeyHash2["MinigameFishingResetCast"] = 3020594139] = "MinigameFishingResetCast";
1976
- KeyHash2[KeyHash2["MinigameFishingRightAxisX"] = 1339352408] = "MinigameFishingRightAxisX";
1977
- KeyHash2[KeyHash2["MinigameFishingRightAxisY"] = 2515726739] = "MinigameFishingRightAxisY";
1978
- KeyHash2[KeyHash2["MinigameHelp"] = 2474959016] = "MinigameHelp";
1979
- KeyHash2[KeyHash2["MinigameHelpNext"] = 2204142272] = "MinigameHelpNext";
1980
- KeyHash2[KeyHash2["MinigameHelpPrev"] = 3321180502] = "MinigameHelpPrev";
1981
- KeyHash2[KeyHash2["MinigameIncreaseBet"] = 3352005983] = "MinigameIncreaseBet";
1982
- KeyHash2[KeyHash2["MinigameLeftTrigger"] = 2126722387] = "MinigameLeftTrigger";
1983
- KeyHash2[KeyHash2["MinigameMilkingLeftAction"] = 4283116250] = "MinigameMilkingLeftAction";
1984
- KeyHash2[KeyHash2["MinigameMilkingRightAction"] = 817790194] = "MinigameMilkingRightAction";
1985
- KeyHash2[KeyHash2["MinigameNewGame"] = 1561823487] = "MinigameNewGame";
1986
- KeyHash2[KeyHash2["MinigamePlaceBet"] = 1091242798] = "MinigamePlaceBet";
1987
- KeyHash2[KeyHash2["MinigamePokerBet"] = 2844275561] = "MinigamePokerBet";
1988
- KeyHash2[KeyHash2["MinigamePokerBoardCards"] = 58012824] = "MinigamePokerBoardCards";
1989
- KeyHash2[KeyHash2["MinigamePokerCall"] = 3669618290] = "MinigamePokerCall";
1990
- KeyHash2[KeyHash2["MinigamePokerCheatLr"] = 590411031] = "MinigamePokerCheatLr";
1991
- KeyHash2[KeyHash2["MinigamePokerCheck"] = 543891591] = "MinigamePokerCheck";
1992
- KeyHash2[KeyHash2["MinigamePokerCheckFold"] = 1923731959] = "MinigamePokerCheckFold";
1993
- KeyHash2[KeyHash2["MinigamePokerCommunityCards"] = 3825383576] = "MinigamePokerCommunityCards";
1994
- KeyHash2[KeyHash2["MinigamePokerFold"] = 1236577566] = "MinigamePokerFold";
1995
- KeyHash2[KeyHash2["MinigamePokerHoleCards"] = 3266386234] = "MinigamePokerHoleCards";
1996
- KeyHash2[KeyHash2["MinigamePokerShowPossibleHands"] = 2003155412] = "MinigamePokerShowPossibleHands";
1997
- KeyHash2[KeyHash2["MinigamePokerSkip"] = 1684699026] = "MinigamePokerSkip";
1998
- KeyHash2[KeyHash2["MinigamePokerSkipTutorial"] = 3043540176] = "MinigamePokerSkipTutorial";
1999
- KeyHash2[KeyHash2["MinigamePokerYourCards"] = 4179866423] = "MinigamePokerYourCards";
2000
- KeyHash2[KeyHash2["MinigameQuit"] = 3909700512] = "MinigameQuit";
2001
- KeyHash2[KeyHash2["MinigameReplay"] = 2555528119] = "MinigameReplay";
2002
- KeyHash2[KeyHash2["MinigameRightTrigger"] = 3195582229] = "MinigameRightTrigger";
2003
- KeyHash2[KeyHash2["MoveDownOnly"] = 3531047651] = "MoveDownOnly";
2004
- KeyHash2[KeyHash2["MoveLeft"] = 1885667965] = "MoveLeft";
2005
- KeyHash2[KeyHash2["MoveRight"] = 1301263553] = "MoveRight";
2006
- KeyHash2[KeyHash2["MoveRightOnly"] = 3034867124] = "MoveRightOnly";
2007
- KeyHash2[KeyHash2["MoveBackwards"] = 4255658384] = "MoveBackwards";
2008
- KeyHash2[KeyHash2["MoveForward"] = 2412778968] = "MoveForward";
2009
- KeyHash2[KeyHash2["MpTextChatAll"] = 2535521518] = "MpTextChatAll";
2010
- KeyHash2[KeyHash2["MpTextChatCrew"] = 2168650386] = "MpTextChatCrew";
2011
- KeyHash2[KeyHash2["MpTextChatFriends"] = 1889053811] = "MpTextChatFriends";
2012
- KeyHash2[KeyHash2["MpTextChatTeam"] = 2425925021] = "MpTextChatTeam";
2013
- KeyHash2[KeyHash2["MultiplayerDeadDuel"] = 4168481912] = "MultiplayerDeadDuel";
2014
- KeyHash2[KeyHash2["MultiplayerDeadFeud"] = 3030454374] = "MultiplayerDeadFeud";
2015
- KeyHash2[KeyHash2["MultiplayerDeadInformLaw"] = 1746314126] = "MultiplayerDeadInformLaw";
2016
- KeyHash2[KeyHash2["MultiplayerDeadLeaderFeud"] = 3424188768] = "MultiplayerDeadLeaderFeud";
2017
- KeyHash2[KeyHash2["MultiplayerDeadParley"] = 1293024769] = "MultiplayerDeadParley";
2018
- KeyHash2[KeyHash2["MultiplayerDeadPressCharges"] = 3842886163] = "MultiplayerDeadPressCharges";
2019
- KeyHash2[KeyHash2["MultiplayerDeadRespawn"] = 412644179] = "MultiplayerDeadRespawn";
2020
- KeyHash2[KeyHash2["MultiplayerDeadSwitchRespawn"] = 3035797690] = "MultiplayerDeadSwitchRespawn";
2021
- KeyHash2[KeyHash2["MultiplayerInfo"] = 3895734258] = "MultiplayerInfo";
2022
- KeyHash2[KeyHash2["MultiplayerInfoPlayers"] = 2624114228] = "MultiplayerInfoPlayers";
2023
- KeyHash2[KeyHash2["MultiplayerLeaderboardScrollUd"] = 2836910667] = "MultiplayerLeaderboardScrollUd";
2024
- KeyHash2[KeyHash2["MultiplayerPredatorAbility"] = 3318694322] = "MultiplayerPredatorAbility";
2025
- KeyHash2[KeyHash2["MultiplayerRaceRespawn"] = 21798980] = "MultiplayerRaceRespawn";
2026
- KeyHash2[KeyHash2["MultiplayerSpectateHideHud"] = 2109365577] = "MultiplayerSpectateHideHud";
2027
- KeyHash2[KeyHash2["MultiplayerSpectatePlayerNext"] = 3120977554] = "MultiplayerSpectatePlayerNext";
2028
- KeyHash2[KeyHash2["MultiplayerSpectatePlayerOptions"] = 1309101798] = "MultiplayerSpectatePlayerOptions";
2029
- KeyHash2[KeyHash2["MultiplayerSpectatePlayerPrev"] = 1351794503] = "MultiplayerSpectatePlayerPrev";
2030
- KeyHash2[KeyHash2["NavDirectionNext"] = 2150849757] = "NavDirectionNext";
2031
- KeyHash2[KeyHash2["NavDirectionPrevious"] = 967525350] = "NavDirectionPrevious";
2032
- KeyHash2[KeyHash2["NavStyleHorizontal"] = 4121151387] = "NavStyleHorizontal";
2033
- KeyHash2[KeyHash2["NavStylePagePrimary"] = 2549677816] = "NavStylePagePrimary";
2034
- KeyHash2[KeyHash2["NavStyleRadial"] = 1778093002] = "NavStyleRadial";
2035
- KeyHash2[KeyHash2["NavStyleVertical"] = 531394687] = "NavStyleVertical";
2036
- KeyHash2[KeyHash2["NextCamera"] = 2139949496] = "NextCamera";
2037
- KeyHash2[KeyHash2["NextWeapon"] = 4245621804] = "NextWeapon";
2038
- KeyHash2[KeyHash2["OpenCraftingMenu"] = 1934388793] = "OpenCraftingMenu";
2039
- KeyHash2[KeyHash2["OpenEmoteWheel"] = 3803535267] = "OpenEmoteWheel";
2040
- KeyHash2[KeyHash2["OpenEmoteWheelHorse"] = 2336204382] = "OpenEmoteWheelHorse";
2041
- KeyHash2[KeyHash2["OpenJournal"] = 4085452174] = "OpenJournal";
2042
- KeyHash2[KeyHash2["OpenSatchelHorseMenu"] = 1499911466] = "OpenSatchelHorseMenu";
2043
- KeyHash2[KeyHash2["OpenSatchelMenu"] = 1287709438] = "OpenSatchelMenu";
2044
- KeyHash2[KeyHash2["OpenWheelMenu"] = 2890650865] = "OpenWheelMenu";
2045
- KeyHash2[KeyHash2["ParachuteBrakeLeft"] = 657184954] = "ParachuteBrakeLeft";
2046
- KeyHash2[KeyHash2["ParachuteBrakeRight"] = 2492153511] = "ParachuteBrakeRight";
2047
- KeyHash2[KeyHash2["ParachuteDeploy"] = 3958714456] = "ParachuteDeploy";
2048
- KeyHash2[KeyHash2["ParachuteDetach"] = 4290769209] = "ParachuteDetach";
2049
- KeyHash2[KeyHash2["ParachutePitchDownOnly"] = 2084193106] = "ParachutePitchDownOnly";
2050
- KeyHash2[KeyHash2["ParachutePitchUd"] = 4031930920] = "ParachutePitchUd";
2051
- KeyHash2[KeyHash2["ParachutePitchUpOnly"] = 146795113] = "ParachutePitchUpOnly";
2052
- KeyHash2[KeyHash2["ParachutePrecisionLanding"] = 3329603773] = "ParachutePrecisionLanding";
2053
- KeyHash2[KeyHash2["ParachuteSmoke"] = 628423344] = "ParachuteSmoke";
2054
- KeyHash2[KeyHash2["ParachuteTurnLeftOnly"] = 3301913378] = "ParachuteTurnLeftOnly";
2055
- KeyHash2[KeyHash2["ParachuteTurnLr"] = 2395545791] = "ParachuteTurnLr";
2056
- KeyHash2[KeyHash2["ParachuteTurnRightOnly"] = 735814520] = "ParachuteTurnRightOnly";
2057
- KeyHash2[KeyHash2["PcFreeLook"] = 2326399700] = "PcFreeLook";
2058
- KeyHash2[KeyHash2["Phone"] = 1291350480] = "Phone";
2059
- KeyHash2[KeyHash2["PhotoMode"] = 1007304946] = "PhotoMode";
2060
- KeyHash2[KeyHash2["PhotoModeBack"] = 789834906] = "PhotoModeBack";
2061
- KeyHash2[KeyHash2["PhotoModeChangeCamera"] = 2668016284] = "PhotoModeChangeCamera";
2062
- KeyHash2[KeyHash2["PhotoModeContrast"] = 1212117119] = "PhotoModeContrast";
2063
- KeyHash2[KeyHash2["PhotoModeContrastDownOnly"] = 813766176] = "PhotoModeContrastDownOnly";
2064
- KeyHash2[KeyHash2["PhotoModeContrastUpOnly"] = 1563285271] = "PhotoModeContrastUpOnly";
2065
- KeyHash2[KeyHash2["PhotoModeDof"] = 649703018] = "PhotoModeDof";
2066
- KeyHash2[KeyHash2["PhotoModeDofDownOnly"] = 74488305] = "PhotoModeDofDownOnly";
2067
- KeyHash2[KeyHash2["PhotoModeDofUpOnly"] = 2276489536] = "PhotoModeDofUpOnly";
2068
- KeyHash2[KeyHash2["PhotoModeExposureDown"] = 2902959525] = "PhotoModeExposureDown";
2069
- KeyHash2[KeyHash2["PhotoModeExposureLock"] = 2648739185] = "PhotoModeExposureLock";
2070
- KeyHash2[KeyHash2["PhotoModeExposureUp"] = 3327009412] = "PhotoModeExposureUp";
2071
- KeyHash2[KeyHash2["PhotoModeFilterIntensity"] = 4268610400] = "PhotoModeFilterIntensity";
2072
- KeyHash2[KeyHash2["PhotoModeFilterIntensityDown"] = 3007443975] = "PhotoModeFilterIntensityDown";
2073
- KeyHash2[KeyHash2["PhotoModeFilterIntensityUp"] = 579261547] = "PhotoModeFilterIntensityUp";
2074
- KeyHash2[KeyHash2["PhotoModeFilterNext"] = 1772064008] = "PhotoModeFilterNext";
2075
- KeyHash2[KeyHash2["PhotoModeFilterPrev"] = 1331955845] = "PhotoModeFilterPrev";
2076
- KeyHash2[KeyHash2["PhotoModeFocalLength"] = 2288695886] = "PhotoModeFocalLength";
2077
- KeyHash2[KeyHash2["PhotoModeFocalLengthDownOnly"] = 32242365] = "PhotoModeFocalLengthDownOnly";
2078
- KeyHash2[KeyHash2["PhotoModeFocalLengthUpOnly"] = 4210808426] = "PhotoModeFocalLengthUpOnly";
2079
- KeyHash2[KeyHash2["PhotoModeLenseNext"] = 2973292697] = "PhotoModeLenseNext";
2080
- KeyHash2[KeyHash2["PhotoModeLensePrev"] = 111171576] = "PhotoModeLensePrev";
2081
- KeyHash2[KeyHash2["PhotoModeMoveDownOnly"] = 1320993801] = "PhotoModeMoveDownOnly";
2082
- KeyHash2[KeyHash2["PhotoModeMoveLeftOnly"] = 823350251] = "PhotoModeMoveLeftOnly";
2083
- KeyHash2[KeyHash2["PhotoModeMoveLr"] = 1326671122] = "PhotoModeMoveLr";
2084
- KeyHash2[KeyHash2["PhotoModeMoveRightOnly"] = 1398253557] = "PhotoModeMoveRightOnly";
2085
- KeyHash2[KeyHash2["PhotoModeMoveUd"] = 3959427861] = "PhotoModeMoveUd";
2086
- KeyHash2[KeyHash2["PhotoModeMoveUpOnly"] = 828200934] = "PhotoModeMoveUpOnly";
2087
- KeyHash2[KeyHash2["PhotoModePc"] = 898989932] = "PhotoModePc";
2088
- KeyHash2[KeyHash2["PhotoModeReset"] = 2718547287] = "PhotoModeReset";
2089
- KeyHash2[KeyHash2["PhotoModeRotateLeft"] = 787094826] = "PhotoModeRotateLeft";
2090
- KeyHash2[KeyHash2["PhotoModeRotateRight"] = 2531723348] = "PhotoModeRotateRight";
2091
- KeyHash2[KeyHash2["PhotoModeSwitchMode"] = 2402476779] = "PhotoModeSwitchMode";
2092
- KeyHash2[KeyHash2["PhotoModeTakePhoto"] = 2710612679] = "PhotoModeTakePhoto";
2093
- KeyHash2[KeyHash2["PhotoModeToggleHud"] = 2140165621] = "PhotoModeToggleHud";
2094
- KeyHash2[KeyHash2["PhotoModeViewPhotos"] = 3706285415] = "PhotoModeViewPhotos";
2095
- KeyHash2[KeyHash2["PhotoModeZoomIn"] = 1535392713] = "PhotoModeZoomIn";
2096
- KeyHash2[KeyHash2["PhotoModeZoomOut"] = 592761574] = "PhotoModeZoomOut";
2097
- KeyHash2[KeyHash2["Pickup"] = 3862301326] = "Pickup";
2098
- KeyHash2[KeyHash2["PickupCarriable"] = 3945448593] = "PickupCarriable";
2099
- KeyHash2[KeyHash2["PickupCarriableFromParent"] = 2703240315] = "PickupCarriableFromParent";
2100
- KeyHash2[KeyHash2["PickupCarriable2"] = 3196425135] = "PickupCarriable2";
2101
- KeyHash2[KeyHash2["PlaceCarriableOntoParent"] = 2100455761] = "PlaceCarriableOntoParent";
2102
- KeyHash2[KeyHash2["PlayerMenu"] = 2163379861] = "PlayerMenu";
2103
- KeyHash2[KeyHash2["PrevWeapon"] = 3423630759] = "PrevWeapon";
2104
- KeyHash2[KeyHash2["PromptPageNext"] = 2365131421] = "PromptPageNext";
2105
- KeyHash2[KeyHash2["PushToTalk"] = 1271519931] = "PushToTalk";
2106
- KeyHash2[KeyHash2["QuickEquipItem"] = 1618006066] = "QuickEquipItem";
2107
- KeyHash2[KeyHash2["QuickSelectInspect"] = 4036519667] = "QuickSelectInspect";
2108
- KeyHash2[KeyHash2["QuickSelectPutAwayRod"] = 624946185] = "QuickSelectPutAwayRod";
2109
- KeyHash2[KeyHash2["QuickSelectSecondaryNavNext"] = 4047641845] = "QuickSelectSecondaryNavNext";
2110
- KeyHash2[KeyHash2["QuickSelectSecondaryNavPrev"] = 3657035799] = "QuickSelectSecondaryNavPrev";
2111
- KeyHash2[KeyHash2["QuickSelectSetForSwap"] = 3562979407] = "QuickSelectSetForSwap";
2112
- KeyHash2[KeyHash2["QuickSelectToggleShortcutItem"] = 4195035597] = "QuickSelectToggleShortcutItem";
2113
- KeyHash2[KeyHash2["QuickShortcutAbilitiesMenu"] = 2630328740] = "QuickShortcutAbilitiesMenu";
2114
- KeyHash2[KeyHash2["QuickUseItem"] = 3248005013] = "QuickUseItem";
2115
- KeyHash2[KeyHash2["Quit"] = 2391852987] = "Quit";
2116
- KeyHash2[KeyHash2["RadialMenuNavLr"] = 956909788] = "RadialMenuNavLr";
2117
- KeyHash2[KeyHash2["RadialMenuNavUd"] = 3126854559] = "RadialMenuNavUd";
2118
- KeyHash2[KeyHash2["RadialMenuSlotNavNext"] = 3877603768] = "RadialMenuSlotNavNext";
2119
- KeyHash2[KeyHash2["RadialMenuSlotNavNextAlternate"] = 2657784664] = "RadialMenuSlotNavNextAlternate";
2120
- KeyHash2[KeyHash2["RadialMenuSlotNavPrev"] = 2480304703] = "RadialMenuSlotNavPrev";
2121
- KeyHash2[KeyHash2["RadialMenuSlotNavPrevAlternate"] = 3543869630] = "RadialMenuSlotNavPrevAlternate";
2122
- KeyHash2[KeyHash2["RadioWheelLr"] = 4193938376] = "RadioWheelLr";
2123
- KeyHash2[KeyHash2["RadioWheelUd"] = 348596509] = "RadioWheelUd";
2124
- KeyHash2[KeyHash2["RegularRadar"] = 1370126901] = "RegularRadar";
2125
- KeyHash2[KeyHash2["Reload"] = 3809269511] = "Reload";
2126
- KeyHash2[KeyHash2["ReplayActionReplayCancel"] = 2474077358] = "ReplayActionReplayCancel";
2127
- KeyHash2[KeyHash2["ReplayActionReplayStart"] = 3650490631] = "ReplayActionReplayStart";
2128
- KeyHash2[KeyHash2["ReplayAdvance"] = 842703952] = "ReplayAdvance";
2129
- KeyHash2[KeyHash2["ReplayBack"] = 143424724] = "ReplayBack";
2130
- KeyHash2[KeyHash2["ReplayCameradown"] = 2717818410] = "ReplayCameradown";
2131
- KeyHash2[KeyHash2["ReplayCameraup"] = 1956577036] = "ReplayCameraup";
2132
- KeyHash2[KeyHash2["ReplayClipDelete"] = 4134751810] = "ReplayClipDelete";
2133
- KeyHash2[KeyHash2["ReplayCtrl"] = 3633006567] = "ReplayCtrl";
2134
- KeyHash2[KeyHash2["ReplayCyclemarkerleft"] = 1545734489] = "ReplayCyclemarkerleft";
2135
- KeyHash2[KeyHash2["ReplayCyclemarkerright"] = 3332040601] = "ReplayCyclemarkerright";
2136
- KeyHash2[KeyHash2["ReplayEndpoint"] = 1324833725] = "ReplayEndpoint";
2137
- KeyHash2[KeyHash2["ReplayFfwd"] = 1620715496] = "ReplayFfwd";
2138
- KeyHash2[KeyHash2["ReplayFovdecrease"] = 730388225] = "ReplayFovdecrease";
2139
- KeyHash2[KeyHash2["ReplayFovincrease"] = 1495638285] = "ReplayFovincrease";
2140
- KeyHash2[KeyHash2["ReplayHidehud"] = 2118622331] = "ReplayHidehud";
2141
- KeyHash2[KeyHash2["ReplayMarkerDelete"] = 3352479003] = "ReplayMarkerDelete";
2142
- KeyHash2[KeyHash2["ReplayNewmarker"] = 4157004328] = "ReplayNewmarker";
2143
- KeyHash2[KeyHash2["ReplayPause"] = 137443250] = "ReplayPause";
2144
- KeyHash2[KeyHash2["ReplayPreview"] = 1487672149] = "ReplayPreview";
2145
- KeyHash2[KeyHash2["ReplayPreviewAudio"] = 2030182936] = "ReplayPreviewAudio";
2146
- KeyHash2[KeyHash2["ReplayRecord"] = 2912590972] = "ReplayRecord";
2147
- KeyHash2[KeyHash2["ReplayRecordingStart"] = 4247310580] = "ReplayRecordingStart";
2148
- KeyHash2[KeyHash2["ReplayRecordingStop"] = 3675711234] = "ReplayRecordingStop";
2149
- KeyHash2[KeyHash2["ReplayRestart"] = 2176367773] = "ReplayRestart";
2150
- KeyHash2[KeyHash2["ReplayRewind"] = 3241384497] = "ReplayRewind";
2151
- KeyHash2[KeyHash2["ReplaySave"] = 3955623557] = "ReplaySave";
2152
- KeyHash2[KeyHash2["ReplaySaveSnapshot"] = 4025257950] = "ReplaySaveSnapshot";
2153
- KeyHash2[KeyHash2["ReplayScreenshot"] = 1451208500] = "ReplayScreenshot";
2154
- KeyHash2[KeyHash2["ReplayShowhotkey"] = 3953304606] = "ReplayShowhotkey";
2155
- KeyHash2[KeyHash2["ReplayStartStopRecording"] = 3701905294] = "ReplayStartStopRecording";
2156
- KeyHash2[KeyHash2["ReplayStartStopRecordingSecondary"] = 2308024075] = "ReplayStartStopRecordingSecondary";
2157
- KeyHash2[KeyHash2["ReplayStartpoint"] = 1571794127] = "ReplayStartpoint";
2158
- KeyHash2[KeyHash2["ReplayTimelineDuplicateClip"] = 1095147571] = "ReplayTimelineDuplicateClip";
2159
- KeyHash2[KeyHash2["ReplayTimelinePickupClip"] = 3527757712] = "ReplayTimelinePickupClip";
2160
- KeyHash2[KeyHash2["ReplayTimelinePlaceClip"] = 1618112336] = "ReplayTimelinePlaceClip";
2161
- KeyHash2[KeyHash2["ReplayTimelineSave"] = 1708592797] = "ReplayTimelineSave";
2162
- KeyHash2[KeyHash2["ReplayToggleTimeline"] = 4167211273] = "ReplayToggleTimeline";
2163
- KeyHash2[KeyHash2["ReplayToggletime"] = 3824914867] = "ReplayToggletime";
2164
- KeyHash2[KeyHash2["ReplayToggletips"] = 3366051360] = "ReplayToggletips";
2165
- KeyHash2[KeyHash2["ReplayTools"] = 1444557703] = "ReplayTools";
2166
- KeyHash2[KeyHash2["RevealHud"] = 3481947850] = "RevealHud";
2167
- KeyHash2[KeyHash2["Revive"] = 1139971484] = "Revive";
2168
- KeyHash2[KeyHash2["SaddleTransfer"] = 1940454787] = "SaddleTransfer";
2169
- KeyHash2[KeyHash2["SaveReplayClip"] = 1530591715] = "SaveReplayClip";
2170
- KeyHash2[KeyHash2["ScriptLb"] = 3861168226] = "ScriptLb";
2171
- KeyHash2[KeyHash2["ScriptLeftAxisX"] = 529461124] = "ScriptLeftAxisX";
2172
- KeyHash2[KeyHash2["ScriptLeftAxisY"] = 1410914475] = "ScriptLeftAxisY";
2173
- KeyHash2[KeyHash2["ScriptLs"] = 2866661749] = "ScriptLs";
2174
- KeyHash2[KeyHash2["ScriptLt"] = 724650526] = "ScriptLt";
2175
- KeyHash2[KeyHash2["ScriptPadDown"] = 2983875956] = "ScriptPadDown";
2176
- KeyHash2[KeyHash2["ScriptPadLeft"] = 452468126] = "ScriptPadLeft";
2177
- KeyHash2[KeyHash2["ScriptPadRight"] = 2192160600] = "ScriptPadRight";
2178
- KeyHash2[KeyHash2["ScriptPadUp"] = 230775517] = "ScriptPadUp";
2179
- KeyHash2[KeyHash2["ScriptRb"] = 2447975196] = "ScriptRb";
2180
- KeyHash2[KeyHash2["ScriptRdown"] = 932393831] = "ScriptRdown";
2181
- KeyHash2[KeyHash2["ScriptRightAxisX"] = 2797038057] = "ScriptRightAxisX";
2182
- KeyHash2[KeyHash2["ScriptRightAxisY"] = 665185216] = "ScriptRightAxisY";
2183
- KeyHash2[KeyHash2["ScriptRleft"] = 2765816920] = "ScriptRleft";
2184
- KeyHash2[KeyHash2["ScriptRright"] = 581154816] = "ScriptRright";
2185
- KeyHash2[KeyHash2["ScriptRs"] = 3494813666] = "ScriptRs";
2186
- KeyHash2[KeyHash2["ScriptRt"] = 652856599] = "ScriptRt";
2187
- KeyHash2[KeyHash2["ScriptRup"] = 1998417427] = "ScriptRup";
2188
- KeyHash2[KeyHash2["ScriptSelect"] = 3362922761] = "ScriptSelect";
2189
- KeyHash2[KeyHash2["ScriptedFlyLr"] = 4044430922] = "ScriptedFlyLr";
2190
- KeyHash2[KeyHash2["ScriptedFlyUd"] = 2931077598] = "ScriptedFlyUd";
2191
- KeyHash2[KeyHash2["ScriptedFlyZdown"] = 2623406860] = "ScriptedFlyZdown";
2192
- KeyHash2[KeyHash2["ScriptedFlyZup"] = 1671143369] = "ScriptedFlyZup";
2193
- KeyHash2[KeyHash2["SecondarySpecialAbilitySecondary"] = 2166311450] = "SecondarySpecialAbilitySecondary";
2194
- KeyHash2[KeyHash2["SelectCharacterFranklin"] = 2391476427] = "SelectCharacterFranklin";
2195
- KeyHash2[KeyHash2["SelectCharacterMichael"] = 3935459e3] = "SelectCharacterMichael";
2196
- KeyHash2[KeyHash2["SelectCharacterMultiplayer"] = 3753030584] = "SelectCharacterMultiplayer";
2197
- KeyHash2[KeyHash2["SelectCharacterTrevor"] = 2953625747] = "SelectCharacterTrevor";
2198
- KeyHash2[KeyHash2["SelectItemWheel"] = 527275493] = "SelectItemWheel";
2199
- KeyHash2[KeyHash2["SelectNextWeapon"] = 3498323679] = "SelectNextWeapon";
2200
- KeyHash2[KeyHash2["SelectNextWheel"] = 2011525043] = "SelectNextWheel";
2201
- KeyHash2[KeyHash2["SelectPrevWeapon"] = 4153242423] = "SelectPrevWeapon";
2202
- KeyHash2[KeyHash2["SelectQuickselectDualwield"] = 484891115] = "SelectQuickselectDualwield";
2203
- KeyHash2[KeyHash2["SelectQuickselectMeleeNoUnarmed"] = 2875386263] = "SelectQuickselectMeleeNoUnarmed";
2204
- KeyHash2[KeyHash2["SelectQuickselectPrimaryLongarm"] = 1110987810] = "SelectQuickselectPrimaryLongarm";
2205
- KeyHash2[KeyHash2["SelectQuickselectSecondaryLongarm"] = 2717770406] = "SelectQuickselectSecondaryLongarm";
2206
- KeyHash2[KeyHash2["SelectQuickselectSidearmsLeft"] = 3874886372] = "SelectQuickselectSidearmsLeft";
2207
- KeyHash2[KeyHash2["SelectQuickselectSidearmsRight"] = 1330236492] = "SelectQuickselectSidearmsRight";
2208
- KeyHash2[KeyHash2["SelectQuickselectThrown"] = 2956628283] = "SelectQuickselectThrown";
2209
- KeyHash2[KeyHash2["SelectQuickselectUnarmed"] = 2409602648] = "SelectQuickselectUnarmed";
2210
- KeyHash2[KeyHash2["SelectRadarMode"] = 255439828] = "SelectRadarMode";
2211
- KeyHash2[KeyHash2["SelectWeaponAutoRifle"] = 99527120] = "SelectWeaponAutoRifle";
2212
- KeyHash2[KeyHash2["SelectWeaponHandgun"] = 407462115] = "SelectWeaponHandgun";
2213
- KeyHash2[KeyHash2["SelectWeaponHeavy"] = 1024882115] = "SelectWeaponHeavy";
2214
- KeyHash2[KeyHash2["SelectWeaponMelee"] = 278816850] = "SelectWeaponMelee";
2215
- KeyHash2[KeyHash2["SelectWeaponShotgun"] = 1993599493] = "SelectWeaponShotgun";
2216
- KeyHash2[KeyHash2["SelectWeaponSmg"] = 3471948616] = "SelectWeaponSmg";
2217
- KeyHash2[KeyHash2["SelectWeaponSniper"] = 2529566687] = "SelectWeaponSniper";
2218
- KeyHash2[KeyHash2["SelectWeaponSpecial"] = 3290353400] = "SelectWeaponSpecial";
2219
- KeyHash2[KeyHash2["SelectWeaponUnarmed"] = 527362831] = "SelectWeaponUnarmed";
2220
- KeyHash2[KeyHash2["ShopBounty"] = 3555522607] = "ShopBounty";
2221
- KeyHash2[KeyHash2["ShopBuy"] = 3757576953] = "ShopBuy";
2222
- KeyHash2[KeyHash2["ShopChangeCurrency"] = 2432309675] = "ShopChangeCurrency";
2223
- KeyHash2[KeyHash2["ShopInspect"] = 1584545164] = "ShopInspect";
2224
- KeyHash2[KeyHash2["ShopSell"] = 1829968318] = "ShopSell";
2225
- KeyHash2[KeyHash2["ShopSpecial"] = 3927248498] = "ShopSpecial";
2226
- KeyHash2[KeyHash2["SimpleRadar"] = 1609505645] = "SimpleRadar";
2227
- KeyHash2[KeyHash2["SkipCutscene"] = 3452232937] = "SkipCutscene";
2228
- KeyHash2[KeyHash2["SniperZoom"] = 2059168358] = "SniperZoom";
2229
- KeyHash2[KeyHash2["SniperZoomIn"] = 3830876833] = "SniperZoomIn";
2230
- KeyHash2[KeyHash2["SniperZoomInAlternate"] = 983078849] = "SniperZoomInAlternate";
2231
- KeyHash2[KeyHash2["SniperZoomInOnly"] = 2780679484] = "SniperZoomInOnly";
2232
- KeyHash2[KeyHash2["SniperZoomInSecondary"] = 1810481671] = "SniperZoomInSecondary";
2233
- KeyHash2[KeyHash2["SniperZoomOut"] = 3826049950] = "SniperZoomOut";
2234
- KeyHash2[KeyHash2["SniperZoomOutAlternate"] = 3162637449] = "SniperZoomOutAlternate";
2235
- KeyHash2[KeyHash2["SniperZoomOutOnly"] = 1124438954] = "SniperZoomOutOnly";
2236
- KeyHash2[KeyHash2["SniperZoomOutSecondary"] = 2323351603] = "SniperZoomOutSecondary";
2237
- KeyHash2[KeyHash2["SpecialAbility"] = 3470863184] = "SpecialAbility";
2238
- KeyHash2[KeyHash2["SpecialAbilityAction"] = 516589524] = "SpecialAbilityAction";
2239
- KeyHash2[KeyHash2["SpecialAbilityPc"] = 1390807691] = "SpecialAbilityPc";
2240
- KeyHash2[KeyHash2["SpecialAbilitySecondary"] = 1663574939] = "SpecialAbilitySecondary";
2241
- KeyHash2[KeyHash2["Sprint"] = 2415687126] = "Sprint";
2242
- KeyHash2[KeyHash2["StealGeneric"] = 1187312502] = "StealGeneric";
2243
- KeyHash2[KeyHash2["StickyFeedAccept"] = 4108143719] = "StickyFeedAccept";
2244
- KeyHash2[KeyHash2["StickyFeedCancel"] = 217814591] = "StickyFeedCancel";
2245
- KeyHash2[KeyHash2["StickyFeedX"] = 3172832417] = "StickyFeedX";
2246
- KeyHash2[KeyHash2["StickyFeedY"] = 3361450781] = "StickyFeedY";
2247
- KeyHash2[KeyHash2["StopLeadingAnimal"] = 2031395805] = "StopLeadingAnimal";
2248
- KeyHash2[KeyHash2["Surrender"] = 3683477944] = "Surrender";
2249
- KeyHash2[KeyHash2["SwitchFiringMode"] = 4006698776] = "SwitchFiringMode";
2250
- KeyHash2[KeyHash2["SwitchShoulder"] = 2189336296] = "SwitchShoulder";
2251
- KeyHash2[KeyHash2["Sy"] = 3850483206] = "Sy";
2252
- KeyHash2[KeyHash2["TakeGeneric"] = 1436730387] = "TakeGeneric";
2253
- KeyHash2[KeyHash2["Talk"] = 2110430325] = "Talk";
2254
- KeyHash2[KeyHash2["TextChatChannelAll"] = 3224549060] = "TextChatChannelAll";
2255
- KeyHash2[KeyHash2["TextChatChannelTeam"] = 3995922755] = "TextChatChannelTeam";
2256
- KeyHash2[KeyHash2["ThrowGrenade"] = 184129944] = "ThrowGrenade";
2257
- KeyHash2[KeyHash2["TithingDecreaseAmount"] = 3472841747] = "TithingDecreaseAmount";
2258
- KeyHash2[KeyHash2["TithingIncreaseAmount"] = 619936437] = "TithingIncreaseAmount";
2259
- KeyHash2[KeyHash2["ToggleHolster"] = 2990079499] = "ToggleHolster";
2260
- KeyHash2[KeyHash2["ToggleWeaponScope"] = 813099388] = "ToggleWeaponScope";
2261
- KeyHash2[KeyHash2["TwirlPistol"] = 2475507825] = "TwirlPistol";
2262
- KeyHash2[KeyHash2["VehAccelerate"] = 1537201378] = "VehAccelerate";
2263
- KeyHash2[KeyHash2["VehAim"] = 3620404463] = "VehAim";
2264
- KeyHash2[KeyHash2["VehAttack"] = 4096983096] = "VehAttack";
2265
- KeyHash2[KeyHash2["VehAttack2"] = 4056105402] = "VehAttack2";
2266
- KeyHash2[KeyHash2["VehBoatAccelerate"] = 3007440914] = "VehBoatAccelerate";
2267
- KeyHash2[KeyHash2["VehBoatAim"] = 2465591326] = "VehBoatAim";
2268
- KeyHash2[KeyHash2["VehBoatAttack"] = 1751579194] = "VehBoatAttack";
2269
- KeyHash2[KeyHash2["VehBoatAttack2"] = 2271254249] = "VehBoatAttack2";
2270
- KeyHash2[KeyHash2["VehBoatBrake"] = 1116561209] = "VehBoatBrake";
2271
- KeyHash2[KeyHash2["VehBoatTurnLeftOnly"] = 1542290577] = "VehBoatTurnLeftOnly";
2272
- KeyHash2[KeyHash2["VehBoatTurnLr"] = 3638545075] = "VehBoatTurnLr";
2273
- KeyHash2[KeyHash2["VehBoatTurnRightOnly"] = 4185394683] = "VehBoatTurnRightOnly";
2274
- KeyHash2[KeyHash2["VehBrake"] = 1847550875] = "VehBrake";
2275
- KeyHash2[KeyHash2["VehCarAccelerate"] = 3119858864] = "VehCarAccelerate";
2276
- KeyHash2[KeyHash2["VehCarAim"] = 1735899200] = "VehCarAim";
2277
- KeyHash2[KeyHash2["VehCarAttack"] = 1433596806] = "VehCarAttack";
2278
- KeyHash2[KeyHash2["VehCarAttack2"] = 1534474967] = "VehCarAttack2";
2279
- KeyHash2[KeyHash2["VehCarBrake"] = 3515382591] = "VehCarBrake";
2280
- KeyHash2[KeyHash2["VehCarTurnLeftOnly"] = 131163468] = "VehCarTurnLeftOnly";
2281
- KeyHash2[KeyHash2["VehCarTurnLr"] = 1003720003] = "VehCarTurnLr";
2282
- KeyHash2[KeyHash2["VehCarTurnRightOnly"] = 1849439817] = "VehCarTurnRightOnly";
2283
- KeyHash2[KeyHash2["VehDraftAccelerate"] = 3919391493] = "VehDraftAccelerate";
2284
- KeyHash2[KeyHash2["VehDraftAim"] = 3184886541] = "VehDraftAim";
2285
- KeyHash2[KeyHash2["VehDraftAttack"] = 4094341528] = "VehDraftAttack";
2286
- KeyHash2[KeyHash2["VehDraftAttack2"] = 2288980701] = "VehDraftAttack2";
2287
- KeyHash2[KeyHash2["VehDraftBrake"] = 3595101325] = "VehDraftBrake";
2288
- KeyHash2[KeyHash2["VehDraftMoveDownOnly"] = 625557171] = "VehDraftMoveDownOnly";
2289
- KeyHash2[KeyHash2["VehDraftMoveUd"] = 593059050] = "VehDraftMoveUd";
2290
- KeyHash2[KeyHash2["VehDraftMoveUpOnly"] = 698737950] = "VehDraftMoveUpOnly";
2291
- KeyHash2[KeyHash2["VehDraftSwitchDrivers"] = 1891137604] = "VehDraftSwitchDrivers";
2292
- KeyHash2[KeyHash2["VehDraftTurnLeftOnly"] = 428538980] = "VehDraftTurnLeftOnly";
2293
- KeyHash2[KeyHash2["VehDraftTurnLr"] = 2816454282] = "VehDraftTurnLr";
2294
- KeyHash2[KeyHash2["VehDraftTurnRightOnly"] = 1580670631] = "VehDraftTurnRightOnly";
2295
- KeyHash2[KeyHash2["VehDriveLook"] = 2719055002] = "VehDriveLook";
2296
- KeyHash2[KeyHash2["VehDriveLook2"] = 1437336805] = "VehDriveLook2";
2297
- KeyHash2[KeyHash2["VehDropProjectile"] = 3323335142] = "VehDropProjectile";
2298
- KeyHash2[KeyHash2["VehDuck"] = 1530302706] = "VehDuck";
2299
- KeyHash2[KeyHash2["VehExit"] = 4277844404] = "VehExit";
2300
- KeyHash2[KeyHash2["VehFlyAttack"] = 494000042] = "VehFlyAttack";
2301
- KeyHash2[KeyHash2["VehFlyAttackCamera"] = 800734987] = "VehFlyAttackCamera";
2302
- KeyHash2[KeyHash2["VehFlyAttack2"] = 1300436092] = "VehFlyAttack2";
2303
- KeyHash2[KeyHash2["VehFlyDuck"] = 931795191] = "VehFlyDuck";
2304
- KeyHash2[KeyHash2["VehFlyMouseControlOverride"] = 1821905061] = "VehFlyMouseControlOverride";
2305
- KeyHash2[KeyHash2["VehFlyPitchDownOnly"] = 256784031] = "VehFlyPitchDownOnly";
2306
- KeyHash2[KeyHash2["VehFlyPitchUd"] = 3867024983] = "VehFlyPitchUd";
2307
- KeyHash2[KeyHash2["VehFlyPitchUpOnly"] = 1652603418] = "VehFlyPitchUpOnly";
2308
- KeyHash2[KeyHash2["VehFlyRollLeftOnly"] = 1459113632] = "VehFlyRollLeftOnly";
2309
- KeyHash2[KeyHash2["VehFlyRollLr"] = 1015723376] = "VehFlyRollLr";
2310
- KeyHash2[KeyHash2["VehFlyRollRightOnly"] = 2271949665] = "VehFlyRollRightOnly";
2311
- KeyHash2[KeyHash2["VehFlySelectNextWeapon"] = 619266713] = "VehFlySelectNextWeapon";
2312
- KeyHash2[KeyHash2["VehFlySelectPrevWeapon"] = 3235411173] = "VehFlySelectPrevWeapon";
2313
- KeyHash2[KeyHash2["VehFlySelectTargetLeft"] = 813679809] = "VehFlySelectTargetLeft";
2314
- KeyHash2[KeyHash2["VehFlySelectTargetRight"] = 1391615126] = "VehFlySelectTargetRight";
2315
- KeyHash2[KeyHash2["VehFlyThrottleDown"] = 139329429] = "VehFlyThrottleDown";
2316
- KeyHash2[KeyHash2["VehFlyThrottleUp"] = 1915927219] = "VehFlyThrottleUp";
2317
- KeyHash2[KeyHash2["VehFlyUndercarriage"] = 4262454552] = "VehFlyUndercarriage";
2318
- KeyHash2[KeyHash2["VehFlyVerticalFlightMode"] = 3810754601] = "VehFlyVerticalFlightMode";
2319
- KeyHash2[KeyHash2["VehFlyYawLeft"] = 827890385] = "VehFlyYawLeft";
2320
- KeyHash2[KeyHash2["VehFlyYawRight"] = 3172220870] = "VehFlyYawRight";
2321
- KeyHash2[KeyHash2["VehGrapplingHook"] = 3112544862] = "VehGrapplingHook";
2322
- KeyHash2[KeyHash2["VehGunLr"] = 3069437182] = "VehGunLr";
2323
- KeyHash2[KeyHash2["VehGunUd"] = 1210409198] = "VehGunUd";
2324
- KeyHash2[KeyHash2["VehHandbrake"] = 1708280984] = "VehHandbrake";
2325
- KeyHash2[KeyHash2["VehHandbrakeAlt"] = 3462828013] = "VehHandbrakeAlt";
2326
- KeyHash2[KeyHash2["VehHandcartAccelerate"] = 4281739004] = "VehHandcartAccelerate";
2327
- KeyHash2[KeyHash2["VehHandcartBrake"] = 762959882] = "VehHandcartBrake";
2328
- KeyHash2[KeyHash2["VehHeadlight"] = 4046460518] = "VehHeadlight";
2329
- KeyHash2[KeyHash2["VehHorn"] = 1671483992] = "VehHorn";
2330
- KeyHash2[KeyHash2["VehJump"] = 2857810214] = "VehJump";
2331
- KeyHash2[KeyHash2["VehLookBehind"] = 3404312599] = "VehLookBehind";
2332
- KeyHash2[KeyHash2["VehMouseControlOverride"] = 969714645] = "VehMouseControlOverride";
2333
- KeyHash2[KeyHash2["VehMoveDownOnly"] = 383204893] = "VehMoveDownOnly";
2334
- KeyHash2[KeyHash2["VehMoveLeftOnly"] = 2650097414] = "VehMoveLeftOnly";
2335
- KeyHash2[KeyHash2["VehMoveLr"] = 4058154284] = "VehMoveLr";
2336
- KeyHash2[KeyHash2["VehMoveRightOnly"] = 2544434584] = "VehMoveRightOnly";
2337
- KeyHash2[KeyHash2["VehMoveUd"] = 2323759116] = "VehMoveUd";
2338
- KeyHash2[KeyHash2["VehMoveUpOnly"] = 3736960758] = "VehMoveUpOnly";
2339
- KeyHash2[KeyHash2["VehNextRadio"] = 585168871] = "VehNextRadio";
2340
- KeyHash2[KeyHash2["VehNextRadioTrack"] = 4160368092] = "VehNextRadioTrack";
2341
- KeyHash2[KeyHash2["VehPassengerAim"] = 3995600080] = "VehPassengerAim";
2342
- KeyHash2[KeyHash2["VehPassengerAttack"] = 665666611] = "VehPassengerAttack";
2343
- KeyHash2[KeyHash2["VehPrevRadio"] = 2542128659] = "VehPrevRadio";
2344
- KeyHash2[KeyHash2["VehPrevRadioTrack"] = 177521919] = "VehPrevRadioTrack";
2345
- KeyHash2[KeyHash2["VehPushbikeFrontBrake"] = 1482593325] = "VehPushbikeFrontBrake";
2346
- KeyHash2[KeyHash2["VehPushbikePedal"] = 4253901991] = "VehPushbikePedal";
2347
- KeyHash2[KeyHash2["VehPushbikeRearBrake"] = 4174098357] = "VehPushbikeRearBrake";
2348
- KeyHash2[KeyHash2["VehPushbikeSprint"] = 4030652753] = "VehPushbikeSprint";
2349
- KeyHash2[KeyHash2["VehRadioWheel"] = 1226157066] = "VehRadioWheel";
2350
- KeyHash2[KeyHash2["VehRoof"] = 1048377764] = "VehRoof";
2351
- KeyHash2[KeyHash2["VehSelectNextWeapon"] = 2291819119] = "VehSelectNextWeapon";
2352
- KeyHash2[KeyHash2["VehSelectPrevWeapon"] = 211270343] = "VehSelectPrevWeapon";
2353
- KeyHash2[KeyHash2["VehShuffle"] = 3339204504] = "VehShuffle";
2354
- KeyHash2[KeyHash2["VehSlowmoDownOnly"] = 1680728148] = "VehSlowmoDownOnly";
2355
- KeyHash2[KeyHash2["VehSlowmoUd"] = 4059680038] = "VehSlowmoUd";
2356
- KeyHash2[KeyHash2["VehSlowmoUpOnly"] = 731389775] = "VehSlowmoUpOnly";
2357
- KeyHash2[KeyHash2["VehSpecial"] = 1228478939] = "VehSpecial";
2358
- KeyHash2[KeyHash2["VehSpecialAbilityFranklin"] = 1589851512] = "VehSpecialAbilityFranklin";
2359
- KeyHash2[KeyHash2["VehStuntUd"] = 1252087310] = "VehStuntUd";
2360
- KeyHash2[KeyHash2["VehSubAscend"] = 3617136500] = "VehSubAscend";
2361
- KeyHash2[KeyHash2["VehSubDescend"] = 2102517284] = "VehSubDescend";
2362
- KeyHash2[KeyHash2["VehSubMouseControlOverride"] = 749679230] = "VehSubMouseControlOverride";
2363
- KeyHash2[KeyHash2["VehSubPitchDownOnly"] = 3123520170] = "VehSubPitchDownOnly";
2364
- KeyHash2[KeyHash2["VehSubPitchUd"] = 1184686705] = "VehSubPitchUd";
2365
- KeyHash2[KeyHash2["VehSubPitchUpOnly"] = 4193191722] = "VehSubPitchUpOnly";
2366
- KeyHash2[KeyHash2["VehSubThrottleDown"] = 4122136315] = "VehSubThrottleDown";
2367
- KeyHash2[KeyHash2["VehSubThrottleUp"] = 3532407919] = "VehSubThrottleUp";
2368
- KeyHash2[KeyHash2["VehSubTurnHardLeft"] = 1679904073] = "VehSubTurnHardLeft";
2369
- KeyHash2[KeyHash2["VehSubTurnHardRight"] = 2756448131] = "VehSubTurnHardRight";
2370
- KeyHash2[KeyHash2["VehSubTurnLeftOnly"] = 1156046995] = "VehSubTurnLeftOnly";
2371
- KeyHash2[KeyHash2["VehSubTurnLr"] = 1652311577] = "VehSubTurnLr";
2372
- KeyHash2[KeyHash2["VehSubTurnRightOnly"] = 3884603964] = "VehSubTurnRightOnly";
2373
- KeyHash2[KeyHash2["VehTraversal"] = 1939694177] = "VehTraversal";
2374
- KeyHash2[KeyHash2["WeaponInspectZoom"] = 3306247227] = "WeaponInspectZoom";
2375
- KeyHash2[KeyHash2["WeaponSpecial"] = 1933115891] = "WeaponSpecial";
2376
- KeyHash2[KeyHash2["WeaponSpecialTwo"] = 1354373751] = "WeaponSpecialTwo";
2377
- KeyHash2[KeyHash2["Whistle"] = 613911080] = "Whistle";
2378
- KeyHash2[KeyHash2["WhistleHorseback"] = 3890975109] = "WhistleHorseback";
2379
- return KeyHash2;
2380
- })(KeyHash || {});
2381
-
2382
- // src/redm/enums/RawKeys.ts
2383
- var RawKeys = /* @__PURE__ */ ((RawKeys2) => {
2384
- RawKeys2[RawKeys2["LeftMouseBtn"] = 1] = "LeftMouseBtn";
2385
- RawKeys2[RawKeys2["RightMouseBtn"] = 2] = "RightMouseBtn";
2386
- RawKeys2[RawKeys2["CtrlBrkPrcs"] = 3] = "CtrlBrkPrcs";
2387
- RawKeys2[RawKeys2["MidMouseBtn"] = 4] = "MidMouseBtn";
2388
- RawKeys2[RawKeys2["ThumbForward"] = 5] = "ThumbForward";
2389
- RawKeys2[RawKeys2["ThumbBack"] = 6] = "ThumbBack";
2390
- RawKeys2[RawKeys2["BackSpace"] = 8] = "BackSpace";
2391
- RawKeys2[RawKeys2["Tab"] = 9] = "Tab";
2392
- RawKeys2[RawKeys2["Clear"] = 12] = "Clear";
2393
- RawKeys2[RawKeys2["Enter"] = 13] = "Enter";
2394
- RawKeys2[RawKeys2["Shift"] = 16] = "Shift";
2395
- RawKeys2[RawKeys2["Control"] = 17] = "Control";
2396
- RawKeys2[RawKeys2["Alt"] = 18] = "Alt";
2397
- RawKeys2[RawKeys2["Pause"] = 19] = "Pause";
2398
- RawKeys2[RawKeys2["CapsLock"] = 20] = "CapsLock";
2399
- RawKeys2[RawKeys2["Kana"] = 21] = "Kana";
2400
- RawKeys2[RawKeys2["Hangeul"] = 21] = "Hangeul";
2401
- RawKeys2[RawKeys2["Hangul"] = 21] = "Hangul";
2402
- RawKeys2[RawKeys2["Junju"] = 23] = "Junju";
2403
- RawKeys2[RawKeys2["Final"] = 24] = "Final";
2404
- RawKeys2[RawKeys2["Hanja"] = 25] = "Hanja";
2405
- RawKeys2[RawKeys2["Kanji"] = 25] = "Kanji";
2406
- RawKeys2[RawKeys2["Escape"] = 27] = "Escape";
2407
- RawKeys2[RawKeys2["Convert"] = 28] = "Convert";
2408
- RawKeys2[RawKeys2["NonConvert"] = 29] = "NonConvert";
2409
- RawKeys2[RawKeys2["Accept"] = 30] = "Accept";
2410
- RawKeys2[RawKeys2["ModeChange"] = 31] = "ModeChange";
2411
- RawKeys2[RawKeys2["Space"] = 32] = "Space";
2412
- RawKeys2[RawKeys2["PageUp"] = 33] = "PageUp";
2413
- RawKeys2[RawKeys2["PageDown"] = 34] = "PageDown";
2414
- RawKeys2[RawKeys2["End"] = 35] = "End";
2415
- RawKeys2[RawKeys2["Home"] = 36] = "Home";
2416
- RawKeys2[RawKeys2["LeftArrow"] = 37] = "LeftArrow";
2417
- RawKeys2[RawKeys2["UpArrow"] = 38] = "UpArrow";
2418
- RawKeys2[RawKeys2["RightArrow"] = 39] = "RightArrow";
2419
- RawKeys2[RawKeys2["DownArrow"] = 40] = "DownArrow";
2420
- RawKeys2[RawKeys2["Select"] = 41] = "Select";
2421
- RawKeys2[RawKeys2["Print"] = 42] = "Print";
2422
- RawKeys2[RawKeys2["Execute"] = 43] = "Execute";
2423
- RawKeys2[RawKeys2["PrintScreen"] = 44] = "PrintScreen";
2424
- RawKeys2[RawKeys2["Inser"] = 45] = "Inser";
2425
- RawKeys2[RawKeys2["Delete"] = 46] = "Delete";
2426
- RawKeys2[RawKeys2["Help"] = 47] = "Help";
2427
- RawKeys2[RawKeys2["Num0"] = 48] = "Num0";
2428
- RawKeys2[RawKeys2["Num1"] = 49] = "Num1";
2429
- RawKeys2[RawKeys2["Num2"] = 50] = "Num2";
2430
- RawKeys2[RawKeys2["Num3"] = 51] = "Num3";
2431
- RawKeys2[RawKeys2["Num4"] = 52] = "Num4";
2432
- RawKeys2[RawKeys2["Num5"] = 53] = "Num5";
2433
- RawKeys2[RawKeys2["Num6"] = 54] = "Num6";
2434
- RawKeys2[RawKeys2["Num7"] = 55] = "Num7";
2435
- RawKeys2[RawKeys2["Num8"] = 56] = "Num8";
2436
- RawKeys2[RawKeys2["Num9"] = 57] = "Num9";
2437
- RawKeys2[RawKeys2["A"] = 65] = "A";
2438
- RawKeys2[RawKeys2["B"] = 66] = "B";
2439
- RawKeys2[RawKeys2["C"] = 67] = "C";
2440
- RawKeys2[RawKeys2["D"] = 68] = "D";
2441
- RawKeys2[RawKeys2["E"] = 69] = "E";
2442
- RawKeys2[RawKeys2["F"] = 70] = "F";
2443
- RawKeys2[RawKeys2["G"] = 71] = "G";
2444
- RawKeys2[RawKeys2["H"] = 72] = "H";
2445
- RawKeys2[RawKeys2["I"] = 73] = "I";
2446
- RawKeys2[RawKeys2["J"] = 74] = "J";
2447
- RawKeys2[RawKeys2["K"] = 75] = "K";
2448
- RawKeys2[RawKeys2["L"] = 76] = "L";
2449
- RawKeys2[RawKeys2["M"] = 77] = "M";
2450
- RawKeys2[RawKeys2["N"] = 78] = "N";
2451
- RawKeys2[RawKeys2["O"] = 79] = "O";
2452
- RawKeys2[RawKeys2["P"] = 80] = "P";
2453
- RawKeys2[RawKeys2["Q"] = 81] = "Q";
2454
- RawKeys2[RawKeys2["R"] = 82] = "R";
2455
- RawKeys2[RawKeys2["S"] = 83] = "S";
2456
- RawKeys2[RawKeys2["T"] = 84] = "T";
2457
- RawKeys2[RawKeys2["U"] = 85] = "U";
2458
- RawKeys2[RawKeys2["V"] = 86] = "V";
2459
- RawKeys2[RawKeys2["W"] = 87] = "W";
2460
- RawKeys2[RawKeys2["X"] = 88] = "X";
2461
- RawKeys2[RawKeys2["Y"] = 89] = "Y";
2462
- RawKeys2[RawKeys2["Z"] = 90] = "Z";
2463
- RawKeys2[RawKeys2["LeftWin"] = 91] = "LeftWin";
2464
- RawKeys2[RawKeys2["RightWin"] = 92] = "RightWin";
2465
- RawKeys2[RawKeys2["Apps"] = 93] = "Apps";
2466
- RawKeys2[RawKeys2["Sleep"] = 95] = "Sleep";
2467
- RawKeys2[RawKeys2["Numpad0"] = 96] = "Numpad0";
2468
- RawKeys2[RawKeys2["Numpad1"] = 97] = "Numpad1";
2469
- RawKeys2[RawKeys2["Numpad2"] = 98] = "Numpad2";
2470
- RawKeys2[RawKeys2["Numpad3"] = 99] = "Numpad3";
2471
- RawKeys2[RawKeys2["Numpad4"] = 100] = "Numpad4";
2472
- RawKeys2[RawKeys2["Numpad5"] = 101] = "Numpad5";
2473
- RawKeys2[RawKeys2["Numpad6"] = 102] = "Numpad6";
2474
- RawKeys2[RawKeys2["Numpad7"] = 103] = "Numpad7";
2475
- RawKeys2[RawKeys2["Numpad8"] = 104] = "Numpad8";
2476
- RawKeys2[RawKeys2["Numpad9"] = 105] = "Numpad9";
2477
- RawKeys2[RawKeys2["Multiply"] = 106] = "Multiply";
2478
- RawKeys2[RawKeys2["Add"] = 107] = "Add";
2479
- RawKeys2[RawKeys2["Separator"] = 108] = "Separator";
2480
- RawKeys2[RawKeys2["Subtract"] = 109] = "Subtract";
2481
- RawKeys2[RawKeys2["Decimal"] = 110] = "Decimal";
2482
- RawKeys2[RawKeys2["Divide"] = 111] = "Divide";
2483
- RawKeys2[RawKeys2["F1"] = 112] = "F1";
2484
- RawKeys2[RawKeys2["F2"] = 113] = "F2";
2485
- RawKeys2[RawKeys2["F3"] = 114] = "F3";
2486
- RawKeys2[RawKeys2["F4"] = 115] = "F4";
2487
- RawKeys2[RawKeys2["F5"] = 116] = "F5";
2488
- RawKeys2[RawKeys2["F6"] = 117] = "F6";
2489
- RawKeys2[RawKeys2["F7"] = 118] = "F7";
2490
- RawKeys2[RawKeys2["F8"] = 119] = "F8";
2491
- RawKeys2[RawKeys2["F9"] = 120] = "F9";
2492
- RawKeys2[RawKeys2["F10"] = 121] = "F10";
2493
- RawKeys2[RawKeys2["F11"] = 122] = "F11";
2494
- RawKeys2[RawKeys2["F12"] = 123] = "F12";
2495
- RawKeys2[RawKeys2["F13"] = 124] = "F13";
2496
- RawKeys2[RawKeys2["F14"] = 125] = "F14";
2497
- RawKeys2[RawKeys2["F15"] = 126] = "F15";
2498
- RawKeys2[RawKeys2["F16"] = 127] = "F16";
2499
- RawKeys2[RawKeys2["F17"] = 128] = "F17";
2500
- RawKeys2[RawKeys2["F18"] = 129] = "F18";
2501
- RawKeys2[RawKeys2["F19"] = 130] = "F19";
2502
- RawKeys2[RawKeys2["F20"] = 131] = "F20";
2503
- RawKeys2[RawKeys2["F21"] = 132] = "F21";
2504
- RawKeys2[RawKeys2["F22"] = 133] = "F22";
2505
- RawKeys2[RawKeys2["F23"] = 134] = "F23";
2506
- RawKeys2[RawKeys2["F24"] = 135] = "F24";
2507
- RawKeys2[RawKeys2["NavigationView"] = 136] = "NavigationView";
2508
- RawKeys2[RawKeys2["NavigationMenu"] = 137] = "NavigationMenu";
2509
- RawKeys2[RawKeys2["NavigationUp"] = 138] = "NavigationUp";
2510
- RawKeys2[RawKeys2["NavigationDown"] = 139] = "NavigationDown";
2511
- RawKeys2[RawKeys2["NavigationLeft"] = 140] = "NavigationLeft";
2512
- RawKeys2[RawKeys2["NavigationRight"] = 141] = "NavigationRight";
2513
- RawKeys2[RawKeys2["NavigationAccept"] = 142] = "NavigationAccept";
2514
- RawKeys2[RawKeys2["NavigationCancel"] = 143] = "NavigationCancel";
2515
- RawKeys2[RawKeys2["NumLock"] = 144] = "NumLock";
2516
- RawKeys2[RawKeys2["ScrollLock"] = 145] = "ScrollLock";
2517
- RawKeys2[RawKeys2["NumpadEqual"] = 146] = "NumpadEqual";
2518
- RawKeys2[RawKeys2["FJ_Jisho"] = 146] = "FJ_Jisho";
2519
- RawKeys2[RawKeys2["FJ_Masshou"] = 147] = "FJ_Masshou";
2520
- RawKeys2[RawKeys2["FJ_Touroku"] = 148] = "FJ_Touroku";
2521
- RawKeys2[RawKeys2["FJ_Loya"] = 149] = "FJ_Loya";
2522
- RawKeys2[RawKeys2["FJ_Roya"] = 150] = "FJ_Roya";
2523
- RawKeys2[RawKeys2["LeftShift"] = 160] = "LeftShift";
2524
- RawKeys2[RawKeys2["RightShift"] = 161] = "RightShift";
2525
- RawKeys2[RawKeys2["LeftCtrl"] = 162] = "LeftCtrl";
2526
- RawKeys2[RawKeys2["RightCtrl"] = 163] = "RightCtrl";
2527
- RawKeys2[RawKeys2["LeftMenu"] = 164] = "LeftMenu";
2528
- RawKeys2[RawKeys2["RightMenu"] = 165] = "RightMenu";
2529
- RawKeys2[RawKeys2["BrowserBack"] = 166] = "BrowserBack";
2530
- RawKeys2[RawKeys2["BrowserForward"] = 167] = "BrowserForward";
2531
- RawKeys2[RawKeys2["BrowserRefresh"] = 168] = "BrowserRefresh";
2532
- RawKeys2[RawKeys2["BrowserStop"] = 169] = "BrowserStop";
2533
- RawKeys2[RawKeys2["BrowserSearch"] = 170] = "BrowserSearch";
2534
- RawKeys2[RawKeys2["BrowserFavorites"] = 171] = "BrowserFavorites";
2535
- RawKeys2[RawKeys2["BrowserHome"] = 172] = "BrowserHome";
2536
- RawKeys2[RawKeys2["VolumeMute"] = 173] = "VolumeMute";
2537
- RawKeys2[RawKeys2["VolumeDown"] = 174] = "VolumeDown";
2538
- RawKeys2[RawKeys2["VolumeUp"] = 175] = "VolumeUp";
2539
- RawKeys2[RawKeys2["NextTrack"] = 176] = "NextTrack";
2540
- RawKeys2[RawKeys2["PrevTrack"] = 177] = "PrevTrack";
2541
- RawKeys2[RawKeys2["Stop"] = 178] = "Stop";
2542
- RawKeys2[RawKeys2["PlayPause"] = 179] = "PlayPause";
2543
- RawKeys2[RawKeys2["Mail"] = 180] = "Mail";
2544
- RawKeys2[RawKeys2["MediaSelect"] = 181] = "MediaSelect";
2545
- RawKeys2[RawKeys2["App1"] = 182] = "App1";
2546
- RawKeys2[RawKeys2["App2"] = 183] = "App2";
2547
- RawKeys2[RawKeys2["OEM1"] = 186] = "OEM1";
2548
- RawKeys2[RawKeys2["Plus"] = 187] = "Plus";
2549
- RawKeys2[RawKeys2["Comma"] = 188] = "Comma";
2550
- RawKeys2[RawKeys2["Minus"] = 189] = "Minus";
2551
- RawKeys2[RawKeys2["Period"] = 190] = "Period";
2552
- RawKeys2[RawKeys2["OEM2"] = 191] = "OEM2";
2553
- RawKeys2[RawKeys2["OEM3"] = 192] = "OEM3";
2554
- RawKeys2[RawKeys2["Gamepad_A"] = 195] = "Gamepad_A";
2555
- RawKeys2[RawKeys2["Gamepad_B"] = 196] = "Gamepad_B";
2556
- RawKeys2[RawKeys2["Gamepad_X"] = 197] = "Gamepad_X";
2557
- RawKeys2[RawKeys2["Gamepad_Y"] = 198] = "Gamepad_Y";
2558
- RawKeys2[RawKeys2["GamepadRightBumper"] = 199] = "GamepadRightBumper";
2559
- RawKeys2[RawKeys2["GamepadLeftBumper"] = 200] = "GamepadLeftBumper";
2560
- RawKeys2[RawKeys2["GamepadLeftTrigger"] = 201] = "GamepadLeftTrigger";
2561
- RawKeys2[RawKeys2["GamepadRightTrigger"] = 202] = "GamepadRightTrigger";
2562
- RawKeys2[RawKeys2["GamepadDPadUp"] = 203] = "GamepadDPadUp";
2563
- RawKeys2[RawKeys2["GamepadDPadDown"] = 204] = "GamepadDPadDown";
2564
- RawKeys2[RawKeys2["GamepadDPadLeft"] = 205] = "GamepadDPadLeft";
2565
- RawKeys2[RawKeys2["GamepadDPadRight"] = 206] = "GamepadDPadRight";
2566
- RawKeys2[RawKeys2["GamepadMenu"] = 207] = "GamepadMenu";
2567
- RawKeys2[RawKeys2["GamepadView"] = 208] = "GamepadView";
2568
- RawKeys2[RawKeys2["GamepadLeftStickBtn"] = 209] = "GamepadLeftStickBtn";
2569
- RawKeys2[RawKeys2["GamepadRightStickBtn"] = 210] = "GamepadRightStickBtn";
2570
- RawKeys2[RawKeys2["GamepadLeftStickUp"] = 211] = "GamepadLeftStickUp";
2571
- RawKeys2[RawKeys2["GamepadLeftStickDown"] = 212] = "GamepadLeftStickDown";
2572
- RawKeys2[RawKeys2["GamepadLeftStickRight"] = 213] = "GamepadLeftStickRight";
2573
- RawKeys2[RawKeys2["GamepadLeftStickLeft"] = 214] = "GamepadLeftStickLeft";
2574
- RawKeys2[RawKeys2["GamepadRightStickUp"] = 215] = "GamepadRightStickUp";
2575
- RawKeys2[RawKeys2["GamepadRightStickDown"] = 216] = "GamepadRightStickDown";
2576
- RawKeys2[RawKeys2["GamepadRightStickRight"] = 217] = "GamepadRightStickRight";
2577
- RawKeys2[RawKeys2["GamepadRightStickLeft"] = 218] = "GamepadRightStickLeft";
2578
- RawKeys2[RawKeys2["OEM4"] = 219] = "OEM4";
2579
- RawKeys2[RawKeys2["OEM5"] = 220] = "OEM5";
2580
- RawKeys2[RawKeys2["OEM6"] = 221] = "OEM6";
2581
- RawKeys2[RawKeys2["OEM7"] = 222] = "OEM7";
2582
- RawKeys2[RawKeys2["OEM8"] = 223] = "OEM8";
2583
- RawKeys2[RawKeys2["OEMAX"] = 225] = "OEMAX";
2584
- RawKeys2[RawKeys2["OEM102"] = 226] = "OEM102";
2585
- RawKeys2[RawKeys2["ICOHelp"] = 227] = "ICOHelp";
2586
- RawKeys2[RawKeys2["ICO00"] = 228] = "ICO00";
2587
- RawKeys2[RawKeys2["ProcessKey"] = 229] = "ProcessKey";
2588
- RawKeys2[RawKeys2["OEMCLEAR"] = 230] = "OEMCLEAR";
2589
- RawKeys2[RawKeys2["Packet"] = 231] = "Packet";
2590
- RawKeys2[RawKeys2["OEMReset"] = 233] = "OEMReset";
2591
- RawKeys2[RawKeys2["OEMJump"] = 234] = "OEMJump";
2592
- RawKeys2[RawKeys2["OEMPA1"] = 235] = "OEMPA1";
2593
- RawKeys2[RawKeys2["OEMPA2"] = 236] = "OEMPA2";
2594
- RawKeys2[RawKeys2["OEMPA3"] = 237] = "OEMPA3";
2595
- RawKeys2[RawKeys2["OEMWSCtrl"] = 238] = "OEMWSCtrl";
2596
- RawKeys2[RawKeys2["OEMCusel"] = 239] = "OEMCusel";
2597
- RawKeys2[RawKeys2["OEMAttn"] = 240] = "OEMAttn";
2598
- RawKeys2[RawKeys2["OEMFinish"] = 241] = "OEMFinish";
2599
- RawKeys2[RawKeys2["OEMCopy"] = 242] = "OEMCopy";
2600
- RawKeys2[RawKeys2["OEMAuto"] = 243] = "OEMAuto";
2601
- RawKeys2[RawKeys2["OEMEnlw"] = 244] = "OEMEnlw";
2602
- RawKeys2[RawKeys2["OEMBackTab"] = 245] = "OEMBackTab";
2603
- RawKeys2[RawKeys2["Attn"] = 246] = "Attn";
2604
- RawKeys2[RawKeys2["CrSel"] = 247] = "CrSel";
2605
- RawKeys2[RawKeys2["ExSel"] = 248] = "ExSel";
2606
- RawKeys2[RawKeys2["EraseEOF"] = 249] = "EraseEOF";
2607
- RawKeys2[RawKeys2["Play"] = 250] = "Play";
2608
- RawKeys2[RawKeys2["Zoom"] = 251] = "Zoom";
2609
- RawKeys2[RawKeys2["NoName"] = 252] = "NoName";
2610
- RawKeys2[RawKeys2["PA1"] = 253] = "PA1";
2611
- RawKeys2[RawKeys2["OEMClear"] = 254] = "OEMClear";
2612
- return RawKeys2;
2613
- })(RawKeys || {});
2614
-
2615
- // src/redm/Volume.ts
2616
- var Volume = class {
2617
- static {
2618
- __name(this, "Volume");
2619
- }
2620
- handle;
2621
- constructor(coord, rot, scale, customName) {
2622
- if (customName) {
2623
- this.handle = CreateVolumeCylinderWithCustomName(
2624
- coord.x,
2625
- coord.y,
2626
- coord.z,
2627
- rot.x,
2628
- rot.y,
2629
- rot.z,
2630
- scale.x,
2631
- scale.y,
2632
- scale.z,
2633
- customName
2634
- );
2635
- return;
2636
- }
2637
- this.handle = CreateVolumeCylinder(coord.x, coord.y, coord.z, rot.x, rot.y, rot.z, scale.x, scale.y, scale.z);
2638
- }
2639
- get Handle() {
2640
- return this.handle;
2641
- }
2642
- };
2643
-
2644
- // src/redm/Controls.ts
2645
- var Controls = class {
2646
- static {
2647
- __name(this, "Controls");
2648
- }
2649
- static IsInputJustPressed(hash) {
2650
- return IsControlJustPressed(0, hash);
2651
- }
2652
- static IsInputPressed(hash) {
2653
- return IsControlPressed(0, hash);
2654
- }
2655
- static IsDisabledInputPressed(hash) {
2656
- return IsDisabledControlPressed(0, hash);
2657
- }
2658
- static DisableControl(hash) {
2659
- DisableControlAction(0, hash, false);
2660
- }
2661
- };
2662
-
2663
- // src/redm/RawControls.ts
2664
- var RawControls = class {
2665
- static {
2666
- __name(this, "RawControls");
2667
- }
2668
- static IsKeyDown(rawKey) {
2669
- return IsRawKeyDown(rawKey);
2670
- }
2671
- static IsKeyPressed(rawKey) {
2672
- return IsRawKeyPressed(rawKey);
2673
- }
2674
- static IsKeyReleased(rawKey) {
2675
- return IsRawKeyReleased(rawKey);
2676
- }
2677
- static IsKeyUp(rawKey) {
2678
- return IsRawKeyUp(rawKey);
2679
- }
2680
- };
2681
-
2682
- // src/redm/Game.ts
2683
- var Game = class {
2684
- static {
2685
- __name(this, "Game");
2686
- }
2687
- static get PlayerPed() {
2688
- return new Ped(PlayerPedId());
2689
- }
2690
- static get Player() {
2691
- return GameConstants.Player;
2692
- }
2693
- };
2694
-
2695
- // src/redm/world/createPed.ts
2696
- async function createPed(model, spawnPos, heading, isNetwork = false, bScriptHostPed = true, p7 = true, p8 = true) {
2697
- if (!model.IsPed || !model.request(1e3)) {
2698
- return null;
2699
- }
2700
- const pedHandle = CreatePed(
2701
- model.Hash,
2702
- spawnPos.x,
2703
- spawnPos.y,
2704
- spawnPos.z,
2705
- heading,
2706
- isNetwork,
2707
- bScriptHostPed,
2708
- p7,
2709
- p8
2710
- );
2711
- if (pedHandle !== 0) {
2712
- model.markAsNoLongerNeeded();
2713
- return new Ped(pedHandle);
2714
- }
2715
- return null;
2716
- }
2717
- __name(createPed, "createPed");
2718
-
2719
- // src/redm/entities/Prop.ts
2720
- var Prop = class extends BaseEntity {
2721
- static {
2722
- __name(this, "Prop");
2723
- }
2724
- };
2725
-
2726
- // src/redm/world/createProp.ts
2727
- async function createProp(model, spawnPos, heading, isNetwork = false, bScriptHostProp = true, dynamic = true, p7 = true, p8 = true) {
2728
- if (!model.IsProp || !model.request(1e3)) {
2729
- return null;
2730
- }
2731
- const propHandle = CreateObject(
2732
- model.Hash,
2733
- spawnPos.x,
2734
- spawnPos.y,
2735
- spawnPos.z,
2736
- isNetwork,
2737
- bScriptHostProp,
2738
- dynamic,
2739
- p7,
2740
- p8
2741
- );
2742
- if (propHandle !== 0) {
2743
- model.markAsNoLongerNeeded();
2744
- return new Prop(propHandle);
2745
- }
2746
- return null;
2747
- }
2748
- __name(createProp, "createProp");
2749
-
2750
- // src/redm/world/createVehicle.ts
2751
- async function createVehicle(model, spawnPos, heading, isNetwork = false, bScriptHostVeh = true, bDontAutoCreateDraftAnimals = true, p8 = true) {
2752
- if (!model.IsPed || !model.request(1e3)) {
2753
- return null;
2754
- }
2755
- const pedHandle = CreateVehicle(
2756
- model.Hash,
2757
- spawnPos.x,
2758
- spawnPos.y,
2759
- spawnPos.z,
2760
- heading,
2761
- isNetwork,
2762
- bScriptHostVeh,
2763
- bDontAutoCreateDraftAnimals,
2764
- p8
2765
- );
2766
- if (pedHandle !== 0) {
2767
- model.markAsNoLongerNeeded();
2768
- return new Vehicle(pedHandle);
2769
- }
2770
- return null;
2771
- }
2772
- __name(createVehicle, "createVehicle");
2773
-
2774
- // src/redm/world/createDraftVehicle.ts
2775
- async function createDraftVehicle(model, spawnPos, heading, isNetwork = false, bScriptHostVeh = true, bDontAutoCreateDraftAnimals = true, draftAnimalPopGroup = 0, p9 = true) {
2776
- if (!model.IsPed || !model.request(1e3)) {
2777
- return null;
2778
- }
2779
- const draftVehHandle = _N(
2780
- "0x214651FB1DFEBA89",
2781
- model.Hash,
2782
- spawnPos.x,
2783
- spawnPos.y,
2784
- spawnPos.z,
2785
- heading,
2786
- isNetwork,
2787
- bScriptHostVeh,
2788
- bDontAutoCreateDraftAnimals,
2789
- draftAnimalPopGroup,
2790
- p9,
2791
- Citizen.resultAsInteger()
2792
- );
2793
- if (draftVehHandle !== 0) {
2794
- model.markAsNoLongerNeeded();
2795
- return new Vehicle(draftVehHandle);
2796
- }
2797
- return null;
2798
- }
2799
- __name(createDraftVehicle, "createDraftVehicle");
2800
-
2801
- // src/redm/RelationshipGroup.ts
2802
- var RelationshipGroup = class {
2803
- static {
2804
- __name(this, "RelationshipGroup");
2805
- }
2806
- /**
2807
- * The hash of the relationship group
2808
- */
2809
- hash;
2810
- /**
2811
- * Create a relationship group. Optionally pass a group hash.
2812
- *
2813
- * @param name Name of the relationship group.
2814
- */
2815
- constructor(name) {
2816
- const [, groupHash] = AddRelationshipGroup(name);
2817
- this.hash = groupHash;
2818
- }
2819
- /**
2820
- * Gets the hash of the relationship group.
2821
- *
2822
- * @returns The hash of this object.
2823
- */
2824
- get Hash() {
2825
- return this.hash;
2826
- }
2827
- /**
2828
- * Get the relationship between two relationship groups.
2829
- *
2830
- * @param targetGroup The other relationship group.
2831
- * @returns The relationship
2832
- */
2833
- getRelationshipBetweenGroups(targetGroup) {
2834
- return GetRelationshipBetweenGroups(this.Hash, targetGroup.Hash);
2835
- }
2836
- /**
2837
- * Set the relationship group between this relationship group and another one.
2838
- *
2839
- * @param targetGroup The other relationship group.
2840
- * @param relationship The desired relationship.
2841
- * @param biDirectionally If target group should have same relationship towards this.
2842
- */
2843
- setRelationshipBetweenGroups(targetGroup, relationship, biDirectionally = false) {
2844
- SetRelationshipBetweenGroups(Number(relationship), this.Hash, targetGroup.Hash);
2845
- if (biDirectionally) {
2846
- SetRelationshipBetweenGroups(Number(relationship), targetGroup.Hash, this.Hash);
2847
- }
2848
- }
2849
- /**
2850
- * Clear the relationship between this relationship group and another.
2851
- *
2852
- * @param targetGroup The other relationship group.
2853
- * @param relationship The desired relationship to clear.
2854
- * @param biDirectionally Whether the target group should also clear the relationship.
2855
- */
2856
- clearRelationshipBetweenGroups(targetGroup, relationship, biDirectionally = false) {
2857
- ClearRelationshipBetweenGroups(Number(relationship), this.Hash, targetGroup.Hash);
2858
- if (biDirectionally) {
2859
- ClearRelationshipBetweenGroups(Number(relationship), targetGroup.Hash, this.Hash);
2860
- }
2861
- }
2862
- /**
2863
- * Remove this relationship group from the game. This will not delete this object.
2864
- */
2865
- remove() {
2866
- RemoveRelationshipGroup(this.Hash);
2867
- }
2868
- };
2869
-
2870
- // src/common/GlobalData.ts
2871
- var GlobalData = class _GlobalData {
2872
- static {
2873
- __name(this, "GlobalData");
2874
- }
2875
- static CurrentResource = GetCurrentResourceName();
2876
- static IS_SERVER = IsDuplicityVersion();
2877
- static IS_CLIENT = !_GlobalData.IS_SERVER;
2878
- static NetworkTick = null;
2879
- static NetworkedTicks = [];
2880
- static EnablePrettyPrint = true;
2881
- };
2882
-
2883
- // src/common/net/NetworkedMap.ts
2884
- var NetworkedMapEventManager = class {
2885
- static {
2886
- __name(this, "NetworkedMapEventManager");
2887
- }
2888
- #syncedCalls = /* @__PURE__ */ new Map();
2889
- constructor() {
2890
- $CLIENT: {
2891
- RegisterResourceAsEventHandler(`${GlobalData.CurrentResource}:syncChanges`);
2892
- addRawEventListener(`${GlobalData.CurrentResource}:syncChanges`, (msgpack_data) => {
2893
- const data = msgpack_unpack(msgpack_data);
2894
- const syncName = data[0];
2895
- const syncData = data[1];
2896
- const map = this.#syncedCalls.get(syncName);
2897
- if (!map) {
2898
- throw new Error(`Tried to sync changes for a networked map but ${syncName} does't exist.`);
2899
- }
2900
- map.handleSync(syncData);
2901
- });
2902
- }
2903
- }
2904
- addNetworkedMap(map) {
2905
- this.#syncedCalls.set(map.SyncName, map);
2906
- }
2907
- removeNetworkedMap(syncName) {
2908
- this.#syncedCalls.delete(syncName);
2909
- }
2910
- };
2911
- var netManager = new NetworkedMapEventManager();
2912
- var NetworkedMap = class extends Map {
2913
- static {
2914
- __name(this, "NetworkedMap");
2915
- }
2916
- #syncName;
2917
- #queuedChanges = [];
2918
- #changeListeners = /* @__PURE__ */ new Map();
2919
- #subscribers = /* @__PURE__ */ new Set();
2920
- constructor(syncName, initialValue) {
2921
- super(initialValue);
2922
- this.#syncName = syncName;
2923
- GlobalData.NetworkedTicks.push(this);
2924
- netManager.addNetworkedMap(this);
2925
- }
2926
- get SyncName() {
2927
- return this.#syncName;
2928
- }
2929
- // handles removing the player from the map whenever they're dropped
2930
- onPlayerDropped() {
2931
- this.removeSubscriber(source);
2932
- }
2933
- /*
2934
- * Resyncs the entire map to the client, useful for if there's a mismatch in the clients map (when multiple players change things, in cases like inventories)
2935
- *
2936
- * NOTE: This doesn't check that the player is already subscribed to the map, you should do your own due-diligence to only call this for players already subscribed
2937
- */
2938
- resync(source2) {
2939
- const packed_data = msgpack_pack([this.#syncName, [[4 /* Init */, this.size === 0 ? [] : Array.from(this)]]]);
2940
- TriggerClientEventInternal(
2941
- `${GlobalData.CurrentResource}:syncChanges`,
2942
- source2,
2943
- packed_data,
2944
- packed_data.length
2945
- );
2946
- }
2947
- /*
2948
- * Adds a new subscriber to the map
2949
- */
2950
- addSubscriber(source2) {
2951
- this.#subscribers.add(source2);
2952
- this.resync(source2);
2953
- }
2954
- removeSubscriber(sub) {
2955
- return this.#subscribers.delete(sub);
2956
- }
2957
- hasSubscriber(sub) {
2958
- return this.#subscribers.has(sub);
2959
- }
2960
- subscriberCount() {
2961
- return this.#subscribers.size;
2962
- }
2963
- handleSync(data) {
2964
- for (const [change_type, key, value, possibly_undefined_subvalue] of data) {
2965
- switch (change_type) {
2966
- case 1 /* Add */: {
2967
- this.set(key, value);
2968
- continue;
2969
- }
2970
- case 2 /* Remove */: {
2971
- super.delete(key);
2972
- continue;
2973
- }
2974
- case 3 /* Reset */: {
2975
- super.clear();
2976
- continue;
2977
- }
2978
- case 4 /* Init */: {
2979
- super.clear();
2980
- const key_value = key;
2981
- for (const [k, v] of key_value) {
2982
- this.set(k, v);
2983
- }
2984
- continue;
2985
- }
2986
- case 0 /* SubValueChanged */: {
2987
- const data2 = this.get(key);
2988
- data2[value] = possibly_undefined_subvalue;
2989
- continue;
2990
- }
2991
- }
2992
- }
2993
- }
2994
- /*
2995
- * Listens for the change on the specified key, it will get the resulting
2996
- * value on the change
2997
- */
2998
- listenForChange(key, fn) {
2999
- const listener = this.#changeListeners.get(key);
3000
- listener ? listener.push(fn) : this.#changeListeners.set(key, [fn]);
3001
- }
3002
- #triggerEventForSubscribers(data) {
3003
- const packed_data = msgpack_pack([this.#syncName, data]);
3004
- for (const sub of this.#subscribers) {
3005
- TriggerClientEventInternal(
3006
- `${GlobalData.CurrentResource}:syncChanges`,
3007
- sub,
3008
- packed_data,
3009
- packed_data.length
3010
- );
3011
- }
3012
- }
3013
- #pushChangeForListener(key, value) {
3014
- const listener = this.#changeListeners.get(key);
3015
- if (!listener) return;
3016
- for (const ln of listener) {
3017
- ln(value);
3018
- }
3019
- }
3020
- set(key, value) {
3021
- let v = value;
3022
- if (value instanceof Object) {
3023
- const curMap = this;
3024
- const objectChangeHandler = {
3025
- get(target, prop, reciever) {
3026
- return Reflect.get(target, prop, reciever);
3027
- },
3028
- set(target, p, newValue, receiver) {
3029
- const success = Reflect.set(target, p, newValue, receiver);
3030
- if (success) {
3031
- curMap.#pushChangeForListener(key, target);
3032
- }
3033
- return success;
3034
- }
3035
- };
3036
- v = new Proxy(v, objectChangeHandler);
3037
- }
3038
- super.set(key, v);
3039
- this.#pushChangeForListener(key, v);
3040
- return this;
3041
- }
3042
- /*
3043
- * Resets the map to its default state
3044
- */
3045
- clear() {
3046
- $CLIENT: if (GlobalData.IS_CLIENT) throw new Error(`Cannot call 'clear' on client`);
3047
- this.#queuedChanges = [];
3048
- this.#queuedChanges.push([3 /* Reset */]);
3049
- super.clear();
3050
- }
3051
- delete(key) {
3052
- $CLIENT: if (GlobalData.IS_CLIENT) throw new Error(`Cannot call 'delete' on client`);
3053
- this.#queuedChanges.push([2 /* Remove */, key]);
3054
- return super.delete(key);
3055
- }
3056
- networkTick() {
3057
- if (this.#queuedChanges.length !== 0) {
3058
- this.#triggerEventForSubscribers(this.#queuedChanges);
3059
- this.#queuedChanges = [];
3060
- }
3061
- }
3062
- [Symbol.dispose]() {
3063
- this.#subscribers.clear();
3064
- this.#changeListeners.clear();
3065
- this.#queuedChanges = [];
3066
- netManager.removeNetworkedMap(this.#syncName);
3067
- GlobalData.NetworkedTicks.filter((v) => v !== this);
3068
- }
3069
- /**
3070
- * Unregisters from the tick handler and removes the event listener
3071
- */
3072
- dispose() {
3073
- this[Symbol.dispose]();
3074
- }
3075
- get [Symbol.toStringTag]() {
3076
- return "NetworkedMap";
3077
- }
3078
- };
3079
-
3080
- // src/common/decors/Events.ts
3081
- var ConVarType = /* @__PURE__ */ ((ConVarType2) => {
3082
- ConVarType2[ConVarType2["String"] = 0] = "String";
3083
- ConVarType2[ConVarType2["Integer"] = 1] = "Integer";
3084
- ConVarType2[ConVarType2["Float"] = 2] = "Float";
3085
- ConVarType2[ConVarType2["Boolean"] = 3] = "Boolean";
3086
- return ConVarType2;
3087
- })(ConVarType || {});
3088
- var DisablePrettyPrint = /* @__PURE__ */ __name(() => GlobalData.EnablePrettyPrint = false, "DisablePrettyPrint");
3089
- function Exports(exportName) {
3090
- return /* @__PURE__ */ __name(function actualDecorator(originalMethod, context) {
3091
- if (context.private) {
3092
- throw new Error("Exports does not work on private methods, please mark the method as public");
3093
- }
3094
- context.addInitializer(function() {
3095
- exports(exportName, (...args) => {
3096
- return originalMethod.call(this, ...args);
3097
- });
3098
- });
3099
- }, "actualDecorator");
3100
- }
3101
- __name(Exports, "Exports");
3102
- function Event(eventName) {
3103
- return /* @__PURE__ */ __name(function actualDecorator(originalMethod, context) {
3104
- if (context.private) {
3105
- throw new Error("Event does not work on private methods, please mark the method as public");
3106
- }
3107
- context.addInitializer(function() {
3108
- on(eventName, (...args) => {
3109
- try {
3110
- return originalMethod.call(this, ...args);
3111
- } catch (e) {
3112
- REMOVE_EVENT_LOG: {
3113
- if (!GlobalData.EnablePrettyPrint) return;
3114
- console.error("------- EVENT ERROR --------");
3115
- console.error(`Call to ${eventName} errored`);
3116
- console.error(`Data: ${JSON.stringify(args)}`);
3117
- console.error(`Error: ${e}`);
3118
- console.error("------- END EVENT ERROR --------");
3119
- }
3120
- }
3121
- });
3122
- });
3123
- }, "actualDecorator");
3124
- }
3125
- __name(Event, "Event");
3126
- function NetEvent(eventName, remoteOnly = true) {
3127
- return /* @__PURE__ */ __name(function actualDecorator(originalMethod, context) {
3128
- if (context.private) {
3129
- throw new Error("NetEvent does not work on private methods, please mark the method as public");
3130
- }
3131
- context.addInitializer(function() {
3132
- onNet(eventName, (...args) => {
3133
- const src = source;
3134
- try {
3135
- $CLIENT: {
3136
- if (GlobalData.IS_CLIENT && remoteOnly && source !== 65535) {
3137
- return;
3138
- }
3139
- }
3140
- return originalMethod.call(this, ...args);
3141
- } catch (e) {
3142
- REMOVE_NET_EVENT_LOG: {
3143
- if (!GlobalData.EnablePrettyPrint) return;
3144
- console.error("------- NET EVENT ERROR --------");
3145
- console.error(`Call to ${eventName} errored`);
3146
- console.error(`Caller: ${src}`);
3147
- console.error(`Data: ${JSON.stringify(args)}`);
3148
- console.error(`Error: ${e}`);
3149
- console.error("------- END NET EVENT ERROR --------");
3150
- }
3151
- }
3152
- });
3153
- });
3154
- }, "actualDecorator");
3155
- }
3156
- __name(NetEvent, "NetEvent");
3157
- function NuiEvent(eventName) {
3158
- return /* @__PURE__ */ __name(function actualDecorator(originalMethod, context) {
3159
- if (context.private) {
3160
- throw new Error("NuiEvent does not work on private methods, please mark the method as public");
3161
- }
3162
- context.addInitializer(function() {
3163
- RegisterNuiCallback(eventName, (...args) => {
3164
- return originalMethod.call(this, ...args);
3165
- });
3166
- });
3167
- }, "actualDecorator");
3168
- }
3169
- __name(NuiEvent, "NuiEvent");
3170
- var get_convar_fn = /* @__PURE__ */ __name((con_var_type) => {
3171
- switch (con_var_type) {
3172
- case 0 /* String */:
3173
- return GetConvar;
3174
- case 1 /* Integer */:
3175
- return GetConvarInt;
3176
- case 2 /* Float */:
3177
- return GetConvarFloat;
3178
- case 3 /* Boolean */:
3179
- return GetConvarBool;
3180
- // needed so typescript wont complain about "unreachable code" for the error below
3181
- default:
3182
- }
3183
- throw new Error("Got invalid ConVarType");
3184
- }, "get_convar_fn");
3185
- function ConVar(name, is_floating_point, deserialize) {
3186
- return /* @__PURE__ */ __name(function actualDecorator(_initialValue, context, ..._args) {
3187
- if (context.private) {
3188
- throw new Error("ConVar does not work on private types, please mark the field as public");
3189
- }
3190
- context.addInitializer(function() {
3191
- const t = this;
3192
- const default_value = Reflect.get(t, context.name);
3193
- const default_type = typeof default_value;
3194
- let con_var_type = null;
3195
- if (default_type === "number") {
3196
- if (is_floating_point || !Number.isInteger(default_value)) {
3197
- con_var_type = 2 /* Float */;
3198
- } else {
3199
- con_var_type = 1 /* Integer */;
3200
- }
3201
- } else if (default_type === "boolean") {
3202
- con_var_type = 3 /* Boolean */;
3203
- } else if (default_value === "string") {
3204
- con_var_type = 0 /* String */;
3205
- }
3206
- if (!deserialize && con_var_type === null) {
3207
- throw new Error("You should provide a deserialize function if you want to convert this to an object type");
3208
- }
3209
- if (con_var_type === null) {
3210
- con_var_type = 0 /* String */;
3211
- }
3212
- const con_var_fn = get_convar_fn(con_var_type);
3213
- const get_convar_value = /* @__PURE__ */ __name(() => {
3214
- const data = con_var_fn(name, default_value);
3215
- return deserialize ? deserialize(data) : data;
3216
- }, "get_convar_value");
3217
- Reflect.set(t, context.name, get_convar_value());
3218
- AddConvarChangeListener(name, () => {
3219
- Reflect.set(t, context.name, get_convar_value());
3220
- });
3221
- });
3222
- }, "actualDecorator");
3223
- }
3224
- __name(ConVar, "ConVar");
3225
- function SetTick() {
3226
- return /* @__PURE__ */ __name(function actualDecorator(originalMethod, context) {
3227
- if (context.private) {
3228
- throw new Error("SetTick does not work on private types, please mark the field as public");
3229
- }
3230
- context.addInitializer(function() {
3231
- setTick(async () => {
3232
- await originalMethod.call(this);
3233
- });
3234
- });
3235
- }, "actualDecorator");
3236
- }
3237
- __name(SetTick, "SetTick");
3238
-
3239
- // src/common/Convar.ts
3240
- var Convar = class {
3241
- static {
3242
- __name(this, "Convar");
3243
- }
3244
- /**
3245
- * @returns the current console buffer
3246
- */
3247
- buffer() {
3248
- $CLIENT: {
3249
- if (GlobalData.IS_CLIENT) {
3250
- throw new Error("This function isn't available on the client");
3251
- }
3252
- }
3253
- return GetConsoleBuffer();
3254
- }
3255
- get(variable, defaultVar) {
3256
- return GetConvar(variable, defaultVar);
3257
- }
3258
- getInt(variable, defaultVar) {
3259
- return GetConvarInt(variable, defaultVar);
3260
- }
3261
- getFloat(varName, defaultVar) {
3262
- return GetConvarFloat(varName, defaultVar);
3263
- }
3264
- getBool(varName, defaultVar) {
3265
- return GetConvarBool(varName, defaultVar);
3266
- }
3267
- set(variable, value) {
3268
- $CLIENT: {
3269
- if (GlobalData.IS_CLIENT) {
3270
- throw new Error("This function isn't available on the client");
3271
- }
3272
- }
3273
- SetConvar(variable, value);
3274
- }
3275
- setReplicated(variable, value) {
3276
- $CLIENT: {
3277
- if (GlobalData.IS_CLIENT) {
3278
- throw new Error("This function isn't available on the client");
3279
- }
3280
- }
3281
- SetConvarReplicated(variable, value);
3282
- }
3283
- setServerInfo(variable, value) {
3284
- $CLIENT: {
3285
- if (GlobalData.IS_CLIENT) {
3286
- throw new Error("This function isn't available on the client");
3287
- }
3288
- }
3289
- SetConvarServerInfo(variable, value);
3290
- }
3291
- };
3292
-
3293
- // src/common/Command.ts
3294
- function registerCommand(name, commandHandler, restricted) {
3295
- if (Array.isArray(name)) {
3296
- for (const command of name) {
3297
- registerCommand(command, commandHandler, restricted);
3298
- }
3299
- return;
3300
- }
3301
- RegisterCommand(name, commandHandler, !!restricted);
3302
- }
3303
- __name(registerCommand, "registerCommand");
3304
- var Command = class {
3305
- constructor(name, help, handler, params, restricted = true) {
3306
- this.name = name;
3307
- this.help = help;
3308
- this.params = params;
3309
- this.#handler = handler;
3310
- this.name = `/${name}`;
3311
- registerCommand(name, (source2, args, raw) => this.call(source2, args, raw), restricted);
3312
- if (params) {
3313
- for (const parameter of params) {
3314
- if (parameter.type) {
3315
- parameter.help = parameter.help ? `${parameter.help} (type: ${parameter.type})` : `(type: ${parameter.type})`;
3316
- }
3317
- }
3318
- setTimeout(() => {
3319
- $CLIENT: {
3320
- emit("chat:addSuggestion", this);
3321
- }
3322
- }, 100);
3323
- }
3324
- }
3325
- static {
3326
- __name(this, "Command");
3327
- }
3328
- #handler;
3329
- mapArguments(source2, args, raw) {
3330
- const mapped = {
3331
- source: source2,
3332
- raw
3333
- };
3334
- if (!this.params) return mapped;
3335
- const result = this.params.every((param, index) => {
3336
- const arg = args[index];
3337
- let value = arg;
3338
- switch (param.type) {
3339
- case "number":
3340
- value = +arg;
3341
- break;
3342
- case "string":
3343
- value = !Number(arg) ? arg : false;
3344
- break;
3345
- case "playerId":
3346
- $CLIENT: {
3347
- value = arg === "me" ? GetPlayerServerId(PlayerId()) : +arg;
3348
- if (!value || GetPlayerFromServerId(value) === -1) value = void 0;
3349
- }
3350
- break;
3351
- case "longString":
3352
- value = raw.substring(raw.indexOf(arg));
3353
- break;
3354
- }
3355
- if (value === void 0 && (!param.optional || param.optional && arg)) {
3356
- return Citizen.trace(
3357
- `^1command '${raw.split(" ")[0] || raw}' received an invalid ${param.type} for argument ${index + 1} (${param.name}), received '${arg}'^0`
3358
- );
3359
- }
3360
- mapped[param.name] = value;
3361
- return true;
3362
- });
3363
- return result ? mapped : null;
3364
- }
3365
- async call(source2, args, raw = args.join(" ")) {
3366
- const parsed = this.mapArguments(source2, args, raw);
3367
- if (!parsed) return;
3368
- try {
3369
- await this.#handler(parsed);
3370
- } catch (err) {
3371
- Citizen.trace(`^1command '${raw.split(" ")[0] || raw}' failed to execute!^0
3372
- ${err.message}`);
3373
- }
3374
- }
3375
- };
3376
-
3377
- // src/common/Kvp.ts
3378
- var Kvp = class {
3379
- static {
3380
- __name(this, "Kvp");
3381
- }
3382
- /**
3383
- * Returns the value associated with a key as a number.
3384
- */
3385
- getNumber(key) {
3386
- return GetResourceKvpInt(key);
3387
- }
3388
- /**
3389
- * Returns the value associated with a key as a float.
3390
- */
3391
- getFloat(key) {
3392
- return GetResourceKvpFloat(key);
3393
- }
3394
- /**
3395
- * Returns the value associated with a key as a string.
3396
- */
3397
- getString(key) {
3398
- return GetResourceKvpString(key);
3399
- }
3400
- /**
3401
- * Returns the value associated with a key as a parsed JSON string.
3402
- */
3403
- getJson(key) {
3404
- const str = GetResourceKvpString(key);
3405
- return str ? JSON.parse(str) : null;
3406
- }
3407
- /**
3408
- * Sets the value associated with a key as a number.
3409
- * @param async set the value using an async operation.
3410
- */
3411
- setNumber(key, value, async = false) {
3412
- return async ? SetResourceKvpIntNoSync(key, value) : SetResourceKvpInt(key, value);
3413
- }
3414
- /**
3415
- * Sets the value associated with a key as a float.
3416
- * @param async set the value using an async operation.
3417
- */
3418
- setFloat(key, value, async = false) {
3419
- return async ? SetResourceKvpFloatNoSync(key, value) : SetResourceKvpFloat(key, value);
3420
- }
3421
- /**
3422
- * Sets the value associated with a key as a string.
3423
- * @param async set the value using an async operation.
3424
- */
3425
- setString(key, value, async = false) {
3426
- return async ? SetResourceKvpNoSync(key, value) : SetResourceKvp(key, value);
3427
- }
3428
- /**
3429
- * Sets the value associated with a key as a JSON string.
3430
- * @param async set the value using an async operation.
3431
- */
3432
- setJson(key, value, async = false) {
3433
- const str = JSON.stringify(value);
3434
- return async ? SetResourceKvpNoSync(key, str) : SetResourceKvp(key, str);
3435
- }
3436
- /**
3437
- * Sets the value associated with a key as a JSON string.
3438
- * @param async set the value using an async operation.
3439
- */
3440
- set(key, value, async = false) {
3441
- switch (typeof value) {
3442
- case "function":
3443
- case "symbol":
3444
- throw new Error(`Failed to set Kvp for invalid type '${typeof value}'`);
3445
- case "undefined":
3446
- return this.delete(key, async);
3447
- case "object":
3448
- return this.setJson(key, value, async);
3449
- case "boolean":
3450
- value = value ? 1 : 0;
3451
- case "number":
3452
- return Number.isInteger(value) ? this.setNumber(key, value, async) : this.setFloat(key, value, async);
3453
- default:
3454
- value = String(value);
3455
- return this.setString(key, value, async);
3456
- }
3457
- }
3458
- /**
3459
- * Deletes the specified value for key.
3460
- * @param async remove the value using an async operation
3461
- */
3462
- delete(key, async = false) {
3463
- return async ? DeleteResourceKvpNoSync(key) : DeleteResourceKvp(key);
3464
- }
3465
- /**
3466
- * Commits pending asynchronous operations to disk, ensuring data consistency.
3467
- *
3468
- * Should be called after calling set methods using the async flag.
3469
- */
3470
- flush() {
3471
- FlushResourceKvp();
3472
- }
3473
- getAllKeys(prefix) {
3474
- const keys = [];
3475
- const handle = StartFindKvp(prefix);
3476
- if (handle === -1) return keys;
3477
- let key;
3478
- do {
3479
- key = FindKvp(handle);
3480
- if (key) keys.push(key);
3481
- } while (key);
3482
- EndFindKvp(handle);
3483
- return keys;
3484
- }
3485
- /**
3486
- * Returns an array of keys which match or contain the given keys.
3487
- */
3488
- getKeys(prefix) {
3489
- return typeof prefix === "string" ? this.getAllKeys(prefix) : prefix.flatMap((key) => this.getAllKeys(key));
3490
- }
3491
- /**
3492
- * Get all values from keys in an array as the specified type.
3493
- */
3494
- getValuesAsType(prefix, type) {
3495
- const values = this.getKeys(prefix);
3496
- return values.map((key) => {
3497
- switch (type) {
3498
- case "number":
3499
- return this.getNumber(key);
3500
- case "float":
3501
- return this.getFloat(key);
3502
- case "string":
3503
- return this.getString(key);
3504
- default:
3505
- return this.getJson(key);
3506
- }
3507
- });
3508
- }
3509
- };
3510
-
3511
- // src/common/Resource.ts
3512
- var Resource = class {
3513
- constructor(name) {
3514
- this.name = name;
3515
- }
3516
- static {
3517
- __name(this, "Resource");
3518
- }
3519
- getMetadata(metadataKey, index) {
3520
- return GetResourceMetadata(this.name, metadataKey, index);
3521
- }
3522
- getPath() {
3523
- return GetResourcePath(this.name);
3524
- }
3525
- loadFile(fileName) {
3526
- return LoadResourceFile(this.name, fileName);
3527
- }
3528
- saveFile(fileName, data, length) {
3529
- $CLIENT: {
3530
- if (GlobalData.IS_CLIENT) {
3531
- throw new Error("This function isn't available on the client");
3532
- }
3533
- }
3534
- return SaveResourceFile(this.name, fileName, data, length);
3535
- }
3536
- scheduleTick() {
3537
- $CLIENT: {
3538
- if (GlobalData.IS_CLIENT) {
3539
- throw new Error("This function isn't available on the client");
3540
- }
3541
- }
3542
- return ScheduleResourceTick(this.name);
3543
- }
3544
- start() {
3545
- StartResource(this.name);
3546
- }
3547
- stop() {
3548
- StopResource(this.name);
3549
- }
3550
- static startResource(name) {
3551
- StartResource(name);
3552
- }
3553
- static stopResource(name) {
3554
- StopResource(name);
3555
- }
3556
- static resourceCount() {
3557
- return GetNumResources();
3558
- }
3559
- };
3560
- export {
3561
- Attributes,
3562
- Color,
3563
- Command,
3564
- ConVar,
3565
- ConVarType,
3566
- Controls,
3567
- Convar,
3568
- CoreAttribute,
3569
- Delay,
3570
- DisablePrettyPrint,
3571
- Entity,
3572
- Event,
3573
- Exports,
3574
- Game,
3575
- GameConstants,
3576
- KeyHash,
3577
- KnockOffVehicle,
3578
- Kvp,
3579
- Maths,
3580
- NetEvent,
3581
- NetworkedMap,
3582
- NuiEvent,
3583
- Ped,
3584
- PedAttribute,
3585
- Player,
3586
- PointF,
3587
- Quaternion,
3588
- RawControls,
3589
- RawKeys,
3590
- Relationship,
3591
- RelationshipGroup,
3592
- Resource,
3593
- SetTick,
3594
- TamingState,
3595
- Vector2,
3596
- Vector3,
3597
- Vector4,
3598
- Vehicle,
3599
- VehicleSeat,
3600
- Volume,
3601
- cleanPlayerName,
3602
- createDraftVehicle,
3603
- createPed,
3604
- createProp,
3605
- createVehicle,
3606
- eAttributeCore,
3607
- eDamageCleanliness,
3608
- eHudStatusEffect,
3609
- ePedAttribute,
3610
- enumValues,
3611
- getStringFromUInt8Array,
3612
- getUInt32FromUint8Array
3613
- };