@nativewrappers/redm-codegen 0.0.3 → 0.0.4
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/dist/classes/AnimScene.d.ts +82 -82
- package/dist/classes/AnimScene.d.ts.map +1 -1
- package/dist/classes/AnimScene.js +124 -124
- package/dist/classes/BaseModel.d.ts +29 -29
- package/dist/classes/BaseModel.d.ts.map +1 -1
- package/dist/classes/BaseModel.js +43 -43
- package/dist/classes/BaseTask.d.ts +43 -43
- package/dist/classes/BaseTask.d.ts.map +1 -1
- package/dist/classes/BaseTask.js +53 -53
- package/dist/classes/Cam.d.ts +82 -82
- package/dist/classes/Cam.d.ts.map +1 -1
- package/dist/classes/Cam.js +115 -115
- package/dist/classes/Entity.d.ts +250 -250
- package/dist/classes/Entity.d.ts.map +1 -1
- package/dist/classes/Entity.js +350 -350
- package/dist/classes/Interior.d.ts +27 -27
- package/dist/classes/Interior.d.ts.map +1 -1
- package/dist/classes/Interior.js +42 -42
- package/dist/classes/Ped.d.ts +55 -55
- package/dist/classes/Ped.d.ts.map +1 -1
- package/dist/classes/Ped.js +76 -76
- package/dist/classes/PedTask.d.ts +797 -797
- package/dist/classes/PedTask.d.ts.map +1 -1
- package/dist/classes/PedTask.js +1023 -1023
- package/dist/classes/PersChar.d.ts +13 -13
- package/dist/classes/PersChar.d.ts.map +1 -1
- package/dist/classes/PersChar.js +27 -27
- package/dist/classes/Pickup.d.ts +8 -8
- package/dist/classes/Pickup.d.ts.map +1 -1
- package/dist/classes/Pickup.js +15 -15
- package/dist/classes/Player.d.ts +185 -185
- package/dist/classes/Player.d.ts.map +1 -1
- package/dist/classes/Player.js +251 -251
- package/dist/classes/Prop.d.ts +130 -130
- package/dist/classes/Prop.d.ts.map +1 -1
- package/dist/classes/Prop.js +188 -188
- package/dist/classes/PropSet.d.ts +17 -17
- package/dist/classes/PropSet.d.ts.map +1 -1
- package/dist/classes/PropSet.js +25 -25
- package/dist/classes/VehicleTask.d.ts +23 -23
- package/dist/classes/VehicleTask.d.ts.map +1 -1
- package/dist/classes/VehicleTask.js +30 -30
- package/dist/classes/Volume.d.ts +39 -39
- package/dist/classes/Volume.d.ts.map +1 -1
- package/dist/classes/Volume.js +54 -54
- package/dist/classes/Weapon.d.ts +291 -291
- package/dist/classes/Weapon.d.ts.map +1 -1
- package/dist/classes/Weapon.js +414 -414
- package/dist/namespaces/Animscene.d.ts +63 -63
- package/dist/namespaces/Animscene.d.ts.map +1 -1
- package/dist/namespaces/Animscene.js +83 -83
- package/dist/namespaces/Audio.d.ts +464 -464
- package/dist/namespaces/Audio.d.ts.map +1 -1
- package/dist/namespaces/Audio.js +650 -650
- package/dist/namespaces/Bounty.d.ts +57 -57
- package/dist/namespaces/Bounty.d.ts.map +1 -1
- package/dist/namespaces/Bounty.js +90 -90
- package/dist/namespaces/CamStatics.d.ts +426 -426
- package/dist/namespaces/CamStatics.d.ts.map +1 -1
- package/dist/namespaces/CamStatics.js +609 -609
- package/dist/namespaces/Collection.d.ts +81 -81
- package/dist/namespaces/Collection.d.ts.map +1 -1
- package/dist/namespaces/Collection.js +113 -113
- package/dist/namespaces/Compendium.d.ts +38 -38
- package/dist/namespaces/Compendium.d.ts.map +1 -1
- package/dist/namespaces/Compendium.js +52 -52
- package/dist/namespaces/Crashlog.d.ts +10 -10
- package/dist/namespaces/Crashlog.d.ts.map +1 -1
- package/dist/namespaces/Crashlog.js +14 -14
- package/dist/namespaces/Databinding.d.ts +174 -174
- package/dist/namespaces/Databinding.d.ts.map +1 -1
- package/dist/namespaces/Databinding.js +266 -266
- package/dist/namespaces/EntityStatics.d.ts +110 -110
- package/dist/namespaces/EntityStatics.d.ts.map +1 -1
- package/dist/namespaces/EntityStatics.js +146 -146
- package/dist/namespaces/Graphics.d.ts +547 -547
- package/dist/namespaces/Graphics.d.ts.map +1 -1
- package/dist/namespaces/Graphics.js +731 -731
- package/dist/namespaces/Hud.d.ts +395 -395
- package/dist/namespaces/Hud.d.ts.map +1 -1
- package/dist/namespaces/Hud.js +564 -564
- package/dist/namespaces/InteriorStatics.d.ts +40 -40
- package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
- package/dist/namespaces/InteriorStatics.js +56 -56
- package/dist/namespaces/Inventory.d.ts +107 -107
- package/dist/namespaces/Inventory.d.ts.map +1 -1
- package/dist/namespaces/Inventory.js +149 -149
- package/dist/namespaces/Itemdatabase.d.ts +5 -5
- package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
- package/dist/namespaces/Itemdatabase.js +7 -7
- package/dist/namespaces/Map.d.ts +173 -173
- package/dist/namespaces/Map.d.ts.map +1 -1
- package/dist/namespaces/Map.js +240 -240
- package/dist/namespaces/Minigame.d.ts +56 -56
- package/dist/namespaces/Minigame.d.ts.map +1 -1
- package/dist/namespaces/Minigame.js +80 -80
- package/dist/namespaces/Network.d.ts +964 -964
- package/dist/namespaces/Network.d.ts.map +1 -1
- package/dist/namespaces/Network.js +1333 -1333
- package/dist/namespaces/Object.d.ts +240 -240
- package/dist/namespaces/Object.d.ts.map +1 -1
- package/dist/namespaces/Object.js +337 -337
- package/dist/namespaces/Pad.d.ts +95 -95
- package/dist/namespaces/Pad.d.ts.map +1 -1
- package/dist/namespaces/Pad.js +127 -127
- package/dist/namespaces/PedStatics.d.ts +18 -18
- package/dist/namespaces/PedStatics.d.ts.map +1 -1
- package/dist/namespaces/PedStatics.js +26 -26
- package/dist/namespaces/Perschar.d.ts +46 -46
- package/dist/namespaces/Perschar.d.ts.map +1 -1
- package/dist/namespaces/Perschar.js +66 -66
- package/dist/namespaces/Physics.d.ts +207 -207
- package/dist/namespaces/Physics.d.ts.map +1 -1
- package/dist/namespaces/Physics.js +315 -315
- package/dist/namespaces/PlayerStatics.d.ts +68 -68
- package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
- package/dist/namespaces/PlayerStatics.js +95 -95
- package/dist/namespaces/Population.d.ts +86 -86
- package/dist/namespaces/Population.d.ts.map +1 -1
- package/dist/namespaces/Population.js +116 -116
- package/dist/namespaces/Posse.d.ts +43 -43
- package/dist/namespaces/Posse.d.ts.map +1 -1
- package/dist/namespaces/Posse.js +67 -67
- package/dist/namespaces/Propset.d.ts +59 -59
- package/dist/namespaces/Propset.d.ts.map +1 -1
- package/dist/namespaces/Propset.js +81 -81
- package/dist/namespaces/Shapetest.d.ts +11 -11
- package/dist/namespaces/Shapetest.d.ts.map +1 -1
- package/dist/namespaces/Shapetest.js +13 -13
- package/dist/namespaces/Stats.d.ts +90 -90
- package/dist/namespaces/Stats.d.ts.map +1 -1
- package/dist/namespaces/Stats.js +127 -127
- package/dist/namespaces/Streaming.d.ts +127 -127
- package/dist/namespaces/Streaming.d.ts.map +1 -1
- package/dist/namespaces/Streaming.js +193 -193
- package/dist/namespaces/Task.d.ts +346 -346
- package/dist/namespaces/Task.d.ts.map +1 -1
- package/dist/namespaces/Task.js +525 -525
- package/dist/namespaces/Telemetry.d.ts +176 -176
- package/dist/namespaces/Telemetry.d.ts.map +1 -1
- package/dist/namespaces/Telemetry.js +255 -255
- package/dist/namespaces/VolumeStatics.d.ts +64 -64
- package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
- package/dist/namespaces/VolumeStatics.js +85 -85
- package/dist/namespaces/Water.d.ts +27 -27
- package/dist/namespaces/Water.d.ts.map +1 -1
- package/dist/namespaces/Water.js +41 -41
- package/dist/namespaces/WeaponStatics.d.ts +234 -234
- package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
- package/dist/namespaces/WeaponStatics.js +320 -320
- package/dist/namespaces/Zone.d.ts +7 -7
- package/dist/namespaces/Zone.d.ts.map +1 -1
- package/dist/namespaces/Zone.js +9 -9
- package/package.json +1 -1
- package/src/classes/AnimScene.ts +133 -133
- package/src/classes/BaseModel.ts +50 -50
- package/src/classes/BaseTask.ts +55 -55
- package/src/classes/Cam.ts +126 -126
- package/src/classes/Entity.ts +365 -365
- package/src/classes/Interior.ts +43 -43
- package/src/classes/Ped.ts +86 -86
- package/src/classes/PedTask.ts +2067 -2067
- package/src/classes/PersChar.ts +34 -34
- package/src/classes/Pickup.ts +16 -16
- package/src/classes/Player.ts +296 -296
- package/src/classes/Prop.ts +203 -203
- package/src/classes/PropSet.ts +29 -29
- package/src/classes/VehicleTask.ts +32 -32
- package/src/classes/Volume.ts +61 -61
- package/src/classes/Weapon.ts +427 -427
- package/src/namespaces/Animscene.ts +86 -86
- package/src/namespaces/Audio.ts +760 -760
- package/src/namespaces/Bounty.ts +102 -102
- package/src/namespaces/CamStatics.ts +631 -631
- package/src/namespaces/Collection.ts +114 -114
- package/src/namespaces/Compendium.ts +59 -59
- package/src/namespaces/Crashlog.ts +16 -16
- package/src/namespaces/Databinding.ts +282 -282
- package/src/namespaces/EntityStatics.ts +158 -158
- package/src/namespaces/Graphics.ts +1140 -1140
- package/src/namespaces/Hud.ts +592 -592
- package/src/namespaces/InteriorStatics.ts +64 -64
- package/src/namespaces/Inventory.ts +165 -165
- package/src/namespaces/Itemdatabase.ts +8 -8
- package/src/namespaces/Map.ts +256 -256
- package/src/namespaces/Minigame.ts +92 -92
- package/src/namespaces/Network.ts +1392 -1392
- package/src/namespaces/Object.ts +350 -350
- package/src/namespaces/Pad.ts +127 -127
- package/src/namespaces/PedStatics.ts +30 -30
- package/src/namespaces/Perschar.ts +76 -76
- package/src/namespaces/Physics.ts +327 -327
- package/src/namespaces/PlayerStatics.ts +103 -103
- package/src/namespaces/Population.ts +131 -131
- package/src/namespaces/Posse.ts +67 -67
- package/src/namespaces/Propset.ts +92 -92
- package/src/namespaces/Shapetest.ts +14 -14
- package/src/namespaces/Stats.ts +143 -143
- package/src/namespaces/Streaming.ts +226 -226
- package/src/namespaces/Task.ts +498 -498
- package/src/namespaces/Telemetry.ts +261 -261
- package/src/namespaces/VolumeStatics.ts +87 -87
- package/src/namespaces/Water.ts +47 -47
- package/src/namespaces/WeaponStatics.ts +325 -325
- package/src/namespaces/Zone.ts +10 -10
|
@@ -8,70 +8,6 @@ import { createFromHandle } from '../types/HandleRegistry';
|
|
|
8
8
|
import { inv, rai, raf, ras, rav, pvi, pvf, pvv, pvii, pvfi, _h, f } from '../types/NativeAliases';
|
|
9
9
|
|
|
10
10
|
export class InteriorStatics {
|
|
11
|
-
/**
|
|
12
|
-
* @param entity
|
|
13
|
-
* @param interior
|
|
14
|
-
*/
|
|
15
|
-
static retainEntityInInterior(entity: Entity, interior: Interior): void {
|
|
16
|
-
inv<void>('0x5BD616735F16BF5C', entity.handle, interior.handle);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @param pos
|
|
21
|
-
* @param interiorType
|
|
22
|
-
* @returns
|
|
23
|
-
*/
|
|
24
|
-
static getInteriorAtCoordsWithType(pos: Vector3, interiorType: string | null): Interior | null {
|
|
25
|
-
return createFromHandle<Interior>('Interior', inv<number>('0xAAD6170AA33B13C0', f(pos.x), f(pos.y), f(pos.z), interiorType, rai()));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @returns
|
|
30
|
-
*/
|
|
31
|
-
static isInteriorScene(): boolean {
|
|
32
|
-
return inv<boolean>('0x4200F14D6F840A9A', rai());
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @param entity
|
|
37
|
-
*/
|
|
38
|
-
static clearRoomForEntity(entity: Entity): void {
|
|
39
|
-
inv<void>('0xA1762D5BBFCA13A8', entity.handle);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @param entity
|
|
44
|
-
* @param interior
|
|
45
|
-
* @param roomHashKey
|
|
46
|
-
*/
|
|
47
|
-
static forceRoomForEntity(entity: Entity, interior: Interior, roomHashKey: string | number): void {
|
|
48
|
-
inv<void>('0xBC29A9894C976945', entity.handle, interior.handle, _h(roomHashKey));
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @param pos
|
|
53
|
-
* @returns
|
|
54
|
-
*/
|
|
55
|
-
static getInteriorAtCoords(pos: Vector3): Interior | null {
|
|
56
|
-
return createFromHandle<Interior>('Interior', inv<number>('0xCDD36C9E5C469070', f(pos.x), f(pos.y), f(pos.z), rai()));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @param pos
|
|
61
|
-
* @returns
|
|
62
|
-
*/
|
|
63
|
-
static getInteriorFromCollision(pos: Vector3): number {
|
|
64
|
-
return inv<number>('0x5054D1A5218FA696', f(pos.x), f(pos.y), f(pos.z), rai());
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @param interiorID
|
|
69
|
-
* @param roomHashKey
|
|
70
|
-
*/
|
|
71
|
-
static forceRoomForGameViewport(interiorID: number, roomHashKey: string | number): void {
|
|
72
|
-
inv<void>('0x115B4AA8FB28AB43', interiorID, _h(roomHashKey));
|
|
73
|
-
}
|
|
74
|
-
|
|
75
11
|
/**
|
|
76
12
|
* @param p0
|
|
77
13
|
* @param p1
|
|
@@ -150,4 +86,68 @@ export class InteriorStatics {
|
|
|
150
86
|
return inv<boolean>('0xF291396B517E25B2', f(pos.x), f(pos.y), f(pos.z), rai());
|
|
151
87
|
}
|
|
152
88
|
|
|
89
|
+
/**
|
|
90
|
+
* @param entity
|
|
91
|
+
* @param interior
|
|
92
|
+
*/
|
|
93
|
+
static retainEntityInInterior(entity: Entity, interior: Interior): void {
|
|
94
|
+
inv<void>('0x5BD616735F16BF5C', entity.handle, interior.handle);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @param pos
|
|
99
|
+
* @param interiorType
|
|
100
|
+
* @returns
|
|
101
|
+
*/
|
|
102
|
+
static getInteriorAtCoordsWithType(pos: Vector3, interiorType: string | null): Interior | null {
|
|
103
|
+
return createFromHandle<Interior>('Interior', inv<number>('0xAAD6170AA33B13C0', f(pos.x), f(pos.y), f(pos.z), interiorType, rai()));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @returns
|
|
108
|
+
*/
|
|
109
|
+
static isInteriorScene(): boolean {
|
|
110
|
+
return inv<boolean>('0x4200F14D6F840A9A', rai());
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @param entity
|
|
115
|
+
*/
|
|
116
|
+
static clearRoomForEntity(entity: Entity): void {
|
|
117
|
+
inv<void>('0xA1762D5BBFCA13A8', entity.handle);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @param entity
|
|
122
|
+
* @param interior
|
|
123
|
+
* @param roomHashKey
|
|
124
|
+
*/
|
|
125
|
+
static forceRoomForEntity(entity: Entity, interior: Interior, roomHashKey: string | number): void {
|
|
126
|
+
inv<void>('0xBC29A9894C976945', entity.handle, interior.handle, _h(roomHashKey));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @param pos
|
|
131
|
+
* @returns
|
|
132
|
+
*/
|
|
133
|
+
static getInteriorAtCoords(pos: Vector3): Interior | null {
|
|
134
|
+
return createFromHandle<Interior>('Interior', inv<number>('0xCDD36C9E5C469070', f(pos.x), f(pos.y), f(pos.z), rai()));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @param pos
|
|
139
|
+
* @returns
|
|
140
|
+
*/
|
|
141
|
+
static getInteriorFromCollision(pos: Vector3): number {
|
|
142
|
+
return inv<number>('0x5054D1A5218FA696', f(pos.x), f(pos.y), f(pos.z), rai());
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @param interiorID
|
|
147
|
+
* @param roomHashKey
|
|
148
|
+
*/
|
|
149
|
+
static forceRoomForGameViewport(interiorID: number, roomHashKey: string | number): void {
|
|
150
|
+
inv<void>('0x115B4AA8FB28AB43', interiorID, _h(roomHashKey));
|
|
151
|
+
}
|
|
152
|
+
|
|
153
153
|
}
|
|
@@ -321,171 +321,6 @@ export class Inventory {
|
|
|
321
321
|
return result;
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
-
/**
|
|
325
|
-
* @param p0
|
|
326
|
-
* @param p2
|
|
327
|
-
* @returns p1
|
|
328
|
-
*/
|
|
329
|
-
static getInventoryItemFitSlot(p0: string | number, p2: number): [any, number] {
|
|
330
|
-
const result = inv<[number, number]>('0xB991FE166FAF84FD', _h(p0), pvi(), p2);
|
|
331
|
-
return [result[0], result[1]];
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* @returns
|
|
336
|
-
*/
|
|
337
|
-
static isPlayerInventoryMirroringTransactions(): any {
|
|
338
|
-
return inv<number>('0xFC7563F482781A3D');
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* @param inventoryId
|
|
343
|
-
* @param enabled
|
|
344
|
-
* @returns p1
|
|
345
|
-
*/
|
|
346
|
-
static setInventoryItemInspectionEnabled(inventoryId: number, enabled: boolean): [any, number] {
|
|
347
|
-
const result = inv<[number, number]>('0x227522FD59DDB7E8', inventoryId, pvi(), enabled);
|
|
348
|
-
return [result[0], result[1]];
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* @param p0
|
|
353
|
-
* @param p1
|
|
354
|
-
* @param p2
|
|
355
|
-
* @returns
|
|
356
|
-
*/
|
|
357
|
-
static N_0x751A7E0EAEDAD0D3(p0: any, p1: any, p2: any): any {
|
|
358
|
-
return inv<number>('0x751A7E0EAEDAD0D3', p0, p1, p2);
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* @param inventoryId
|
|
363
|
-
* @returns guid
|
|
364
|
-
*/
|
|
365
|
-
static getInventoryItemInUse(inventoryId: number): [boolean, number] {
|
|
366
|
-
const result = inv<[boolean, number]>('0x70E3A884ED000A01', inventoryId, pvi(), rai());
|
|
367
|
-
return [!!result[0], result[1]];
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* p1: WARDROBE, KIT_CAMP, CHARACTER, KIT_MOONSHINER_PROPERTY
|
|
372
|
-
* Returns slot hash
|
|
373
|
-
*
|
|
374
|
-
* @param item
|
|
375
|
-
* @param p1
|
|
376
|
-
* @returns
|
|
377
|
-
*/
|
|
378
|
-
static getDefaultItemSlotInfo(item: string | number, p1: string | number): number {
|
|
379
|
-
return (inv<number>('0x6452B1D357D81742', _h(item), _h(p1), rai())) & 0xFFFFFFFF;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* Example: (1, WEAPON_REVOLVER_CATTLEMAN, 0) - disables cattleman revolver on weapon wheel
|
|
384
|
-
*
|
|
385
|
-
* @param inventoryId
|
|
386
|
-
* @param item
|
|
387
|
-
* @param gtxReason
|
|
388
|
-
*/
|
|
389
|
-
static disableItem(inventoryId: number, item: string | number, gtxReason: string | number): void {
|
|
390
|
-
inv<void>('0x766315A564594401', inventoryId, _h(item), _h(gtxReason));
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
/**
|
|
394
|
-
* @param p1
|
|
395
|
-
* @returns guid
|
|
396
|
-
*/
|
|
397
|
-
static copyItemToMissionInventory(p1: boolean): number {
|
|
398
|
-
const result = inv<number>('0x3112ADB9D5F3426B', pvi(), p1);
|
|
399
|
-
return result;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
/**
|
|
403
|
-
* @param inventoryId
|
|
404
|
-
* @param quantity
|
|
405
|
-
* @param removeReason Refer to [enum: eRemoveItemReason]
|
|
406
|
-
* @returns guid
|
|
407
|
-
*/
|
|
408
|
-
static removeInventoryItemWithGuid(inventoryId: number, quantity: number, removeReason: eRemoveItemReason): [any, number] {
|
|
409
|
-
const result = inv<[number, number]>('0x3E4E811480B3AE79', inventoryId, pvi(), quantity, removeReason);
|
|
410
|
-
return [result[0], result[1]];
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
/**
|
|
414
|
-
* Only used in R* SP Scripts
|
|
415
|
-
*
|
|
416
|
-
* @param inventoryId
|
|
417
|
-
*/
|
|
418
|
-
static N_0xE1F45A67A9F0DCBC(inventoryId: number): void {
|
|
419
|
-
inv<void>('0xE1F45A67A9F0DCBC', inventoryId);
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* Used with CClothingItem
|
|
424
|
-
*
|
|
425
|
-
* @param inventoryId
|
|
426
|
-
* @param hidden
|
|
427
|
-
* @returns guid
|
|
428
|
-
*/
|
|
429
|
-
static setInventoryItemHidden(inventoryId: number, hidden: boolean): number {
|
|
430
|
-
const result = inv<number>('0x9A113C660AEA3832', inventoryId, pvi(), hidden);
|
|
431
|
-
return result;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* @param inventoryId
|
|
436
|
-
* @param p3
|
|
437
|
-
* @returns inData; outData
|
|
438
|
-
*/
|
|
439
|
-
static getInventoryItem(inventoryId: number, p3: boolean): [any, number, number] {
|
|
440
|
-
const result = inv<[number, number, number]>('0x9700E8EFC4AB9089', inventoryId, pvi(), pvi(), p3);
|
|
441
|
-
return [result[0], result[1], result[2]];
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
/**
|
|
445
|
-
* eInventoryItem: CLOTHING_FANCY_SUIT, CLOTHING_GUNSLINGER_OUTFIT, etc.
|
|
446
|
-
* Only used in R* SP Scripts
|
|
447
|
-
*
|
|
448
|
-
* @param inventoryId
|
|
449
|
-
* @param eInventoryItem
|
|
450
|
-
* @param p2
|
|
451
|
-
*/
|
|
452
|
-
static useSatchelItem(inventoryId: number, eInventoryItem: string | number, p2: boolean): void {
|
|
453
|
-
inv<void>('0x46743BBFEDBC859E', inventoryId, _h(eInventoryItem), p2);
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
/**
|
|
457
|
-
* @param inventoryId
|
|
458
|
-
* @param childIndex
|
|
459
|
-
* @returns parentGuid; outInventoryItem
|
|
460
|
-
*/
|
|
461
|
-
static getInventoryItemChild(inventoryId: number, childIndex: any): [any, number, number] {
|
|
462
|
-
const result = inv<[number, number, number]>('0xCD9A485F2B383B44', inventoryId, pvi(), childIndex, pvi());
|
|
463
|
-
return [result[0], result[1], result[2]];
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
/**
|
|
467
|
-
* Used with CSatchelItem, R* Script usage: fisihing_core
|
|
468
|
-
*
|
|
469
|
-
* @param inventoryId
|
|
470
|
-
* @param hidden
|
|
471
|
-
* @returns guid
|
|
472
|
-
*/
|
|
473
|
-
static setInventoryItemHidden2(inventoryId: number, hidden: boolean): number {
|
|
474
|
-
const result = inv<number>('0xD740F11FBC8AEF43', inventoryId, pvi(), hidden);
|
|
475
|
-
return result;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
/**
|
|
479
|
-
* @param inventoryId
|
|
480
|
-
* @param p2
|
|
481
|
-
* @param slotId
|
|
482
|
-
* @returns guid; outGuid
|
|
483
|
-
*/
|
|
484
|
-
static getGuidFromItemid(inventoryId: number, p2: string | number, slotId: string | number): [any, number, number] {
|
|
485
|
-
const result = inv<[number, number, number]>('0x886DFD3E185C8A89', inventoryId, pvi(), _h(p2), _h(slotId), pvi());
|
|
486
|
-
return [result[0], result[1], result[2]];
|
|
487
|
-
}
|
|
488
|
-
|
|
489
324
|
/**
|
|
490
325
|
* @param provision
|
|
491
326
|
* @param slotId
|
|
@@ -679,6 +514,171 @@ export class Inventory {
|
|
|
679
514
|
return [result[0] & 0xFFFFFFFF, result[1]];
|
|
680
515
|
}
|
|
681
516
|
|
|
517
|
+
/**
|
|
518
|
+
* @param p0
|
|
519
|
+
* @param p2
|
|
520
|
+
* @returns p1
|
|
521
|
+
*/
|
|
522
|
+
static getInventoryItemFitSlot(p0: string | number, p2: number): [any, number] {
|
|
523
|
+
const result = inv<[number, number]>('0xB991FE166FAF84FD', _h(p0), pvi(), p2);
|
|
524
|
+
return [result[0], result[1]];
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* @returns
|
|
529
|
+
*/
|
|
530
|
+
static isPlayerInventoryMirroringTransactions(): any {
|
|
531
|
+
return inv<number>('0xFC7563F482781A3D');
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* @param inventoryId
|
|
536
|
+
* @param enabled
|
|
537
|
+
* @returns p1
|
|
538
|
+
*/
|
|
539
|
+
static setInventoryItemInspectionEnabled(inventoryId: number, enabled: boolean): [any, number] {
|
|
540
|
+
const result = inv<[number, number]>('0x227522FD59DDB7E8', inventoryId, pvi(), enabled);
|
|
541
|
+
return [result[0], result[1]];
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* @param p0
|
|
546
|
+
* @param p1
|
|
547
|
+
* @param p2
|
|
548
|
+
* @returns
|
|
549
|
+
*/
|
|
550
|
+
static N_0x751A7E0EAEDAD0D3(p0: any, p1: any, p2: any): any {
|
|
551
|
+
return inv<number>('0x751A7E0EAEDAD0D3', p0, p1, p2);
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* @param inventoryId
|
|
556
|
+
* @returns guid
|
|
557
|
+
*/
|
|
558
|
+
static getInventoryItemInUse(inventoryId: number): [boolean, number] {
|
|
559
|
+
const result = inv<[boolean, number]>('0x70E3A884ED000A01', inventoryId, pvi(), rai());
|
|
560
|
+
return [!!result[0], result[1]];
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* p1: WARDROBE, KIT_CAMP, CHARACTER, KIT_MOONSHINER_PROPERTY
|
|
565
|
+
* Returns slot hash
|
|
566
|
+
*
|
|
567
|
+
* @param item
|
|
568
|
+
* @param p1
|
|
569
|
+
* @returns
|
|
570
|
+
*/
|
|
571
|
+
static getDefaultItemSlotInfo(item: string | number, p1: string | number): number {
|
|
572
|
+
return (inv<number>('0x6452B1D357D81742', _h(item), _h(p1), rai())) & 0xFFFFFFFF;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Example: (1, WEAPON_REVOLVER_CATTLEMAN, 0) - disables cattleman revolver on weapon wheel
|
|
577
|
+
*
|
|
578
|
+
* @param inventoryId
|
|
579
|
+
* @param item
|
|
580
|
+
* @param gtxReason
|
|
581
|
+
*/
|
|
582
|
+
static disableItem(inventoryId: number, item: string | number, gtxReason: string | number): void {
|
|
583
|
+
inv<void>('0x766315A564594401', inventoryId, _h(item), _h(gtxReason));
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* @param p1
|
|
588
|
+
* @returns guid
|
|
589
|
+
*/
|
|
590
|
+
static copyItemToMissionInventory(p1: boolean): number {
|
|
591
|
+
const result = inv<number>('0x3112ADB9D5F3426B', pvi(), p1);
|
|
592
|
+
return result;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* @param inventoryId
|
|
597
|
+
* @param quantity
|
|
598
|
+
* @param removeReason Refer to [enum: eRemoveItemReason]
|
|
599
|
+
* @returns guid
|
|
600
|
+
*/
|
|
601
|
+
static removeInventoryItemWithGuid(inventoryId: number, quantity: number, removeReason: eRemoveItemReason): [any, number] {
|
|
602
|
+
const result = inv<[number, number]>('0x3E4E811480B3AE79', inventoryId, pvi(), quantity, removeReason);
|
|
603
|
+
return [result[0], result[1]];
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Only used in R* SP Scripts
|
|
608
|
+
*
|
|
609
|
+
* @param inventoryId
|
|
610
|
+
*/
|
|
611
|
+
static N_0xE1F45A67A9F0DCBC(inventoryId: number): void {
|
|
612
|
+
inv<void>('0xE1F45A67A9F0DCBC', inventoryId);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Used with CClothingItem
|
|
617
|
+
*
|
|
618
|
+
* @param inventoryId
|
|
619
|
+
* @param hidden
|
|
620
|
+
* @returns guid
|
|
621
|
+
*/
|
|
622
|
+
static setInventoryItemHidden(inventoryId: number, hidden: boolean): number {
|
|
623
|
+
const result = inv<number>('0x9A113C660AEA3832', inventoryId, pvi(), hidden);
|
|
624
|
+
return result;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* @param inventoryId
|
|
629
|
+
* @param p3
|
|
630
|
+
* @returns inData; outData
|
|
631
|
+
*/
|
|
632
|
+
static getInventoryItem(inventoryId: number, p3: boolean): [any, number, number] {
|
|
633
|
+
const result = inv<[number, number, number]>('0x9700E8EFC4AB9089', inventoryId, pvi(), pvi(), p3);
|
|
634
|
+
return [result[0], result[1], result[2]];
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* eInventoryItem: CLOTHING_FANCY_SUIT, CLOTHING_GUNSLINGER_OUTFIT, etc.
|
|
639
|
+
* Only used in R* SP Scripts
|
|
640
|
+
*
|
|
641
|
+
* @param inventoryId
|
|
642
|
+
* @param eInventoryItem
|
|
643
|
+
* @param p2
|
|
644
|
+
*/
|
|
645
|
+
static useSatchelItem(inventoryId: number, eInventoryItem: string | number, p2: boolean): void {
|
|
646
|
+
inv<void>('0x46743BBFEDBC859E', inventoryId, _h(eInventoryItem), p2);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* @param inventoryId
|
|
651
|
+
* @param childIndex
|
|
652
|
+
* @returns parentGuid; outInventoryItem
|
|
653
|
+
*/
|
|
654
|
+
static getInventoryItemChild(inventoryId: number, childIndex: any): [any, number, number] {
|
|
655
|
+
const result = inv<[number, number, number]>('0xCD9A485F2B383B44', inventoryId, pvi(), childIndex, pvi());
|
|
656
|
+
return [result[0], result[1], result[2]];
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Used with CSatchelItem, R* Script usage: fisihing_core
|
|
661
|
+
*
|
|
662
|
+
* @param inventoryId
|
|
663
|
+
* @param hidden
|
|
664
|
+
* @returns guid
|
|
665
|
+
*/
|
|
666
|
+
static setInventoryItemHidden2(inventoryId: number, hidden: boolean): number {
|
|
667
|
+
const result = inv<number>('0xD740F11FBC8AEF43', inventoryId, pvi(), hidden);
|
|
668
|
+
return result;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* @param inventoryId
|
|
673
|
+
* @param p2
|
|
674
|
+
* @param slotId
|
|
675
|
+
* @returns guid; outGuid
|
|
676
|
+
*/
|
|
677
|
+
static getGuidFromItemid(inventoryId: number, p2: string | number, slotId: string | number): [any, number, number] {
|
|
678
|
+
const result = inv<[number, number, number]>('0x886DFD3E185C8A89', inventoryId, pvi(), _h(p2), _h(slotId), pvi());
|
|
679
|
+
return [result[0], result[1], result[2]];
|
|
680
|
+
}
|
|
681
|
+
|
|
682
682
|
/**
|
|
683
683
|
* @param ped
|
|
684
684
|
* @param p1
|
|
@@ -708,14 +708,6 @@ export class Itemdatabase {
|
|
|
708
708
|
return [result[0], result[1], result[2]];
|
|
709
709
|
}
|
|
710
710
|
|
|
711
|
-
/**
|
|
712
|
-
* @param p0
|
|
713
|
-
* @returns
|
|
714
|
-
*/
|
|
715
|
-
static N_0x7A35A72A692BE9DB(p0: any): number {
|
|
716
|
-
return inv<number>('0x7A35A72A692BE9DB', p0, rai());
|
|
717
|
-
}
|
|
718
|
-
|
|
719
711
|
/**
|
|
720
712
|
* @param award
|
|
721
713
|
* @returns
|
|
@@ -826,4 +818,12 @@ export class Itemdatabase {
|
|
|
826
818
|
return inv<number>('0x49885D82A13EEAEA', p0, p1, rai());
|
|
827
819
|
}
|
|
828
820
|
|
|
821
|
+
/**
|
|
822
|
+
* @param p0
|
|
823
|
+
* @returns
|
|
824
|
+
*/
|
|
825
|
+
static N_0x7A35A72A692BE9DB(p0: any): number {
|
|
826
|
+
return inv<number>('0x7A35A72A692BE9DB', p0, rai());
|
|
827
|
+
}
|
|
828
|
+
|
|
829
829
|
}
|