@nativewrappers/redm-codegen 0.0.4 → 0.0.5

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 (317) hide show
  1. package/dist/classes/AnimScene.d.ts +96 -96
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +137 -137
  4. package/dist/classes/BaseModel.d.ts +19 -19
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +33 -33
  7. package/dist/classes/BaseTask.d.ts +33 -33
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +40 -40
  10. package/dist/classes/Cam.d.ts +85 -85
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +108 -108
  13. package/dist/classes/Entity.d.ts +288 -283
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +410 -401
  16. package/dist/classes/Interior.d.ts +27 -27
  17. package/dist/classes/Interior.d.ts.map +1 -1
  18. package/dist/classes/Interior.js +42 -42
  19. package/dist/classes/ItemSet.d.ts +2 -2
  20. package/dist/classes/ItemSet.d.ts.map +1 -1
  21. package/dist/classes/ItemSet.js +3 -3
  22. package/dist/classes/Ped.d.ts +286 -286
  23. package/dist/classes/Ped.d.ts.map +1 -1
  24. package/dist/classes/Ped.js +425 -425
  25. package/dist/classes/PedModel.d.ts +1 -1
  26. package/dist/classes/PedModel.d.ts.map +1 -1
  27. package/dist/classes/PedModel.js +2 -2
  28. package/dist/classes/PedTask.d.ts +729 -729
  29. package/dist/classes/PedTask.d.ts.map +1 -1
  30. package/dist/classes/PedTask.js +935 -935
  31. package/dist/classes/PersChar.d.ts +13 -13
  32. package/dist/classes/PersChar.d.ts.map +1 -1
  33. package/dist/classes/PersChar.js +19 -19
  34. package/dist/classes/Pickup.d.ts +6 -6
  35. package/dist/classes/Pickup.d.ts.map +1 -1
  36. package/dist/classes/Pickup.js +13 -13
  37. package/dist/classes/Player.d.ts +343 -339
  38. package/dist/classes/Player.d.ts.map +1 -1
  39. package/dist/classes/Player.js +495 -489
  40. package/dist/classes/Prop.d.ts +64 -64
  41. package/dist/classes/Prop.d.ts.map +1 -1
  42. package/dist/classes/Prop.js +94 -94
  43. package/dist/classes/PropSet.d.ts +18 -18
  44. package/dist/classes/PropSet.d.ts.map +1 -1
  45. package/dist/classes/PropSet.js +27 -27
  46. package/dist/classes/Vehicle.d.ts +122 -122
  47. package/dist/classes/Vehicle.d.ts.map +1 -1
  48. package/dist/classes/Vehicle.js +147 -147
  49. package/dist/classes/VehicleModel.d.ts +1 -1
  50. package/dist/classes/VehicleModel.d.ts.map +1 -1
  51. package/dist/classes/VehicleModel.js +2 -2
  52. package/dist/classes/VehicleTask.d.ts +24 -24
  53. package/dist/classes/VehicleTask.d.ts.map +1 -1
  54. package/dist/classes/VehicleTask.js +30 -30
  55. package/dist/classes/Volume.d.ts +44 -44
  56. package/dist/classes/Volume.d.ts.map +1 -1
  57. package/dist/classes/Volume.js +58 -58
  58. package/dist/classes/Weapon.d.ts +351 -351
  59. package/dist/classes/Weapon.d.ts.map +1 -1
  60. package/dist/classes/Weapon.js +486 -486
  61. package/dist/namespaces/Aicoverpoint.d.ts +23 -23
  62. package/dist/namespaces/Aicoverpoint.d.ts.map +1 -1
  63. package/dist/namespaces/Aicoverpoint.js +35 -35
  64. package/dist/namespaces/Aitransport.d.ts +78 -78
  65. package/dist/namespaces/Aitransport.d.ts.map +1 -1
  66. package/dist/namespaces/Aitransport.js +95 -95
  67. package/dist/namespaces/Animscene.d.ts +48 -48
  68. package/dist/namespaces/Animscene.d.ts.map +1 -1
  69. package/dist/namespaces/Animscene.js +65 -65
  70. package/dist/namespaces/Audio.d.ts +476 -476
  71. package/dist/namespaces/Audio.d.ts.map +1 -1
  72. package/dist/namespaces/Audio.js +692 -692
  73. package/dist/namespaces/Bounty.d.ts +57 -57
  74. package/dist/namespaces/Bounty.d.ts.map +1 -1
  75. package/dist/namespaces/Bounty.js +90 -90
  76. package/dist/namespaces/CamStatics.d.ts +432 -432
  77. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  78. package/dist/namespaces/CamStatics.js +606 -606
  79. package/dist/namespaces/Collection.d.ts +78 -78
  80. package/dist/namespaces/Collection.d.ts.map +1 -1
  81. package/dist/namespaces/Collection.js +111 -111
  82. package/dist/namespaces/Companion.d.ts +22 -22
  83. package/dist/namespaces/Companion.d.ts.map +1 -1
  84. package/dist/namespaces/Companion.js +30 -30
  85. package/dist/namespaces/Compapp.js +1 -1
  86. package/dist/namespaces/Compendium.d.ts +58 -58
  87. package/dist/namespaces/Compendium.d.ts.map +1 -1
  88. package/dist/namespaces/Compendium.js +83 -83
  89. package/dist/namespaces/Crashlog.d.ts +10 -10
  90. package/dist/namespaces/Crashlog.d.ts.map +1 -1
  91. package/dist/namespaces/Crashlog.js +21 -21
  92. package/dist/namespaces/Crew.js +4 -4
  93. package/dist/namespaces/Databinding.d.ts +154 -154
  94. package/dist/namespaces/Databinding.d.ts.map +1 -1
  95. package/dist/namespaces/Databinding.js +222 -222
  96. package/dist/namespaces/Datafile.js +4 -4
  97. package/dist/namespaces/Decorator.d.ts +19 -19
  98. package/dist/namespaces/Decorator.d.ts.map +1 -1
  99. package/dist/namespaces/Decorator.js +34 -34
  100. package/dist/namespaces/Dlc.d.ts +5 -5
  101. package/dist/namespaces/Dlc.d.ts.map +1 -1
  102. package/dist/namespaces/Dlc.js +9 -9
  103. package/dist/namespaces/EntityStatics.d.ts +80 -80
  104. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  105. package/dist/namespaces/EntityStatics.js +113 -113
  106. package/dist/namespaces/Event.js +4 -4
  107. package/dist/namespaces/Fire.d.ts +89 -89
  108. package/dist/namespaces/Fire.d.ts.map +1 -1
  109. package/dist/namespaces/Fire.js +115 -115
  110. package/dist/namespaces/Flock.js +2 -2
  111. package/dist/namespaces/Gang.js +2 -2
  112. package/dist/namespaces/GoogleAnalytics.js +2 -2
  113. package/dist/namespaces/Graphics.d.ts +781 -781
  114. package/dist/namespaces/Graphics.d.ts.map +1 -1
  115. package/dist/namespaces/Graphics.js +1207 -1207
  116. package/dist/namespaces/Hud.d.ts +483 -483
  117. package/dist/namespaces/Hud.d.ts.map +1 -1
  118. package/dist/namespaces/Hud.js +678 -678
  119. package/dist/namespaces/Ik.js +1 -1
  120. package/dist/namespaces/Interaction.js +3 -3
  121. package/dist/namespaces/InteriorStatics.d.ts +40 -40
  122. package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
  123. package/dist/namespaces/InteriorStatics.js +57 -57
  124. package/dist/namespaces/Inventory.d.ts +211 -211
  125. package/dist/namespaces/Inventory.d.ts.map +1 -1
  126. package/dist/namespaces/Inventory.js +291 -291
  127. package/dist/namespaces/Itemdatabase.js +3 -3
  128. package/dist/namespaces/Itemset.js +2 -2
  129. package/dist/namespaces/Law.d.ts +1 -1
  130. package/dist/namespaces/Law.d.ts.map +1 -1
  131. package/dist/namespaces/Law.js +19 -19
  132. package/dist/namespaces/Localization.js +1 -1
  133. package/dist/namespaces/Map.js +3 -3
  134. package/dist/namespaces/Minigame.d.ts +65 -65
  135. package/dist/namespaces/Minigame.d.ts.map +1 -1
  136. package/dist/namespaces/Minigame.js +105 -105
  137. package/dist/namespaces/Misc.d.ts +3 -3
  138. package/dist/namespaces/Misc.d.ts.map +1 -1
  139. package/dist/namespaces/Misc.js +35 -35
  140. package/dist/namespaces/Missiondata.d.ts +15 -15
  141. package/dist/namespaces/Missiondata.d.ts.map +1 -1
  142. package/dist/namespaces/Missiondata.js +24 -24
  143. package/dist/namespaces/Money.js +3 -3
  144. package/dist/namespaces/Netshopping.d.ts +58 -58
  145. package/dist/namespaces/Netshopping.d.ts.map +1 -1
  146. package/dist/namespaces/Netshopping.js +89 -89
  147. package/dist/namespaces/Network.d.ts +1067 -1067
  148. package/dist/namespaces/Network.d.ts.map +1 -1
  149. package/dist/namespaces/Network.js +1586 -1586
  150. package/dist/namespaces/Object.d.ts +231 -231
  151. package/dist/namespaces/Object.d.ts.map +1 -1
  152. package/dist/namespaces/Object.js +337 -337
  153. package/dist/namespaces/Pad.d.ts +42 -42
  154. package/dist/namespaces/Pad.d.ts.map +1 -1
  155. package/dist/namespaces/Pad.js +68 -68
  156. package/dist/namespaces/Pathfind.js +10 -10
  157. package/dist/namespaces/PedStatics.d.ts +2 -2
  158. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  159. package/dist/namespaces/PedStatics.js +10 -10
  160. package/dist/namespaces/Perschar.d.ts +54 -54
  161. package/dist/namespaces/Perschar.d.ts.map +1 -1
  162. package/dist/namespaces/Perschar.js +84 -84
  163. package/dist/namespaces/Physics.d.ts +121 -121
  164. package/dist/namespaces/Physics.d.ts.map +1 -1
  165. package/dist/namespaces/Physics.js +155 -155
  166. package/dist/namespaces/PlayerStatics.d.ts +97 -97
  167. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  168. package/dist/namespaces/PlayerStatics.js +142 -142
  169. package/dist/namespaces/Population.d.ts +11 -11
  170. package/dist/namespaces/Population.d.ts.map +1 -1
  171. package/dist/namespaces/Population.js +15 -15
  172. package/dist/namespaces/Posse.d.ts +33 -33
  173. package/dist/namespaces/Posse.d.ts.map +1 -1
  174. package/dist/namespaces/Posse.js +51 -51
  175. package/dist/namespaces/Propset.d.ts +59 -59
  176. package/dist/namespaces/Propset.d.ts.map +1 -1
  177. package/dist/namespaces/Propset.js +81 -81
  178. package/dist/namespaces/Replay.d.ts +1 -1
  179. package/dist/namespaces/Replay.d.ts.map +1 -1
  180. package/dist/namespaces/Replay.js +2 -2
  181. package/dist/namespaces/Scripts.d.ts +1 -1
  182. package/dist/namespaces/Scripts.d.ts.map +1 -1
  183. package/dist/namespaces/Scripts.js +12 -12
  184. package/dist/namespaces/Shapetest.d.ts +11 -11
  185. package/dist/namespaces/Shapetest.d.ts.map +1 -1
  186. package/dist/namespaces/Shapetest.js +13 -13
  187. package/dist/namespaces/Socialclub.js +8 -8
  188. package/dist/namespaces/Socialclubfeed.js +1 -1
  189. package/dist/namespaces/Spactionproxy.js +4 -4
  190. package/dist/namespaces/Stats.d.ts +191 -191
  191. package/dist/namespaces/Stats.d.ts.map +1 -1
  192. package/dist/namespaces/Stats.js +281 -281
  193. package/dist/namespaces/Streaming.d.ts +84 -84
  194. package/dist/namespaces/Streaming.d.ts.map +1 -1
  195. package/dist/namespaces/Streaming.js +137 -137
  196. package/dist/namespaces/Task.d.ts +347 -347
  197. package/dist/namespaces/Task.d.ts.map +1 -1
  198. package/dist/namespaces/Task.js +488 -488
  199. package/dist/namespaces/Telemetry.d.ts +151 -151
  200. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  201. package/dist/namespaces/Telemetry.js +206 -206
  202. package/dist/namespaces/Txd.js +1 -1
  203. package/dist/namespaces/Uiapps.d.ts +25 -25
  204. package/dist/namespaces/Uiapps.d.ts.map +1 -1
  205. package/dist/namespaces/Uiapps.js +36 -36
  206. package/dist/namespaces/Uievents.js +1 -1
  207. package/dist/namespaces/Uifeed.d.ts +15 -15
  208. package/dist/namespaces/Uifeed.d.ts.map +1 -1
  209. package/dist/namespaces/Uifeed.js +25 -25
  210. package/dist/namespaces/Uistickyfeed.d.ts +16 -16
  211. package/dist/namespaces/Uistickyfeed.d.ts.map +1 -1
  212. package/dist/namespaces/Uistickyfeed.js +21 -21
  213. package/dist/namespaces/Unlock.js +5 -5
  214. package/dist/namespaces/VehicleStatics.js +12 -12
  215. package/dist/namespaces/Voice.d.ts +38 -38
  216. package/dist/namespaces/Voice.d.ts.map +1 -1
  217. package/dist/namespaces/Voice.js +61 -61
  218. package/dist/namespaces/VolumeStatics.d.ts +99 -99
  219. package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
  220. package/dist/namespaces/VolumeStatics.js +137 -137
  221. package/dist/namespaces/WeaponStatics.d.ts +276 -276
  222. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  223. package/dist/namespaces/WeaponStatics.js +371 -371
  224. package/dist/types/NativeAliases.d.ts +3 -1
  225. package/dist/types/NativeAliases.d.ts.map +1 -1
  226. package/dist/types/NativeAliases.js +3 -1
  227. package/package.json +1 -1
  228. package/src/classes/AnimScene.ts +159 -159
  229. package/src/classes/BaseModel.ts +37 -37
  230. package/src/classes/BaseTask.ts +41 -41
  231. package/src/classes/Cam.ts +111 -111
  232. package/src/classes/Entity.ts +422 -411
  233. package/src/classes/Interior.ts +43 -43
  234. package/src/classes/ItemSet.ts +3 -3
  235. package/src/classes/Ped.ts +432 -432
  236. package/src/classes/PedModel.ts +2 -2
  237. package/src/classes/PedTask.ts +957 -957
  238. package/src/classes/PersChar.ts +22 -22
  239. package/src/classes/Pickup.ts +14 -14
  240. package/src/classes/Player.ts +994 -987
  241. package/src/classes/Prop.ts +106 -106
  242. package/src/classes/PropSet.ts +29 -29
  243. package/src/classes/Vehicle.ts +147 -147
  244. package/src/classes/VehicleModel.ts +2 -2
  245. package/src/classes/VehicleTask.ts +31 -31
  246. package/src/classes/Volume.ts +62 -62
  247. package/src/classes/Weapon.ts +511 -511
  248. package/src/namespaces/Aicoverpoint.ts +40 -40
  249. package/src/namespaces/Aitransport.ts +104 -104
  250. package/src/namespaces/Animscene.ts +71 -71
  251. package/src/namespaces/Audio.ts +725 -725
  252. package/src/namespaces/Bounty.ts +102 -102
  253. package/src/namespaces/CamStatics.ts +700 -700
  254. package/src/namespaces/Collection.ts +113 -113
  255. package/src/namespaces/Companion.ts +34 -34
  256. package/src/namespaces/Compapp.ts +1 -1
  257. package/src/namespaces/Compendium.ts +94 -94
  258. package/src/namespaces/Crashlog.ts +23 -23
  259. package/src/namespaces/Crew.ts +4 -4
  260. package/src/namespaces/Databinding.ts +237 -237
  261. package/src/namespaces/Datafile.ts +4 -4
  262. package/src/namespaces/Decorator.ts +37 -37
  263. package/src/namespaces/Dlc.ts +9 -9
  264. package/src/namespaces/EntityStatics.ts +117 -117
  265. package/src/namespaces/Event.ts +4 -4
  266. package/src/namespaces/Fire.ts +127 -127
  267. package/src/namespaces/Flock.ts +2 -2
  268. package/src/namespaces/Gang.ts +2 -2
  269. package/src/namespaces/GoogleAnalytics.ts +2 -2
  270. package/src/namespaces/Graphics.ts +1218 -1218
  271. package/src/namespaces/Hud.ts +696 -696
  272. package/src/namespaces/Ik.ts +1 -1
  273. package/src/namespaces/Interaction.ts +3 -3
  274. package/src/namespaces/InteriorStatics.ts +65 -65
  275. package/src/namespaces/Inventory.ts +294 -294
  276. package/src/namespaces/Itemdatabase.ts +3 -3
  277. package/src/namespaces/Itemset.ts +2 -2
  278. package/src/namespaces/Law.ts +20 -20
  279. package/src/namespaces/Localization.ts +1 -1
  280. package/src/namespaces/Map.ts +3 -3
  281. package/src/namespaces/Minigame.ts +109 -109
  282. package/src/namespaces/Misc.ts +38 -38
  283. package/src/namespaces/Missiondata.ts +28 -28
  284. package/src/namespaces/Money.ts +3 -3
  285. package/src/namespaces/Netshopping.ts +99 -99
  286. package/src/namespaces/Network.ts +1616 -1616
  287. package/src/namespaces/Object.ts +344 -344
  288. package/src/namespaces/Pad.ts +76 -76
  289. package/src/namespaces/Pathfind.ts +10 -10
  290. package/src/namespaces/PedStatics.ts +12 -12
  291. package/src/namespaces/Perschar.ts +86 -86
  292. package/src/namespaces/Physics.ts +171 -171
  293. package/src/namespaces/PlayerStatics.ts +162 -162
  294. package/src/namespaces/Population.ts +17 -17
  295. package/src/namespaces/Posse.ts +54 -54
  296. package/src/namespaces/Propset.ts +92 -92
  297. package/src/namespaces/Replay.ts +3 -3
  298. package/src/namespaces/Scripts.ts +13 -13
  299. package/src/namespaces/Shapetest.ts +14 -14
  300. package/src/namespaces/Socialclub.ts +8 -8
  301. package/src/namespaces/Socialclubfeed.ts +1 -1
  302. package/src/namespaces/Spactionproxy.ts +4 -4
  303. package/src/namespaces/Stats.ts +287 -287
  304. package/src/namespaces/Streaming.ts +159 -159
  305. package/src/namespaces/Task.ts +517 -517
  306. package/src/namespaces/Telemetry.ts +224 -224
  307. package/src/namespaces/Txd.ts +1 -1
  308. package/src/namespaces/Uiapps.ts +43 -43
  309. package/src/namespaces/Uievents.ts +1 -1
  310. package/src/namespaces/Uifeed.ts +28 -28
  311. package/src/namespaces/Uistickyfeed.ts +23 -23
  312. package/src/namespaces/Unlock.ts +5 -5
  313. package/src/namespaces/VehicleStatics.ts +12 -12
  314. package/src/namespaces/Voice.ts +70 -70
  315. package/src/namespaces/VolumeStatics.ts +143 -143
  316. package/src/namespaces/WeaponStatics.ts +383 -383
  317. package/src/types/NativeAliases.ts +6 -1
