@nativewrappers/redm-codegen 0.0.5 → 0.0.6

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 (213) hide show
  1. package/dist/classes/AnimScene.d.ts +126 -126
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +184 -184
  4. package/dist/classes/BaseModel.d.ts +17 -17
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +25 -25
  7. package/dist/classes/BaseTask.d.ts +12 -12
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +14 -14
  10. package/dist/classes/Cam.d.ts +94 -94
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +126 -126
  13. package/dist/classes/Entity.d.ts +471 -471
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +672 -672
  16. package/dist/classes/PedTask.d.ts +155 -155
  17. package/dist/classes/PedTask.d.ts.map +1 -1
  18. package/dist/classes/PedTask.js +204 -204
  19. package/dist/classes/PersChar.d.ts +9 -9
  20. package/dist/classes/PersChar.d.ts.map +1 -1
  21. package/dist/classes/PersChar.js +21 -21
  22. package/dist/classes/Pickup.d.ts +5 -5
  23. package/dist/classes/Pickup.d.ts.map +1 -1
  24. package/dist/classes/Pickup.js +9 -9
  25. package/dist/classes/Player.d.ts +687 -687
  26. package/dist/classes/Player.d.ts.map +1 -1
  27. package/dist/classes/Player.js +1013 -1013
  28. package/dist/classes/Prop.d.ts +87 -87
  29. package/dist/classes/Prop.d.ts.map +1 -1
  30. package/dist/classes/Prop.js +121 -121
  31. package/dist/classes/PropSet.d.ts +4 -4
  32. package/dist/classes/PropSet.d.ts.map +1 -1
  33. package/dist/classes/PropSet.js +6 -6
  34. package/dist/classes/VehicleTask.d.ts +17 -17
  35. package/dist/classes/VehicleTask.d.ts.map +1 -1
  36. package/dist/classes/VehicleTask.js +21 -21
  37. package/dist/classes/Weapon.d.ts +306 -306
  38. package/dist/classes/Weapon.d.ts.map +1 -1
  39. package/dist/classes/Weapon.js +411 -411
  40. package/dist/namespaces/Animscene.d.ts +59 -59
  41. package/dist/namespaces/Animscene.d.ts.map +1 -1
  42. package/dist/namespaces/Animscene.js +77 -77
  43. package/dist/namespaces/Audio.d.ts +569 -569
  44. package/dist/namespaces/Audio.d.ts.map +1 -1
  45. package/dist/namespaces/Audio.js +728 -728
  46. package/dist/namespaces/Bounty.d.ts +70 -70
  47. package/dist/namespaces/Bounty.d.ts.map +1 -1
  48. package/dist/namespaces/Bounty.js +115 -115
  49. package/dist/namespaces/Brain.d.ts +15 -15
  50. package/dist/namespaces/Brain.d.ts.map +1 -1
  51. package/dist/namespaces/Brain.js +20 -20
  52. package/dist/namespaces/CamStatics.d.ts +399 -399
  53. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  54. package/dist/namespaces/CamStatics.js +574 -574
  55. package/dist/namespaces/Clock.d.ts +51 -51
  56. package/dist/namespaces/Clock.d.ts.map +1 -1
  57. package/dist/namespaces/Clock.js +73 -73
  58. package/dist/namespaces/Collection.d.ts +76 -76
  59. package/dist/namespaces/Collection.d.ts.map +1 -1
  60. package/dist/namespaces/Collection.js +108 -108
  61. package/dist/namespaces/Companion.d.ts +22 -22
  62. package/dist/namespaces/Companion.d.ts.map +1 -1
  63. package/dist/namespaces/Companion.js +30 -30
  64. package/dist/namespaces/Compendium.d.ts +38 -38
  65. package/dist/namespaces/Compendium.d.ts.map +1 -1
  66. package/dist/namespaces/Compendium.js +52 -52
  67. package/dist/namespaces/Crashlog.d.ts +10 -10
  68. package/dist/namespaces/Crashlog.d.ts.map +1 -1
  69. package/dist/namespaces/Crashlog.js +14 -14
  70. package/dist/namespaces/Crew.d.ts +9 -9
  71. package/dist/namespaces/Crew.d.ts.map +1 -1
  72. package/dist/namespaces/Crew.js +14 -14
  73. package/dist/namespaces/Databinding.d.ts +177 -177
  74. package/dist/namespaces/Databinding.d.ts.map +1 -1
  75. package/dist/namespaces/Databinding.js +271 -271
  76. package/dist/namespaces/Dlc.d.ts +5 -5
  77. package/dist/namespaces/Dlc.d.ts.map +1 -1
  78. package/dist/namespaces/Dlc.js +9 -9
  79. package/dist/namespaces/EntityStatics.d.ts +193 -193
  80. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  81. package/dist/namespaces/EntityStatics.js +263 -263
  82. package/dist/namespaces/Fire.d.ts +7 -7
  83. package/dist/namespaces/Fire.d.ts.map +1 -1
  84. package/dist/namespaces/Fire.js +9 -9
  85. package/dist/namespaces/Graphics.d.ts +820 -820
  86. package/dist/namespaces/Graphics.d.ts.map +1 -1
  87. package/dist/namespaces/Graphics.js +1118 -1118
  88. package/dist/namespaces/Hud.d.ts +494 -494
  89. package/dist/namespaces/Hud.d.ts.map +1 -1
  90. package/dist/namespaces/Hud.js +789 -789
  91. package/dist/namespaces/Inventory.d.ts +180 -180
  92. package/dist/namespaces/Inventory.d.ts.map +1 -1
  93. package/dist/namespaces/Inventory.js +239 -239
  94. package/dist/namespaces/Itemdatabase.d.ts +78 -78
  95. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  96. package/dist/namespaces/Itemdatabase.js +106 -106
  97. package/dist/namespaces/Map.d.ts +156 -156
  98. package/dist/namespaces/Map.d.ts.map +1 -1
  99. package/dist/namespaces/Map.js +207 -207
  100. package/dist/namespaces/Minigame.d.ts +78 -78
  101. package/dist/namespaces/Minigame.d.ts.map +1 -1
  102. package/dist/namespaces/Minigame.js +116 -116
  103. package/dist/namespaces/Missiondata.d.ts +15 -15
  104. package/dist/namespaces/Missiondata.d.ts.map +1 -1
  105. package/dist/namespaces/Missiondata.js +23 -23
  106. package/dist/namespaces/Network.d.ts +636 -636
  107. package/dist/namespaces/Network.d.ts.map +1 -1
  108. package/dist/namespaces/Network.js +915 -915
  109. package/dist/namespaces/Object.d.ts +121 -121
  110. package/dist/namespaces/Object.d.ts.map +1 -1
  111. package/dist/namespaces/Object.js +162 -162
  112. package/dist/namespaces/Pad.d.ts +94 -94
  113. package/dist/namespaces/Pad.d.ts.map +1 -1
  114. package/dist/namespaces/Pad.js +127 -127
  115. package/dist/namespaces/Perschar.d.ts +44 -44
  116. package/dist/namespaces/Perschar.d.ts.map +1 -1
  117. package/dist/namespaces/Perschar.js +68 -68
  118. package/dist/namespaces/Physics.d.ts +158 -158
  119. package/dist/namespaces/Physics.d.ts.map +1 -1
  120. package/dist/namespaces/Physics.js +207 -207
  121. package/dist/namespaces/PlayerStatics.d.ts +127 -127
  122. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  123. package/dist/namespaces/PlayerStatics.js +177 -177
  124. package/dist/namespaces/Population.d.ts +75 -75
  125. package/dist/namespaces/Population.d.ts.map +1 -1
  126. package/dist/namespaces/Population.js +101 -101
  127. package/dist/namespaces/Posse.d.ts +38 -38
  128. package/dist/namespaces/Posse.d.ts.map +1 -1
  129. package/dist/namespaces/Posse.js +62 -62
  130. package/dist/namespaces/Propset.d.ts +30 -30
  131. package/dist/namespaces/Propset.d.ts.map +1 -1
  132. package/dist/namespaces/Propset.js +38 -38
  133. package/dist/namespaces/Shapetest.d.ts +11 -11
  134. package/dist/namespaces/Shapetest.d.ts.map +1 -1
  135. package/dist/namespaces/Shapetest.js +13 -13
  136. package/dist/namespaces/Stats.d.ts +88 -88
  137. package/dist/namespaces/Stats.d.ts.map +1 -1
  138. package/dist/namespaces/Stats.js +123 -123
  139. package/dist/namespaces/Streaming.d.ts +58 -58
  140. package/dist/namespaces/Streaming.d.ts.map +1 -1
  141. package/dist/namespaces/Streaming.js +92 -92
  142. package/dist/namespaces/Task.d.ts +62 -62
  143. package/dist/namespaces/Task.d.ts.map +1 -1
  144. package/dist/namespaces/Task.js +90 -90
  145. package/dist/namespaces/Telemetry.d.ts +172 -172
  146. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  147. package/dist/namespaces/Telemetry.js +240 -240
  148. package/dist/namespaces/Uifeed.d.ts +15 -15
  149. package/dist/namespaces/Uifeed.d.ts.map +1 -1
  150. package/dist/namespaces/Uifeed.js +24 -24
  151. package/dist/namespaces/Voice.d.ts +38 -38
  152. package/dist/namespaces/Voice.d.ts.map +1 -1
  153. package/dist/namespaces/Voice.js +56 -56
  154. package/dist/namespaces/Water.d.ts +27 -27
  155. package/dist/namespaces/Water.d.ts.map +1 -1
  156. package/dist/namespaces/Water.js +41 -41
  157. package/dist/namespaces/WeaponStatics.d.ts +250 -250
  158. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  159. package/dist/namespaces/WeaponStatics.js +346 -346
  160. package/package.json +1 -1
  161. package/src/classes/AnimScene.ts +199 -199
  162. package/src/classes/BaseModel.ts +29 -29
  163. package/src/classes/BaseTask.ts +15 -15
  164. package/src/classes/Cam.ts +135 -135
  165. package/src/classes/Entity.ts +687 -687
  166. package/src/classes/PedTask.ts +223 -223
  167. package/src/classes/PersChar.ts +24 -24
  168. package/src/classes/Pickup.ts +10 -10
  169. package/src/classes/Player.ts +1024 -1024
  170. package/src/classes/Prop.ts +136 -136
  171. package/src/classes/PropSet.ts +7 -7
  172. package/src/classes/VehicleTask.ts +23 -23
  173. package/src/classes/Weapon.ts +429 -429
  174. package/src/namespaces/Animscene.ts +86 -86
  175. package/src/namespaces/Audio.ts +804 -804
  176. package/src/namespaces/Bounty.ts +131 -131
  177. package/src/namespaces/Brain.ts +22 -22
  178. package/src/namespaces/CamStatics.ts +599 -599
  179. package/src/namespaces/Clock.ts +82 -82
  180. package/src/namespaces/Collection.ts +109 -109
  181. package/src/namespaces/Companion.ts +34 -34
  182. package/src/namespaces/Compendium.ts +59 -59
  183. package/src/namespaces/Crashlog.ts +16 -16
  184. package/src/namespaces/Crew.ts +16 -16
  185. package/src/namespaces/Databinding.ts +286 -286
  186. package/src/namespaces/Dlc.ts +9 -9
  187. package/src/namespaces/EntityStatics.ts +279 -279
  188. package/src/namespaces/Fire.ts +10 -10
  189. package/src/namespaces/Graphics.ts +1196 -1196
  190. package/src/namespaces/Hud.ts +799 -799
  191. package/src/namespaces/Inventory.ts +245 -245
  192. package/src/namespaces/Itemdatabase.ts +118 -118
  193. package/src/namespaces/Map.ts +215 -215
  194. package/src/namespaces/Minigame.ts +132 -132
  195. package/src/namespaces/Missiondata.ts +27 -27
  196. package/src/namespaces/Network.ts +951 -951
  197. package/src/namespaces/Object.ts +171 -171
  198. package/src/namespaces/Pad.ts +127 -127
  199. package/src/namespaces/Perschar.ts +72 -72
  200. package/src/namespaces/Physics.ts +231 -231
  201. package/src/namespaces/PlayerStatics.ts +202 -202
  202. package/src/namespaces/Population.ts +114 -114
  203. package/src/namespaces/Posse.ts +62 -62
  204. package/src/namespaces/Propset.ts +42 -42
  205. package/src/namespaces/Shapetest.ts +14 -14
  206. package/src/namespaces/Stats.ts +139 -139
  207. package/src/namespaces/Streaming.ts +104 -104
  208. package/src/namespaces/Task.ts +100 -100
  209. package/src/namespaces/Telemetry.ts +265 -265
  210. package/src/namespaces/Uifeed.ts +27 -27
  211. package/src/namespaces/Voice.ts +65 -65
  212. package/src/namespaces/Water.ts +47 -47
  213. package/src/namespaces/WeaponStatics.ts +365 -365
