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