@nativewrappers/redm 0.0.65 → 0.0.73

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