@@ -19,6 +19,189 @@ export class PedTask extends BaseTask {
19
19
  super(entity);
20
20
  }
21
21
 
22
+ /**
23
+ * @param toggle
24
+ */
25
+ set PedPathCanUseLadders(toggle: boolean) {
26
+ inv<void>('0x77A5B103C87F476E', this.entity.handle, toggle);
27
+ }
28
+
29
+ /**
30
+ * @param p1
31
+ * @param p2
32
+ */
33
+ stopAnimPlayback(p1: number, p2: boolean): void {
34
+ inv<void>('0xEE08C992D238C5D1', this.entity.handle, p1, p2);
35
+ }
36
+
37
+ /**
38
+ * @param targetPed
39
+ * @param p2
40
+ * @returns
41
+ */
42
+ confront(targetPed: Ped, p2: number): any {
43
+ return inv<number>('0x3A2A2071DF5CC569', this.entity.handle, targetPed.handle, p2);
44
+ }
45
+
46
+ N_0x1F298C7BD30D1240(): void {
47
+ inv<void>('0x1F298C7BD30D1240', this.entity.handle);
48
+ }
49
+
50
+ /**
51
+ * @param p1
52
+ * @param p2
53
+ * @param p3
54
+ */
55
+ setCrouchMovement(p1: boolean, p2: any, p3: boolean): void {
56
+ inv<void>('0x17293C633C8AC019', this.entity.handle, p1, p2, p3);
57
+ }
58
+
59
+ /**
60
+ * Tells the ped to go to an offset coord from an entity, without using the navmesh. if timeBeforeTeleport is -1 the ped will never warp, p7 is 1 or 0 still unknown param
61
+ *
62
+ * @param entity
63
+ * @param offset
64
+ * @param moveBlendRatio
65
+ * @param timeBeforeTeleport
66
+ * @param p7
67
+ */
68
+ goStraightToCoordRelativeToEntity(entity: Entity, offset: Vector3, moveBlendRatio: number, timeBeforeTeleport: number, p7: number): void {
69
+ inv<void>('0x61E360B7E040D12E', this.entity.handle, entity.handle, f(offset.x), f(offset.y), f(offset.z), moveBlendRatio, timeBeforeTeleport, p7);
70
+ }
71
+
72
+ /**
73
+ * Sets the time it takes for a hogtied ped to escape
74
+ * -1.0f for ped to never escape
75
+ *
76
+ * @param time
77
+ */
78
+ set HogtieEscapeTimer(time: number) {
79
+ inv<void>('0xAB591AE6B48B913E', this.entity.handle, f(time));
80
+ }
81
+
82
+ /**
83
+ * Makes the ped run to take cover
84
+ */
85
+ stayInCover(): void {
86
+ inv<void>('0xE5DA8615A6180789', this.entity.handle);
87
+ }
88
+
89
+ /**
90
+ * @param p1
91
+ */
92
+ followWaypointRecordingAdvanced(p1: any): void {
93
+ inv<void>('0x0CFC13EBC19BCA52', this.entity.handle, p1);
94
+ }
95
+
96
+ /**
97
+ * Tells the ped to go to a coord, without using the navemesh. if timeBeforeTeleport is -1 the ped will never warp, p8 is always 0 or 1 still unknown
98
+ *
99
+ * @param pos
100
+ * @param moveBlendRatio
101
+ * @param timeBeforeTeleport
102
+ * @param finalHeading
103
+ * @param targetRadius
104
+ * @param p8
105
+ */
106
+ goStraightToCoord(pos: Vector3, moveBlendRatio: number, timeBeforeTeleport: number, finalHeading: number, targetRadius: number, p8: number): void {
107
+ inv<void>('0xD76B57B44F1E6F8B', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(moveBlendRatio), timeBeforeTeleport, f(finalHeading), f(targetRadius), p8);
108
+ }
109
+
110
+ /**
111
+ * @param pos
112
+ * @param speedMultiplier
113
+ * @param timeout
114
+ * @param stoppingRange
115
+ * @param flags
116
+ * @param p8
117
+ * @param p9
118
+ * @param p10
119
+ * @param entity
120
+ * @param unk
121
+ */
122
+ followNavMeshToCoordAdvanced(pos: Vector3, speedMultiplier: number, timeout: number, stoppingRange: number, flags: number, p8: number, p9: number, p10: number, entity: Entity, unk: number): void {
123
+ inv<void>('0x17F58B88D085DBAC', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(speedMultiplier), timeout, f(stoppingRange), flags, f(p8), f(p9), f(p10), entity.handle, f(unk));
124
+ }
125
+
126
+ /**
127
+ * @param radius
128
+ * @param time
129
+ * @param flags
130
+ */
131
+ combatHatedTargetsAroundPedTimed(radius: number, time: number, flags: number): void {
132
+ inv<void>('0x2BBA30B854534A0C', this.entity.handle, f(radius), time, flags);
133
+ }
134
+
135
+ /**
136
+ * @returns
137
+ */
138
+ get IsPedRunning(): boolean {
139
+ return !!inv<boolean>('0xC5286FFC176F28A2', this.entity.handle, rai());
140
+ }
141
+
142
+ /**
143
+ * @returns
144
+ */
145
+ get IsPedSprinting(): boolean {
146
+ return !!inv<boolean>('0x57E457CD2C0FC168', this.entity.handle, rai());
147
+ }
148
+
149
+ /**
150
+ * @param useSlidingSurfaces
151
+ */
152
+ set PedPathMayUseSlidingSurfaces(useSlidingSurfaces: boolean) {
153
+ inv<void>('0x06ECF3925BC2ABAE', this.entity.handle, useSlidingSurfaces);
154
+ }
155
+
156
+ /**
157
+ * Force a ped that is already attacking to aim directly at the specified world coordinates.
158
+ *
159
+ * @param pos
160
+ * @param p4
161
+ * @param p5
162
+ * @param p6
163
+ */
164
+ forcePointAimAtCoord(pos: Vector3, p4?: number, p5?: boolean, p6?: boolean): void {
165
+ inv<void>('0x41323F4E0C4AE94B', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), p4, p5, p6);
166
+ }
167
+
168
+ /**
169
+ * @param p1
170
+ * @param p2
171
+ * @param p3
172
+ * @param p4
173
+ */
174
+ swapWeapon(p1: any, p2: any, p3: any, p4: any): void {
175
+ inv<void>('0xA21C51255B205245', this.entity.handle, p1, p2, p3, p4);
176
+ }
177
+
178
+ /**
179
+ * @param p1
180
+ * @param p2
181
+ * @param p3
182
+ * @param p4
183
+ * @param p5
184
+ * @param p6
185
+ * @param p7
186
+ * @param p8
187
+ */
188
+ gotoEntityOffsetXyz(p1: any, p2: any, p3: any, p4: any, p5: any, p6: any, p7: any, p8: any): void {
189
+ inv<void>('0xFA6DA9D151769392', this.entity.handle, p1, p2, p3, p4, p5, p6, p7, p8);
190
+ }
191
+
192
+ /**
193
+ * @param pos
194
+ * @param distance
195
+ * @param duration
196
+ * @param p6
197
+ * @param p7
198
+ * @param p8
199
+ * @param p9
200
+ */
201
+ useNearestScenarioToCoordWarp(pos: Vector3, distance: number, duration: number, p6: boolean, p7: boolean, p8: boolean, p9: boolean): void {
202
+ inv<void>('0x58E2E0F23F6B76C3', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(distance), duration, p6, p7, p8, p9);
203
+ }
204
+
22
205
  /**
23
206
  * Baits: p_fishHook02x, p_baitBread01x, p_baitCorn01x, p_baitCheese01x, p_baitWorm01x, p_baitCricket01x, p_crawdad01x, p_finisheDragonfly01x, p_finisdFishlure01x, p_finishdCrawd01x, p_finisheDragonflyLegendary01x, p_finisdFishlureLegendary01x, p_finishdCrawdLegendary01x, p_lgoc_spinner_v4
24
207
  *
@@ -115,111 +298,77 @@ export class PedTask extends BaseTask {
115
298
  inv<void>('0xC35B5CDB2824CF69', this.entity.handle);
116
299
  }
117
300
 
118
- clearLookAt(): void {
119
- inv<void>('0x0F804F1DB19B9689', this.entity.handle);
120
- }
121
-
122
301
  /**
123
- * @param inputContext
302
+ * @param p1
124
303
  * @returns
125
304
  */
