@nativewrappers/redm-codegen 0.0.2 → 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.
Files changed (248) hide show
  1. package/dist/classes/AnimScene.d.ts +101 -101
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +147 -147
  4. package/dist/classes/BaseModel.d.ts +12 -12
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +18 -18
  7. package/dist/classes/BaseTask.d.ts +22 -22
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +29 -29
  10. package/dist/classes/Cam.d.ts +86 -86
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +116 -116
  13. package/dist/classes/Entity.d.ts +426 -425
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +594 -589
  16. package/dist/classes/Interior.d.ts +1 -1
  17. package/dist/classes/Interior.d.ts.map +1 -1
  18. package/dist/classes/Ped.d.ts +13 -12
  19. package/dist/classes/Ped.d.ts.map +1 -1
  20. package/dist/classes/Ped.js +5 -0
  21. package/dist/classes/PedTask.d.ts +729 -729
  22. package/dist/classes/PedTask.d.ts.map +1 -1
  23. package/dist/classes/PedTask.js +951 -951
  24. package/dist/classes/PersChar.d.ts +11 -11
  25. package/dist/classes/PersChar.d.ts.map +1 -1
  26. package/dist/classes/PersChar.js +17 -17
  27. package/dist/classes/Pickup.d.ts +3 -3
  28. package/dist/classes/Pickup.d.ts.map +1 -1
  29. package/dist/classes/Pickup.js +7 -7
  30. package/dist/classes/Player.d.ts +164 -164
  31. package/dist/classes/Player.d.ts.map +1 -1
  32. package/dist/classes/Player.js +218 -218
  33. package/dist/classes/Prop.d.ts +87 -86
  34. package/dist/classes/Prop.d.ts.map +1 -1
  35. package/dist/classes/Prop.js +131 -126
  36. package/dist/classes/PropSet.d.ts +18 -18
  37. package/dist/classes/PropSet.d.ts.map +1 -1
  38. package/dist/classes/PropSet.js +25 -25
  39. package/dist/classes/Vehicle.d.ts +1 -0
  40. package/dist/classes/Vehicle.d.ts.map +1 -1
  41. package/dist/classes/Vehicle.js +5 -0
  42. package/dist/classes/VehicleTask.d.ts +18 -18
  43. package/dist/classes/VehicleTask.d.ts.map +1 -1
  44. package/dist/classes/VehicleTask.js +26 -26
  45. package/dist/classes/Volume.d.ts +1 -1
  46. package/dist/classes/Volume.d.ts.map +1 -1
  47. package/dist/classes/Weapon.d.ts +277 -277
  48. package/dist/classes/Weapon.d.ts.map +1 -1
  49. package/dist/classes/Weapon.js +398 -398
  50. package/dist/namespaces/Aitransport.d.ts +77 -77
  51. package/dist/namespaces/Aitransport.d.ts.map +1 -1
  52. package/dist/namespaces/Aitransport.js +94 -94
  53. package/dist/namespaces/Animscene.d.ts +51 -51
  54. package/dist/namespaces/Animscene.d.ts.map +1 -1
  55. package/dist/namespaces/Animscene.js +69 -69
  56. package/dist/namespaces/Audio.d.ts +2 -2
  57. package/dist/namespaces/Audio.d.ts.map +1 -1
  58. package/dist/namespaces/Bounty.d.ts +57 -57
  59. package/dist/namespaces/Bounty.d.ts.map +1 -1
  60. package/dist/namespaces/Bounty.js +90 -90
  61. package/dist/namespaces/Brain.d.ts +15 -15
  62. package/dist/namespaces/Brain.d.ts.map +1 -1
  63. package/dist/namespaces/Brain.js +20 -20
  64. package/dist/namespaces/CamStatics.d.ts +317 -317
  65. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  66. package/dist/namespaces/CamStatics.js +449 -449
  67. package/dist/namespaces/Collection.d.ts +13 -13
  68. package/dist/namespaces/Collection.d.ts.map +1 -1
  69. package/dist/namespaces/Collection.js +8 -8
  70. package/dist/namespaces/Companion.d.ts +22 -22
  71. package/dist/namespaces/Companion.d.ts.map +1 -1
  72. package/dist/namespaces/Companion.js +30 -30
  73. package/dist/namespaces/Compendium.d.ts +60 -60
  74. package/dist/namespaces/Compendium.d.ts.map +1 -1
  75. package/dist/namespaces/Compendium.js +80 -80
  76. package/dist/namespaces/Crashlog.d.ts +10 -10
  77. package/dist/namespaces/Crashlog.d.ts.map +1 -1
  78. package/dist/namespaces/Crashlog.js +14 -14
  79. package/dist/namespaces/Databinding.d.ts +173 -173
  80. package/dist/namespaces/Databinding.d.ts.map +1 -1
  81. package/dist/namespaces/Databinding.js +263 -263
  82. package/dist/namespaces/Dlc.d.ts +5 -5
  83. package/dist/namespaces/Dlc.d.ts.map +1 -1
  84. package/dist/namespaces/Dlc.js +9 -9
  85. package/dist/namespaces/EntityStatics.d.ts +178 -178
  86. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  87. package/dist/namespaces/EntityStatics.js +242 -242
  88. package/dist/namespaces/Event.d.ts +62 -62
  89. package/dist/namespaces/Event.d.ts.map +1 -1
  90. package/dist/namespaces/Event.js +82 -82
  91. package/dist/namespaces/Fire.d.ts +7 -7
  92. package/dist/namespaces/Fire.d.ts.map +1 -1
  93. package/dist/namespaces/Fire.js +9 -9
  94. package/dist/namespaces/Graphics.d.ts +797 -797
  95. package/dist/namespaces/Graphics.d.ts.map +1 -1
  96. package/dist/namespaces/Graphics.js +1095 -1095
  97. package/dist/namespaces/Hud.d.ts +477 -477
  98. package/dist/namespaces/Hud.d.ts.map +1 -1
  99. package/dist/namespaces/Hud.js +721 -721
  100. package/dist/namespaces/InteriorStatics.d.ts +2 -2
  101. package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
  102. package/dist/namespaces/Inventory.d.ts +216 -216
  103. package/dist/namespaces/Inventory.d.ts.map +1 -1
  104. package/dist/namespaces/Inventory.js +301 -301
  105. package/dist/namespaces/Itemdatabase.d.ts +8 -8
  106. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  107. package/dist/namespaces/Itemdatabase.js +7 -7
  108. package/dist/namespaces/Law.d.ts +2 -2
  109. package/dist/namespaces/Law.d.ts.map +1 -1
  110. package/dist/namespaces/Map.d.ts +65 -65
  111. package/dist/namespaces/Map.d.ts.map +1 -1
  112. package/dist/namespaces/Map.js +91 -91
  113. package/dist/namespaces/Minigame.d.ts +17 -17
  114. package/dist/namespaces/Minigame.d.ts.map +1 -1
  115. package/dist/namespaces/Minigame.js +25 -25
  116. package/dist/namespaces/Misc.d.ts +5 -5
  117. package/dist/namespaces/Misc.d.ts.map +1 -1
  118. package/dist/namespaces/Missiondata.d.ts +3 -3
  119. package/dist/namespaces/Missiondata.d.ts.map +1 -1
  120. package/dist/namespaces/Netshopping.d.ts +1 -1
  121. package/dist/namespaces/Netshopping.d.ts.map +1 -1
  122. package/dist/namespaces/Network.d.ts +1302 -1310
  123. package/dist/namespaces/Network.d.ts.map +1 -1
  124. package/dist/namespaces/Network.js +1910 -1918
  125. package/dist/namespaces/Object.d.ts +170 -170
  126. package/dist/namespaces/Object.d.ts.map +1 -1
  127. package/dist/namespaces/Object.js +232 -232
  128. package/dist/namespaces/Pad.d.ts +103 -103
  129. package/dist/namespaces/Pad.d.ts.map +1 -1
  130. package/dist/namespaces/Pad.js +134 -134
  131. package/dist/namespaces/PedStatics.d.ts +3 -3
  132. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  133. package/dist/namespaces/Perschar.d.ts +71 -71
  134. package/dist/namespaces/Perschar.d.ts.map +1 -1
  135. package/dist/namespaces/Perschar.js +106 -106
  136. package/dist/namespaces/Persistence.d.ts +30 -30
  137. package/dist/namespaces/Persistence.d.ts.map +1 -1
  138. package/dist/namespaces/Persistence.js +42 -42
  139. package/dist/namespaces/PlayerStatics.d.ts +52 -52
  140. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  141. package/dist/namespaces/PlayerStatics.js +71 -71
  142. package/dist/namespaces/Population.d.ts +3 -3
  143. package/dist/namespaces/Population.d.ts.map +1 -1
  144. package/dist/namespaces/Posse.d.ts +28 -28
  145. package/dist/namespaces/Posse.d.ts.map +1 -1
  146. package/dist/namespaces/Posse.js +44 -44
  147. package/dist/namespaces/Propset.d.ts +59 -59
  148. package/dist/namespaces/Propset.d.ts.map +1 -1
  149. package/dist/namespaces/Propset.js +81 -81
  150. package/dist/namespaces/Scripts.d.ts +3 -3
  151. package/dist/namespaces/Scripts.d.ts.map +1 -1
  152. package/dist/namespaces/Socialclub.d.ts +1 -1
  153. package/dist/namespaces/Socialclub.d.ts.map +1 -1
  154. package/dist/namespaces/Stats.d.ts +85 -85
  155. package/dist/namespaces/Stats.d.ts.map +1 -1
  156. package/dist/namespaces/Stats.js +113 -113
  157. package/dist/namespaces/Streaming.d.ts +35 -35
  158. package/dist/namespaces/Streaming.d.ts.map +1 -1
  159. package/dist/namespaces/Streaming.js +53 -53
  160. package/dist/namespaces/Task.d.ts +367 -367
  161. package/dist/namespaces/Task.d.ts.map +1 -1
  162. package/dist/namespaces/Task.js +508 -508
  163. package/dist/namespaces/Telemetry.d.ts +198 -198
  164. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  165. package/dist/namespaces/Telemetry.js +274 -274
  166. package/dist/namespaces/Uiapps.d.ts +24 -24
  167. package/dist/namespaces/Uiapps.d.ts.map +1 -1
  168. package/dist/namespaces/Uiapps.js +33 -33
  169. package/dist/namespaces/Uistickyfeed.d.ts +16 -16
  170. package/dist/namespaces/Uistickyfeed.d.ts.map +1 -1
  171. package/dist/namespaces/Uistickyfeed.js +21 -21
  172. package/dist/namespaces/VehicleStatics.d.ts +2 -2
  173. package/dist/namespaces/VehicleStatics.d.ts.map +1 -1
  174. package/dist/namespaces/Water.d.ts +27 -27
  175. package/dist/namespaces/Water.d.ts.map +1 -1
  176. package/dist/namespaces/Water.js +41 -41
  177. package/dist/namespaces/WeaponStatics.d.ts +250 -250
  178. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  179. package/dist/namespaces/WeaponStatics.js +372 -372
  180. package/dist/namespaces/Zone.d.ts +8 -8
  181. package/dist/namespaces/Zone.d.ts.map +1 -1
  182. package/dist/namespaces/Zone.js +9 -9
  183. package/package.json +1 -1
  184. package/src/classes/AnimScene.ts +170 -170
  185. package/src/classes/BaseModel.ts +21 -21
  186. package/src/classes/BaseTask.ts +31 -31
  187. package/src/classes/Cam.ts +124 -124
  188. package/src/classes/Entity.ts +619 -614
  189. package/src/classes/Interior.ts +1 -1
  190. package/src/classes/Ped.ts +17 -12
  191. package/src/classes/PedTask.ts +1011 -1011
  192. package/src/classes/PersChar.ts +19 -19
  193. package/src/classes/Pickup.ts +8 -8
  194. package/src/classes/Player.ts +227 -227
  195. package/src/classes/Prop.ts +146 -141
  196. package/src/classes/PropSet.ts +29 -29
  197. package/src/classes/Vehicle.ts +5 -0
  198. package/src/classes/VehicleTask.ts +30 -30
  199. package/src/classes/Volume.ts +1 -1
  200. package/src/classes/Weapon.ts +414 -414
  201. package/src/namespaces/Aitransport.ts +102 -102
  202. package/src/namespaces/Animscene.ts +78 -78
  203. package/src/namespaces/Audio.ts +2 -2
  204. package/src/namespaces/Bounty.ts +102 -102
  205. package/src/namespaces/Brain.ts +22 -22
  206. package/src/namespaces/CamStatics.ts +501 -501
  207. package/src/namespaces/Collection.ts +16 -16
  208. package/src/namespaces/Companion.ts +34 -34
  209. package/src/namespaces/Compendium.ts +93 -93
  210. package/src/namespaces/Crashlog.ts +16 -16
  211. package/src/namespaces/Databinding.ts +280 -280
  212. package/src/namespaces/Dlc.ts +9 -9
  213. package/src/namespaces/EntityStatics.ts +249 -249
  214. package/src/namespaces/Event.ts +92 -92
  215. package/src/namespaces/Fire.ts +10 -10
  216. package/src/namespaces/Graphics.ts +1155 -1155
  217. package/src/namespaces/Hud.ts +763 -763
  218. package/src/namespaces/InteriorStatics.ts +2 -2
  219. package/src/namespaces/Inventory.ts +321 -321
  220. package/src/namespaces/Itemdatabase.ts +11 -11
  221. package/src/namespaces/Law.ts +2 -2
  222. package/src/namespaces/Map.ts +104 -104
  223. package/src/namespaces/Minigame.ts +29 -29
  224. package/src/namespaces/Misc.ts +5 -5
  225. package/src/namespaces/Missiondata.ts +3 -3
  226. package/src/namespaces/Netshopping.ts +1 -1
  227. package/src/namespaces/Network.ts +1921 -1929
  228. package/src/namespaces/Object.ts +237 -237
  229. package/src/namespaces/Pad.ts +151 -151
  230. package/src/namespaces/PedStatics.ts +3 -3
  231. package/src/namespaces/Perschar.ts +116 -116
  232. package/src/namespaces/Persistence.ts +48 -48
  233. package/src/namespaces/PlayerStatics.ts +75 -75
  234. package/src/namespaces/Population.ts +3 -3
  235. package/src/namespaces/Posse.ts +47 -47
  236. package/src/namespaces/Propset.ts +92 -92
  237. package/src/namespaces/Scripts.ts +3 -3
  238. package/src/namespaces/Socialclub.ts +1 -1
  239. package/src/namespaces/Stats.ts +129 -129
  240. package/src/namespaces/Streaming.ts +62 -62
  241. package/src/namespaces/Task.ts +538 -538
  242. package/src/namespaces/Telemetry.ts +295 -295
  243. package/src/namespaces/Uiapps.ts +39 -39
  244. package/src/namespaces/Uistickyfeed.ts +23 -23
  245. package/src/namespaces/VehicleStatics.ts +2 -2
  246. package/src/namespaces/Water.ts +47 -47
  247. package/src/namespaces/WeaponStatics.ts +394 -394
  248. package/src/namespaces/Zone.ts +11 -11