@@ -33,8 +33,8 @@ export class PedTask extends BaseTask {
33
33
  /**
34
34
  * @returns Returns `true` if the specified `ped` is currently in combat using a ranged weapon, and is ready to shoot (actively attempting to attack)
35
35
  */
36
- getTaskCombatReadyToShoot() {
37
- return inv('0x5EA655F01D93667A', this.entity.handle, rai());
36
+ get TaskCombatReadyToShoot() {
37
+ return !!inv('0x5EA655F01D93667A', this.entity.handle, rai());
38
38
  }
39
39
  /**
40
40
  * @param vehicle
@@ -93,10 +93,106 @@ export class PedTask extends BaseTask {
93
93
  clearDrivebyTaskUnderneathDrivingTask() {
94
94
  inv('0xC35B5CDB2824CF69', this.entity.handle);
95
95
  }
96
+ clearLookAt() {
97
+ inv('0x0F804F1DB19B9689', this.entity.handle);
98
+ }
99
+ /**
100
+ * @param inputContext
101
+ * @returns
102
+ */
103
+ getItemInteractionPromptProgress(inputContext) {
104
+ return inv('0xBC864A70AD55E0C1', this.entity.handle, _h(inputContext), raf());
105
+ }
106
+ /**
107
+ * @param pos
108
+ * @param speedMultiplier
109
+ * @param timeout
110
+ * @param stoppingRange
111
+ * @param flags
112
+ * @param p8
113
+ * @param p9
114
+ * @param p10
115
+ * @param entity
116
+ * @param unk
117
+ */
118
+ followNavMeshToCoordAdvanced(pos, speedMultiplier, timeout, stoppingRange, flags, p8, p9, p10, entity, unk) {
119
+ inv('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));
120
+ }
121
+ /**
122
+ * @param radius
123
+ * @param time
124
+ * @param flags
125
+ */
126
+ combatHatedTargetsAroundPedTimed(radius, time, flags) {
127
+ inv('0x2BBA30B854534A0C', this.entity.handle, f(radius), time, flags);
128
+ }
129
+ /**
130
+ * @returns
131
+ */
132
+ get IsPedRunning() {
133
+ return !!inv('0xC5286FFC176F28A2', this.entity.handle, rai());
134
+ }
135
+ /**
136
+ * @returns
137
+ */
138
+ get IsPedSprinting() {
139
+ return !!inv('0x57E457CD2C0FC168', this.entity.handle, rai());
140
+ }
141
+ /**
142
+ * @param useSlidingSurfaces
143
+ */
144
+ set PedPathMayUseSlidingSurfaces(useSlidingSurfaces) {
145
+ inv('0x06ECF3925BC2ABAE', this.entity.handle, useSlidingSurfaces);
146
+ }
147
+ /**
148
+ * Force a ped that is already attacking to aim directly at the specified world coordinates.
149
+ *
150
+ * @param pos
151
+ * @param p4
152
+ * @param p5
153
+ * @param p6
154
+ */
155
+ forcePointAimAtCoord(pos, p4, p5, p6) {
156
+ inv('0x41323F4E0C4AE94B', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), p4, p5, p6);
157
+ }
158
+ /**
159
+ * @param p1
160
+ * @param p2
161
+ * @param p3
162
+ * @param p4
163
+ */
164
+ swapWeapon(p1, p2, p3, p4) {
165
+ inv('0xA21C51255B205245', this.entity.handle, p1, p2, p3, p4);
166
+ }
167
+ /**
168
+ * @param p1
169
+ * @param p2
170
+ * @param p3
171
+ * @param p4
172
+ * @param p5
173
+ * @param p6
174
+ * @param p7
175
+ * @param p8
176
+ */
177
+ gotoEntityOffsetXyz(p1, p2, p3, p4, p5, p6, p7, p8) {
178
+ inv('0xFA6DA9D151769392', this.entity.handle, p1, p2, p3, p4, p5, p6, p7, p8);
179
+ }
180
+ /**
181
+ * @param pos
182
+ * @param distance
183
+ * @param duration
184
+ * @param p6
185
+ * @param p7
186
+ * @param p8
187
+ * @param p9
188
+ */
189
+ useNearestScenarioToCoordWarp(pos, distance, duration, p6, p7, p8, p9) {
190
+ inv('0x58E2E0F23F6B76C3', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(distance), duration, p6, p7, p8, p9);
191
+ }
96
192
  /**
97
193
  * @param neverUseInteriors
98
194
  */
99
- setPedPathNeverUseInteriors(neverUseInteriors) {
195
+ set PedPathNeverUseInteriors(neverUseInteriors) {
100
196
  inv('0x42CFD8FD8CC8DC69', this.entity.handle, neverUseInteriors);
101
197
  }
102
198
  /**
@@ -149,106 +245,136 @@ export class PedTask extends BaseTask {
149
245
  inv('0x1A52076D26E09004', this.entity.handle, entity.handle);
150
246
  }
151
247
  /**
152
- * @param p1
248
+ * @returns
153
249
  */
154
- N_0xFFB520A3E16F7B7B(p1) {
155
- inv('0xFFB520A3E16F7B7B', this.entity.handle, f(p1));
250
+ get PedWaypointOverrideSpeed() {
251
+ return inv('0xD39A2F3E7FCAFF08', this.entity.handle, raf());
156
252
  }
157
- persistentCharacter() {
158
- inv('0x4391700CBD89C3D8', this.entity.handle);
253
+ /**
254
+ * Climbs or vaults the nearest thing.
255
+ *
256
+ * @param unused
257
+ */
258
+ climb(unused) {
259
+ inv('0x89D9FCC2435112F1', this.entity.handle, unused);
159
260
  }
160
261
  /**
161
- * @param speed
162
- * @param p2
163
- * @param p3
164
- * @param p4
262
+ * Old name: _TASK_VEHICLE_DRIVE_TO_POINT
263
+ * flag: 524419 and 0 in shop_horse_shop R* Script
264
+ *
265
+ * @param vehicle
266
+ * @param pos
267
+ * @param p5
268
+ * @param p6
269
+ * @param flag
165
270
  */
166
- waypointPlaybackOverrideSpeed(speed, p2, p3, p4) {
167
- inv('0x7D7D2B47FA788E85', this.entity.handle, f(speed), p2, p3, p4);
271
+ vehicleDriveStraightToPoint(vehicle, pos, p5, p6, flag) {
272
+ inv('0x089FF2FB965F0A29', this.entity.handle, vehicle.handle, f(pos.x), f(pos.y), f(pos.z), f(p5), f(p6), flag);
168
273
  }
169
274
  /**
170
275
  * @param p1
171
276
  * @param p2
172
277
  * @param p3
278
+ * @param p4
279
+ * @param p5
280
+ * @param p6
281
+ * @param p7
282
+ * @param p8
283
+ * @param p9
284
+ * @param p10
285
+ * @param p11
286
+ * @param p12
287
+ * @param p13
288
+ * @param p14
289
+ * @param p15
173
290
  */
174
- climbLadder(p1, p2, p3) {
175
- inv('0xB6C987F9285A3814', this.entity.handle, f(p1), p2, p3);
291
+ goToCoordWhileAimingAtCoordUsingCombatStyle(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15) {
292
+ inv('0x639C0425A0B4E77E', this.entity.handle, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15);
176
293
  }
177
294
  /**
178
- * Makes a ped run away from another ped (fleeFromTarget) fleeDistance = ped will flee this distance
179
- * fleeTime = ped will flee for this amount of time, set to "-1" to flee forever
180
- * fleeType = can be 0, R* Scripts: fm_mission/race_controller: 66048; fme_escaped_convicts: 2260992, 2523136, 2359296; la_alligator/fox: 2097152; net_fetch: 17301536; net_stable_mount: 540928
181
- * fleeSpeed = mostly 3f, rarely 1f in R* Scripts
295
+ * flags: 0 = HANDS_UP_NOTHING; 1 = HANDS_UP_STRAIGHT_TO_LOOP
182
296
  *
183
- * @param fleeFromTarget
184
- * @param fleeDistance
185
- * @param fleeTime
186
- * @param fleeType Refer to [enum: eFleeStyle]
187
- * @param fleeSpeed
188
- * @param targetPed
297
+ * @param duration
298
+ * @param facingPed
299
+ * @param timeToFacePed
300
+ * @param flags
189
301
  */
190
- smartFleePed(fleeFromTarget, fleeDistance, fleeTime, fleeType, fleeSpeed, targetPed) {
191
- inv('0x22B0D0E37CCB840D', this.entity.handle, fleeFromTarget.handle, f(fleeDistance), fleeTime, fleeType, f(fleeSpeed), targetPed.handle);
302
+ handsUp(duration, facingPed, timeToFacePed, flags) {
303
+ inv('0xF2EAB31979A7F910', this.entity.handle, duration, facingPed.handle, timeToFacePed, flags);
192
304
  }
193
305
  /**
194
- * @param pos
195
- * @param time
196
- * @param p5
306
+ * timer: in ms, if it reaches 0 it will auto warp the ped on the horse
307
+ * Flags will still apply to mountStyle
308
+ *
309
+ * @param mount
310
+ * @param timer
311
+ * @param seatIndex Refer to [enum: eVehicleSeat]
312
+ * @param pedSpeed
313
+ * @param mountStyle
197
314
  * @param p6
315
+ * @param p7
198
316
  */
199
- aimGunAtCoord(pos, time, p5, p6) {
200
- inv('0x6671F3EEC681BDA1', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), time, p5, p6);
317
+ mountAnimal(mount, timer, seatIndex, pedSpeed, mountStyle, p6, p7) {
318
+ inv('0x92DB0739813C5186', this.entity.handle, mount.handle, timer, seatIndex, f(pedSpeed), mountStyle, p6, p7);
201
319
  }
202
320
  /**
203
- * @param targetPed
321
+ * @returns
204
322
  */
205
- cutFreeHogtiedTargetPed(targetPed) {
206
- inv('0x81D16C4FF3A77ADF', this.entity.handle, targetPed.handle);
323
+ get PedIsIgnoringDeadBodies() {
324
+ return inv('0x1948BBE561A2375A', this.entity.handle);
207
325
  }
208
326
  /**
209
- * @param signalName
210
- * @param value
327
+ * @param p1
328
+ * @param p2
329
+ * @param p3
330
+ * @param p4
211
331
  */
212
- setTaskMoveNetworkSignalFloat2(signalName, value) {
213
- inv('0x099D4A855D53B03B', this.entity.handle, signalName, f(value));
332
+ setSphereDefensiveArea(p1, p2, p3, p4) {
333
+ inv('0x933C06518B52A9A4', this.entity.handle, f(p1), f(p2), f(p3), f(p4));
214
334
  }
215
335
  /**
216
336
  * @param p1
217
337
  * @param p2
338
+ * @param p3
339
+ * @param p4
218
340
  */
219
- ambientAnimalHunt(p1, p2) {
220
- inv('0x4B39D8F9D0FE7749', this.entity.handle, p1, p2);
341
+ useRandomScenarioInGroup(p1, p2, p3, p4) {
342
+ inv('0x14747F4A5971DE4E', this.entity.handle, p1, p2, p3, p4);
221
343
  }
222
344
  /**
223
- * @param goToLocationX
224
- * @param goToLocationY
225
- * @param goToLocationZ
226
- * @param focusLocationX
227
- * @param focusLocationY
228
- * @param focusLocationZ
229
- * @param speed
230
- * @param shootAtEnemies
231
- * @param distanceToStopAt
232
- * @param noRoadsDistance
233
- * @param unkTrue
234
- * @param unkFlag
235
- * @param aimingFlag
236
- * @param firingPattern
345
+ * enum eWhistleType
346
+ * {
347
+ * WHISTLE_MAIN,
348
+ * WHISTLE_SECONDARY,
349
+ * WHISTLE_DOUBLE,
350
+ * WHISTLE_URGENT,
351
+ * WHISTLE_LONG
352
+ * };
353
+ *
354
+ * @param p1
355
+ * @param whistleType
237
356
  */
238
- goToCoordAndAimAtHatedEntitiesNearCoord(goToLocationX, goToLocationY, goToLocationZ, focusLocationX, focusLocationY, focusLocationZ, speed, shootAtEnemies, distanceToStopAt, noRoadsDistance, unkTrue, unkFlag, aimingFlag, firingPattern) {
239
- inv('0xA55547801EB331FC', this.entity.handle, f(goToLocationX), f(goToLocationY), f(goToLocationZ), f(focusLocationX), f(focusLocationY), f(focusLocationZ), f(speed), shootAtEnemies, f(distanceToStopAt), f(noRoadsDistance), unkTrue, unkFlag, aimingFlag, _h(firingPattern));
357
+ goToWhistle(p1, whistleType) {
358
+ inv('0xBAD6545608CECA6E', this.entity.handle, p1.handle, whistleType);
359
+ }
360
+ /**
361
+ * @param pos
362
+ * @param duration
363
+ * @param flags
364
+ * @param p6
365
+ * @param p7
366
+ */
367
+ lookAtCoord(pos, duration, flags, p6, p7) {
368
+ inv('0x6FA46612594F7973', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), duration, flags, p6, p7);
240
369
  }
241
370
  /**
242
- * @param itemHash
243
- * @param interactionAnimHash
244
- * @param p3
245
371
  * @returns
246
372
  */
247
- canStartItemInteraction(itemHash, interactionAnimHash, p3) {
248
- return inv('0x2D19BC4DF626CBE7', this.entity.handle, _h(itemHash), _h(interactionAnimHash), p3);
373
+ get IsPedInHitReact() {
374
+ return !!inv('0xF330A5C062B29BED', this.entity.handle, rai());
249
375
  }
250
376
  /**
251
- * @param targetPed
377
+ * @param p1
252
378
  * @param p2
253
379
  * @param p3
254
380
  * @param p4
@@ -256,322 +382,305 @@ export class PedTask extends BaseTask {
256
382
  * @param p6
257
383
  * @param p7
258
384
  * @param p8
259
- * @param p9
260
- * @param p10
261
385
  */
262
- followAndConverseWithPed(targetPed, p2, p3, p4, p5, p6, p7, p8, p9, p10) {
263
- inv('0x489FFCCCE7392B55', this.entity.handle, targetPed.handle, p2, p3, f(p4), f(p5), p6, p7, p8, f(p9), f(p10));
386
+ N_0x3FFCD7BBA074CC80(p1, p2, p3, p4, p5, p6, p7, p8) {
387
+ inv('0x3FFCD7BBA074CC80', this.entity.handle, p1, p2, p3, p4, p5, p6, p7, p8);
264
388
  }
265
389
  /**
266
- * @param pos
267
- * @param distance
268
- * @param p5
269
- * @param p6
270
- * @param p7
271
- * @param p8
390
+ * @returns
272
391
  */
273
- useNearestScenarioChainToCoord(pos, distance, p5, p6, p7, p8) {
274
- inv('0x9FDA1B3D7E7028B3', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(distance), p5, p6, p7, p8);
392
+ get IsMountedWeaponTaskUnderneathDrivingTask() {
393
+ return !!inv('0xA320EF046186FA3B', this.entity.handle, rai());
275
394
  }
276
395
  /**
277
- * @param eventName
278
- * @returns
279
- */
280
- getTaskMoveNetworkEvent(eventName) {
281
- return inv('0xB4F47213DF45A64C', this.entity.handle, eventName, rai());
282
- }
283
- /**
284
- * Baits: see 0x9B0C7FA063E67629
396
+ * flags: See TASK_ENTER_VEHICLE
285
397
  *
286
- * @param bait
287
- * @param withoutBuoy
288
- */
289
- swapFishingBait(bait, withoutBuoy) {
290
- inv('0x2C28AC30A72722DA', this.entity.handle, bait, withoutBuoy);
291
- }
292
- /**
293
- * @returns
398
+ * @param p1
399
+ * @param flags Refer to [enum: eEnterExitVehicleFlags]
294
400
  */
295
- isDrivebyTaskUnderneathDrivingTask() {
296
- return inv('0x8785E6E40C7A8818', this.entity.handle, rai());
297
- }
298
- cuffPed() {
299
- inv('0x7981037A96E7D174', this.entity.handle);
401
+ disembarkNearestTrainCarriage(p1, flags) {
402
+ inv('0x0A11F3BDEC03ED5F', this.entity.handle, f(p1), flags);
300
403
  }
301
404
  /**
302
- * This native allows to control the cruise speed of where you want the ped to go
303
- * 3rd param might be the entity ped is in? like boat or wagon, 12th param might be the cruiseSpeed of the entity ped is in?
304
- * EXAMPLE: TaskGoToCoordAnyMeansExtraParamsWithCruiseSpeed(PlayerPedId(), vector3(x, y, z), 3.0, entity, 1, 0, -1082130432, 0, 101004800, 520, 3.0, 1082130432, 0)
405
+ * fleeType: see TASK_FLEE_COORD
305
406
  *
306
- * @param cruiseSpeed
307
- * @param entity
308
- * @param p4
309
- * @param p5
407
+ * @param fleeFromTarget
408
+ * @param pos
409
+ * @param distance
310
410
  * @param p6
311
411
  * @param p7
312
412
  * @param p8
313
- * @param p9
314
- * @param p10
315
- * @param p11
316
- * @param cruiseSpeed2
317
- * @param p13
318
- * @param p14
319
- * @returns gotoCoords
413
+ * @param targetPed
320
414
  */
321
- goToCoordAnyMeansExtraParamsWithCruiseSpeed(cruiseSpeed, entity, p4, p5, p6, p7, p8, p9, p10, p11, cruiseSpeed2, p13, p14) {
322
- const result = inv('0xB8ECD61F531A7B02', this.entity.handle, pvv(), f(cruiseSpeed), entity.handle, p4, p5, p6, p7, p8, p9, p10, p11, f(cruiseSpeed2), p13, p14);
323
- return Vector3.fromArray(result);
415
+ fleeFromPed(fleeFromTarget, pos, distance, p6, p7, p8, targetPed) {
416
+ inv('0x7B74D8EEDE9B5727', this.entity.handle, fleeFromTarget.handle, f(pos.x), f(pos.y), f(pos.z), f(distance), p6, p7, f(p8), targetPed.handle);
324
417
  }
325
418
  /**
326
419
  * @returns
327
420
  */
328
- isTaskMoveNetworkReadyForTransition() {
329
- return inv('0x30ED88D5E0C56A37', this.entity.handle, rai());
330
- }
331
- clearDefensiveArea() {
332
- inv('0x95A6C46A31D1917D', this.entity.handle);
333
- }
334
- /**
335
- * @param modifier
336
- */
337
- setPedPathDeepSnowCostModifier(modifier) {
338
- inv('0xE8C296B75EACC357', this.entity.handle, f(modifier));
421
+ get IsPedGettingUp() {
422
+ return !!inv('0x2A74E1D5F2F00EEC', this.entity.handle, rai());
339
423
  }
340
424
  /**
341
- * @returns
425
+ * @param time
342
426
  */
343
- getItemInteractionItemId() {
344
- return (inv('0x804425C4BBD00883', this.entity.handle, rai())) & 0xFFFFFFFF;
427
+ duck(time) {
428
+ inv('0xA14B5FBF986BAC23', this.entity.handle, time);
345
429
  }
346
430
  /**
347
- * @param entity
348
- * @param mount
431
+ * @param p1
432
+ * @param p2
349
433
  * @param p3
434
+ * @param p4
350
435
  */
351
- placeCarriedEntityOnMount(entity, mount, p3) {
352
- inv('0x6D3D87C57B3D52C7', this.entity.handle, entity.handle, mount.handle, f(p3));
353
- }
354
- detachCarriablePed() {
355
- inv('0x36D188AECB26094B', this.entity.handle);
436
+ robPed(p1, p2, p3, p4) {
437
+ inv('0x7BB967F85D8CCBDB', this.entity.handle, p1, p2, p3, p4);
356
438
  }
357
439
  /**
358
- * @returns
440
+ * getupSetHash: see nm_blend_out_sets.meta
441
+ *
442
+ * @param flags
443
+ * @param getupSetHash
444
+ * @param p3
445
+ * @param p4
446
+ * @param p5
359
447
  */
360
- getItemInteractionState() {
361
- return (inv('0x6AA3DCA2C6F5EB6D', this.entity.handle, rai())) & 0xFFFFFFFF;
448
+ unhogtiePed(flags, getupSetHash, p3, p4, p5) {
449
+ inv('0x79559BAD83CCD038', this.entity.handle, flags, _h(getupSetHash), p3, p4, f(p5));
362
450
  }
363
451
  /**
364
- * @returns
452
+ * hecks if the ped camera is directed at the given coord within the specified radius. https://www.youtube.com/watch?v=iLHXrWVvq_c
453
+ *
454
+ * @param coord The coord to check if they're looking at
455
+ * @param radius The radius of the frustum
456
+ * @returns Returns `true` if the ped camera is within the range of the frustum, `false` otherwise
365
457
  */
366
- getIsPedAimingInTheAir() {
367
- return inv('0x8785E6E40C7A8819', this.entity.handle);
458
+ isPedLookingAtCoord(coord, radius) {
459
+ return !!inv('0x508F5053E3F6F0C4', this.entity.handle, f(coord.x), f(coord.y), f(coord.z), f(radius), rai());
368
460
  }
369
461
  /**
370
- * param3: duration in ms, use -1 to look forever
371
- * param4: using 2048 is fine
372
- * param5: using 3 is fine
373
- *
374
- * @param lookAtTarget
375
- * @param duration
376
- * @param p3
377
- * @param p4
378
- * @param p5
462
+ * @param entity
379
463
  */
380
- lookAtEntity(lookAtTarget, duration, p3, p4, p5) {
381
- inv('0x69F4BE8C8CC4796C', this.entity.handle, lookAtTarget.handle, duration, p3, p4, p5);
464
+ walkAway(entity) {
465
+ inv('0x04ACFAC71E6858F9', this.entity.handle, entity.handle);
382
466
  }
383
467
  /**
384
- * @param taskIndex
385
468
  * @returns
386
469
  */
387
- getIsTaskActive(taskIndex) {
388
- return inv('0xB0760331C7AA4155', this.entity.handle, taskIndex, rai());
470
+ get HogtieEscapeTimer() {
471
+ return inv('0x4687E69D258BBE41', this.entity.handle, raf());
472
+ }
473
+ weapon() {
474
+ inv('0x7157B82D60E4BC46', this.entity.handle);
389
475
  }
390
476
  /**
391
- * grappleStyle: AR_GRAPPLE_STRUGGLE, AR_ALLIGATOR_LEG_GRAB_CHALLENGE_FAIL, AR_GRAPPLE_BACK_FROM_BACK, AR_GRAPPLE_BACK_DEFEND, AR_GRAPPLE_FRONT_FROM_FRONT
392
- *
393
- * @param grappleTarget
394
- * @param grappleStyle
395
- * @param p3
396
- * @param p4
397
- * @param p5
398
- * @param p6
477
+ * @returns
399
478
  */
400
- putPedDirectlyIntoGrapple(grappleTarget, grappleStyle, p3, p4, p5, p6) {
401
- inv('0xA05F3F20889D7A5B', this.entity.handle, grappleTarget.handle, _h(grappleStyle), f(p3), f(p4), p5, p6);
479
+ get IsPedWalking() {
480
+ return !!inv('0xDE4C184B2B9B071A', this.entity.handle, rai());
402
481
  }
403
482
  /**
404
483
  * @param p1
405
- * @param p2
406
484
  */
407
- combatAnimalWarn(p1, p2) {
408
- inv('0xF960F3D57B660E96', this.entity.handle, p1, p2);
485
+ N_0xFFB520A3E16F7B7B(p1) {
486
+ inv('0xFFB520A3E16F7B7B', this.entity.handle, f(p1));
409
487
  }
410
- /**
411
- * @param toggle
412
- */
413
- setPedIgnoreDeadBodies(toggle) {
414
- inv('0x013A7BA5015C1372', this.entity.handle, toggle);
488
+ persistentCharacter() {
489
+ inv('0x4391700CBD89C3D8', this.entity.handle);
415
490
  }
416
491
  /**
417
- * @param p1
492
+ * @param speed
418
493
  * @param p2
419
494
  * @param p3
420
495
  * @param p4
421
- * @param p5
422
- * @param p6
423
- * @param p7
424
496
  */
425
- moveInTrafficToDestination(p1, p2, p3, p4, p5, p6, p7) {
426
- inv('0xDCA3A13F7A45338B', this.entity.handle, p1, p2, p3, p4, p5, p6, p7);
497
+ waypointPlaybackOverrideSpeed(speed, p2, p3, p4) {
498
+ inv('0x7D7D2B47FA788E85', this.entity.handle, f(speed), p2, p3, p4);
427
499
  }
428
500
  /**
429
- * @param attacker
501
+ * @param p1
430
502
  * @param p2
431
- * @returns Returns `true` on success, or `false` if `attacker` doesn't exist, or is dead.
503
+ * @param p3
432
504
  */
433
- intimidated(attacker, p2) {
434
- return inv('0x648B75D44930D6BD', this.entity.handle, attacker.handle, p2, rai());
505
+ climbLadder(p1, p2, p3) {
506
+ inv('0xB6C987F9285A3814', this.entity.handle, f(p1), p2, p3);
435
507
  }
436
508
  /**
437
- * @returns
509
+ * Makes a ped run away from another ped (fleeFromTarget) fleeDistance = ped will flee this distance
510
+ * fleeTime = ped will flee for this amount of time, set to "-1" to flee forever
511
+ * fleeType = can be 0, R* Scripts: fm_mission/race_controller: 66048; fme_escaped_convicts: 2260992, 2523136, 2359296; la_alligator/fox: 2097152; net_fetch: 17301536; net_stable_mount: 540928
512
+ * fleeSpeed = mostly 3f, rarely 1f in R* Scripts
513
+ *
514
+ * @param fleeFromTarget
515
+ * @param fleeDistance
516
+ * @param fleeTime
517
+ * @param fleeType Refer to [enum: eFleeStyle]
518
+ * @param fleeSpeed
519
+ * @param targetPed
438
520
  */
439
- waypointPlaybackGetIsShooting() {
440
- return inv('0xA5B94DF8AF058F46', this.entity.handle);
521
+ smartFleePed(fleeFromTarget, fleeDistance, fleeTime, fleeType, fleeSpeed, targetPed) {
522
+ inv('0x22B0D0E37CCB840D', this.entity.handle, fleeFromTarget.handle, f(fleeDistance), fleeTime, fleeType, f(fleeSpeed), targetPed.handle);
441
523
  }
442
524
  /**
443
525
  * @param pos
444
- * @param distance
526
+ * @param time
445
527
  * @param p5
446
528
  * @param p6
447
- * @param p7
448
- * @param p8
449
529
  */
450
- useNearestScenarioChainToCoordWarp(pos, distance, p5, p6, p7, p8) {
451
- inv('0x97A28E63F0BA5631', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(distance), p5, p6, p7, p8);
530
+ aimGunAtCoord(pos, time, p5, p6) {
531
+ inv('0x6671F3EEC681BDA1', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), time, p5, p6);
452
532
  }
453
533
  /**
454
- * returned values:
455
- * 0 to 7 = task that's currently in progress, 0 meaning the first one.
456
- * -1 no task sequence in progress.
457
- *
458
- * @returns
534
+ * @param targetPed
459
535
  */
460
- getSequenceProgress() {
461
- return inv('0x00A9010CFE1E3533', this.entity.handle, rai());
536
+ cutFreeHogtiedTargetPed(targetPed) {
537
+ inv('0x81D16C4FF3A77ADF', this.entity.handle, targetPed.handle);
462
538
  }
463
539
  /**
464
- * @returns
540
+ * @param signalName
541
+ * @param value
465
542
  */
466
- waypointPlaybackGetIsAiming() {
467
- return inv('0xD73A5D1F0325C71C', this.entity.handle);
543
+ setTaskMoveNetworkSignalFloat2(signalName, value) {
544
+ inv('0x099D4A855D53B03B', this.entity.handle, signalName, f(value));
468
545
  }
469
546
  /**
470
- * @param toggle
547
+ * @param p1
548
+ * @param p2
471
549
  */
472
- setPedPathCanUseLadders(toggle) {
473
- inv('0x77A5B103C87F476E', this.entity.handle, toggle);
550
+ ambientAnimalHunt(p1, p2) {
551
+ inv('0x4B39D8F9D0FE7749', this.entity.handle, p1, p2);
474
552
  }
475
553
  /**
476
554
  * @param p1
477
- * @param p2
555
+ * @param taskFlag Refer to [enum: eEnterExitVehicleFlags]
478
556
  */
479
- stopAnimPlayback(p1, p2) {
480
- inv('0xEE08C992D238C5D1', this.entity.handle, p1, p2);
557
+ leaveAnyVehicle(p1, taskFlag) {
558
+ inv('0x504D54DF3F6F2247', this.entity.handle, p1, taskFlag);
481
559
  }
482
560
  /**
483
561
  * @param targetPed
484
562
  * @param p2
485
- * @returns
563
+ * @param p3
486
564
  */
487
- confront(targetPed, p2) {
488
- return inv('0x3A2A2071DF5CC569', this.entity.handle, targetPed.handle, p2);
565
+ combatPed(targetPed, p2, p3) {
566
+ inv('0xF166E48407BAC484', this.entity.handle, targetPed.handle, p2, p3);
489
567
  }
490
- N_0x1F298C7BD30D1240() {
491
- inv('0x1F298C7BD30D1240', this.entity.handle);
568
+ /**
569
+ * Params: p4 = -1.0f, p5 = -1, p6 = 0 in R* Scripts
570
+ *
571
+ * @param fleeFromTarget
572
+ * @param fleeStyle Refer to [enum: eFleeStyle]
573
+ * @param flag
574
+ * @param p4
575
+ * @param p5
576
+ * @param p6
577
+ */
578
+ fleePed(fleeFromTarget, fleeStyle, flag, p4, p5, p6) {
579
+ inv('0xFD45175A6DFD7CE9', this.entity.handle, fleeFromTarget.handle, fleeStyle, flag, f(p4), p5, p6);
492
580
  }
493
581
  /**
494
- * @param p1
495
- * @param p2
496
- * @param p3
582
+ * @returns
497
583
  */
498
- setCrouchMovement(p1, p2, p3) {
499
- inv('0x17293C633C8AC019', this.entity.handle, p1, p2, p3);
584
+ get IsPedLeadingHorse() {
585
+ return inv('0xEFC4303DDC6E60D3', this.entity.handle);
500
586
  }
501
587
  /**
502
- * 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
503
- *
504
588
  * @param entity
505
589
  * @param offset
506
- * @param moveBlendRatio
507
- * @param timeBeforeTeleport
508
- * @param p7
590
+ * @param movementSpeed
591
+ * @param timeout
592
+ * @param stoppingRange
593
+ * @param persistFollowing
594
+ * @param p9
595
+ * @param walkOnly
596
+ * @param p11
597
+ * @param p12
598
+ * @param p13
509
599
  */
510
- goStraightToCoordRelativeToEntity(entity, offset, moveBlendRatio, timeBeforeTeleport, p7) {
511
- inv('0x61E360B7E040D12E', this.entity.handle, entity.handle, f(offset.x), f(offset.y), f(offset.z), moveBlendRatio, timeBeforeTeleport, p7);
600
+ followToOffsetOfEntity(entity, offset, movementSpeed, timeout, stoppingRange, persistFollowing, p9, walkOnly, p11, p12, p13) {
601
+ inv('0x304AE42E357B8C7E', this.entity.handle, entity.handle, f(offset.x), f(offset.y), f(offset.z), f(movementSpeed), timeout, f(stoppingRange), persistFollowing, p9, walkOnly, p11, p12, p13);
512
602
  }
513
603
  /**
514
- * Sets the time it takes for a hogtied ped to escape
515
- * -1.0f for ped to never escape
604
+ * duration: the amount of time in milliseconds to do the task. -1 will keep the task going until either another task is applied, or CLEAR_ALL_TASKS() is called with the ped
516
605
  *
517
- * @param time
606
+ * @param targetEntity
607
+ * @param duration
608
+ * @param p3
609
+ * @param p4
518
610
  */
519
- setHogtieEscapeTimer(time) {
520
- inv('0xAB591AE6B48B913E', this.entity.handle, f(time));
611
+ aimGunAtEntity(targetEntity, duration, p3, p4) {
612
+ inv('0x9B53BB6E8943AF53', this.entity.handle, targetEntity.handle, duration, p3, p4);
521
613
  }
522
614
  /**
523
- * Makes the ped run to take cover
615
+ * `_GET_ANIM_SCENE_FROM_PED_*` But in a strange way, it also seems to work with the butcher's meat-cutting animscene. This does not return AnimScenes in general — it seems restricted to
616
+ * SEARCH-related scenes (needs more research).
617
+ *
618
+ * @returns Returns the AnimScene handle currently associated with the given Ped, but only when the anim event "SEARCHSTART" has fired on that Ped.
524
619
  */
525
- stayInCover() {
526
- inv('0xE5DA8615A6180789', this.entity.handle);
620
+ N_0x2C497BDEF897C6DF() {
621
+ return createFromHandle('AnimScene', inv('0x2C497BDEF897C6DF', this.entity.handle, rai()));
527
622
  }
528
623
  /**
529
624
  * @param p1
625
+ * @returns
530
626
  */
531
- followWaypointRecordingAdvanced(p1) {
532
- inv('0x0CFC13EBC19BCA52', this.entity.handle, p1);
627
+ police(p1) {
628
+ return inv('0x87BE56724650408E', this.entity.handle, p1);
533
629
  }
534
630
  /**
535
- * 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
536
- *
537
- * @param pos
538
- * @param moveBlendRatio
539
- * @param timeBeforeTeleport
540
- * @param finalHeading
541
- * @param targetRadius
542
- * @param p8
631
+ * @param scenarioPoint
632
+ * @param flag
543
633
  */
544
- goStraightToCoord(pos, moveBlendRatio, timeBeforeTeleport, finalHeading, targetRadius, p8) {
545
- inv('0xD76B57B44F1E6F8B', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(moveBlendRatio), timeBeforeTeleport, f(finalHeading), f(targetRadius), p8);
634
+ hitchAnimal(scenarioPoint, flag) {
635
+ inv('0x9030AD4B6207BFE8', this.entity.handle, scenarioPoint, flag);
636
+ }
637
+ uncuffPed() {
638
+ inv('0x67406F2C8F87FC4F', this.entity.handle);
546
639
  }
547
640
  /**
548
- * @returns
641
+ * @param p1
642
+ * @param p2
643
+ * @param p3
549
644
  */
550
- getPedWaypointOverrideSpeed() {
551
- return inv('0xD39A2F3E7FCAFF08', this.entity.handle, raf());
645
+ waypointPlaybackPause(p1, p2, p3) {
646
+ inv('0x0F342546AA06FED5', this.entity.handle, p1, p2, p3);
552
647
  }
553
648
  /**
554
- * Climbs or vaults the nearest thing.
649
+ * meleeStyles: AR_GRAPPLE_BACK_FROM_BACK, AR_GRAPPLE_MOUNT_FACEDOWN_FROM_FRONT, AR_ALLIGATOR_LEAPKILL, AR_ALLIGATOR_WAIST_AUTOKILL_FRONT
555
650
  *
556
- * @param unused
651
+ * @param meleeTarget
652
+ * @param meleeStyle
653
+ * @param p3
654
+ * @param animBlendRatio
655
+ * @param p5
656
+ * @param p6
557
657
  */
558
- climb(unused) {
559
- inv('0x89D9FCC2435112F1', this.entity.handle, unused);
658
+ putPedDirectlyIntoMelee(meleeTarget, meleeStyle, p3, animBlendRatio, p5, p6) {
659
+ inv('0x1C6CD14A876FFE39', this.entity.handle, meleeTarget.handle, _h(meleeStyle), f(p3), f(animBlendRatio), p5, p6);
560
660
  }
561
661
  /**
562
- * Old name: _TASK_VEHICLE_DRIVE_TO_POINT
563
- * flag: 524419 and 0 in shop_horse_shop R* Script
564
- *
565
- * @param vehicle
566
- * @param pos
662
+ * @param waypointRecording
663
+ * @param p2
664
+ * @param flag
665
+ * @param p4
567
666
  * @param p5
568
667
  * @param p6
569
- * @param flag
668
+ * @param p7
570
669
  */
571
- vehicleDriveStraightToPoint(vehicle, pos, p5, p6, flag) {
572
- inv('0x089FF2FB965F0A29', this.entity.handle, vehicle.handle, f(pos.x), f(pos.y), f(pos.z), f(p5), f(p6), flag);
670
+ followWaypointRecording(waypointRecording, p2, flag, p4, p5, p6, p7) {
671
+ inv('0x0759591819534F7B', this.entity.handle, waypointRecording, p2, flag, p4, p5, p6, p7);
573
672
  }
574
673
  /**
674
+ * @param targetPed
675
+ */
676
+ hogtieTargetPed(targetPed) {
677
+ inv('0x27829AFD3E03AC1A', this.entity.handle, targetPed.handle);
678
+ }
679
+ /**
680
+ * shootatEntity:
681
+ * If true, peds will shoot at Entity till it is dead.
682
+ * If false, peds will just walk till they reach the entity and will cease shooting.
683
+ *
575
684
  * @param p1
576
685
  * @param p2
577
686
  * @param p3
@@ -582,197 +691,399 @@ export class PedTask extends BaseTask {
582
691
  * @param p8
583
692
  * @param p9
584
693
  * @param p10
585
- * @param p11
586
- * @param p12
587
- * @param p13
588
- * @param p14
589
- * @param p15
590
694
  */
591
- goToCoordWhileAimingAtCoordUsingCombatStyle(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15) {
592
- inv('0x639C0425A0B4E77E', this.entity.handle, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15);
695
+ goToEntityWhileAimingAtEntity(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10) {
696
+ inv('0x97465886D35210E9', this.entity.handle, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
593
697
  }
594
698
  /**
595
- * flags: 0 = HANDS_UP_NOTHING; 1 = HANDS_UP_STRAIGHT_TO_LOOP
699
+ * @param pos
700
+ * @param distance
701
+ */
702
+ useNearestTrainScenarioToCoordWarp(pos, distance) {
703
+ inv('0x3774B03456DD6106', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(distance));
704
+ }
705
+ /**
706
+ * @param p1
707
+ */
708
+ wanderSwim(p1) {
709
+ inv('0x527EA3DB8BC7F03B', this.entity.handle, p1);
710
+ }
711
+ /**
712
+ * duration in milliseconds
596
713
  *
714
+ * @param pos
597
715
  * @param duration
598
- * @param facingPed
599
- * @param timeToFacePed
600
- * @param flags
601
716
  */
602
- handsUp(duration, facingPed, timeToFacePed, flags) {
603
- inv('0xF2EAB31979A7F910', this.entity.handle, duration, facingPed.handle, timeToFacePed, flags);
717
+ turnPedToFaceCoord(pos, duration) {
718
+ inv('0x1DDA930A0AC38571', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), duration);
604
719
  }
605
720
  /**
606
- * timer: in ms, if it reaches 0 it will auto warp the ped on the horse
607
- * Flags will still apply to mountStyle
608
- *
609
- * @param mount
610
- * @param timer
611
- * @param seatIndex Refer to [enum: eVehicleSeat]
612
- * @param pedSpeed
613
- * @param mountStyle
721
+ * @param preferAvoidMud
722
+ * @param p2
723
+ */
724
+ setPedPathPreferToAvoidMud(preferAvoidMud, p2) {
725
+ inv('0x8BB283A7888AD1AD', this.entity.handle, preferAvoidMud, f(p2));
726
+ }
727
+ /**
728
+ * @param animDict
729
+ * @param animName
730
+ * @param entity
731
+ * @param p4
732
+ * @param p5
614
733
  * @param p6
615
734
  * @param p7
735
+ * @param p8
736
+ * @param p9
737
+ * @param p10
738
+ * @param p11
739
+ * @param p12
740
+ * @param p13
741
+ * @param p14
616
742
  */
617
- mountAnimal(mount, timer, seatIndex, pedSpeed, mountStyle, p6, p7) {
618
- inv('0x92DB0739813C5186', this.entity.handle, mount.handle, timer, seatIndex, f(pedSpeed), mountStyle, p6, p7);
743
+ playUpperAnimFacingEntity(animDict, animName, entity, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14) {
744
+ inv('0xAD67214236AB1CFE', this.entity.handle, animDict, animName, entity.handle, p4, f(p5), f(p6), p7, f(p8), p9, p10, f(p11), p12, p13, f(p14));
619
745
  }
620
746
  /**
621
- * @returns
747
+ * @param goToLocationX
748
+ * @param goToLocationY
749
+ * @param goToLocationZ
750
+ * @param focusLocationX
751
+ * @param focusLocationY
752
+ * @param focusLocationZ
753
+ * @param speed
754
+ * @param shootAtEnemies
755
+ * @param distanceToStopAt
756
+ * @param noRoadsDistance
757
+ * @param unkTrue
758
+ * @param unkFlag
759
+ * @param aimingFlag
760
+ * @param firingPattern
622
761
  */
623
- getPedIsIgnoringDeadBodies() {
624
- return inv('0x1948BBE561A2375A', this.entity.handle);
762
+ goToCoordAndAimAtHatedEntitiesNearCoord(goToLocationX, goToLocationY, goToLocationZ, focusLocationX, focusLocationY, focusLocationZ, speed, shootAtEnemies, distanceToStopAt, noRoadsDistance, unkTrue, unkFlag, aimingFlag, firingPattern) {
763
+ inv('0xA55547801EB331FC', this.entity.handle, f(goToLocationX), f(goToLocationY), f(goToLocationZ), f(focusLocationX), f(focusLocationY), f(focusLocationZ), f(speed), shootAtEnemies, f(distanceToStopAt), f(noRoadsDistance), unkTrue, unkFlag, aimingFlag, _h(firingPattern));
625
764
  }
626
765
  /**
627
- * @param p1
628
- * @param taskFlag Refer to [enum: eEnterExitVehicleFlags]
766
+ * @param itemHash
767
+ * @param interactionAnimHash
768
+ * @param p3
769
+ * @returns
629
770
  */
630
- leaveAnyVehicle(p1, taskFlag) {
631
- inv('0x504D54DF3F6F2247', this.entity.handle, p1, taskFlag);
771
+ canStartItemInteraction(itemHash, interactionAnimHash, p3) {
772
+ return inv('0x2D19BC4DF626CBE7', this.entity.handle, _h(itemHash), _h(interactionAnimHash), p3);
632
773
  }
633
774
  /**
634
775
  * @param targetPed
635
776
  * @param p2
636
777
  * @param p3
778
+ * @param p4
779
+ * @param p5
780
+ * @param p6
781
+ * @param p7
782
+ * @param p8
783
+ * @param p9
784
+ * @param p10
637
785
  */
638
- combatPed(targetPed, p2, p3) {
639
- inv('0xF166E48407BAC484', this.entity.handle, targetPed.handle, p2, p3);
786
+ followAndConverseWithPed(targetPed, p2, p3, p4, p5, p6, p7, p8, p9, p10) {
787
+ inv('0x489FFCCCE7392B55', this.entity.handle, targetPed.handle, p2, p3, f(p4), f(p5), p6, p7, p8, f(p9), f(p10));
640
788
  }
641
789
  /**
642
- * Params: p4 = -1.0f, p5 = -1, p6 = 0 in R* Scripts
643
- *
644
- * @param fleeFromTarget
645
- * @param fleeStyle Refer to [enum: eFleeStyle]
646
- * @param flag
647
- * @param p4
790
+ * @param pos
791
+ * @param distance
648
792
  * @param p5
649
793
  * @param p6
794
+ * @param p7
795
+ * @param p8
650
796
  */
651
- fleePed(fleeFromTarget, fleeStyle, flag, p4, p5, p6) {
652
- inv('0xFD45175A6DFD7CE9', this.entity.handle, fleeFromTarget.handle, fleeStyle, flag, f(p4), p5, p6);
797
+ useNearestScenarioChainToCoord(pos, distance, p5, p6, p7, p8) {
798
+ inv('0x9FDA1B3D7E7028B3', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(distance), p5, p6, p7, p8);
653
799
  }
654
800
  /**
801
+ * @param eventName
655
802
  * @returns
656
803
  */
657
- isPedLeadingHorse() {
658
- return inv('0xEFC4303DDC6E60D3', this.entity.handle);
804
+ getTaskMoveNetworkEvent(eventName) {
805
+ return !!inv('0xB4F47213DF45A64C', this.entity.handle, eventName, rai());
806
+ }
807
+ /**
808
+ * Baits: see 0x9B0C7FA063E67629
809
+ *
810
+ * @param bait
811
+ * @param withoutBuoy
812
+ */
813
+ swapFishingBait(bait, withoutBuoy) {
814
+ inv('0x2C28AC30A72722DA', this.entity.handle, bait, withoutBuoy);
815
+ }
816
+ /**
817
+ * @returns
818
+ */
819
+ get IsDrivebyTaskUnderneathDrivingTask() {
820
+ return !!inv('0x8785E6E40C7A8818', this.entity.handle, rai());
821
+ }
822
+ cuffPed() {
823
+ inv('0x7981037A96E7D174', this.entity.handle);
659
824
  }
660
825
  /**
826
+ * This native allows to control the cruise speed of where you want the ped to go
827
+ * 3rd param might be the entity ped is in? like boat or wagon, 12th param might be the cruiseSpeed of the entity ped is in?
828
+ * EXAMPLE: TaskGoToCoordAnyMeansExtraParamsWithCruiseSpeed(PlayerPedId(), vector3(x, y, z), 3.0, entity, 1, 0, -1082130432, 0, 101004800, 520, 3.0, 1082130432, 0)
829
+ *
830
+ * @param cruiseSpeed
661
831
  * @param entity
662
- * @param offset
663
- * @param movementSpeed
664
- * @param timeout
665
- * @param stoppingRange
666
- * @param persistFollowing
832
+ * @param p4
833
+ * @param p5
834
+ * @param p6
835
+ * @param p7
836
+ * @param p8
667
837
  * @param p9
668
- * @param walkOnly
838
+ * @param p10
669
839
  * @param p11
670
- * @param p12
840
+ * @param cruiseSpeed2
671
841
  * @param p13
842
+ * @param p14
843
+ * @returns gotoCoords
672
844
  */
673
- followToOffsetOfEntity(entity, offset, movementSpeed, timeout, stoppingRange, persistFollowing, p9, walkOnly, p11, p12, p13) {
674
- inv('0x304AE42E357B8C7E', this.entity.handle, entity.handle, f(offset.x), f(offset.y), f(offset.z), f(movementSpeed), timeout, f(stoppingRange), persistFollowing, p9, walkOnly, p11, p12, p13);
845
+ goToCoordAnyMeansExtraParamsWithCruiseSpeed(cruiseSpeed, entity, p4, p5, p6, p7, p8, p9, p10, p11, cruiseSpeed2, p13, p14) {
846
+ const result = inv('0xB8ECD61F531A7B02', this.entity.handle, pvv(), f(cruiseSpeed), entity.handle, p4, p5, p6, p7, p8, p9, p10, p11, f(cruiseSpeed2), p13, p14);
847
+ return Vector3.fromArray(result);
675
848
  }
676
849
  /**
677
- * duration: the amount of time in milliseconds to do the task. -1 will keep the task going until either another task is applied, or CLEAR_ALL_TASKS() is called with the ped
678
- *
679
- * @param targetEntity
850
+ * @param radius
851
+ */
852
+ combatHatedTargetsNoLosTest(radius) {
853
+ inv('0xB5BC69D9C4060BC3', this.entity.handle, f(radius));
854
+ }
855
+ /**
856
+ * @param p1
857
+ */
858
+ N_0x31BB338F64D5C861(p1) {
859
+ inv('0x31BB338F64D5C861', this.entity.handle, p1);
860
+ }
861
+ /**
862
+ * @param modifier
863
+ */
864
+ set PedPathClimbCostModifier(modifier) {
865
+ inv('0x88E32DB8C1A4AA4B', this.entity.handle, f(modifier));
866
+ }
867
+ /**
868
+ * @param entity
680
869
  * @param duration
681
- * @param p3
682
- * @param p4
870
+ * @param targetRadius
871
+ * @param offset
872
+ * @param moveBlendRatio
873
+ * @param offsetFlags
683
874
  */
684
- aimGunAtEntity(targetEntity, duration, p3, p4) {
685
- inv('0x9B53BB6E8943AF53', this.entity.handle, targetEntity.handle, duration, p3, p4);
875
+ gotoEntityOffsetXy(entity, duration, targetRadius, offset, moveBlendRatio, offsetFlags) {
876
+ inv('0x338E7EF52B6095A9', this.entity.handle, entity.handle, duration, f(targetRadius), f(offset.x), f(offset.y), f(moveBlendRatio), offsetFlags);
686
877
  }
687
878
  /**
688
- * `_GET_ANIM_SCENE_FROM_PED_*` But in a strange way, it also seems to work with the butcher's meat-cutting animscene. This does not return AnimScenes in general it seems restricted to
689
- * SEARCH-related scenes (needs more research).
879
+ * Makes ped walk around the area the params p1 p2 seems to not affect anything but p2 is either 0 or 1 and p1 is mostly 1.0 or ped heading
690
880
  *
691
- * @returns Returns the AnimScene handle currently associated with the given Ped, but only when the anim event "SEARCHSTART" has fired on that Ped.
881
+ * @param p2
882
+ * @param p3
692
883
  */
693
- N_0x2C497BDEF897C6DF() {
694
- return createFromHandle('AnimScene', inv('0x2C497BDEF897C6DF', this.entity.handle, rai()));
884
+ wanderStandard(p2, p3) {
885
+ inv('0xBB9CE077274F6A1B', this.entity.handle, f(p2), p3);
695
886
  }
696
887
  /**
697
888
  * @param p1
889
+ * @param p2
890
+ */
891
+ clearPedTasks(p1, p2) {
892
+ inv('0xE1EF3C1216AFF2CD', this.entity.handle, p1, p2);
893
+ }
894
+ /**
895
+ * @param moveNetworkDefName
896
+ * @param p3
897
+ * @param p4
898
+ * @param animDict
899
+ * @param flags
900
+ * @returns taskData
901
+ */
902
+ moveNetworkByNameWithInitParams(moveNetworkDefName, p3, p4, animDict, flags) {
903
+ const result = inv('0x139805C2A67C4795', this.entity.handle, moveNetworkDefName, pvi(), f(p3), p4, animDict, flags);
904
+ return result;
905
+ }
906
+ /**
907
+ * @param pos
908
+ * @param entity
909
+ */
910
+ jump2(pos, entity) {
911
+ inv('0x91083103137D7254', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), entity.handle);
912
+ }
913
+ /**
914
+ * @param scenario
915
+ * @param conditionalAnim
916
+ * @param p3
917
+ * @param p4
918
+ * @param p5
919
+ * @param p6
920
+ * @param p7
921
+ * @param p8
922
+ * @param p9
923
+ */
924
+ useScenarioPoint(scenario, conditionalAnim, p3, p4, p5, p6, p7, p8, p9) {
925
+ inv('0xCCDAE6324B6A821C', this.entity.handle, scenario, conditionalAnim, p3, p4, p5, _h(p6), p7, f(p8), p9);
926
+ }
927
+ /**
698
928
  * @returns
699
929
  */
700
- police(p1) {
701
- return inv('0x87BE56724650408E', this.entity.handle, p1);
930
+ get IsPedRunningTaskItemInteraction() {
931
+ return !!inv('0xEC7E480FF8BD0BED', this.entity.handle, rai());
702
932
  }
703
933
  /**
704
- * @param scenarioPoint
934
+ * @param vehicle
935
+ */
936
+ breakVehicleDoorLock(vehicle) {
937
+ inv('0xBB28D1BC9EA8A6A5', this.entity.handle, vehicle.handle);
938
+ }
939
+ /**
940
+ * @param vehicle
941
+ * @param vehicleTarget
942
+ * @param missionType
943
+ * @param p4
944
+ * @param p5
945
+ * @param p6
946
+ * @param p7
947
+ * @param DriveAgainstTraffic
948
+ */
949
+ vehicleMission(vehicle, vehicleTarget, missionType, p4, p5, p6, p7, DriveAgainstTraffic) {
950
+ inv('0x659427E0EF36BCDE', this.entity.handle, vehicle.handle, vehicleTarget.handle, missionType, f(p4), p5, f(p6), f(p7), DriveAgainstTraffic);
951
+ }
952
+ /**
953
+ * @param avoidTraffic
954
+ */
955
+ set PedPathAvoidTraffic(avoidTraffic) {
956
+ inv('0x7C015D8BCEC72CF4', this.entity.handle, avoidTraffic);
957
+ }
958
+ /**
959
+ * @param p1
960
+ * @param p2
961
+ */
962
+ guard(p1, p2) {
963
+ inv('0xB9FB242EACCAF30F', this.entity.handle, p1, p2);
964
+ }
965
+ /**
966
+ * @param attacker
967
+ * @param p2
968
+ * @param unusedParam3 Unused by the native.
969
+ * @param unusedParam4 Unused by the native.
970
+ * @param everyFrame Removes the `0x1000` bitmask from `flag`
971
+ * @param p6
972
+ * @param p7 Removes the `0x80000` bitmask from `flag`
705
973
  * @param flag
974
+ * @returns Returns `true` on success, `false` if it failed (whether due to `attacker` being invalid, or the `attacker` ped being dead)
706
975
  */
707
- hitchAnimal(scenarioPoint, flag) {
708
- inv('0x9030AD4B6207BFE8', this.entity.handle, scenarioPoint, flag);
976
+ intimidated2(attacker, p2, unusedParam3, unusedParam4, everyFrame, p6, p7, flag) {
977
+ return !!inv('0x933ACC1A1771A288', this.entity.handle, attacker.handle, p2, unusedParam3, unusedParam4, everyFrame, p6, p7, flag, rai());
709
978
  }
710
- uncuffPed() {
711
- inv('0x67406F2C8F87FC4F', this.entity.handle);
979
+ /**
980
+ * @param avoidFire
981
+ */
982
+ set PedPathAvoidFire(avoidFire) {
983
+ inv('0x4455517B28441E60', this.entity.handle, avoidFire);
984
+ }
985
+ /**
986
+ * @param reviver
987
+ * @param tool
988
+ */
989
+ reviveTarget(reviver, tool) {
990
+ inv('0x356088527D9EBAAD', this.entity.handle, reviver.handle, _h(tool));
991
+ }
992
+ /**
993
+ * https://github.com/femga/rdr3_discoveries/blob/master/animations/kit_emotes_list.lua
994
+ * emote: https://alloc8or.re/rdr3/doc/enums/eEmote.txt enum eEmoteType
995
+ * {
996
+ * EMOTE_TYPE_INVALID = -1,
997
+ * EMOTE_TYPE_REACT,
998
+ * EMOTE_TYPE_ACTION,
999
+ * EMOTE_TYPE_TAUNT,
1000
+ * EMOTE_TYPE_GREET,
1001
+ * EMOTE_TYPE_TWIRL_GUN,
1002
+ * EMOTE_TYPE_DANCE_FLOOR
1003
+ * }; enum eEmotePlaybackMode
1004
+ * {
1005
+ * EMOTE_PM_INVALID = -1,
1006
+ * EMOTE_PM_UPPERBODY,
1007
+ * EMOTE_PM_UPPERBODY_LOOP,
1008
+ * EMOTE_PM_FULLBODY,
1009
+ * };
1010
+ *
1011
+ * @param emoteType
1012
+ * @param playbackMode
1013
+ * @param emote
1014
+ * @param isSecondaryTask
1015
+ * @param canBreakOut
1016
+ * @param disableEarlyOutAnimTag
1017
+ * @param ignoreInvalidMainTask
1018
+ * @param destroyProps
1019
+ */
1020
+ playEmoteWithHash(emoteType, playbackMode, emote, isSecondaryTask, canBreakOut, disableEarlyOutAnimTag, ignoreInvalidMainTask, destroyProps) {
1021
+ inv('0xB31A277C1AC7B7FF', this.entity.handle, emoteType, playbackMode, _h(emote), isSecondaryTask, canBreakOut, disableEarlyOutAnimTag, ignoreInvalidMainTask, destroyProps);
1022
+ }
1023
+ /**
1024
+ * @returns
1025
+ */
1026
+ get IsTaskMoveNetworkReadyForTransition() {
1027
+ return !!inv('0x30ED88D5E0C56A37', this.entity.handle, rai());
1028
+ }
1029
+ clearDefensiveArea() {
1030
+ inv('0x95A6C46A31D1917D', this.entity.handle);
712
1031
  }
713
1032
  /**
714
- * @param moveNetworkDefName
715
- * @param p3
716
- * @param p4
717
- * @param animDict
718
- * @param flags
719
- * @returns taskData
1033
+ * @param modifier
720
1034
  */
721
- moveNetworkByNameWithInitParams(moveNetworkDefName, p3, p4, animDict, flags) {
722
- const result = inv('0x139805C2A67C4795', this.entity.handle, moveNetworkDefName, pvi(), f(p3), p4, animDict, flags);
723
- return result;
1035
+ set PedPathDeepSnowCostModifier(modifier) {
1036
+ inv('0xE8C296B75EACC357', this.entity.handle, f(modifier));
724
1037
  }
725
1038
  /**
726
- * @param pos
727
- * @param entity
1039
+ * @returns
728
1040
  */
729
- jump2(pos, entity) {
730
- inv('0x91083103137D7254', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), entity.handle);
1041
+ get ItemInteractionItemId() {
1042
+ return (inv('0x804425C4BBD00883', this.entity.handle, rai())) & 0xFFFFFFFF;
731
1043
  }
732
1044
  /**
733
- * @param scenario
734
- * @param conditionalAnim
1045
+ * @param entity
1046
+ * @param mount
735
1047
  * @param p3
736
- * @param p4
737
- * @param p5
738
- * @param p6
739
- * @param p7
740
- * @param p8
741
- * @param p9
742
1048
  */
743
- useScenarioPoint(scenario, conditionalAnim, p3, p4, p5, p6, p7, p8, p9) {
744
- inv('0xCCDAE6324B6A821C', this.entity.handle, scenario, conditionalAnim, p3, p4, p5, _h(p6), p7, f(p8), p9);
1049
+ placeCarriedEntityOnMount(entity, mount, p3) {
1050
+ inv('0x6D3D87C57B3D52C7', this.entity.handle, entity.handle, mount.handle, f(p3));
1051
+ }
1052
+ detachCarriablePed() {
1053
+ inv('0x36D188AECB26094B', this.entity.handle);
745
1054
  }
746
1055
  /**
747
1056
  * @returns
748
1057
  */
749
- isPedRunningTaskItemInteraction() {
750
- return inv('0xEC7E480FF8BD0BED', this.entity.handle);
1058
+ get ItemInteractionState() {
1059
+ return (inv('0x6AA3DCA2C6F5EB6D', this.entity.handle, rai())) & 0xFFFFFFFF;
751
1060
  }
752
1061
  /**
753
- * @param vehicle
1062
+ * @returns
754
1063
  */
755
- breakVehicleDoorLock(vehicle) {
756
- inv('0xBB28D1BC9EA8A6A5', this.entity.handle, vehicle.handle);
1064
+ get IsPedAimingInTheAir() {
1065
+ return inv('0x8785E6E40C7A8819', this.entity.handle);
757
1066
  }
758
1067
  /**
759
- * @param vehicle
760
- * @param vehicleTarget
761
- * @param missionType
1068
+ * param3: duration in ms, use -1 to look forever
1069
+ * param4: using 2048 is fine
1070
+ * param5: using 3 is fine
1071
+ *
1072
+ * @param lookAtTarget
1073
+ * @param duration
1074
+ * @param p3
762
1075
  * @param p4
763
1076
  * @param p5
764
- * @param p6
765
- * @param p7
766
- * @param DriveAgainstTraffic
767
1077
  */
768
- vehicleMission(vehicle, vehicleTarget, missionType, p4, p5, p6, p7, DriveAgainstTraffic) {
769
- inv('0x659427E0EF36BCDE', this.entity.handle, vehicle.handle, vehicleTarget.handle, missionType, f(p4), p5, f(p6), f(p7), DriveAgainstTraffic);
1078
+ lookAtEntity(lookAtTarget, duration, p3, p4, p5) {
1079
+ inv('0x69F4BE8C8CC4796C', this.entity.handle, lookAtTarget.handle, duration, p3, p4, p5);
770
1080
  }
771
1081
  /**
772
- * @param avoidTraffic
1082
+ * @param taskIndex
1083
+ * @returns
773
1084
  */
774
- setPedPathAvoidTraffic(avoidTraffic) {
775
- inv('0x7C015D8BCEC72CF4', this.entity.handle, avoidTraffic);
1085
+ getIsTaskActive(taskIndex) {
1086
+ return !!inv('0xB0760331C7AA4155', this.entity.handle, taskIndex, rai());
776
1087
  }
777
1088
  /**
778
1089
  * Returns hash of the underlying move network def, see move_networks.xml
@@ -780,7 +1091,7 @@ export class PedTask extends BaseTask {
780
1091
  *
781
1092
  * @returns
782
1093
  */
783
- getTaskMoveNetworkId() {
1094
+ get TaskMoveNetworkId() {
784
1095
  return (inv('0xCACC2F9D994504B7', this.entity.handle, rai())) & 0xFFFFFFFF;
785
1096
  }
786
1097
  /**
@@ -904,64 +1215,18 @@ export class PedTask extends BaseTask {
904
1215
  }
905
1216
  /**
906
1217
  * @param pos
907
- * @param speedMultiplier
908
1218
  * @param timeout
909
- * @param stoppingRange
910
- * @param flags
911
- * @param p8
912
- * @param p9
913
- * @param p10
914
- * @param entity
915
- * @param unk
916
- */
917
- followNavMeshToCoordAdvanced(pos, speedMultiplier, timeout, stoppingRange, flags, p8, p9, p10, entity, unk) {
918
- inv('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));
919
- }
920
- /**
921
- * @param radius
922
- * @param time
923
- * @param flags
924
- */
925
- combatHatedTargetsAroundPedTimed(radius, time, flags) {
926
- inv('0x2BBA30B854534A0C', this.entity.handle, f(radius), time, flags);
927
- }
928
- /**
929
- * @returns
930
- */
931
- isPedRunning() {
932
- return inv('0xC5286FFC176F28A2', this.entity.handle, rai());
933
- }
934
- /**
935
- * @returns
936
- */
937
- isPedSprinting() {
938
- return inv('0x57E457CD2C0FC168', this.entity.handle, rai());
939
- }
940
- /**
941
- * @param useSlidingSurfaces
942
- */
943
- setPedPathMayUseSlidingSurfaces(useSlidingSurfaces) {
944
- inv('0x06ECF3925BC2ABAE', this.entity.handle, useSlidingSurfaces);
945
- }
946
- /**
947
- * Force a ped that is already attacking to aim directly at the specified world coordinates.
948
- *
949
- * @param pos
950
- * @param p4
951
1219
  * @param p5
952
1220
  * @param p6
1221
+ * @param p7
1222
+ * @param p8
1223
+ * @param coverpoint
1224
+ * @param p10
1225
+ * @param p11
1226
+ * @param p12
953
1227
  */
954
- forcePointAimAtCoord(pos, p4, p5, p6) {
955
- inv('0x41323F4E0C4AE94B', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), p4, p5, p6);
956
- }
957
- /**
958
- * @param p1
959
- * @param p2
960
- * @param p3
961
- * @param p4
962
- */
963
- swapWeapon(p1, p2, p3, p4) {
964
- inv('0xA21C51255B205245', this.entity.handle, p1, p2, p3, p4);
1228
+ putPedDirectlyIntoCover(pos, timeout, p5, p6, p7, p8, coverpoint, p10, p11, p12) {
1229
+ inv('0x4172393E6BE1FECE', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), timeout, p5, f(p6), p7, p8, coverpoint, p10, p11, p12);
965
1230
  }
966
1231
  /**
967
1232
  * @param p1
@@ -972,437 +1237,240 @@ export class PedTask extends BaseTask {
972
1237
  * @param p6
973
1238
  * @param p7
974
1239
  * @param p8
975
- */
976
- gotoEntityOffsetXyz(p1, p2, p3, p4, p5, p6, p7, p8) {
977
- inv('0xFA6DA9D151769392', this.entity.handle, p1, p2, p3, p4, p5, p6, p7, p8);
978
- }
979
- /**
980
- * @param pos
981
- * @param distance
982
- * @param duration
983
- * @param p6
984
- * @param p7
985
- * @param p8
986
1240
  * @param p9
1241
+ * @param p10
1242
+ * @param p11
1243
+ * @param p12
1244
+ * @param p13
1245
+ * @param p14
987
1246
  */
988
- useNearestScenarioToCoordWarp(pos, distance, duration, p6, p7, p8, p9) {
989
- inv('0x58E2E0F23F6B76C3', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(distance), duration, p6, p7, p8, p9);
990
- }
991
- /**
992
- * @param p1
993
- * @returns
994
- */
995
- N_0x2D657B10F211C572(p1) {
996
- return inv('0x2D657B10F211C572', this.entity.handle, f(p1));
997
- }
998
- /**
999
- * Coords: volume coords used in R* Script smuggler2
1000
- * p4/p5 = 0 in R* Scripts previous name TASK_COMBAT_PED_3
1001
- *
1002
- * @param pos
1003
- * @param p4
1004
- * @param p5
1005
- */
1006
- combatPedAtCoords(pos, p4, p5) {
1007
- inv('0xC624414FA748B9BA', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), p4, p5);
1008
- }
1009
- /**
1010
- * Makes the specified ped stand still for (time) milliseconds.
1011
- *
1012
- * @param time
1013
- */
1014
- standStill(time) {
1015
- inv('0x919BE13EED931959', this.entity.handle, time);
1016
- }
1017
- /**
1018
- * @param animDictionary
1019
- * @param animationName
1020
- * @param p3
1021
- */
1022
- stopAnimTask(animDictionary, animationName, p3) {
1023
- inv('0x97FF36A1D40EA00A', this.entity.handle, animDictionary, animationName, f(p3));
1024
- }
1025
- /**
1026
- * @param p1
1027
- * @param p2
1028
- * @param p3
1029
- */
1030
- turnToFaceClosestPed(p1, p2, p3) {
1031
- inv('0x84179419DBDD36F2', this.entity.handle, f(p1), f(p2), p3);
1032
- }
1033
- /**
1034
- * Fishing Research: https://pastebin.com/NmK5ZLVs
1035
- * Only used in R* Scripts fishing_core and av_fishing_river
1036
- *
1037
- * @returns p1
1038
- */
1039
- getTaskFishing() {
1040
- const result = inv('0xF3735ACD11ACD500', this.entity.handle, pvi());
1041
- return [result[0], result[1]];
1042
- }
1043
- /**
1044
- * @param p1
1045
- * @param p2
1046
- */
1047
- shockingEventReact(p1, p2) {
1048
- inv('0x452419CBD838065B', this.entity.handle, p1, p2);
1049
- }
1050
- /**
1051
- * @returns
1052
- */
1053
- N_0xB520DBDA7FCF573F() {
1054
- return inv('0xB520DBDA7FCF573F', this.entity.handle, rai());
1055
- }
1056
- /**
1057
- * fleeType: see TASK_FLEE_COORD
1058
- *
1059
- * @param fleeFromTarget
1060
- * @param pos
1061
- * @param distance
1062
- * @param p6
1063
- * @param p7
1064
- * @param p8
1065
- * @param targetPed
1066
- */
1067
- fleeFromPed(fleeFromTarget, pos, distance, p6, p7, p8, targetPed) {
1068
- inv('0x7B74D8EEDE9B5727', this.entity.handle, fleeFromTarget.handle, f(pos.x), f(pos.y), f(pos.z), f(distance), p6, p7, f(p8), targetPed.handle);
1069
- }
1070
- /**
1071
- * @returns
1072
- */
1073
- isPedGettingUp() {
1074
- return inv('0x2A74E1D5F2F00EEC', this.entity.handle, rai());
1075
- }
1076
- /**
1077
- * @param time
1078
- */
1079
- duck(time) {
1080
- inv('0xA14B5FBF986BAC23', this.entity.handle, time);
1081
- }
1082
- /**
1083
- * @param p1
1084
- * @param p2
1085
- * @param p3
1086
- * @param p4
1087
- */
1088
- robPed(p1, p2, p3, p4) {
1089
- inv('0x7BB967F85D8CCBDB', this.entity.handle, p1, p2, p3, p4);
1090
- }
1091
- /**
1092
- * getupSetHash: see nm_blend_out_sets.meta
1093
- *
1094
- * @param flags
1095
- * @param getupSetHash
1096
- * @param p3
1097
- * @param p4
1098
- * @param p5
1099
- */
1100
- unhogtiePed(flags, getupSetHash, p3, p4, p5) {
1101
- inv('0x79559BAD83CCD038', this.entity.handle, flags, _h(getupSetHash), p3, p4, f(p5));
1102
- }
1103
- /**
1104
- * hecks if the ped camera is directed at the given coord within the specified radius. https://www.youtube.com/watch?v=iLHXrWVvq_c
1105
- *
1106
- * @param coord The coord to check if they're looking at
1107
- * @param radius The radius of the frustum
1108
- * @returns Returns `true` if the ped camera is within the range of the frustum, `false` otherwise
1109
- */
1110
- isPedLookingAtCoord(coord, radius) {
1111
- return inv('0x508F5053E3F6F0C4', this.entity.handle, f(coord.x), f(coord.y), f(coord.z), f(radius), rai());
1247
+ goToCoordAndAimAtHatedEntitiesNearCoordUsingCombatStyle(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14) {
1248
+ inv('0x87BD711FC31EA273', this.entity.handle, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);
1112
1249
  }
1113
1250
  /**
1114
- * @param entity
1251
+ * @param target
1115
1252
  */
1116
- walkAway(entity) {
1117
- inv('0x04ACFAC71E6858F9', this.entity.handle, entity.handle);
1253
+ arrestPed(target) {
1254
+ inv('0xF3B9A78A178572B1', this.entity.handle, target.handle);
1118
1255
  }
1119
1256
  /**
1257
+ * @param p1
1258
+ * @param p2
1259
+ * @param p3
1120
1260
  * @returns
1121
1261
  */
1122
- getHogtieEscapeTimer() {
1123
- return inv('0x4687E69D258BBE41', this.entity.handle, raf());
1124
- }
1125
- weapon() {
1126
- inv('0x7157B82D60E4BC46', this.entity.handle);
1262
+ setPedWaypointRouteOffset(p1, p2, p3) {
1263
+ return inv('0xED98E10B0AFCE4B4', this.entity.handle, f(p1), f(p2), f(p3));
1127
1264
  }
1128
1265
  /**
1266
+ * @param waypointRecording
1129
1267
  * @returns
1130
1268
  */
1131
- isPedWalking() {
1132
- return inv('0xDE4C184B2B9B071A', this.entity.handle, rai());
1269
+ isWaypointPlaybackGoingOnForPed(waypointRecording) {
1270
+ return !!inv('0xE03B3F2D3DC59B64', this.entity.handle, waypointRecording, rai());
1133
1271
  }
1134
1272
  /**
1135
1273
  * @param p1
1136
1274
  * @param p2
1137
- * @param p3
1138
- */
1139
- waypointPlaybackPause(p1, p2, p3) {
1140
- inv('0x0F342546AA06FED5', this.entity.handle, p1, p2, p3);
1141
- }
1142
- /**
1143
- * meleeStyles: AR_GRAPPLE_BACK_FROM_BACK, AR_GRAPPLE_MOUNT_FACEDOWN_FROM_FRONT, AR_ALLIGATOR_LEAPKILL, AR_ALLIGATOR_WAIST_AUTOKILL_FRONT
1144
- *
1145
- * @param meleeTarget
1146
- * @param meleeStyle
1147
- * @param p3
1148
- * @param animBlendRatio
1149
- * @param p5
1150
- * @param p6
1151
1275
  */
1152
- putPedDirectlyIntoMelee(meleeTarget, meleeStyle, p3, animBlendRatio, p5, p6) {
1153
- inv('0x1C6CD14A876FFE39', this.entity.handle, meleeTarget.handle, _h(meleeStyle), f(p3), f(animBlendRatio), p5, p6);
1276
+ animalWrithe(p1, p2) {
1277
+ inv('0x8C038A39C4A4B6D6', this.entity.handle, p1, p2);
1154
1278
  }
1155
1279
  /**
1156
- * @param waypointRecording
1280
+ * @param p1
1157
1281
  * @param p2
1158
- * @param flag
1282
+ * @param p3
1159
1283
  * @param p4
1160
- * @param p5
1161
- * @param p6
1162
- * @param p7
1163
1284
  */
1164
- followWaypointRecording(waypointRecording, p2, flag, p4, p5, p6, p7) {
1165
- inv('0x0759591819534F7B', this.entity.handle, waypointRecording, p2, flag, p4, p5, p6, p7);
1285
+ aimAtEntity(p1, p2, p3, p4) {
1286
+ inv('0xCF7569BD0FB480A0', this.entity.handle, p1, p2, p3, p4);
1166
1287
  }
1167
1288
  /**
1168
1289
  * @param targetPed
1290
+ * @param p2
1291
+ * @param p3
1169
1292
  */
1170
- hogtieTargetPed(targetPed) {
1171
- inv('0x27829AFD3E03AC1A', this.entity.handle, targetPed.handle);
1293
+ combatPedTimed(targetPed, p2, p3) {
1294
+ inv('0x944F30DCB7096BDE', this.entity.handle, targetPed.handle, p2, p3);
1172
1295
  }
1173
1296
  /**
1174
- * shootatEntity:
1175
- * If true, peds will shoot at Entity till it is dead.
1176
- * If false, peds will just walk till they reach the entity and will cease shooting.
1177
- *
1178
1297
  * @param p1
1179
1298
  * @param p2
1180
1299
  * @param p3
1181
- * @param p4
1182
- * @param p5
1183
- * @param p6
1184
- * @param p7
1185
- * @param p8
1186
- * @param p9
1187
- * @param p10
1188
1300
  */
1189
- goToEntityWhileAimingAtEntity(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10) {
1190
- inv('0x97465886D35210E9', this.entity.handle, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
1301
+ throwProjectile(p1, p2, p3) {
1302
+ inv('0x7285951DBF6B5A51', this.entity.handle, p1, p2, p3);
1191
1303
  }
1192
1304
  /**
1193
1305
  * @param pos
1194
- * @param distance
1195
- */
1196
- useNearestTrainScenarioToCoordWarp(pos, distance) {
1197
- inv('0x3774B03456DD6106', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(distance));
1198
- }
1199
- /**
1200
- * @param p1
1306
+ * @param heading
1307
+ * @param p5
1201
1308
  */
1202
- wanderSwim(p1) {
1203
- inv('0x527EA3DB8BC7F03B', this.entity.handle, p1);
1309
+ pedSlideToCoord(pos, heading, p5) {
1310
+ inv('0xD04FE6765D990A06', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(heading), f(p5));
1204
1311
  }
1205
1312
  /**
1206
- * duration in milliseconds
1313
+ * grappleStyle: AR_GRAPPLE_STRUGGLE, AR_ALLIGATOR_LEG_GRAB_CHALLENGE_FAIL, AR_GRAPPLE_BACK_FROM_BACK, AR_GRAPPLE_BACK_DEFEND, AR_GRAPPLE_FRONT_FROM_FRONT
1207
1314
  *
1208
- * @param pos
1209
- * @param duration
1315
+ * @param grappleTarget
1316
+ * @param grappleStyle
1317
+ * @param p3
1318
+ * @param p4
1319
+ * @param p5
1320
+ * @param p6
1210
1321
  */
1211
- turnPedToFaceCoord(pos, duration) {
1212
- inv('0x1DDA930A0AC38571', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), duration);
1322
+ putPedDirectlyIntoGrapple(grappleTarget, grappleStyle, p3, p4, p5, p6) {
1323
+ inv('0xA05F3F20889D7A5B', this.entity.handle, grappleTarget.handle, _h(grappleStyle), f(p3), f(p4), p5, p6);
1213
1324
  }
1214
1325
  /**
1215
- * @param preferAvoidMud
1326
+ * @param p1
1216
1327
  * @param p2
1217
1328
  */
1218
- setPedPathPreferToAvoidMud(preferAvoidMud, p2) {
1219
- inv('0x8BB283A7888AD1AD', this.entity.handle, preferAvoidMud, f(p2));
1329
+ combatAnimalWarn(p1, p2) {
1330
+ inv('0xF960F3D57B660E96', this.entity.handle, p1, p2);
1220
1331
  }
1221
1332
  /**
1222
- * @param animDict
1223
- * @param animName
1224
- * @param entity
1225
- * @param p4
1226
- * @param p5
1227
- * @param p6
1228
- * @param p7
1229
- * @param p8
1230
- * @param p9
1231
- * @param p10
1232
- * @param p11
1233
- * @param p12
1234
- * @param p13
1235
- * @param p14
1333
+ * @param toggle
1236
1334
  */
1237
- playUpperAnimFacingEntity(animDict, animName, entity, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14) {
1238
- inv('0xAD67214236AB1CFE', this.entity.handle, animDict, animName, entity.handle, p4, f(p5), f(p6), p7, f(p8), p9, p10, f(p11), p12, p13, f(p14));
1335
+ set PedIgnoreDeadBodies(toggle) {
1336
+ inv('0x013A7BA5015C1372', this.entity.handle, toggle);
1239
1337
  }
1240
1338
  /**
1241
1339
  * @param p1
1242
1340
  * @param p2
1341
+ * @param p3
1342
+ * @param p4
1343
+ * @param p5
1344
+ * @param p6
1345
+ * @param p7
1243
1346
  */
1244
- guard(p1, p2) {
1245
- inv('0xB9FB242EACCAF30F', this.entity.handle, p1, p2);
1347
+ moveInTrafficToDestination(p1, p2, p3, p4, p5, p6, p7) {
1348
+ inv('0xDCA3A13F7A45338B', this.entity.handle, p1, p2, p3, p4, p5, p6, p7);
1246
1349
  }
1247
1350
  /**
1248
1351
  * @param attacker
1249
1352
  * @param p2
1250
- * @param unusedParam3 Unused by the native.
1251
- * @param unusedParam4 Unused by the native.
1252
- * @param everyFrame Removes the `0x1000` bitmask from `flag`
1253
- * @param p6
1254
- * @param p7 Removes the `0x80000` bitmask from `flag`
1255
- * @param flag
1256
- * @returns Returns `true` on success, `false` if it failed (whether due to `attacker` being invalid, or the `attacker` ped being dead)
1353
+ * @returns Returns `true` on success, or `false` if `attacker` doesn't exist, or is dead.
1257
1354
  */
1258
- intimidated2(attacker, p2, unusedParam3, unusedParam4, everyFrame, p6, p7, flag) {
1259
- return inv('0x933ACC1A1771A288', this.entity.handle, attacker.handle, p2, unusedParam3, unusedParam4, everyFrame, p6, p7, flag, rai());
1355
+ intimidated(attacker, p2) {
1356
+ return !!inv('0x648B75D44930D6BD', this.entity.handle, attacker.handle, p2, rai());
1260
1357
  }
1261
1358
  /**
1262
- * @param avoidFire
1359
+ * @returns
1263
1360
  */
1264
- setPedPathAvoidFire(avoidFire) {
1265
- inv('0x4455517B28441E60', this.entity.handle, avoidFire);
1361
+ waypointPlaybackGetIsShooting() {
1362
+ return inv('0xA5B94DF8AF058F46', this.entity.handle);
1266
1363
  }
1267
1364
  /**
1268
- * @param reviver
1269
- * @param tool
1365
+ * @param pos
1366
+ * @param distance
1367
+ * @param p5
1368
+ * @param p6
1369
+ * @param p7
1370
+ * @param p8
1270
1371
  */
1271
- reviveTarget(reviver, tool) {
1272
- inv('0x356088527D9EBAAD', this.entity.handle, reviver.handle, _h(tool));
1372
+ useNearestScenarioChainToCoordWarp(pos, distance, p5, p6, p7, p8) {
1373
+ inv('0x97A28E63F0BA5631', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(distance), p5, p6, p7, p8);
1273
1374
  }
1274
1375
  /**
1275
- * https://github.com/femga/rdr3_discoveries/blob/master/animations/kit_emotes_list.lua
1276
- * emote: https://alloc8or.re/rdr3/doc/enums/eEmote.txt enum eEmoteType
1277
- * {
1278
- * EMOTE_TYPE_INVALID = -1,
1279
- * EMOTE_TYPE_REACT,
1280
- * EMOTE_TYPE_ACTION,
1281
- * EMOTE_TYPE_TAUNT,
1282
- * EMOTE_TYPE_GREET,
1283
- * EMOTE_TYPE_TWIRL_GUN,
1284
- * EMOTE_TYPE_DANCE_FLOOR
1285
- * }; enum eEmotePlaybackMode
1286
- * {
1287
- * EMOTE_PM_INVALID = -1,
1288
- * EMOTE_PM_UPPERBODY,
1289
- * EMOTE_PM_UPPERBODY_LOOP,
1290
- * EMOTE_PM_FULLBODY,
1291
- * };
1376
+ * returned values:
1377
+ * 0 to 7 = task that's currently in progress, 0 meaning the first one.
1378
+ * -1 no task sequence in progress.
1292
1379
  *
1293
- * @param emoteType
1294
- * @param playbackMode
1295
- * @param emote
1296
- * @param isSecondaryTask
1297
- * @param canBreakOut
1298
- * @param disableEarlyOutAnimTag
1299
- * @param ignoreInvalidMainTask
1300
- * @param destroyProps
1380
+ * @returns
1301
1381
  */
1302
- playEmoteWithHash(emoteType, playbackMode, emote, isSecondaryTask, canBreakOut, disableEarlyOutAnimTag, ignoreInvalidMainTask, destroyProps) {
1303
- inv('0xB31A277C1AC7B7FF', this.entity.handle, emoteType, playbackMode, _h(emote), isSecondaryTask, canBreakOut, disableEarlyOutAnimTag, ignoreInvalidMainTask, destroyProps);
1382
+ get SequenceProgress() {
1383
+ return inv('0x00A9010CFE1E3533', this.entity.handle, rai());
1304
1384
  }
1305
1385
  /**
1306
- * @param pos
1307
- * @param timeout
1308
- * @param p5
1309
- * @param p6
1310
- * @param p7
1311
- * @param p8
1312
- * @param coverpoint
1313
- * @param p10
1314
- * @param p11
1315
- * @param p12
1386
+ * @returns
1316
1387
  */
1317
- putPedDirectlyIntoCover(pos, timeout, p5, p6, p7, p8, coverpoint, p10, p11, p12) {
1318
- inv('0x4172393E6BE1FECE', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), timeout, p5, f(p6), p7, p8, coverpoint, p10, p11, p12);
1388
+ waypointPlaybackGetIsAiming() {
1389
+ return inv('0xD73A5D1F0325C71C', this.entity.handle);
1319
1390
  }
1320
1391
  /**
1321
- * @param p1
1322
- * @param p2
1323
- * @param p3
1324
- * @param p4
1325
- * @param p5
1326
- * @param p6
1327
- * @param p7
1328
- * @param p8
1329
- * @param p9
1330
- * @param p10
1331
- * @param p11
1332
- * @param p12
1333
- * @param p13
1334
- * @param p14
1392
+ * @param signalName
1393
+ * @param value
1335
1394
  */
1336
- goToCoordAndAimAtHatedEntitiesNearCoordUsingCombatStyle(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14) {
1337
- inv('0x87BD711FC31EA273', this.entity.handle, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);
1395
+ setTaskMoveNetworkSignalFloat(signalName, value) {
1396
+ inv('0xD5BB4025AE449A4E', this.entity.handle, signalName, f(value));
1338
1397
  }
1339
1398
  /**
1340
- * @param target
1399
+ * @param taskSequenceId
1341
1400
  */
1342
- arrestPed(target) {
1343
- inv('0xF3B9A78A178572B1', this.entity.handle, target.handle);
1401
+ performSequence(taskSequenceId) {
1402
+ inv('0x5ABA3986D90D8A3B', this.entity.handle, taskSequenceId);
1344
1403
  }
1345
1404
  /**
1346
1405
  * @param p1
1347
1406
  * @param p2
1348
1407
  * @param p3
1349
- * @returns
1350
1408
  */
1351
- setPedWaypointRouteOffset(p1, p2, p3) {
1352
- return inv('0xED98E10B0AFCE4B4', this.entity.handle, f(p1), f(p2), f(p3));
1409
+ moveInTraffic(p1, p2, p3) {
1410
+ inv('0x8AA1593AEC087A29', this.entity.handle, p1, p2, p3);
1353
1411
  }
1354
1412
  /**
1355
- * @param waypointRecording
1356
- * @returns
1413
+ * @param p1
1414
+ * @param permanently
1357
1415
  */
1358
- isWaypointPlaybackGoingOnForPed(waypointRecording) {
1359
- return inv('0xE03B3F2D3DC59B64', this.entity.handle, waypointRecording, rai());
1416
+ knockedOut(p1, permanently) {
1417
+ inv('0xF90427F00A495A28', this.entity.handle, f(p1), permanently);
1360
1418
  }
1361
1419
  /**
1362
- * @param p1
1363
- * @param p2
1420
+ * @param duration
1421
+ */
1422
+ updateTaskHandsUpDuration(duration) {
1423
+ inv('0xA98FCAFD7893C834', this.entity.handle, duration);
1424
+ }
1425
+ /**
1426
+ * Similar to 0xB31A277C1AC7B7FF but checks if the ped's inventory contains the specified emote kit.
1427
+ *
1428
+ * @param emoteType
1429
+ * @param playbackMode
1430
+ * @param emote
1431
+ * @param isSecondaryTask
1432
+ * @param canBreakOut
1433
+ * @param disableEarlyOutAnimTag
1434
+ * @param ignoreInvalidMainTask
1435
+ * @param destroyProps
1364
1436
  */
1365
- animalWrithe(p1, p2) {
1366
- inv('0x8C038A39C4A4B6D6', this.entity.handle, p1, p2);
1437
+ playEmote(emoteType, playbackMode, emote, isSecondaryTask, canBreakOut, disableEarlyOutAnimTag, ignoreInvalidMainTask, destroyProps) {
1438
+ inv('0x884E3436CC1F41DD', this.entity.handle, emoteType, playbackMode, _h(emote), isSecondaryTask, canBreakOut, disableEarlyOutAnimTag, ignoreInvalidMainTask, destroyProps);
1367
1439
  }
1368
1440
  /**
1369
- * @param p1
1441
+ * @param boat
1370
1442
  * @param p2
1371
1443
  * @param p3
1372
- * @param p4
1444
+ * @param pos
1445
+ * @param p7
1446
+ * @param maxSpeed
1447
+ * @param drivingStyle
1448
+ * @param p10
1449
+ * @param p11
1373
1450
  */
1374
- aimAtEntity(p1, p2, p3, p4) {
1375
- inv('0xCF7569BD0FB480A0', this.entity.handle, p1, p2, p3, p4);
1451
+ boatMission(boat, p2, p3, pos, p7, maxSpeed, drivingStyle, p10, p11) {
1452
+ inv('0x15C86013127CE63F', this.entity.handle, boat.handle, p2, p3, f(pos.x), f(pos.y), f(pos.z), p7, f(maxSpeed), drivingStyle, f(p10), p11);
1376
1453
  }
1377
1454
  /**
1378
- * @param targetPed
1379
- * @param p2
1380
- * @param p3
1455
+ * @param useLimits If `true` the ped's viewing angle will be limited to the angle range given for `minAngle` and `maxAngle`, when set to `false` the player always fully faces the player
1456
+ * @param minAngle The minimum viewing angle, requires `useLimits` to be `true`.
1457
+ * @param maxAngle The maximum viewing angle, reuqeres `useLimits` to be `true`.
1381
1458
  */
1382
- combatPedTimed(targetPed, p2, p3) {
1383
- inv('0x944F30DCB7096BDE', this.entity.handle, targetPed.handle, p2, p3);
1459
+ setIntimidatedFacingAngle(useLimits, minAngle, maxAngle) {
1460
+ inv('0x0FE797DD9F70DFA6', this.entity.handle, useLimits, f(minAngle), f(maxAngle));
1384
1461
  }
1385
1462
  /**
1386
- * @param p1
1463
+ * @param targetPed
1387
1464
  * @param p2
1388
- * @param p3
1389
- */
1390
- throwProjectile(p1, p2, p3) {
1391
- inv('0x7285951DBF6B5A51', this.entity.handle, p1, p2, p3);
1392
- }
1393
- /**
1394
- * @param pos
1395
- * @param heading
1396
- * @param p5
1397
1465
  */
1398
- pedSlideToCoord(pos, heading, p5) {
1399
- inv('0xD04FE6765D990A06', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(heading), f(p5));
1466
+ animalFlee(targetPed, p2) {
1467
+ inv('0xA899B61C66F09134', this.entity.handle, targetPed.handle, p2);
1400
1468
  }
1401
1469
  /**
1402
1470
  * @returns
1403
1471
  */
1404
- isPedCuffed() {
1405
- return inv('0x74E559B3BC910685', this.entity.handle, rai());
1472
+ get IsPedCuffed() {
1473
+ return !!inv('0x74E559B3BC910685', this.entity.handle, rai());
1406
1474
  }
1407
1475
  /**
1408
1476
  * @param avoidWater
@@ -1434,7 +1502,7 @@ export class PedTask extends BaseTask {
1434
1502
  /**
1435
1503
  * @returns
1436
1504
  */
1437
- getPedDesiredMoveBlendRatio() {
1505
+ get PedDesiredMoveBlendRatio() {
1438
1506
  return inv('0x8517D4A6CA8513ED', this.entity.handle, raf());
1439
1507
  }
1440
1508
  N_0xDF94844D474F31E5() {
@@ -1470,7 +1538,7 @@ export class PedTask extends BaseTask {
1470
1538
  /**
1471
1539
  * @param modifier
1472
1540
  */
1473
- setPedPathFoliageCostModifier(modifier) {
1541
+ set PedPathFoliageCostModifier(modifier) {
1474
1542
  inv('0x3AD8EFF9703BE657', this.entity.handle, f(modifier));
1475
1543
  }
1476
1544
  /**
@@ -1488,7 +1556,7 @@ export class PedTask extends BaseTask {
1488
1556
  *
1489
1557
  * @param maxCruiseSpeed
1490
1558
  */
1491
- setDriveTaskMaxCruiseSpeed(maxCruiseSpeed) {
1559
+ set DriveTaskMaxCruiseSpeed(maxCruiseSpeed) {
1492
1560
  inv('0x404A5AA9B9F0B746', this.entity.handle, f(maxCruiseSpeed));
1493
1561
  }
1494
1562
  /**
@@ -1606,7 +1674,7 @@ export class PedTask extends BaseTask {
1606
1674
  /**
1607
1675
  * @param toggle
1608
1676
  */
1609
- setPedPathCanDropFromHeight(toggle) {
1677
+ set PedPathCanDropFromHeight(toggle) {
1610
1678
  inv('0xE361C5C71C431A4F', this.entity.handle, toggle);
1611
1679
  }
1612
1680
  /**
@@ -1750,7 +1818,7 @@ export class PedTask extends BaseTask {
1750
1818
  /**
1751
1819
  * @param toggle
1752
1820
  */
1753
- setPedPathCanUseClimbovers(toggle) {
1821
+ set PedPathCanUseClimbovers(toggle) {
1754
1822
  inv('0x8E06A6FE76C9EFF4', this.entity.handle, toggle);
1755
1823
  }
1756
1824
  /**
@@ -1773,7 +1841,7 @@ export class PedTask extends BaseTask {
1773
1841
  /**
1774
1842
  * @param cruiseSpeed
1775
1843
  */
1776
- setDriveTaskCruiseSpeed(cruiseSpeed) {
1844
+ set DriveTaskCruiseSpeed(cruiseSpeed) {
1777
1845
  inv('0x5C9B84BD7D31D908', this.entity.handle, f(cruiseSpeed));
1778
1846
  }
1779
1847
  /**
@@ -1790,7 +1858,7 @@ export class PedTask extends BaseTask {
1790
1858
  /**
1791
1859
  * @returns
1792
1860
  */
1793
- isPedDuelling() {
1861
+ get IsPedDuelling() {
1794
1862
  return inv('0xC8B29D18022EA2B7', this.entity.handle);
1795
1863
  }
1796
1864
  /**
@@ -1851,7 +1919,7 @@ export class PedTask extends BaseTask {
1851
1919
  *
1852
1920
  * @returns
1853
1921
  */
1854
- getPedWritheBreakFreeProgress() {
1922
+ get PedWritheBreakFreeProgress() {
1855
1923
  return inv('0x03D741CB4052E26C', this.entity.handle, raf());
1856
1924
  }
1857
1925
  /**
@@ -1886,7 +1954,7 @@ export class PedTask extends BaseTask {
1886
1954
  /**
1887
1955
  * @param toggle
1888
1956
  */
1889
- setBlockingOfNonTemporaryEvents(toggle) {
1957
+ set BlockingOfNonTemporaryEvents(toggle) {
1890
1958
  inv('0x90D2156198831D69', this.entity.handle, toggle);
1891
1959
  }
1892
1960
  /**
@@ -1908,7 +1976,7 @@ export class PedTask extends BaseTask {
1908
1976
  /**
1909
1977
  * @param p1
1910
1978
  */
1911
- setPedClearAimingInTheAir(p1) {
1979
+ set PedClearAimingInTheAir(p1) {
1912
1980
  inv('0x34C0010188D7C54A', this.entity.handle, p1);
1913
1981
  }
1914
1982
  /**
@@ -1948,20 +2016,20 @@ export class PedTask extends BaseTask {
1948
2016
  /**
1949
2017
  * @returns
1950
2018
  */
1951
- getLedHorseFromPed() {
2019
+ get LedHorseFromPed() {
1952
2020
  return createFromHandle('Ped', inv('0xED1F514AF4732258', this.entity.handle, rai()));
1953
2021
  }
1954
2022
  /**
1955
2023
  * @returns
1956
2024
  */
1957
2025
  N_0xBEDBE39B5FD98FD6() {
1958
- return inv('0xBEDBE39B5FD98FD6', this.entity.handle, rai());
2026
+ return !!inv('0xBEDBE39B5FD98FD6', this.entity.handle, rai());
1959
2027
  }
1960
2028
  /**
1961
2029
  * @returns
1962
2030
  */
1963
- isPedRunningInspectionTask() {
1964
- return inv('0x038B1F1674F0E242', this.entity.handle);
2031
+ get IsPedRunningInspectionTask() {
2032
+ return !!inv('0x038B1F1674F0E242', this.entity.handle, rai());
1965
2033
  }
1966
2034
  /**
1967
2035
  * @param entity
@@ -1985,7 +2053,7 @@ export class PedTask extends BaseTask {
1985
2053
  /**
1986
2054
  * @returns
1987
2055
  */
1988
- getPedWaypointProgress() {
2056
+ get PedWaypointProgress() {
1989
2057
  return inv('0x2720AAA75001E094', this.entity.handle, rai());
1990
2058
  }
1991
2059
  /**
@@ -2169,7 +2237,7 @@ export class PedTask extends BaseTask {
2169
2237
  /**
2170
2238
  * @param mayEnterDeepWater
2171
2239
  */
2172
- setPedPathMayEnterDeepWater(mayEnterDeepWater) {
2240
+ set PedPathMayEnterDeepWater(mayEnterDeepWater) {
2173
2241
  inv('0x9DE63896B176EA94', this.entity.handle, mayEnterDeepWater);
2174
2242
  }
2175
2243
  /**
@@ -2183,8 +2251,8 @@ export class PedTask extends BaseTask {
2183
2251
  *
2184
2252
  * @returns
2185
2253
  */
2186
- isPedInWrithe() {
2187
- return inv('0xDEB6D52126E7D640', this.entity.handle, rai());
2254
+ get IsPedInWrithe() {
2255
+ return !!inv('0xDEB6D52126E7D640', this.entity.handle, rai());
2188
2256
  }
2189
2257
  /**
2190
2258
  * @param p1
@@ -2207,21 +2275,21 @@ export class PedTask extends BaseTask {
2207
2275
  /**
2208
2276
  * @returns
2209
2277
  */
2210
- isPedArrestingAnyPed() {
2278
+ get IsPedArrestingAnyPed() {
2211
2279
  return inv('0xA9CC7856D52DBD25', this.entity.handle);
2212
2280
  }
2213
2281
  /**
2214
2282
  * @returns
2215
2283
  */
2216
2284
  waypointPlaybackGetIsPaused() {
2217
- return inv('0x701375A7D43F01CB', this.entity.handle, rai());
2285
+ return !!inv('0x701375A7D43F01CB', this.entity.handle, rai());
2218
2286
  }
2219
2287
  /**
2220
2288
  * @param p1
2221
2289
  * @returns
2222
2290
  */
2223
2291
  isPedScenarioReactLooking(p1) {
2224
- return inv('0x916B8E075ABC8B4E', this.entity.handle, p1);
2292
+ return !!inv('0x916B8E075ABC8B4E', this.entity.handle, p1, rai());
2225
2293
  }
2226
2294
  /**
2227
2295
  * @returns args
@@ -2236,13 +2304,13 @@ export class PedTask extends BaseTask {
2236
2304
  /**
2237
2305
  * @returns
2238
2306
  */
2239
- getPedWaypointDistance() {
2307
+ get PedWaypointDistance() {
2240
2308
  return inv('0xE6A877C64CAF1BC5', this.entity.handle, raf());
2241
2309
  }
2242
2310
  /**
2243
2311
  * @param mayEnterWater
2244
2312
  */
2245
- setPedPathMayEnterWater(mayEnterWater) {
2313
+ set PedPathMayEnterWater(mayEnterWater) {
2246
2314
  inv('0xF35425A4204367EC', this.entity.handle, mayEnterWater);
2247
2315
  }
2248
2316
  /**
@@ -2258,7 +2326,7 @@ export class PedTask extends BaseTask {
2258
2326
  /**
2259
2327
  * @param p1
2260
2328
  */
2261
- setPedDesiredMoveBlendRatio(p1) {
2329
+ set PedDesiredMoveBlendRatio(p1) {
2262
2330
  inv('0x1E982AC8716912C5', this.entity.handle, f(p1));
2263
2331
  }
2264
2332
  /**
@@ -2273,7 +2341,7 @@ export class PedTask extends BaseTask {
2273
2341
  /**
2274
2342
  * @returns
2275
2343
  */
2276
- isEntityRevivable() {
2344
+ get IsEntityRevivable() {
2277
2345
  return inv('0x6C50B9DCCCA70023', this.entity.handle);
2278
2346
  }
2279
2347
  /**
@@ -2372,7 +2440,7 @@ export class PedTask extends BaseTask {
2372
2440
  /**
2373
2441
  * @returns
2374
2442
  */
2375
- getTaskMoveNetworkState() {
2443
+ get TaskMoveNetworkState() {
2376
2444
  return inv('0x717E4D1F2048376D', this.entity.handle, ras());
2377
2445
  }
2378
2446
  /**
@@ -2463,7 +2531,7 @@ export class PedTask extends BaseTask {
2463
2531
  /**
2464
2532
  * @returns
2465
2533
  */
2466
- getScenarioPointTypePedIsUsing() {
2534
+ get ScenarioPointTypePedIsUsing() {
2467
2535
  return inv('0x2D0571BB55879DA2', this.entity.handle, rai());
2468
2536
  }
2469
2537
  /**
@@ -2513,8 +2581,8 @@ export class PedTask extends BaseTask {
2513
2581
  *
2514
2582
  * @returns
2515
2583
  */
2516
- isPedBeingArrested() {
2517
- return inv('0x90A09F3A45FED688', this.entity.handle, rai());
2584
+ get IsPedBeingArrested() {
2585
+ return !!inv('0x90A09F3A45FED688', this.entity.handle, rai());
2518
2586
  }
2519
2587
  /**
2520
2588
  * @param p1
@@ -2545,8 +2613,8 @@ export class PedTask extends BaseTask {
2545
2613
  /**
2546
2614
  * @returns Returns `true` if the specified mount is currently being lead by a player, `false` otherwise.
2547
2615
  */
2548
- isPedBeingLead() {
2549
- return inv('0xAC5045AB7F1A34FD', this.entity.handle, rai());
2616
+ get IsPedBeingLead() {
2617
+ return !!inv('0xAC5045AB7F1A34FD', this.entity.handle, rai());
2550
2618
  }
2551
2619
  /**
2552
2620
  * @param entity
@@ -2569,7 +2637,7 @@ export class PedTask extends BaseTask {
2569
2637
  * @returns
2570
2638
  */
2571
2639
  isPedExitingScenario(p1) {
2572
- return inv('0x0C3CB2E600C8977D', this.entity.handle, p1);
2640
+ return !!inv('0x0C3CB2E600C8977D', this.entity.handle, p1, rai());
2573
2641
  }
2574
2642
  /**
2575
2643
  * https://github.com/femga/rdr3_discoveries/tree/master/tasks/TASK_HORSE_ACTION
@@ -2648,7 +2716,7 @@ export class PedTask extends BaseTask {
2648
2716
  *
2649
2717
  * @param modifier
2650
2718
  */
2651
- setPedPathLadderCostModifier(modifier) {
2719
+ set PedPathLadderCostModifier(modifier) {
2652
2720
  inv('0x70F7A1EAB1AE3AA8', this.entity.handle, f(modifier));
2653
2721
  }
2654
2722
  /**
@@ -2694,7 +2762,7 @@ export class PedTask extends BaseTask {
2694
2762
  * @returns
2695
2763
  */
2696
2764
  pedHasUseScenarioTask() {
2697
- return inv('0x295E3CCEC879CCD7', this.entity.handle, rai());
2765
+ return !!inv('0x295E3CCEC879CCD7', this.entity.handle, rai());
2698
2766
  }
2699
2767
  /**
2700
2768
  * Makes the specified ped achieve the specified heading. pedHandle: The handle of the ped to assign the task to.
@@ -2710,15 +2778,15 @@ export class PedTask extends BaseTask {
2710
2778
  /**
2711
2779
  * @returns
2712
2780
  */
2713
- isPedStill() {
2714
- return inv('0xAC29253EEF8F0180', this.entity.handle, rai());
2781
+ get IsPedStill() {
2782
+ return !!inv('0xAC29253EEF8F0180', this.entity.handle, rai());
2715
2783
  }
2716
2784
  /**
2717
2785
  * @param scenario
2718
2786
  * @returns
2719
2787
  */
2720
2788
  isPedActiveInScenario(scenario) {
2721
- return inv('0xAA135F9482C82CC3', this.entity.handle, scenario, rai());
2789
+ return !!inv('0xAA135F9482C82CC3', this.entity.handle, scenario, rai());
2722
2790
  }
2723
2791
  /**
2724
2792
  * @param p1
@@ -2783,7 +2851,7 @@ export class PedTask extends BaseTask {
2783
2851
  /**
2784
2852
  * @returns
2785
2853
  */
2786
- getRansackScenarioPointPedIsUsing() {
2854
+ get RansackScenarioPointPedIsUsing() {
2787
2855
  return inv('0xD04241BBF6D03A5E', this.entity.handle);
2788
2856
  }
2789
2857
  emoteOutro() {
@@ -2801,7 +2869,7 @@ export class PedTask extends BaseTask {
2801
2869
  * @returns
2802
2870
  */
2803
2871
  isEmoteTaskRunning(p1) {
2804
- return inv('0xCF9B71C0AF824036', this.entity.handle, p1, rai());
2872
+ return !!inv('0xCF9B71C0AF824036', this.entity.handle, p1, rai());
2805
2873
  }
2806
2874
  /**
2807
2875
  * @returns args
@@ -2813,8 +2881,8 @@ export class PedTask extends BaseTask {
2813
2881
  /**
2814
2882
  * @returns
2815
2883
  */
2816
- isTaskMoveNetworkActive() {
2817
- return inv('0x921CE12C489C4C41', this.entity.handle, rai());
2884
+ get IsTaskMoveNetworkActive() {
2885
+ return !!inv('0x921CE12C489C4C41', this.entity.handle, rai());
2818
2886
  }
2819
2887
  /**
2820
2888
  * @param pos
@@ -3062,215 +3130,147 @@ export class PedTask extends BaseTask {
3062
3130
  shuffleToNextVehicleSeat(vehicle) {
3063
3131
  inv('0x7AA80209BDA643EB', this.entity.handle, vehicle.handle);
3064
3132
  }
3065
- clearLookAt() {
3066
- inv('0x0F804F1DB19B9689', this.entity.handle);
3067
- }
3068
- /**
3069
- * @param inputContext
3070
- * @returns
3071
- */
3072
- getItemInteractionPromptProgress(inputContext) {
3073
- return inv('0xBC864A70AD55E0C1', this.entity.handle, _h(inputContext), raf());
3074
- }
3075
3133
  /**
3076
3134
  * @param p1
3077
- * @param p2
3078
- * @param p3
3079
- * @param p4
3135
+ * @returns
3080
3136
  */
3081
- setSphereDefensiveArea(p1, p2, p3, p4) {
3082
- inv('0x933C06518B52A9A4', this.entity.handle, f(p1), f(p2), f(p3), f(p4));
3137
+ N_0x2D657B10F211C572(p1) {
3138
+ return inv('0x2D657B10F211C572', this.entity.handle, f(p1));
3083
3139
  }
3084
3140
  /**
3085
- * @param p1
3086
- * @param p2
3087
- * @param p3
3141
+ * Coords: volume coords used in R* Script smuggler2
3142
+ * p4/p5 = 0 in R* Scripts previous name TASK_COMBAT_PED_3
3143
+ *
3144
+ * @param pos
3088
3145
  * @param p4
3146
+ * @param p5
3089
3147
  */
3090
- useRandomScenarioInGroup(p1, p2, p3, p4) {
3091
- inv('0x14747F4A5971DE4E', this.entity.handle, p1, p2, p3, p4);
3148
+ combatPedAtCoords(pos, p4, p5) {
3149
+ inv('0xC624414FA748B9BA', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), p4, p5);
3092
3150
  }
3093
3151
  /**
3094
- * enum eWhistleType
3095
- * {
3096
- * WHISTLE_MAIN,
3097
- * WHISTLE_SECONDARY,
3098
- * WHISTLE_DOUBLE,
3099
- * WHISTLE_URGENT,
3100
- * WHISTLE_LONG
3101
- * };
3152
+ * Makes the specified ped stand still for (time) milliseconds.
3102
3153
  *
3103
- * @param p1
3104
- * @param whistleType
3105
- */
3106
- goToWhistle(p1, whistleType) {
3107
- inv('0xBAD6545608CECA6E', this.entity.handle, p1.handle, whistleType);
3108
- }
3109
- /**
3110
- * @param pos
3111
- * @param duration
3112
- * @param flags
3113
- * @param p6
3114
- * @param p7
3154
+ * @param time
3115
3155
  */
3116
- lookAtCoord(pos, duration, flags, p6, p7) {
3117
- inv('0x6FA46612594F7973', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), duration, flags, p6, p7);
3156
+ standStill(time) {
3157
+ inv('0x919BE13EED931959', this.entity.handle, time);
3118
3158
  }
3119
3159
  /**
3120
- * @returns
3160
+ * @param animDictionary
3161
+ * @param animationName
3162
+ * @param p3
3121
3163
  */
3122
- isPedInHitReact() {
3123
- return inv('0xF330A5C062B29BED', this.entity.handle);
3164
+ stopAnimTask(animDictionary, animationName, p3) {
3165
+ inv('0x97FF36A1D40EA00A', this.entity.handle, animDictionary, animationName, f(p3));
3124
3166
  }
3125
3167
  /**
3126
3168
  * @param p1
3127
3169
  * @param p2
3128
3170
  * @param p3
3129
- * @param p4
3130
- * @param p5
3131
- * @param p6
3132
- * @param p7
3133
- * @param p8
3134
- */
3135
- N_0x3FFCD7BBA074CC80(p1, p2, p3, p4, p5, p6, p7, p8) {
3136
- inv('0x3FFCD7BBA074CC80', this.entity.handle, p1, p2, p3, p4, p5, p6, p7, p8);
3137
- }
3138
- /**
3139
- * @returns
3140
3171
  */
3141
- isMountedWeaponTaskUnderneathDrivingTask() {
3142
- return inv('0xA320EF046186FA3B', this.entity.handle, rai());
3172
+ turnToFaceClosestPed(p1, p2, p3) {
3173
+ inv('0x84179419DBDD36F2', this.entity.handle, f(p1), f(p2), p3);
3143
3174
  }
3144
3175
  /**
3145
- * flags: See TASK_ENTER_VEHICLE
3176
+ * Fishing Research: https://pastebin.com/NmK5ZLVs
3177
+ * Only used in R* Scripts fishing_core and av_fishing_river
3146
3178
  *
3147
- * @param p1
3148
- * @param flags Refer to [enum: eEnterExitVehicleFlags]
3149
- */
3150
- disembarkNearestTrainCarriage(p1, flags) {
3151
- inv('0x0A11F3BDEC03ED5F', this.entity.handle, f(p1), flags);
3152
- }
3153
- /**
3154
- * @param radius
3179
+ * @returns p1
3155
3180
  */
3156
- combatHatedTargetsNoLosTest(radius) {
3157
- inv('0xB5BC69D9C4060BC3', this.entity.handle, f(radius));
3181
+ get TaskFishing() {
3182
+ const result = inv('0xF3735ACD11ACD500', this.entity.handle, pvi());
3183
+ return [result[0], result[1]];
3158
3184
  }
3159
3185
  /**
3160
3186
  * @param p1
3187
+ * @param p2
3161
3188
  */
3162
- N_0x31BB338F64D5C861(p1) {
3163
- inv('0x31BB338F64D5C861', this.entity.handle, p1);
3164
- }
3165
- /**
3166
- * @param modifier
3167
- */
3168
- setPedPathClimbCostModifier(modifier) {
3169
- inv('0x88E32DB8C1A4AA4B', this.entity.handle, f(modifier));
3189
+ shockingEventReact(p1, p2) {
3190
+ inv('0x452419CBD838065B', this.entity.handle, p1, p2);
3170
3191
  }
3171
3192
  /**
3172
- * @param entity
3173
- * @param duration
3174
- * @param targetRadius
3175
- * @param offset
3176
- * @param moveBlendRatio
3177
- * @param offsetFlags
3193
+ * @returns
3178
3194
  */
3179
- gotoEntityOffsetXy(entity, duration, targetRadius, offset, moveBlendRatio, offsetFlags) {
3180
- inv('0x338E7EF52B6095A9', this.entity.handle, entity.handle, duration, f(targetRadius), f(offset.x), f(offset.y), f(moveBlendRatio), offsetFlags);
3195
+ N_0xB520DBDA7FCF573F() {
3196
+ return !!inv('0xB520DBDA7FCF573F', this.entity.handle, rai());
3181
3197
  }
3182
3198
  /**
3183
- * Makes ped walk around the area the params p1 p2 seems to not affect anything but p2 is either 0 or 1 and p1 is mostly 1.0 or ped heading
3184
- *
3185
- * @param p2
3186
- * @param p3
3199
+ * @param toggle
3187
3200
  */
3188
- wanderStandard(p2, p3) {
3189
- inv('0xBB9CE077274F6A1B', this.entity.handle, f(p2), p3);
3201
+ set PedPathCanUseLadders(toggle) {
3202
+ inv('0x77A5B103C87F476E', this.entity.handle, toggle);
3190
3203
  }
3191
3204
  /**
3192
3205
  * @param p1
3193
3206
  * @param p2
3194
3207
  */
3195
- clearPedTasks(p1, p2) {
3196
- inv('0xE1EF3C1216AFF2CD', this.entity.handle, p1, p2);
3208
+ stopAnimPlayback(p1, p2) {
3209
+ inv('0xEE08C992D238C5D1', this.entity.handle, p1, p2);
3197
3210
  }
3198
3211
  /**
3199
- * @param signalName
3200
- * @param value
3212
+ * @param targetPed
3213
+ * @param p2
3214
+ * @returns
3201
3215
  */
3202
- setTaskMoveNetworkSignalFloat(signalName, value) {
3203
- inv('0xD5BB4025AE449A4E', this.entity.handle, signalName, f(value));
3216
+ confront(targetPed, p2) {
3217
+ return inv('0x3A2A2071DF5CC569', this.entity.handle, targetPed.handle, p2);
3204
3218
  }
3205
- /**
3206
- * @param taskSequenceId
3207
- */
3208
- performSequence(taskSequenceId) {
3209
- inv('0x5ABA3986D90D8A3B', this.entity.handle, taskSequenceId);
3219
+ N_0x1F298C7BD30D1240() {
3220
+ inv('0x1F298C7BD30D1240', this.entity.handle);
3210
3221
  }
3211
3222
  /**
3212
3223
  * @param p1
3213
3224
  * @param p2
3214
3225
  * @param p3
3215
3226
  */
3216
- moveInTraffic(p1, p2, p3) {
3217
- inv('0x8AA1593AEC087A29', this.entity.handle, p1, p2, p3);
3218
- }
3219
- /**
3220
- * @param p1
3221
- * @param permanently
3222
- */
3223
- knockedOut(p1, permanently) {
3224
- inv('0xF90427F00A495A28', this.entity.handle, f(p1), permanently);
3227
+ setCrouchMovement(p1, p2, p3) {
3228
+ inv('0x17293C633C8AC019', this.entity.handle, p1, p2, p3);
3225
3229
  }
3226
3230
  /**
3227
- * @param duration
3231
+ * 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
3232
+ *
3233
+ * @param entity
3234
+ * @param offset
3235
+ * @param moveBlendRatio
3236
+ * @param timeBeforeTeleport
3237
+ * @param p7
3228
3238
  */
3229
- updateTaskHandsUpDuration(duration) {
3230
- inv('0xA98FCAFD7893C834', this.entity.handle, duration);
3239
+ goStraightToCoordRelativeToEntity(entity, offset, moveBlendRatio, timeBeforeTeleport, p7) {
3240
+ inv('0x61E360B7E040D12E', this.entity.handle, entity.handle, f(offset.x), f(offset.y), f(offset.z), moveBlendRatio, timeBeforeTeleport, p7);
3231
3241
  }
3232
3242
  /**
3233
- * Similar to 0xB31A277C1AC7B7FF but checks if the ped's inventory contains the specified emote kit.
3243
+ * Sets the time it takes for a hogtied ped to escape
3244
+ * -1.0f for ped to never escape
3234
3245
  *
3235
- * @param emoteType
3236
- * @param playbackMode
3237
- * @param emote
3238
- * @param isSecondaryTask
3239
- * @param canBreakOut
3240
- * @param disableEarlyOutAnimTag
3241
- * @param ignoreInvalidMainTask
3242
- * @param destroyProps
3246
+ * @param time
3243
3247
  */
3244
- playEmote(emoteType, playbackMode, emote, isSecondaryTask, canBreakOut, disableEarlyOutAnimTag, ignoreInvalidMainTask, destroyProps) {
3245
- inv('0x884E3436CC1F41DD', this.entity.handle, emoteType, playbackMode, _h(emote), isSecondaryTask, canBreakOut, disableEarlyOutAnimTag, ignoreInvalidMainTask, destroyProps);
3248
+ set HogtieEscapeTimer(time) {
3249
+ inv('0xAB591AE6B48B913E', this.entity.handle, f(time));
3246
3250
  }
3247
3251
  /**
3248
- * @param boat
3249
- * @param p2
3250
- * @param p3
3251
- * @param pos
3252
- * @param p7
3253
- * @param maxSpeed
3254
- * @param drivingStyle
3255
- * @param p10
3256
- * @param p11
3252
+ * Makes the ped run to take cover
3257
3253
  */
3258
- boatMission(boat, p2, p3, pos, p7, maxSpeed, drivingStyle, p10, p11) {
3259
- inv('0x15C86013127CE63F', this.entity.handle, boat.handle, p2, p3, f(pos.x), f(pos.y), f(pos.z), p7, f(maxSpeed), drivingStyle, f(p10), p11);
3254
+ stayInCover() {
3255
+ inv('0xE5DA8615A6180789', this.entity.handle);
3260
3256
  }
3261
3257
  /**
3262
- * @param useLimits If `true` the ped's viewing angle will be limited to the angle range given for `minAngle` and `maxAngle`, when set to `false` the player always fully faces the player
3263
- * @param minAngle The minimum viewing angle, requires `useLimits` to be `true`.
3264
- * @param maxAngle The maximum viewing angle, reuqeres `useLimits` to be `true`.
3258
+ * @param p1
3265
3259
  */
3266
- setIntimidatedFacingAngle(useLimits, minAngle, maxAngle) {
3267
- inv('0x0FE797DD9F70DFA6', this.entity.handle, useLimits, f(minAngle), f(maxAngle));
3260
+ followWaypointRecordingAdvanced(p1) {
3261
+ inv('0x0CFC13EBC19BCA52', this.entity.handle, p1);
3268
3262
  }
3269
3263
  /**
3270
- * @param targetPed
3271
- * @param p2
3264
+ * 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
3265
+ *
3266
+ * @param pos
3267
+ * @param moveBlendRatio
3268
+ * @param timeBeforeTeleport
3269
+ * @param finalHeading
3270
+ * @param targetRadius
3271
+ * @param p8
3272
3272
  */
3273
- animalFlee(targetPed, p2) {
3274
- inv('0xA899B61C66F09134', this.entity.handle, targetPed.handle, p2);
3273
+ goStraightToCoord(pos, moveBlendRatio, timeBeforeTeleport, finalHeading, targetRadius, p8) {
3274
+ inv('0xD76B57B44F1E6F8B', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(moveBlendRatio), timeBeforeTeleport, f(finalHeading), f(targetRadius), p8);
3275
3275
  }
3276
3276
  }