126
- getItemInteractionPromptProgress(inputContext: string | number): number {
127
- return inv<number>('0xBC864A70AD55E0C1', this.entity.handle, _h(inputContext), raf());
305
+ N_0x2D657B10F211C572(p1: number): any {
306
+ return inv<number>('0x2D657B10F211C572', this.entity.handle, f(p1));
128
307
  }
129
308
 
130
309
  /**
310
+ * Coords: volume coords used in R* Script smuggler2
311
+ * p4/p5 = 0 in R* Scripts previous name TASK_COMBAT_PED_3
312
+ *
131
313
  * @param pos
132
- * @param speedMultiplier
133
- * @param timeout
134
- * @param stoppingRange
135
- * @param flags
136
- * @param p8
137
- * @param p9
138
- * @param p10
139
- * @param entity
140
- * @param unk
314
+ * @param p4
315
+ * @param p5
141
316
  */
142
- followNavMeshToCoordAdvanced(pos: Vector3, speedMultiplier: number, timeout: number, stoppingRange: number, flags: number, p8: number, p9: number, p10: number, entity: Entity, unk: number): void {
143
- inv<void>('0x17F58B88D085DBAC', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(speedMultiplier), timeout, f(stoppingRange), flags, f(p8), f(p9), f(p10), entity.handle, f(unk));
317
+ combatPedAtCoords(pos: Vector3, p4: number, p5: number): void {
318
+ inv<void>('0xC624414FA748B9BA', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), p4, p5);
144
319
  }
145
320
 
146
321
  /**
147
- * @param radius
322
+ * Makes the specified ped stand still for (time) milliseconds.
323
+ *
148
324
  * @param time
149
- * @param flags
150
325
  */
151
- combatHatedTargetsAroundPedTimed(radius: number, time: number, flags: number): void {
152
- inv<void>('0x2BBA30B854534A0C', this.entity.handle, f(radius), time, flags);
153
- }
154
-
155
- /**
156
- * @returns
157
- */
158
- get IsPedRunning(): boolean {
159
- return !!inv<boolean>('0xC5286FFC176F28A2', this.entity.handle, rai());
326
+ standStill(time: number): void {
327
+ inv<void>('0x919BE13EED931959', this.entity.handle, time);
160
328
  }
161
329
 
162
330
  /**
163
- * @returns
331
+ * @param animDictionary
332
+ * @param animationName
333
+ * @param p3
164
334
  */
165
- get IsPedSprinting(): boolean {
166
- return !!inv<boolean>('0x57E457CD2C0FC168', this.entity.handle, rai());
335
+ stopAnimTask(animDictionary: string | null, animationName: string | null, p3: number): void {
336
+ inv<void>('0x97FF36A1D40EA00A', this.entity.handle, animDictionary, animationName, f(p3));
167
337
  }
168
338
 
169
339
  /**
170
- * @param useSlidingSurfaces
340
+ * @param p1
341
+ * @param p2
342
+ * @param p3
171
343
  */
172
- set PedPathMayUseSlidingSurfaces(useSlidingSurfaces: boolean) {
173
- inv<void>('0x06ECF3925BC2ABAE', this.entity.handle, useSlidingSurfaces);
344
+ turnToFaceClosestPed(p1: number, p2: number, p3: number): void {
345
+ inv<void>('0x84179419DBDD36F2', this.entity.handle, f(p1), f(p2), p3);
174
346
  }
175
347
 
176
348
  /**
177
- * Force a ped that is already attacking to aim directly at the specified world coordinates.
349
+ * Fishing Research: https://pastebin.com/NmK5ZLVs
350
+ * Only used in R* Scripts fishing_core and av_fishing_river
178
351
  *
179
- * @param pos
180
- * @param p4
181
- * @param p5
182
- * @param p6
183
- */
184
- forcePointAimAtCoord(pos: Vector3, p4?: number, p5?: boolean, p6?: boolean): void {
185
- inv<void>('0x41323F4E0C4AE94B', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), p4, p5, p6);
186
- }
187
-
188
- /**
189
- * @param p1
190
- * @param p2
191
- * @param p3
192
- * @param p4
352
+ * @returns p1
193
353
  */
194
- swapWeapon(p1: any, p2: any, p3: any, p4: any): void {
195
- inv<void>('0xA21C51255B205245', this.entity.handle, p1, p2, p3, p4);
354
+ get TaskFishing(): [any, number] {
355
+ const result = inv<[number, number]>('0xF3735ACD11ACD500', this.entity.handle, pvi());
356
+ return [result[0], result[1]];
196
357
  }
197
358
 
198
359
  /**
199
360
  * @param p1
200
361
  * @param p2
201
- * @param p3
202
- * @param p4
203
- * @param p5
204
- * @param p6
205
- * @param p7
206
- * @param p8
207
362
  */
208
- gotoEntityOffsetXyz(p1: any, p2: any, p3: any, p4: any, p5: any, p6: any, p7: any, p8: any): void {
209
- inv<void>('0xFA6DA9D151769392', this.entity.handle, p1, p2, p3, p4, p5, p6, p7, p8);
363
+ shockingEventReact(p1: any, p2: any): void {
364
+ inv<void>('0x452419CBD838065B', this.entity.handle, p1, p2);
210
365
  }
211
366
 
212
367
  /**
213
- * @param pos
214
- * @param distance
215
- * @param duration
216
- * @param p6
217
- * @param p7
218
- * @param p8
219
- * @param p9
368
+ * @returns
220
369
  */
221
- useNearestScenarioToCoordWarp(pos: Vector3, distance: number, duration: number, p6: boolean, p7: boolean, p8: boolean, p9: boolean): void {
222
- inv<void>('0x58E2E0F23F6B76C3', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(distance), duration, p6, p7, p8, p9);
370
+ N_0xB520DBDA7FCF573F(): boolean {
371
+ return !!inv<boolean>('0xB520DBDA7FCF573F', this.entity.handle, rai());
223
372
  }
224
373
 
225
374
  /**
@@ -3480,165 +3629,16 @@ export class PedTask extends BaseTask {
3480
3629
  inv<void>('0x7AA80209BDA643EB', this.entity.handle, vehicle.handle);
3481
3630
  }
3482
3631
 
3483
- /**
3484
- * @param p1
3485
- * @returns
3486
- */
3487
- N_0x2D657B10F211C572(p1: number): any {
3488
- return inv<number>('0x2D657B10F211C572', this.entity.handle, f(p1));
3489
- }
3490
-
3491
- /**
3492
- * Coords: volume coords used in R* Script smuggler2
3493
- * p4/p5 = 0 in R* Scripts previous name TASK_COMBAT_PED_3
3494
- *
3495
- * @param pos
3496
- * @param p4
3497
- * @param p5
3498
- */
3499
- combatPedAtCoords(pos: Vector3, p4: number, p5: number): void {
3500
- inv<void>('0xC624414FA748B9BA', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), p4, p5);
3501
- }
3502
-
3503
- /**
3504
- * Makes the specified ped stand still for (time) milliseconds.
3505
- *
3506
- * @param time
3507
- */
3508
- standStill(time: number): void {
3509
- inv<void>('0x919BE13EED931959', this.entity.handle, time);
3510
- }
3511
-
3512
- /**
3513
- * @param animDictionary
3514
- * @param animationName
3515
- * @param p3
3516
- */
3517
- stopAnimTask(animDictionary: string | null, animationName: string | null, p3: number): void {
3518
- inv<void>('0x97FF36A1D40EA00A', this.entity.handle, animDictionary, animationName, f(p3));
3519
- }
3520
-
3521
- /**
3522
- * @param p1
3523
- * @param p2
3524
- * @param p3
3525
- */
3526
- turnToFaceClosestPed(p1: number, p2: number, p3: number): void {
3527
- inv<void>('0x84179419DBDD36F2', this.entity.handle, f(p1), f(p2), p3);
3528
- }
3529
-
3530
- /**
3531
- * Fishing Research: https://pastebin.com/NmK5ZLVs
3532
- * Only used in R* Scripts fishing_core and av_fishing_river
3533
- *
3534
- * @returns p1
3535
- */
3536
- get TaskFishing(): [any, number] {
3537
- const result = inv<[number, number]>('0xF3735ACD11ACD500', this.entity.handle, pvi());
3538
- return [result[0], result[1]];
3539
- }
3540
-
3541
- /**
3542
- * @param p1
3543
- * @param p2
3544
- */
3545
- shockingEventReact(p1: any, p2: any): void {
3546
- inv<void>('0x452419CBD838065B', this.entity.handle, p1, p2);
3547
- }
3548
-
3549
- /**
3550
- * @returns
3551
- */
3552
- N_0xB520DBDA7FCF573F(): boolean {
3553
- return !!inv<boolean>('0xB520DBDA7FCF573F', this.entity.handle, rai());
3554
- }
3555
-
3556
- /**
3557
- * @param toggle
3558
- */
3559
- set PedPathCanUseLadders(toggle: boolean) {
3560
- inv<void>('0x77A5B103C87F476E', this.entity.handle, toggle);
3561
- }
3562
-
3563
- /**
3564
- * @param p1
3565
- * @param p2
3566
- */
3567
- stopAnimPlayback(p1: number, p2: boolean): void {
3568
- inv<void>('0xEE08C992D238C5D1', this.entity.handle, p1, p2);
3632
+ clearLookAt(): void {
3633
+ inv<void>('0x0F804F1DB19B9689', this.entity.handle);
3569
3634
  }
3570
3635
 
3571
3636
  /**
3572
- * @param targetPed
3573
- * @param p2
3637
+ * @param inputContext
3574
3638
  * @returns
3575
3639
  */
3576
- confront(targetPed: Ped, p2: number): any {
3577
- return inv<number>('0x3A2A2071DF5CC569', this.entity.handle, targetPed.handle, p2);
3578
- }
3579
-
3580
- N_0x1F298C7BD30D1240(): void {
3581
- inv<void>('0x1F298C7BD30D1240', this.entity.handle);
3582
- }
3583
-
3584
- /**
3585
- * @param p1
3586
- * @param p2
3587
- * @param p3
3588
- */
3589
- setCrouchMovement(p1: boolean, p2: any, p3: boolean): void {
3590
- inv<void>('0x17293C633C8AC019', this.entity.handle, p1, p2, p3);
3591
- }
3592
-
3593
- /**
3594
- * Tells the ped to go to an offset coord from an entity, without using the navmesh. if timeBeforeTeleport is -1 the ped will never warp, p7 is 1 or 0 still unknown param
3595
- *
3596
- * @param entity
3597
- * @param offset
3598
- * @param moveBlendRatio
3599
- * @param timeBeforeTeleport
3600
- * @param p7
3601
- */
3602
- goStraightToCoordRelativeToEntity(entity: Entity, offset: Vector3, moveBlendRatio: number, timeBeforeTeleport: number, p7: number): void {
3603
- inv<void>('0x61E360B7E040D12E', this.entity.handle, entity.handle, f(offset.x), f(offset.y), f(offset.z), moveBlendRatio, timeBeforeTeleport, p7);
3604
- }
3605
-
3606
- /**
3607
- * Sets the time it takes for a hogtied ped to escape
3608
- * -1.0f for ped to never escape
3609
- *
3610
- * @param time
3611
- */
3612
- set HogtieEscapeTimer(time: number) {
3613
- inv<void>('0xAB591AE6B48B913E', this.entity.handle, f(time));
3614
- }
3615
-
3616
- /**
3617
- * Makes the ped run to take cover
3618
- */
3619
- stayInCover(): void {
3620
- inv<void>('0xE5DA8615A6180789', this.entity.handle);
3621
- }
3622
-
3623
- /**
3624
- * @param p1
3625
- */
3626
- followWaypointRecordingAdvanced(p1: any): void {
3627
- inv<void>('0x0CFC13EBC19BCA52', this.entity.handle, p1);
3628
- }
3629
-
3630
- /**
3631
- * Tells the ped to go to a coord, without using the navemesh. if timeBeforeTeleport is -1 the ped will never warp, p8 is always 0 or 1 still unknown
3632
- *
3633
- * @param pos
3634
- * @param moveBlendRatio
3635
- * @param timeBeforeTeleport
3636
- * @param finalHeading
3637
- * @param targetRadius
3638
- * @param p8
3639
- */
3640
- goStraightToCoord(pos: Vector3, moveBlendRatio: number, timeBeforeTeleport: number, finalHeading: number, targetRadius: number, p8: number): void {
3641
- inv<void>('0xD76B57B44F1E6F8B', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(moveBlendRatio), timeBeforeTeleport, f(finalHeading), f(targetRadius), p8);
3640
+ getItemInteractionPromptProgress(inputContext: string | number): number {
3641
+ return inv<number>('0xBC864A70AD55E0C1', this.entity.handle, _h(inputContext), raf());
3642
3642
  }
3643
3643
 
3644
3644
  }
@@ -15,23 +15,27 @@ export class PersChar implements IHandle {
15
15
  return handle === 0 ? null : new PersChar(handle);
16
16
  }
17
17
 
18
- N_0xFCC6DB8DBE709BC8(): void {
19
- inv<void>('0xFCC6DB8DBE709BC8', this.handle);
18
+ N_0xB65E7F733956CF25(): void {
19
+ inv<void>('0xB65E7F733956CF25', this.handle);
20
20
  }
21
21
 
22
- N_0xA8C406C2A56EDC16(): void {
23
- inv<void>('0xA8C406C2A56EDC16', this.handle);
22
+ forceDespawnPerschar(): void {
23
+ inv<void>('0x7B204F88F6C3D287', this.handle);
24
+ }
25
+
26
+ deletePerschar(): void {
27
+ inv<void>('0xFC77C5B44D5FF7C0', this.handle);
28
+ }
29
+
30
+ N_0xBB68908CD11AEBDC(): void {
31
+ inv<void>('0xBB68908CD11AEBDC', this.handle);
24
32
  }
25
33
 
26
34
  /**
27
35
  * @returns
28
36
  */
29
- get IsPersistentCharacterDead(): any {
30
- return inv<number>('0xEB98B38CA60742D7', this.handle);
31
- }
32
-
33
- N_0x6759BEE6762E140B(): void {
34
- inv<void>('0x6759BEE6762E140B', this.handle);
37
+ get IsPersistentCharacterValid(): any {
38
+ return inv<number>('0x800DF3FC913355F3', this.handle);
35
39
  }
36
40
 
37
41
  /**
@@ -45,27 +49,23 @@ export class PersChar implements IHandle {
45
49
  inv<void>('0x4F81EAD1DE8FA19B', this.handle);
46
50
  }
47
51
 
48
- N_0xB65E7F733956CF25(): void {
49
- inv<void>('0xB65E7F733956CF25', this.handle);
50
- }
51
-
52
- forceDespawnPerschar(): void {
53
- inv<void>('0x7B204F88F6C3D287', this.handle);
54
- }
55
-
56
- deletePerschar(): void {
57
- inv<void>('0xFC77C5B44D5FF7C0', this.handle);
52
+ N_0xFCC6DB8DBE709BC8(): void {
53
+ inv<void>('0xFCC6DB8DBE709BC8', this.handle);
58
54
  }
59
55
 
60
- N_0xBB68908CD11AEBDC(): void {
61
- inv<void>('0xBB68908CD11AEBDC', this.handle);
56
+ N_0xA8C406C2A56EDC16(): void {
57
+ inv<void>('0xA8C406C2A56EDC16', this.handle);
62
58
  }
63
59
 
64
60
  /**
65
61
  * @returns
66
62
  */
67
- get IsPersistentCharacterValid(): any {
68
- return inv<number>('0x800DF3FC913355F3', this.handle);
63
+ get IsPersistentCharacterDead(): any {
64
+ return inv<number>('0xEB98B38CA60742D7', this.handle);
65
+ }
66
+
67
+ N_0x6759BEE6762E140B(): void {
68
+ inv<void>('0x6759BEE6762E140B', this.handle);
69
69
  }
70
70
 
71
71
  /**
@@ -28,15 +28,15 @@ export class Pickup implements IHandle {
28
28
  return !!inv<boolean>('0xAFC1CA75AD4074D1', this.handle, rai());
29
29
  }
30
30
 
31
- removePickup(): void {
32
- inv<void>('0x3288D8ACAECD2AB2', this.handle);
33
- }
34
-
35
31
  /**
36
- * @returns
32
+ * @param duration
37
33
  */
38
- get Object(): Prop | null {
39
- return createFromHandle<Prop>('Prop', inv<number>('0x5099BC55630B25AE', this.handle, rai()));
34
+ set RegenerationTime(duration: number) {
35
+ inv<void>('0x78015C9B4B3ECC9D', this.handle, duration);
36
+ }
37
+
38
+ removePickup(): void {
39
+ inv<void>('0x3288D8ACAECD2AB2', this.handle);
40
40
  }
41
41
 
42
42
  /**
@@ -47,10 +47,10 @@ export class Pickup implements IHandle {
47
47
  }
48
48
 
49
49
  /**
50
- * @param duration
50
+ * @returns
51
51
  */
52
- set RegenerationTime(duration: number) {
53
- inv<void>('0x78015C9B4B3ECC9D', this.handle, duration);
52
+ get Object(): Prop | null {
53
+ return createFromHandle<Prop>('Prop', inv<number>('0x5099BC55630B25AE', this.handle, rai()));
54
54
  }
55
55
 
56
56
  }