@@ -1,32 +1,5 @@
1
1
  import { inv, rai, pvi, _h } from '../types/NativeAliases';
2
2
  export class Inventory {
3
- /**
4
- * @param inventoryId
5
- * @param p3
6
- * @param p4
7
- * @returns guid; p2
8
- */
9
- static getFullInventoryItemData(inventoryId, p3, p4) {
10
- const result = inv('0x025A1B1FB03FBF61', inventoryId, pvi(), pvi(), p3, p4);
11
- return [result[0], result[1], result[2]];
12
- }
13
- /**
14
- * @param inventoryId
15
- */
16
- static enableWeapons(inventoryId) {
17
- inv('0xD5D72F1624F3BA7C', inventoryId);
18
- }
19
- /**
20
- * Params: p3 returns an int between 0 and 20 (?)
21
- * Only used in R* SP Scripts
22
- *
23
- * @param inventoryId
24
- * @returns guid; p2; p3
25
- */
26
- static N_0xD08685BA892DBFAB(inventoryId) {
27
- const result = inv('0xD08685BA892DBFAB', inventoryId, pvi(), pvi(), pvi(), rai());
28
- return [!!result[0], result[1], result[2], result[3]];
29
- }
30
3
  /**
31
4
  * Returns stats entry id of CatalogItemInspection container
32
5
  *
@@ -126,143 +99,31 @@ export class Inventory {
126
99
  return inv('0x3D10D7179D7034AF', inventoryId, _h(item), p2);
127
100
  }
128
101
  /**
129
- * collectionId is < outCollectionSize
130
- *
131
- * @param collectionId
132
- * @param itemIndex
133
- * @returns itemData
134
- */
135
- static getItemFromCollectionIndex(collectionId, itemIndex) {
136
- const result = inv('0x82FA24C3D3FCD9B7', collectionId, itemIndex, pvi());
137
- return [result[0], result[1]];
138
- }
139
- /**
140
- * @returns p0
141
- */
142
- static setItemPromptInfoRequest() {
143
- const result = inv('0xFD41D1D4350F6413', pvi());
144
- return result;
145
- }
146
- /**
147
- * @param inventoryId
148
- * @param item
149
- * @param quantity
150
- * @param removeReason Refer to [enum: eRemoveItemReason]
151
- * @returns
152
- */
153
- static removeInventoryItemWithItemid(inventoryId, item, quantity, removeReason) {
154
- return inv('0xB4158C8C9A3B5DCE', inventoryId, _h(item), quantity, removeReason);
155
- }
156
- /**
157
- * Params: p1 = 0
158
- *
159
102
  * @param inventoryId
160
- * @param p1
161
- */
162
- static disableWeapons(inventoryId, p1) {
163
- inv('0xE3A46370F70F3607', inventoryId, p1);
164
- }
165
- /**
166
- * @returns guid1; guid2
103
+ * @param p3
104
+ * @param p4
105
+ * @returns guid; p2
167
106
  */
168
- static compareGuids() {
169
- const result = inv('0x4C543D5DFCD2DAFD', pvi(), pvi());
107
+ static getFullInventoryItemData(inventoryId, p3, p4) {
108
+ const result = inv('0x025A1B1FB03FBF61', inventoryId, pvi(), pvi(), p3, p4);
170
109
  return [result[0], result[1], result[2]];
171
110
  }
172
111
  /**
173
112
  * @param inventoryId
174
- * @param bEquipped
175
- * @returns guid
176
- */
177
- static equipItemWithGuid(inventoryId, bEquipped) {
178
- const result = inv('0x734311E2852760D0', inventoryId, pvi(), bEquipped);
179
- return [result[0], result[1]];
180
- }
181
- /**
182
- * @param item
183
- * @returns
184
- */
185
- static getInventoryItemIsAnimalPelt(item) {
186
- return inv('0x4AEF1FB5B9011D75', _h(item));
187
- }
188
- /**
189
- * @param inventoryId
190
- * @param eRoleMaxLevel
191
- * @returns
192
- */
193
- static getItemRoleMaxLevelCount(inventoryId, eRoleMaxLevel) {
194
- return inv('0xADDD1E7C0ECF7D95', inventoryId, _h(eRoleMaxLevel), rai());
195
- }
196
- /**
197
- * Used in function SET_SHOP_BEING_ROBBED and many other shop related scripts and functions.
198
- * INVENTORY_A*
199
- */
200
- static N_0x9B4E793B1CB6550A() {
201
- inv('0x9B4E793B1CB6550A');
202
- }
203
- /**
204
- * @returns guid
205
- */
206
- static isGuidValid() {
207
- const result = inv('0xB881CA836CC4B6D4', pvi());
208
- return [result[0], result[1]];
209
- }
210
- /**
211
- * Max num of collections is 5, so release your unused ones.
212
- *
213
- * @param collectionId
214
- * @returns
215
- */
216
- static releaseItemCollection(collectionId) {
217
- return inv('0x42A2F33A1942E865', collectionId);
218
- }
219
- /**
220
- * @param item
221
- * @returns info
222
- */
223
- static getInventoryItemInspectionInfo(item) {
224
- const result = inv('0x0C093C1787F18519', _h(item), pvi());
225
- return [result[0], result[1]];
226
- }
227
- /**
228
- * p1, p2: 0
229
- *
230
- * @param databindingEntryId
231
- * @param p1
232
- * @param p2
233
- */
234
- static N_0x75CFAC49301E134F(databindingEntryId, p1, p2) {
235
- inv('0x75CFAC49301E134F', _h(databindingEntryId), p1, p2);
236
- }
237
- /**
238
- * @param inventoryId
239
- * @param slotId
240
- * @returns guid
241
- */
242
- static getChildrenInSlotCount(inventoryId, slotId) {
243
- const result = inv('0x033EE4B89F3AC545', inventoryId, pvi(), _h(slotId), rai());
244
- return [result[0], result[1]];
245
- }
246
- /**
247
- * Returns item Hash to be used with _IS_SCRIPTED_AUDIO_CUSTOM and _PLAY_SOUND_FROM_ITEM (p0)
248
- *
249
- * @param item
250
- * @param soundType Refer to [enum: eInventoryItemSound]
251
- * @returns
252
113
  */
253
- static getInventoryItemSound(item, soundType) {
254
- return (inv('0x2E1CDC1FF3B8473E', _h(item), soundType, rai())) & 0xFFFFFFFF;
114
+ static enableWeapons(inventoryId) {
115
+ inv('0xD5D72F1624F3BA7C', inventoryId);
255
116
  }
256
117
  /**
118
+ * Params: p3 returns an int between 0 and 20 (?)
257
119
  * Only used in R* SP Scripts
258
120
  *
259
121
  * @param inventoryId
260
- * @param p1
261
- * @returns year; month; day; hour; minute; second
122
+ * @returns guid; p2; p3
262
123
  */
263
- static N_0x112BCA290D2EB53C(inventoryId, p1) {
264
- const result = inv('0x112BCA290D2EB53C', inventoryId, _h(p1), pvi(), pvi(), pvi(), pvi(), pvi(), pvi(), rai());
265
- return [!!result[0], result[1], result[2], result[3], result[4], result[5], result[6]];
124
+ static N_0xD08685BA892DBFAB(inventoryId) {
125
+ const result = inv('0xD08685BA892DBFAB', inventoryId, pvi(), pvi(), pvi(), rai());
126
+ return [!!result[0], result[1], result[2], result[3]];
266
127
  }
267
128
  /**
268
129
  * Returns effects entry id of CatalogItemInspection container.
@@ -420,78 +281,196 @@ export class Inventory {
420
281
  return result;
421
282
  }
422
283
  /**
423
- * @param ped
424
- * @param p1
284
+ * @param provision
285
+ * @param slotId
286
+ * @returns
425
287
  */
426
- static N_0x9E58207B194488AC(ped, p1) {
427
- inv('0x9E58207B194488AC', ped.handle, p1);
288
+ static getItemSlotMaxCount(provision, slotId) {
289
+ return inv('0xE80E50BEE276A54A', _h(provision), _h(slotId), rai());
428
290
  }
429
291
  /**
292
+ * Params: p0 is only 0 or 1
293
+ * Only used in R* SP Scripts
294
+ *
295
+ * @param p0
430
296
  * @param inventoryId
431
297
  * @returns guid
432
298
  */
433
- static getInventoryItemHidden(inventoryId) {
434
- const result = inv('0xF9933164965533B7', inventoryId, pvi());
435
- return [result[0], result[1]];
299
+ static N_0x0349404A22736740(p0, inventoryId) {
300
+ const result = inv('0x0349404A22736740', p0, inventoryId, pvi());
301
+ return result;
436
302
  }
437
303
  /**
438
- * soundType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/CItemInfoSoundsInterface__sSoundsInfo__eSoundType
439
- *
440
- * @param item
441
- * @param soundType Refer to [enum: eInventoryItemSound]
304
+ * @param inventoryId
305
+ * @param eInventoryItem
306
+ * @param p2
442
307
  * @returns
443
308
  */
444
- static getIsInventoryItemSoundValid(item, soundType) {
445
- return inv('0x2BAE4880DCDD560B', _h(item), soundType);
309
+ static getInventoryItemCountWithItemid(inventoryId, eInventoryItem, p2) {
310
+ return inv('0xE787F05DFC977BDE', inventoryId, _h(eInventoryItem), p2, rai());
446
311
  }
447
312
  /**
448
- * Getter: _INVENTORY_GET_FULL_INVENTORY_ITEM_DATA
313
+ * Returns collectionId
449
314
  *
450
- * @param inventoryId
451
- * @param p3
452
- * @returns guid1; guid2
315
+ * @returns collectionSize
453
316
  */
454
- static updateInventoryItem(inventoryId, p3) {
455
- const result = inv('0xD80A8854DB5CFBA5', inventoryId, pvi(), pvi(), p3);
456
- return [result[0], result[1], result[2]];
317
+ static createItemCollection2() {
318
+ const result = inv('0x97A3646645727F42', pvi(), rai());
319
+ return [result[0], result[1]];
457
320
  }
458
321
  /**
459
- * OWE_INVALID = -1,
460
- * OWE_GOOD_IN_HOT
461
- * OWE_GOOD_IN_NONE
462
- * OWE_GOOD_IN_COLD
463
- * OWE_GOOD_IN_ALL
464
- *
465
322
  * @param inventoryId
466
- * @param weatherEffectiveness
467
- * @returns guid
323
+ * @param inventoryIdCloned
324
+ * @param p3
325
+ * @returns p2
468
326
  */
469
- static setInventoryItemWeatherEffectiveness(inventoryId, weatherEffectiveness) {
470
- const result = inv('0x6D2F987736A42D4C', inventoryId, pvi(), weatherEffectiveness);
327
+ static copyItemToInventory(inventoryId, inventoryIdCloned, p3) {
328
+ const result = inv('0xC04F47D488EF9EBA', inventoryId, inventoryIdCloned, pvi(), p3);
471
329
  return result;
472
330
  }
473
331
  /**
474
- * Only used in R* SP Scripts
475
- *
476
- * @param p0
332
+ * @param inventoryId
333
+ * @returns filter; numInCollection
477
334
  */
478
- static useBackupInventory(p0) {
479
- inv('0xE36D4A38D28D9CFB', p0);
335
+ static createItemCollectionWithFilter(inventoryId) {
336
+ const result = inv('0x640F890C3E5A3FFD', inventoryId, pvi(), pvi(), rai());
337
+ return [result[0], result[1], result[2]];
480
338
  }
481
339
  /**
482
- * @param p0
340
+ * @param inventoryId
483
341
  * @param p2
484
- * @returns p1
342
+ * @returns guid
485
343
  */
486
- static getInventoryItemFitSlot(p0, p2) {
487
- const result = inv('0xB991FE166FAF84FD', _h(p0), pvi(), p2);
344
+ static getInventoryItemCountWithGuid(inventoryId, p2) {
345
+ const result = inv('0xC97E0D2302382211', inventoryId, pvi(), p2, rai());
488
346
  return [result[0], result[1]];
489
347
  }
490
348
  /**
491
- * @returns
349
+ * filterName (collections): "ALL", "ALL SATCHEL", "ALL HORSES", "ALL COACHES", "ALL MOUNTS", "ALL CLOTHING", "ALL WEAPONS", "ALL SATCHEL EXCLUDING CLOTHING", "ALL EXCLUDING CLOTHING"
350
+ * slotId: -1591664384
351
+ * p3: outCollectionSize (?)
352
+ * Returns collectionId
353
+ *
354
+ * @param inventoryId
355
+ * @param filterName
356
+ * @param slotId
357
+ * @returns size
492
358
  */
493
- static isPlayerInventoryMirroringTransactions() {
494
- return inv('0xFC7563F482781A3D');
359
+ static createItemCollection(inventoryId, filterName, slotId) {
360
+ const result = inv('0x80D78BDC9D88EF07', inventoryId, filterName, _h(slotId), pvi(), rai());
361
+ return [result[0], result[1]];
362
+ }
363
+ /**
364
+ * p1: 32
365
+ * Returns collectionId
366
+ *
367
+ * @param inventoryId
368
+ * @param p1
369
+ * @returns size
370
+ */
371
+ static createSortedCollection(inventoryId, p1) {
372
+ const result = inv('0xBB7F968675B34B0C', inventoryId, p1, pvi(), rai());
373
+ return [result[0], result[1]];
374
+ }
375
+ /**
376
+ * @param inventoryId
377
+ * @param item
378
+ * @returns guid
379
+ */
380
+ static doesItemOwnEquipment(inventoryId, item) {
381
+ const result = inv('0x88B58B83A43A8CAB', inventoryId, pvi(), _h(item));
382
+ return [result[0], result[1]];
383
+ }
384
+ /**
385
+ * Returns a unique inventory ID for this ped.
386
+ * For the local player ped, it is an eInventories value.
387
+ * For other peds, it is the inventory address casted to unsigned int. enum eInventories
388
+ * {
389
+ * INVENTORY_INVALID,
390
+ * INVENTORY_SP_PLAYER,
391
+ * INVENTORY_MP_PLAYER,
392
+ * INVENTORY_MP_MISSION,
393
+ * INVENTORY_SECOND_SCREEN,
394
+ * INVENTORY_SP_BACKUP,
395
+ * INVENTORY_SP_SNAPSHOT,
396
+ * INVENTORY_0xDE2AE452,
397
+ * INVENTORY_0x399D9B3A,
398
+ * INVENTORY_0x4BD43FA7,
399
+ * INVENTORY_0x9529D251,
400
+ * INVENTORY_0xA75776AC,
401
+ * INVENTORY_MAX_ID = 11,
402
+ * INVENTORY_IDS_COUNT
403
+ * };
404
+ *
405
+ * @param ped
406
+ * @returns
407
+ */
408
+ static getInventoryIdFromPed(ped) {
409
+ return inv('0x13D234A2A3F66E63', ped.handle, rai());
410
+ }
411
+ /**
412
+ * Only works on CClothingItem
413
+ *
414
+ * @param inventoryId
415
+ * @param inUse
416
+ * @returns guid
417
+ */
418
+ static setInventoryItemInUse(inventoryId, inUse) {
419
+ const result = inv('0x65A5F70F4A292EBE', inventoryId, pvi(), inUse);
420
+ return result;
421
+ }
422
+ /**
423
+ * @param inventoryId
424
+ * @param slotId
425
+ * @returns guid; outGuid
426
+ */
427
+ static getInventoryItemEquippedInSlotByRef(inventoryId, slotId) {
428
+ const result = inv('0x22E590F108289A9D', inventoryId, pvi(), _h(slotId), pvi());
429
+ return [result[0], result[1], result[2]];
430
+ }
431
+ /**
432
+ * Apply the weapon stats to the CatalogItemInspection stats entry id. get entryId with _INVENTORY_GET_CATALOG_ITEM_INSPECTION_STATS_ENTRY
433
+ *
434
+ * @param entryId
435
+ * @param weapon
436
+ * @param ped
437
+ */
438
+ static applyWeaponStatsToEntry(entryId, weapon, ped) {
439
+ inv('0x75CFAC49301E134E', entryId, _h(weapon), ped.handle);
440
+ }
441
+ /**
442
+ * @param inventoryId
443
+ * @param item
444
+ */
445
+ static enableItem(inventoryId, item) {
446
+ inv('0x6A564540FAC12211', inventoryId, _h(item));
447
+ }
448
+ /**
449
+ * Returns databindingEntryId to be used with 0x951847CEF3D829FF (p0)
450
+ *
451
+ * @param data
452
+ * @param stats
453
+ * @param ped
454
+ * @returns guid
455
+ */
456
+ static N_0x46DB71883EE9D5AF(data, stats, ped) {
457
+ const result = inv('0x46DB71883EE9D5AF', data, stats, pvi(), ped.handle, rai());
458
+ return [result[0] & 0xFFFFFFFF, result[1]];
459
+ }
460
+ /**
461
+ * @param p0
462
+ * @param p2
463
+ * @returns p1
464
+ */
465
+ static getInventoryItemFitSlot(p0, p2) {
466
+ const result = inv('0xB991FE166FAF84FD', _h(p0), pvi(), p2);
467
+ return [result[0], result[1]];
468
+ }
469
+ /**
470
+ * @returns
471
+ */
472
+ static isPlayerInventoryMirroringTransactions() {
473
+ return inv('0xFC7563F482781A3D');
495
474
  }
496
475
  /**
497
476
  * @param inventoryId
@@ -628,180 +607,201 @@ export class Inventory {
628
607
  return [result[0], result[1], result[2]];
629
608
  }
630
609
  /**
631
- * @param provision
632
- * @param slotId
633
- * @returns
610
+ * @param ped
611
+ * @param p1
634
612
  */
635
- static getItemSlotMaxCount(provision, slotId) {
636
- return inv('0xE80E50BEE276A54A', _h(provision), _h(slotId), rai());
613
+ static N_0x9E58207B194488AC(ped, p1) {
614
+ inv('0x9E58207B194488AC', ped.handle, p1);
637
615
  }
638
616
  /**
639
- * Params: p0 is only 0 or 1
640
- * Only used in R* SP Scripts
641
- *
642
- * @param p0
643
617
  * @param inventoryId
644
618
  * @returns guid
645
619
  */
646
- static N_0x0349404A22736740(p0, inventoryId) {
647
- const result = inv('0x0349404A22736740', p0, inventoryId, pvi());
648
- return result;
620
+ static getInventoryItemHidden(inventoryId) {
621
+ const result = inv('0xF9933164965533B7', inventoryId, pvi());
622
+ return [result[0], result[1]];
649
623
  }
650
624
  /**
651
- * @param inventoryId
652
- * @param eInventoryItem
653
- * @param p2
625
+ * soundType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/CItemInfoSoundsInterface__sSoundsInfo__eSoundType
626
+ *
627
+ * @param item
628
+ * @param soundType Refer to [enum: eInventoryItemSound]
654
629
  * @returns
655
630
  */
656
- static getInventoryItemCountWithItemid(inventoryId, eInventoryItem, p2) {
657
- return inv('0xE787F05DFC977BDE', inventoryId, _h(eInventoryItem), p2, rai());
631
+ static getIsInventoryItemSoundValid(item, soundType) {
632
+ return inv('0x2BAE4880DCDD560B', _h(item), soundType);
658
633
  }
659
634
  /**
660
- * Returns collectionId
635
+ * Getter: _INVENTORY_GET_FULL_INVENTORY_ITEM_DATA
661
636
  *
662
- * @returns collectionSize
637
+ * @param inventoryId
638
+ * @param p3
639
+ * @returns guid1; guid2
663
640
  */
664
- static createItemCollection2() {
665
- const result = inv('0x97A3646645727F42', pvi(), rai());
666
- return [result[0], result[1]];
641
+ static updateInventoryItem(inventoryId, p3) {
642
+ const result = inv('0xD80A8854DB5CFBA5', inventoryId, pvi(), pvi(), p3);
643
+ return [result[0], result[1], result[2]];
667
644
  }
668
645
  /**
646
+ * OWE_INVALID = -1,
647
+ * OWE_GOOD_IN_HOT
648
+ * OWE_GOOD_IN_NONE
649
+ * OWE_GOOD_IN_COLD
650
+ * OWE_GOOD_IN_ALL
651
+ *
669
652
  * @param inventoryId
670
- * @param inventoryIdCloned
671
- * @param p3
672
- * @returns p2
653
+ * @param weatherEffectiveness
654
+ * @returns guid
673
655
  */
674
- static copyItemToInventory(inventoryId, inventoryIdCloned, p3) {
675
- const result = inv('0xC04F47D488EF9EBA', inventoryId, inventoryIdCloned, pvi(), p3);
656
+ static setInventoryItemWeatherEffectiveness(inventoryId, weatherEffectiveness) {
657
+ const result = inv('0x6D2F987736A42D4C', inventoryId, pvi(), weatherEffectiveness);
676
658
  return result;
677
659
  }
678
660
  /**
679
- * @param inventoryId
680
- * @returns filter; numInCollection
661
+ * Only used in R* SP Scripts
662
+ *
663
+ * @param p0
681
664
  */
682
- static createItemCollectionWithFilter(inventoryId) {
683
- const result = inv('0x640F890C3E5A3FFD', inventoryId, pvi(), pvi(), rai());
684
- return [result[0], result[1], result[2]];
665
+ static useBackupInventory(p0) {
666
+ inv('0xE36D4A38D28D9CFB', p0);
685
667
  }
686
668
  /**
687
- * @param inventoryId
688
- * @param p2
689
- * @returns guid
669
+ * collectionId is < outCollectionSize
670
+ *
671
+ * @param collectionId
672
+ * @param itemIndex
673
+ * @returns itemData
690
674
  */
691
- static getInventoryItemCountWithGuid(inventoryId, p2) {
692
- const result = inv('0xC97E0D2302382211', inventoryId, pvi(), p2, rai());
675
+ static getItemFromCollectionIndex(collectionId, itemIndex) {
676
+ const result = inv('0x82FA24C3D3FCD9B7', collectionId, itemIndex, pvi());
693
677
  return [result[0], result[1]];
694
678
  }
695
679
  /**
696
- * filterName (collections): "ALL", "ALL SATCHEL", "ALL HORSES", "ALL COACHES", "ALL MOUNTS", "ALL CLOTHING", "ALL WEAPONS", "ALL SATCHEL EXCLUDING CLOTHING", "ALL EXCLUDING CLOTHING"
697
- * slotId: -1591664384
698
- * p3: outCollectionSize (?)
699
- * Returns collectionId
700
- *
680
+ * @returns p0
681
+ */
682
+ static setItemPromptInfoRequest() {
683
+ const result = inv('0xFD41D1D4350F6413', pvi());
684
+ return result;
685
+ }
686
+ /**
701
687
  * @param inventoryId
702
- * @param filterName
703
- * @param slotId
704
- * @returns size
688
+ * @param item
689
+ * @param quantity
690
+ * @param removeReason Refer to [enum: eRemoveItemReason]
691
+ * @returns
705
692
  */
706
- static createItemCollection(inventoryId, filterName, slotId) {
707
- const result = inv('0x80D78BDC9D88EF07', inventoryId, filterName, _h(slotId), pvi(), rai());
708
- return [result[0], result[1]];
693
+ static removeInventoryItemWithItemid(inventoryId, item, quantity, removeReason) {
694
+ return inv('0xB4158C8C9A3B5DCE', inventoryId, _h(item), quantity, removeReason);
709
695
  }
710
696
  /**
711
- * p1: 32
712
- * Returns collectionId
697
+ * Params: p1 = 0
713
698
  *
714
699
  * @param inventoryId
715
700
  * @param p1
716
- * @returns size
717
701
  */
718
- static createSortedCollection(inventoryId, p1) {
719
- const result = inv('0xBB7F968675B34B0C', inventoryId, p1, pvi(), rai());
720
- return [result[0], result[1]];
702
+ static disableWeapons(inventoryId, p1) {
703
+ inv('0xE3A46370F70F3607', inventoryId, p1);
704
+ }
705
+ /**
706
+ * @returns guid1; guid2
707
+ */
708
+ static compareGuids() {
709
+ const result = inv('0x4C543D5DFCD2DAFD', pvi(), pvi());
710
+ return [result[0], result[1], result[2]];
721
711
  }
722
712
  /**
723
713
  * @param inventoryId
724
- * @param item
714
+ * @param bEquipped
725
715
  * @returns guid
726
716
  */
727
- static doesItemOwnEquipment(inventoryId, item) {
728
- const result = inv('0x88B58B83A43A8CAB', inventoryId, pvi(), _h(item));
717
+ static equipItemWithGuid(inventoryId, bEquipped) {
718
+ const result = inv('0x734311E2852760D0', inventoryId, pvi(), bEquipped);
729
719
  return [result[0], result[1]];
730
720
  }
731
721
  /**
732
- * Returns a unique inventory ID for this ped.
733
- * For the local player ped, it is an eInventories value.
734
- * For other peds, it is the inventory address casted to unsigned int. enum eInventories
735
- * {
736
- * INVENTORY_INVALID,
737
- * INVENTORY_SP_PLAYER,
738
- * INVENTORY_MP_PLAYER,
739
- * INVENTORY_MP_MISSION,
740
- * INVENTORY_SECOND_SCREEN,
741
- * INVENTORY_SP_BACKUP,
742
- * INVENTORY_SP_SNAPSHOT,
743
- * INVENTORY_0xDE2AE452,
744
- * INVENTORY_0x399D9B3A,
745
- * INVENTORY_0x4BD43FA7,
746
- * INVENTORY_0x9529D251,
747
- * INVENTORY_0xA75776AC,
748
- * INVENTORY_MAX_ID = 11,
749
- * INVENTORY_IDS_COUNT
750
- * };
751
- *
752
- * @param ped
722
+ * @param item
753
723
  * @returns
754
724
  */
755
- static getInventoryIdFromPed(ped) {
756
- return inv('0x13D234A2A3F66E63', ped.handle, rai());
725
+ static getInventoryItemIsAnimalPelt(item) {
726
+ return inv('0x4AEF1FB5B9011D75', _h(item));
757
727
  }
758
728
  /**
759
- * Only works on CClothingItem
760
- *
761
729
  * @param inventoryId
762
- * @param inUse
730
+ * @param eRoleMaxLevel
731
+ * @returns
732
+ */
733
+ static getItemRoleMaxLevelCount(inventoryId, eRoleMaxLevel) {
734
+ return inv('0xADDD1E7C0ECF7D95', inventoryId, _h(eRoleMaxLevel), rai());
735
+ }
736
+ /**
737
+ * Used in function SET_SHOP_BEING_ROBBED and many other shop related scripts and functions.
738
+ * INVENTORY_A*
739
+ */
740
+ static N_0x9B4E793B1CB6550A() {
741
+ inv('0x9B4E793B1CB6550A');
742
+ }
743
+ /**
763
744
  * @returns guid
764
745
  */
765
- static setInventoryItemInUse(inventoryId, inUse) {
766
- const result = inv('0x65A5F70F4A292EBE', inventoryId, pvi(), inUse);
767
- return result;
746
+ static isGuidValid() {
747
+ const result = inv('0xB881CA836CC4B6D4', pvi());
748
+ return [result[0], result[1]];
768
749
  }
769
750
  /**
770
- * @param inventoryId
771
- * @param slotId
772
- * @returns guid; outGuid
751
+ * Max num of collections is 5, so release your unused ones.
752
+ *
753
+ * @param collectionId
754
+ * @returns
773
755
  */
774
- static getInventoryItemEquippedInSlotByRef(inventoryId, slotId) {
775
- const result = inv('0x22E590F108289A9D', inventoryId, pvi(), _h(slotId), pvi());
776
- return [result[0], result[1], result[2]];
756
+ static releaseItemCollection(collectionId) {
757
+ return inv('0x42A2F33A1942E865', collectionId);
777
758
  }
778
759
  /**
779
- * Apply the weapon stats to the CatalogItemInspection stats entry id. get entryId with _INVENTORY_GET_CATALOG_ITEM_INSPECTION_STATS_ENTRY
760
+ * @param item
761
+ * @returns info
762
+ */
763
+ static getInventoryItemInspectionInfo(item) {
764
+ const result = inv('0x0C093C1787F18519', _h(item), pvi());
765
+ return [result[0], result[1]];
766
+ }
767
+ /**
768
+ * p1, p2: 0
780
769
  *
781
- * @param entryId
782
- * @param weapon
783
- * @param ped
770
+ * @param databindingEntryId
771
+ * @param p1
772
+ * @param p2
784
773
  */
785
- static applyWeaponStatsToEntry(entryId, weapon, ped) {
786
- inv('0x75CFAC49301E134E', entryId, _h(weapon), ped.handle);
774
+ static N_0x75CFAC49301E134F(databindingEntryId, p1, p2) {
775
+ inv('0x75CFAC49301E134F', _h(databindingEntryId), p1, p2);
787
776
  }
788
777
  /**
789
778
  * @param inventoryId
779
+ * @param slotId
780
+ * @returns guid
781
+ */
782
+ static getChildrenInSlotCount(inventoryId, slotId) {
783
+ const result = inv('0x033EE4B89F3AC545', inventoryId, pvi(), _h(slotId), rai());
784
+ return [result[0], result[1]];
785
+ }
786
+ /**
787
+ * Returns item Hash to be used with _IS_SCRIPTED_AUDIO_CUSTOM and _PLAY_SOUND_FROM_ITEM (p0)
788
+ *
790
789
  * @param item
790
+ * @param soundType Refer to [enum: eInventoryItemSound]
791
+ * @returns
791
792
  */
792
- static enableItem(inventoryId, item) {
793
- inv('0x6A564540FAC12211', inventoryId, _h(item));
793
+ static getInventoryItemSound(item, soundType) {
794
+ return (inv('0x2E1CDC1FF3B8473E', _h(item), soundType, rai())) & 0xFFFFFFFF;
794
795
  }
795
796
  /**
796
- * Returns databindingEntryId to be used with 0x951847CEF3D829FF (p0)
797
+ * Only used in R* SP Scripts
797
798
  *
798
- * @param data
799
- * @param stats
800
- * @param ped
801
- * @returns guid
799
+ * @param inventoryId
800
+ * @param p1
801
+ * @returns year; month; day; hour; minute; second
802
802
  */
803
- static N_0x46DB71883EE9D5AF(data, stats, ped) {
804
- const result = inv('0x46DB71883EE9D5AF', data, stats, pvi(), ped.handle, rai());
805
- return [result[0] & 0xFFFFFFFF, result[1]];
803
+ static N_0x112BCA290D2EB53C(inventoryId, p1) {
804
+ const result = inv('0x112BCA290D2EB53C', inventoryId, _h(p1), pvi(), pvi(), pvi(), pvi(), pvi(), pvi(), rai());
805
+ return [!!result[0], result[1], result[2], result[3], result[4], result[5], result[6]];
806
806
  }
807
807
  }