@nativewrappers/redm-codegen 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/dist/classes/AnimScene.d.ts +109 -109
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +158 -158
  4. package/dist/classes/BaseModel.d.ts +34 -34
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +53 -53
  7. package/dist/classes/BaseTask.d.ts +36 -36
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +44 -44
  10. package/dist/classes/Cam.d.ts +91 -91
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +124 -124
  13. package/dist/classes/Entity.d.ts +507 -502
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +723 -714
  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 +770 -770
  29. package/dist/classes/PedTask.d.ts.map +1 -1
  30. package/dist/classes/PedTask.js +985 -985
  31. package/dist/classes/PersChar.d.ts +11 -11
  32. package/dist/classes/PersChar.d.ts.map +1 -1
  33. package/dist/classes/PersChar.js +23 -23
  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 +12 -12
  37. package/dist/classes/Player.d.ts +237 -233
  38. package/dist/classes/Player.d.ts.map +1 -1
  39. package/dist/classes/Player.js +309 -303
  40. package/dist/classes/Prop.d.ts +126 -126
  41. package/dist/classes/Prop.d.ts.map +1 -1
  42. package/dist/classes/Prop.js +180 -180
  43. package/dist/classes/PropSet.d.ts +16 -16
  44. package/dist/classes/PropSet.d.ts.map +1 -1
  45. package/dist/classes/PropSet.js +22 -22
  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 +17 -17
  53. package/dist/classes/VehicleTask.d.ts.map +1 -1
  54. package/dist/classes/VehicleTask.js +24 -24
  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 +243 -243
  59. package/dist/classes/Weapon.d.ts.map +1 -1
  60. package/dist/classes/Weapon.js +339 -339
  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 +37 -37
  68. package/dist/namespaces/Animscene.d.ts.map +1 -1
  69. package/dist/namespaces/Animscene.js +51 -51
  70. package/dist/namespaces/Audio.d.ts +395 -395
  71. package/dist/namespaces/Audio.d.ts.map +1 -1
  72. package/dist/namespaces/Audio.js +530 -530
  73. package/dist/namespaces/Bounty.d.ts +23 -23
  74. package/dist/namespaces/Bounty.d.ts.map +1 -1
  75. package/dist/namespaces/Bounty.js +40 -40
  76. package/dist/namespaces/Brain.d.ts +15 -15
  77. package/dist/namespaces/Brain.d.ts.map +1 -1
  78. package/dist/namespaces/Brain.js +20 -20
  79. package/dist/namespaces/CamStatics.d.ts +483 -483
  80. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  81. package/dist/namespaces/CamStatics.js +693 -693
  82. package/dist/namespaces/Clock.d.ts +51 -51
  83. package/dist/namespaces/Clock.d.ts.map +1 -1
  84. package/dist/namespaces/Clock.js +73 -73
  85. package/dist/namespaces/Collection.d.ts +6 -6
  86. package/dist/namespaces/Collection.d.ts.map +1 -1
  87. package/dist/namespaces/Collection.js +11 -11
  88. package/dist/namespaces/Compapp.js +1 -1
  89. package/dist/namespaces/Compendium.d.ts +58 -58
  90. package/dist/namespaces/Compendium.d.ts.map +1 -1
  91. package/dist/namespaces/Compendium.js +83 -83
  92. package/dist/namespaces/Crashlog.js +9 -9
  93. package/dist/namespaces/Crew.d.ts +9 -9
  94. package/dist/namespaces/Crew.d.ts.map +1 -1
  95. package/dist/namespaces/Crew.js +18 -18
  96. package/dist/namespaces/Databinding.d.ts +146 -146
  97. package/dist/namespaces/Databinding.d.ts.map +1 -1
  98. package/dist/namespaces/Databinding.js +218 -218
  99. package/dist/namespaces/Datafile.js +4 -4
  100. package/dist/namespaces/Decorator.d.ts +19 -19
  101. package/dist/namespaces/Decorator.d.ts.map +1 -1
  102. package/dist/namespaces/Decorator.js +34 -34
  103. package/dist/namespaces/Dlc.js +2 -2
  104. package/dist/namespaces/EntityStatics.d.ts +186 -186
  105. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  106. package/dist/namespaces/EntityStatics.js +249 -249
  107. package/dist/namespaces/Event.js +4 -4
  108. package/dist/namespaces/Fire.d.ts +89 -89
  109. package/dist/namespaces/Fire.d.ts.map +1 -1
  110. package/dist/namespaces/Fire.js +115 -115
  111. package/dist/namespaces/Flock.js +2 -2
  112. package/dist/namespaces/Gang.js +2 -2
  113. package/dist/namespaces/GoogleAnalytics.js +2 -2
  114. package/dist/namespaces/Graphics.d.ts +776 -776
  115. package/dist/namespaces/Graphics.d.ts.map +1 -1
  116. package/dist/namespaces/Graphics.js +1120 -1120
  117. package/dist/namespaces/Hud.d.ts +497 -497
  118. package/dist/namespaces/Hud.d.ts.map +1 -1
  119. package/dist/namespaces/Hud.js +748 -748
  120. package/dist/namespaces/Ik.js +1 -1
  121. package/dist/namespaces/Interaction.js +3 -3
  122. package/dist/namespaces/InteriorStatics.d.ts +40 -40
  123. package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
  124. package/dist/namespaces/InteriorStatics.js +57 -57
  125. package/dist/namespaces/Inventory.d.ts +205 -205
  126. package/dist/namespaces/Inventory.d.ts.map +1 -1
  127. package/dist/namespaces/Inventory.js +340 -340
  128. package/dist/namespaces/Itemdatabase.d.ts +78 -78
  129. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  130. package/dist/namespaces/Itemdatabase.js +109 -109
  131. package/dist/namespaces/Itemset.js +2 -2
  132. package/dist/namespaces/Law.d.ts +1 -1
  133. package/dist/namespaces/Law.d.ts.map +1 -1
  134. package/dist/namespaces/Law.js +19 -19
  135. package/dist/namespaces/Localization.js +1 -1
  136. package/dist/namespaces/Map.d.ts +156 -156
  137. package/dist/namespaces/Map.d.ts.map +1 -1
  138. package/dist/namespaces/Map.js +209 -209
  139. package/dist/namespaces/Minigame.d.ts +66 -66
  140. package/dist/namespaces/Minigame.d.ts.map +1 -1
  141. package/dist/namespaces/Minigame.js +111 -111
  142. package/dist/namespaces/Misc.d.ts +3 -3
  143. package/dist/namespaces/Misc.d.ts.map +1 -1
  144. package/dist/namespaces/Misc.js +35 -35
  145. package/dist/namespaces/Missiondata.js +1 -1
  146. package/dist/namespaces/Money.js +3 -3
  147. package/dist/namespaces/Netshopping.d.ts +58 -58
  148. package/dist/namespaces/Netshopping.d.ts.map +1 -1
  149. package/dist/namespaces/Netshopping.js +89 -89
  150. package/dist/namespaces/Network.d.ts +1199 -1199
  151. package/dist/namespaces/Network.d.ts.map +1 -1
  152. package/dist/namespaces/Network.js +1650 -1650
  153. package/dist/namespaces/Object.d.ts +262 -262
  154. package/dist/namespaces/Object.d.ts.map +1 -1
  155. package/dist/namespaces/Object.js +367 -367
  156. package/dist/namespaces/Pad.d.ts +102 -102
  157. package/dist/namespaces/Pad.d.ts.map +1 -1
  158. package/dist/namespaces/Pad.js +141 -141
  159. package/dist/namespaces/Pathfind.js +10 -10
  160. package/dist/namespaces/PedStatics.d.ts +2 -2
  161. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  162. package/dist/namespaces/PedStatics.js +10 -10
  163. package/dist/namespaces/Perschar.d.ts +42 -42
  164. package/dist/namespaces/Perschar.d.ts.map +1 -1
  165. package/dist/namespaces/Perschar.js +59 -59
  166. package/dist/namespaces/Physics.d.ts +37 -37
  167. package/dist/namespaces/Physics.d.ts.map +1 -1
  168. package/dist/namespaces/Physics.js +54 -54
  169. package/dist/namespaces/PlayerStatics.d.ts +68 -68
  170. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  171. package/dist/namespaces/PlayerStatics.js +104 -104
  172. package/dist/namespaces/Population.d.ts +86 -86
  173. package/dist/namespaces/Population.d.ts.map +1 -1
  174. package/dist/namespaces/Population.js +116 -116
  175. package/dist/namespaces/Posse.d.ts +48 -48
  176. package/dist/namespaces/Posse.d.ts.map +1 -1
  177. package/dist/namespaces/Posse.js +78 -78
  178. package/dist/namespaces/Propset.d.ts +59 -59
  179. package/dist/namespaces/Propset.d.ts.map +1 -1
  180. package/dist/namespaces/Propset.js +81 -81
  181. package/dist/namespaces/Replay.d.ts +1 -1
  182. package/dist/namespaces/Replay.d.ts.map +1 -1
  183. package/dist/namespaces/Replay.js +2 -2
  184. package/dist/namespaces/Scripts.d.ts +1 -1
  185. package/dist/namespaces/Scripts.d.ts.map +1 -1
  186. package/dist/namespaces/Scripts.js +12 -12
  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 +203 -203
  191. package/dist/namespaces/Stats.d.ts.map +1 -1
  192. package/dist/namespaces/Stats.js +294 -294
  193. package/dist/namespaces/Streaming.d.ts +128 -128
  194. package/dist/namespaces/Streaming.d.ts.map +1 -1
  195. package/dist/namespaces/Streaming.js +202 -202
  196. package/dist/namespaces/Task.d.ts +366 -366
  197. package/dist/namespaces/Task.d.ts.map +1 -1
  198. package/dist/namespaces/Task.js +517 -517
  199. package/dist/namespaces/Telemetry.d.ts +83 -83
  200. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  201. package/dist/namespaces/Telemetry.js +111 -111
  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.js +1 -1
  208. package/dist/namespaces/Uistickyfeed.d.ts +16 -16
  209. package/dist/namespaces/Uistickyfeed.d.ts.map +1 -1
  210. package/dist/namespaces/Uistickyfeed.js +21 -21
  211. package/dist/namespaces/Unlock.js +5 -5
  212. package/dist/namespaces/VehicleStatics.js +12 -12
  213. package/dist/namespaces/Voice.js +7 -7
  214. package/dist/namespaces/VolumeStatics.d.ts +99 -99
  215. package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
  216. package/dist/namespaces/VolumeStatics.js +137 -137
  217. package/dist/namespaces/Water.d.ts +27 -27
  218. package/dist/namespaces/Water.d.ts.map +1 -1
  219. package/dist/namespaces/Water.js +41 -41
  220. package/dist/namespaces/WeaponStatics.d.ts +206 -206
  221. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  222. package/dist/namespaces/WeaponStatics.js +303 -303
  223. package/dist/types/NativeAliases.d.ts +3 -1
  224. package/dist/types/NativeAliases.d.ts.map +1 -1
  225. package/dist/types/NativeAliases.js +3 -1
  226. package/package.json +1 -1
  227. package/src/classes/AnimScene.ts +164 -164
  228. package/src/classes/BaseModel.ts +60 -60
  229. package/src/classes/BaseTask.ts +46 -46
  230. package/src/classes/Cam.ts +136 -136
  231. package/src/classes/Entity.ts +738 -727
  232. package/src/classes/Interior.ts +43 -43
  233. package/src/classes/ItemSet.ts +3 -3
  234. package/src/classes/Ped.ts +432 -432
  235. package/src/classes/PedModel.ts +2 -2
  236. package/src/classes/PedTask.ts +1023 -1023
  237. package/src/classes/PersChar.ts +28 -28
  238. package/src/classes/Pickup.ts +13 -13
  239. package/src/classes/Player.ts +326 -319
  240. package/src/classes/Prop.ts +185 -185
  241. package/src/classes/PropSet.ts +25 -25
  242. package/src/classes/Vehicle.ts +147 -147
  243. package/src/classes/VehicleModel.ts +2 -2
  244. package/src/classes/VehicleTask.ts +27 -27
  245. package/src/classes/Volume.ts +62 -62
  246. package/src/classes/Weapon.ts +358 -358
  247. package/src/namespaces/Aicoverpoint.ts +40 -40
  248. package/src/namespaces/Aitransport.ts +104 -104
  249. package/src/namespaces/Animscene.ts +55 -55
  250. package/src/namespaces/Audio.ts +565 -565
  251. package/src/namespaces/Bounty.ts +46 -46
  252. package/src/namespaces/Brain.ts +22 -22
  253. package/src/namespaces/CamStatics.ts +706 -706
  254. package/src/namespaces/Clock.ts +82 -82
  255. package/src/namespaces/Collection.ts +12 -12
  256. package/src/namespaces/Compapp.ts +1 -1
  257. package/src/namespaces/Compendium.ts +94 -94
  258. package/src/namespaces/Crashlog.ts +9 -9
  259. package/src/namespaces/Crew.ts +20 -20
  260. package/src/namespaces/Databinding.ts +222 -222
  261. package/src/namespaces/Datafile.ts +4 -4
  262. package/src/namespaces/Decorator.ts +37 -37
  263. package/src/namespaces/Dlc.ts +2 -2
  264. package/src/namespaces/EntityStatics.ts +259 -259
  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 +1081 -1081
  271. package/src/namespaces/Hud.ts +767 -767
  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 +352 -352
  276. package/src/namespaces/Itemdatabase.ts +121 -121
  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 +217 -217
  281. package/src/namespaces/Minigame.ts +119 -119
  282. package/src/namespaces/Misc.ts +38 -38
  283. package/src/namespaces/Missiondata.ts +1 -1
  284. package/src/namespaces/Money.ts +3 -3
  285. package/src/namespaces/Netshopping.ts +99 -99
  286. package/src/namespaces/Network.ts +1738 -1738
  287. package/src/namespaces/Object.ts +370 -370
  288. package/src/namespaces/Pad.ts +155 -155
  289. package/src/namespaces/Pathfind.ts +10 -10
  290. package/src/namespaces/PedStatics.ts +12 -12
  291. package/src/namespaces/Perschar.ts +67 -67
  292. package/src/namespaces/Physics.ts +62 -62
  293. package/src/namespaces/PlayerStatics.ts +112 -112
  294. package/src/namespaces/Population.ts +131 -131
  295. package/src/namespaces/Posse.ts +81 -81
  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/Socialclub.ts +8 -8
  300. package/src/namespaces/Socialclubfeed.ts +1 -1
  301. package/src/namespaces/Spactionproxy.ts +4 -4
  302. package/src/namespaces/Stats.ts +296 -296
  303. package/src/namespaces/Streaming.ts +236 -236
  304. package/src/namespaces/Task.ts +583 -583
  305. package/src/namespaces/Telemetry.ts +125 -125
  306. package/src/namespaces/Txd.ts +1 -1
  307. package/src/namespaces/Uiapps.ts +43 -43
  308. package/src/namespaces/Uievents.ts +1 -1
  309. package/src/namespaces/Uifeed.ts +1 -1
  310. package/src/namespaces/Uistickyfeed.ts +23 -23
  311. package/src/namespaces/Unlock.ts +5 -5
  312. package/src/namespaces/VehicleStatics.ts +12 -12
  313. package/src/namespaces/Voice.ts +7 -7
  314. package/src/namespaces/VolumeStatics.ts +143 -143
  315. package/src/namespaces/Water.ts +47 -47
  316. package/src/namespaces/WeaponStatics.ts +311 -311
  317. package/src/types/NativeAliases.ts +6 -1
@@ -6,6 +6,170 @@ export class PedTask extends BaseTask {
6
6
  constructor(entity) {
7
7
  super(entity);
8
8
  }
9
+ /**
10
+ * @param toggle
11
+ */
12
+ set PedPathCanUseLadders(toggle) {
13
+ inv('0x77A5B103C87F476E', this.entity.handle, toggle);
14
+ }
15
+ /**
16
+ * @param p1
17
+ * @param p2
18
+ */
19
+ stopAnimPlayback(p1, p2) {
20
+ inv('0xEE08C992D238C5D1', this.entity.handle, p1, p2);
21
+ }
22
+ /**
23
+ * @param targetPed
24
+ * @param p2
25
+ * @returns
26
+ */
27
+ confront(targetPed, p2) {
28
+ return inv('0x3A2A2071DF5CC569', this.entity.handle, targetPed.handle, p2);
29
+ }
30
+ N_0x1F298C7BD30D1240() {
31
+ inv('0x1F298C7BD30D1240', this.entity.handle);
32
+ }
33
+ /**
34
+ * @param p1
35
+ * @param p2
36
+ * @param p3
37
+ */
38
+ setCrouchMovement(p1, p2, p3) {
39
+ inv('0x17293C633C8AC019', this.entity.handle, p1, p2, p3);
40
+ }
41
+ /**
42
+ * 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
43
+ *
44
+ * @param entity
45
+ * @param offset
46
+ * @param moveBlendRatio
47
+ * @param timeBeforeTeleport
48
+ * @param p7
49
+ */
50
+ goStraightToCoordRelativeToEntity(entity, offset, moveBlendRatio, timeBeforeTeleport, p7) {
51
+ inv('0x61E360B7E040D12E', this.entity.handle, entity.handle, f(offset.x), f(offset.y), f(offset.z), moveBlendRatio, timeBeforeTeleport, p7);
52
+ }
53
+ /**
54
+ * Sets the time it takes for a hogtied ped to escape
55
+ * -1.0f for ped to never escape
56
+ *
57
+ * @param time
58
+ */
59
+ set HogtieEscapeTimer(time) {
60
+ inv('0xAB591AE6B48B913E', this.entity.handle, f(time));
61
+ }
62
+ /**
63
+ * Makes the ped run to take cover
64
+ */
65
+ stayInCover() {
66
+ inv('0xE5DA8615A6180789', this.entity.handle);
67
+ }
68
+ /**
69
+ * @param p1
70
+ */
71
+ followWaypointRecordingAdvanced(p1) {
72
+ inv('0x0CFC13EBC19BCA52', this.entity.handle, p1);
73
+ }
74
+ /**
75
+ * 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
76
+ *
77
+ * @param pos
78
+ * @param moveBlendRatio
79
+ * @param timeBeforeTeleport
80
+ * @param finalHeading
81
+ * @param targetRadius
82
+ * @param p8
83
+ */
84
+ goStraightToCoord(pos, moveBlendRatio, timeBeforeTeleport, finalHeading, targetRadius, p8) {
85
+ inv('0xD76B57B44F1E6F8B', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(moveBlendRatio), timeBeforeTeleport, f(finalHeading), f(targetRadius), p8);
86
+ }
87
+ /**
88
+ * @param pos
89
+ * @param speedMultiplier
90
+ * @param timeout
91
+ * @param stoppingRange
92
+ * @param flags
93
+ * @param p8
94
+ * @param p9
95
+ * @param p10
96
+ * @param entity
97
+ * @param unk
98
+ */
99
+ followNavMeshToCoordAdvanced(pos, speedMultiplier, timeout, stoppingRange, flags, p8, p9, p10, entity, unk) {
100
+ 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));
101
+ }
102
+ /**
103
+ * @param radius
104
+ * @param time
105
+ * @param flags
106
+ */
107
+ combatHatedTargetsAroundPedTimed(radius, time, flags) {
108
+ inv('0x2BBA30B854534A0C', this.entity.handle, f(radius), time, flags);
109
+ }
110
+ /**
111
+ * @returns
112
+ */
113
+ get IsPedRunning() {
114
+ return !!inv('0xC5286FFC176F28A2', this.entity.handle, rai());
115
+ }
116
+ /**
117
+ * @returns
118
+ */
119
+ get IsPedSprinting() {
120
+ return !!inv('0x57E457CD2C0FC168', this.entity.handle, rai());
121
+ }
122
+ /**
123
+ * @param useSlidingSurfaces
124
+ */
125
+ set PedPathMayUseSlidingSurfaces(useSlidingSurfaces) {
126
+ inv('0x06ECF3925BC2ABAE', this.entity.handle, useSlidingSurfaces);
127
+ }
128
+ /**
129
+ * Force a ped that is already attacking to aim directly at the specified world coordinates.
130
+ *
131
+ * @param pos
132
+ * @param p4
133
+ * @param p5
134
+ * @param p6
135
+ */
136
+ forcePointAimAtCoord(pos, p4, p5, p6) {
137
+ inv('0x41323F4E0C4AE94B', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), p4, p5, p6);
138
+ }
139
+ /**
140
+ * @param p1
141
+ * @param p2
142
+ * @param p3
143
+ * @param p4
144
+ */
145
+ swapWeapon(p1, p2, p3, p4) {
146
+ inv('0xA21C51255B205245', this.entity.handle, p1, p2, p3, p4);
147
+ }
148
+ /**
149
+ * @param p1
150
+ * @param p2
151
+ * @param p3
152
+ * @param p4
153
+ * @param p5
154
+ * @param p6
155
+ * @param p7
156
+ * @param p8
157
+ */
158
+ gotoEntityOffsetXyz(p1, p2, p3, p4, p5, p6, p7, p8) {
159
+ inv('0xFA6DA9D151769392', this.entity.handle, p1, p2, p3, p4, p5, p6, p7, p8);
160
+ }
161
+ /**
162
+ * @param pos
163
+ * @param distance
164
+ * @param duration
165
+ * @param p6
166
+ * @param p7
167
+ * @param p8
168
+ * @param p9
169
+ */
170
+ useNearestScenarioToCoordWarp(pos, distance, duration, p6, p7, p8, p9) {
171
+ inv('0x58E2E0F23F6B76C3', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(distance), duration, p6, p7, p8, p9);
172
+ }
9
173
  /**
10
174
  * Baits: p_fishHook02x, p_baitBread01x, p_baitCorn01x, p_baitCheese01x, p_baitWorm01x, p_baitCricket01x, p_crawdad01x, p_finisheDragonfly01x, p_finisdFishlure01x, p_finishdCrawd01x, p_finisheDragonflyLegendary01x, p_finisdFishlureLegendary01x, p_finishdCrawdLegendary01x, p_lgoc_spinner_v4
11
175
  *
@@ -33,8 +197,8 @@ export class PedTask extends BaseTask {
33
197
  /**
34
198
  * @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
199
  */
36
- getTaskCombatReadyToShoot() {
37
- return inv('0x5EA655F01D93667A', this.entity.handle, rai());
200
+ get TaskCombatReadyToShoot() {
201
+ return !!inv('0x5EA655F01D93667A', this.entity.handle, rai());
38
202
  }
39
203
  /**
40
204
  * @param vehicle
@@ -93,10 +257,75 @@ export class PedTask extends BaseTask {
93
257
  clearDrivebyTaskUnderneathDrivingTask() {
94
258
  inv('0xC35B5CDB2824CF69', this.entity.handle);
95
259
  }
260
+ /**
261
+ * @param p1
262
+ * @returns
263
+ */
264
+ N_0x2D657B10F211C572(p1) {
265
+ return inv('0x2D657B10F211C572', this.entity.handle, f(p1));
266
+ }
267
+ /**
268
+ * Coords: volume coords used in R* Script smuggler2
269
+ * p4/p5 = 0 in R* Scripts previous name TASK_COMBAT_PED_3
270
+ *
271
+ * @param pos
272
+ * @param p4
273
+ * @param p5
274
+ */
275
+ combatPedAtCoords(pos, p4, p5) {
276
+ inv('0xC624414FA748B9BA', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), p4, p5);
277
+ }
278
+ /**
279
+ * Makes the specified ped stand still for (time) milliseconds.
280
+ *
281
+ * @param time
282
+ */
283
+ standStill(time) {
284
+ inv('0x919BE13EED931959', this.entity.handle, time);
285
+ }
286
+ /**
287
+ * @param animDictionary
288
+ * @param animationName
289
+ * @param p3
290
+ */
291
+ stopAnimTask(animDictionary, animationName, p3) {
292
+ inv('0x97FF36A1D40EA00A', this.entity.handle, animDictionary, animationName, f(p3));
293
+ }
294
+ /**
295
+ * @param p1
296
+ * @param p2
297
+ * @param p3
298
+ */
299
+ turnToFaceClosestPed(p1, p2, p3) {
300
+ inv('0x84179419DBDD36F2', this.entity.handle, f(p1), f(p2), p3);
301
+ }
302
+ /**
303
+ * Fishing Research: https://pastebin.com/NmK5ZLVs
304
+ * Only used in R* Scripts fishing_core and av_fishing_river
305
+ *
306
+ * @returns p1
307
+ */
308
+ get TaskFishing() {
309
+ const result = inv('0xF3735ACD11ACD500', this.entity.handle, pvi());
310
+ return [result[0], result[1]];
311
+ }
312
+ /**
313
+ * @param p1
314
+ * @param p2
315
+ */
316
+ shockingEventReact(p1, p2) {
317
+ inv('0x452419CBD838065B', this.entity.handle, p1, p2);
318
+ }
319
+ /**
320
+ * @returns
321
+ */
322
+ N_0xB520DBDA7FCF573F() {
323
+ return !!inv('0xB520DBDA7FCF573F', this.entity.handle, rai());
324
+ }
96
325
  /**
97
326
  * @param neverUseInteriors
98
327
  */
99
- setPedPathNeverUseInteriors(neverUseInteriors) {
328
+ set PedPathNeverUseInteriors(neverUseInteriors) {
100
329
  inv('0x42CFD8FD8CC8DC69', this.entity.handle, neverUseInteriors);
101
330
  }
102
331
  /**
@@ -149,106 +378,136 @@ export class PedTask extends BaseTask {
149
378
  inv('0x1A52076D26E09004', this.entity.handle, entity.handle);
150
379
  }
151
380
  /**
152
- * @param p1
381
+ * @returns
153
382
  */
154
- N_0xFFB520A3E16F7B7B(p1) {
155
- inv('0xFFB520A3E16F7B7B', this.entity.handle, f(p1));
383
+ get PedWaypointOverrideSpeed() {
384
+ return inv('0xD39A2F3E7FCAFF08', this.entity.handle, raf());
156
385
  }
157
- persistentCharacter() {
158
- inv('0x4391700CBD89C3D8', this.entity.handle);
386
+ /**
387
+ * Climbs or vaults the nearest thing.
388
+ *
389
+ * @param unused
390
+ */
391
+ climb(unused) {
392
+ inv('0x89D9FCC2435112F1', this.entity.handle, unused);
159
393
  }
160
394
  /**
161
- * @param speed
162
- * @param p2
163
- * @param p3
164
- * @param p4
395
+ * Old name: _TASK_VEHICLE_DRIVE_TO_POINT
396
+ * flag: 524419 and 0 in shop_horse_shop R* Script
397
+ *
398
+ * @param vehicle
399
+ * @param pos
400
+ * @param p5
401
+ * @param p6
402
+ * @param flag
165
403
  */
166
- waypointPlaybackOverrideSpeed(speed, p2, p3, p4) {
167
- inv('0x7D7D2B47FA788E85', this.entity.handle, f(speed), p2, p3, p4);
404
+ vehicleDriveStraightToPoint(vehicle, pos, p5, p6, flag) {
405
+ inv('0x089FF2FB965F0A29', this.entity.handle, vehicle.handle, f(pos.x), f(pos.y), f(pos.z), f(p5), f(p6), flag);
168
406
  }
169
407
  /**
170
408
  * @param p1
171
409
  * @param p2
172
410
  * @param p3
173
- */
174
- climbLadder(p1, p2, p3) {
175
- inv('0xB6C987F9285A3814', this.entity.handle, f(p1), p2, p3);
176
- }
177
- /**
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
411
+ * @param p4
412
+ * @param p5
413
+ * @param p6
414
+ * @param p7
415
+ * @param p8
416
+ * @param p9
417
+ * @param p10
418
+ * @param p11
419
+ * @param p12
420
+ * @param p13
421
+ * @param p14
422
+ * @param p15
423
+ */
424
+ goToCoordWhileAimingAtCoordUsingCombatStyle(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15) {
425
+ inv('0x639C0425A0B4E77E', this.entity.handle, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15);
426
+ }
427
+ /**
428
+ * flags: 0 = HANDS_UP_NOTHING; 1 = HANDS_UP_STRAIGHT_TO_LOOP
182
429
  *
183
- * @param fleeFromTarget
184
- * @param fleeDistance
185
- * @param fleeTime
186
- * @param fleeType Refer to [enum: eFleeStyle]
187
- * @param fleeSpeed
188
- * @param targetPed
430
+ * @param duration
431
+ * @param facingPed
432
+ * @param timeToFacePed
433
+ * @param flags
189
434
  */
190
- smartFleePed(fleeFromTarget, fleeDistance, fleeTime, fleeType, fleeSpeed, targetPed) {
191
- inv('0x22B0D0E37CCB840D', this.entity.handle, fleeFromTarget.handle, f(fleeDistance), fleeTime, fleeType, f(fleeSpeed), targetPed.handle);
435
+ handsUp(duration, facingPed, timeToFacePed, flags) {
436
+ inv('0xF2EAB31979A7F910', this.entity.handle, duration, facingPed.handle, timeToFacePed, flags);
192
437
  }
193
438
  /**
194
- * @param pos
195
- * @param time
196
- * @param p5
439
+ * timer: in ms, if it reaches 0 it will auto warp the ped on the horse
440
+ * Flags will still apply to mountStyle
441
+ *
442
+ * @param mount
443
+ * @param timer
444
+ * @param seatIndex Refer to [enum: eVehicleSeat]
445
+ * @param pedSpeed
446
+ * @param mountStyle
197
447
  * @param p6
448
+ * @param p7
198
449
  */
199
- aimGunAtCoord(pos, time, p5, p6) {
200
- inv('0x6671F3EEC681BDA1', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), time, p5, p6);
450
+ mountAnimal(mount, timer, seatIndex, pedSpeed, mountStyle, p6, p7) {
451
+ inv('0x92DB0739813C5186', this.entity.handle, mount.handle, timer, seatIndex, f(pedSpeed), mountStyle, p6, p7);
201
452
  }
202
453
  /**
203
- * @param targetPed
454
+ * @returns
204
455
  */
205
- cutFreeHogtiedTargetPed(targetPed) {
206
- inv('0x81D16C4FF3A77ADF', this.entity.handle, targetPed.handle);
456
+ get PedIsIgnoringDeadBodies() {
457
+ return inv('0x1948BBE561A2375A', this.entity.handle);
207
458
  }
208
459
  /**
209
- * @param signalName
210
- * @param value
460
+ * @param p1
461
+ * @param p2
462
+ * @param p3
463
+ * @param p4
211
464
  */
212
- setTaskMoveNetworkSignalFloat2(signalName, value) {
213
- inv('0x099D4A855D53B03B', this.entity.handle, signalName, f(value));
465
+ setSphereDefensiveArea(p1, p2, p3, p4) {
466
+ inv('0x933C06518B52A9A4', this.entity.handle, f(p1), f(p2), f(p3), f(p4));
214
467
  }
215
468
  /**
216
469
  * @param p1
217
470
  * @param p2
471
+ * @param p3
472
+ * @param p4
218
473
  */
219
- ambientAnimalHunt(p1, p2) {
220
- inv('0x4B39D8F9D0FE7749', this.entity.handle, p1, p2);
474
+ useRandomScenarioInGroup(p1, p2, p3, p4) {
475
+ inv('0x14747F4A5971DE4E', this.entity.handle, p1, p2, p3, p4);
221
476
  }
222
477
  /**
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
478
+ * enum eWhistleType
479
+ * {
480
+ * WHISTLE_MAIN,
481
+ * WHISTLE_SECONDARY,
482
+ * WHISTLE_DOUBLE,
483
+ * WHISTLE_URGENT,
484
+ * WHISTLE_LONG
485
+ * };
486
+ *
487
+ * @param p1
488
+ * @param whistleType
237
489
  */
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));
490
+ goToWhistle(p1, whistleType) {
491
+ inv('0xBAD6545608CECA6E', this.entity.handle, p1.handle, whistleType);
492
+ }
493
+ /**
494
+ * @param pos
495
+ * @param duration
496
+ * @param flags
497
+ * @param p6
498
+ * @param p7
499
+ */
500
+ lookAtCoord(pos, duration, flags, p6, p7) {
501
+ inv('0x6FA46612594F7973', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), duration, flags, p6, p7);
240
502
  }
241
503
  /**
242
- * @param itemHash
243
- * @param interactionAnimHash
244
- * @param p3
245
504
  * @returns
246
505
  */
247
- canStartItemInteraction(itemHash, interactionAnimHash, p3) {
248
- return inv('0x2D19BC4DF626CBE7', this.entity.handle, _h(itemHash), _h(interactionAnimHash), p3);
506
+ get IsPedInHitReact() {
507
+ return !!inv('0xF330A5C062B29BED', this.entity.handle, rai());
249
508
  }
250
509
  /**
251
- * @param targetPed
510
+ * @param p1
252
511
  * @param p2
253
512
  * @param p3
254
513
  * @param p4
@@ -256,325 +515,453 @@ export class PedTask extends BaseTask {
256
515
  * @param p6
257
516
  * @param p7
258
517
  * @param p8
259
- * @param p9
260
- * @param p10
261
518
  */
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));
519
+ N_0x3FFCD7BBA074CC80(p1, p2, p3, p4, p5, p6, p7, p8) {
520
+ inv('0x3FFCD7BBA074CC80', this.entity.handle, p1, p2, p3, p4, p5, p6, p7, p8);
521
+ }
522
+ /**
523
+ * @returns
524
+ */
525
+ get IsMountedWeaponTaskUnderneathDrivingTask() {
526
+ return !!inv('0xA320EF046186FA3B', this.entity.handle, rai());
264
527
  }
265
528
  /**
529
+ * flags: See TASK_ENTER_VEHICLE
530
+ *
531
+ * @param p1
532
+ * @param flags Refer to [enum: eEnterExitVehicleFlags]
533
+ */
534
+ disembarkNearestTrainCarriage(p1, flags) {
535
+ inv('0x0A11F3BDEC03ED5F', this.entity.handle, f(p1), flags);
536
+ }
537
+ /**
538
+ * fleeType: see TASK_FLEE_COORD
539
+ *
540
+ * @param fleeFromTarget
266
541
  * @param pos
267
542
  * @param distance
268
- * @param p5
269
543
  * @param p6
270
544
  * @param p7
271
545
  * @param p8
546
+ * @param targetPed
272
547
  */
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);
548
+ fleeFromPed(fleeFromTarget, pos, distance, p6, p7, p8, targetPed) {
549
+ inv('0x7B74D8EEDE9B5727', this.entity.handle, fleeFromTarget.handle, f(pos.x), f(pos.y), f(pos.z), f(distance), p6, p7, f(p8), targetPed.handle);
275
550
  }
276
551
  /**
277
- * @param eventName
278
552
  * @returns
279
553
  */
280
- getTaskMoveNetworkEvent(eventName) {
281
- return inv('0xB4F47213DF45A64C', this.entity.handle, eventName, rai());
554
+ get IsPedGettingUp() {
555
+ return !!inv('0x2A74E1D5F2F00EEC', this.entity.handle, rai());
282
556
  }
283
557
  /**
284
- * Baits: see 0x9B0C7FA063E67629
285
- *
286
- * @param bait
287
- * @param withoutBuoy
558
+ * @param time
288
559
  */
289
- swapFishingBait(bait, withoutBuoy) {
290
- inv('0x2C28AC30A72722DA', this.entity.handle, bait, withoutBuoy);
560
+ duck(time) {
561
+ inv('0xA14B5FBF986BAC23', this.entity.handle, time);
291
562
  }
292
563
  /**
293
- * @returns
564
+ * @param p1
565
+ * @param p2
566
+ * @param p3
567
+ * @param p4
294
568
  */
295
- isDrivebyTaskUnderneathDrivingTask() {
296
- return inv('0x8785E6E40C7A8818', this.entity.handle, rai());
297
- }
298
- cuffPed() {
299
- inv('0x7981037A96E7D174', this.entity.handle);
569
+ robPed(p1, p2, p3, p4) {
570
+ inv('0x7BB967F85D8CCBDB', this.entity.handle, p1, p2, p3, p4);
300
571
  }
301
572
  /**
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)
573
+ * getupSetHash: see nm_blend_out_sets.meta
305
574
  *
306
- * @param cruiseSpeed
307
- * @param entity
575
+ * @param flags
576
+ * @param getupSetHash
577
+ * @param p3
308
578
  * @param p4
309
579
  * @param p5
310
- * @param p6
311
- * @param p7
312
- * @param p8
313
- * @param p9
314
- * @param p10
315
- * @param p11
316
- * @param cruiseSpeed2
317
- * @param p13
318
- * @param p14
319
- * @returns gotoCoords
320
580
  */
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);
581
+ unhogtiePed(flags, getupSetHash, p3, p4, p5) {
582
+ inv('0x79559BAD83CCD038', this.entity.handle, flags, _h(getupSetHash), p3, p4, f(p5));
324
583
  }
325
584
  /**
326
- * @returns
585
+ * hecks if the ped camera is directed at the given coord within the specified radius. https://www.youtube.com/watch?v=iLHXrWVvq_c
586
+ *
587
+ * @param coord The coord to check if they're looking at
588
+ * @param radius The radius of the frustum
589
+ * @returns Returns `true` if the ped camera is within the range of the frustum, `false` otherwise
327
590
  */
328
- isTaskMoveNetworkReadyForTransition() {
329
- return inv('0x30ED88D5E0C56A37', this.entity.handle, rai());
330
- }
331
- clearDefensiveArea() {
332
- inv('0x95A6C46A31D1917D', this.entity.handle);
591
+ isPedLookingAtCoord(coord, radius) {
592
+ return !!inv('0x508F5053E3F6F0C4', this.entity.handle, f(coord.x), f(coord.y), f(coord.z), f(radius), rai());
333
593
  }
334
594
  /**
335
- * @param modifier
595
+ * @param entity
336
596
  */
337
- setPedPathDeepSnowCostModifier(modifier) {
338
- inv('0xE8C296B75EACC357', this.entity.handle, f(modifier));
597
+ walkAway(entity) {
598
+ inv('0x04ACFAC71E6858F9', this.entity.handle, entity.handle);
339
599
  }
340
600
  /**
341
601
  * @returns
342
602
  */
343
- getItemInteractionItemId() {
344
- return (inv('0x804425C4BBD00883', this.entity.handle, rai())) & 0xFFFFFFFF;
345
- }
346
- /**
347
- * @param entity
348
- * @param mount
349
- * @param p3
350
- */
351
- placeCarriedEntityOnMount(entity, mount, p3) {
352
- inv('0x6D3D87C57B3D52C7', this.entity.handle, entity.handle, mount.handle, f(p3));
603
+ get HogtieEscapeTimer() {
604
+ return inv('0x4687E69D258BBE41', this.entity.handle, raf());
353
605
  }
354
- detachCarriablePed() {
355
- inv('0x36D188AECB26094B', this.entity.handle);
606
+ weapon() {
607
+ inv('0x7157B82D60E4BC46', this.entity.handle);
356
608
  }
357
609
  /**
358
610
  * @returns
359
611
  */
360
- getItemInteractionState() {
361
- return (inv('0x6AA3DCA2C6F5EB6D', this.entity.handle, rai())) & 0xFFFFFFFF;
612
+ get IsPedWalking() {
613
+ return !!inv('0xDE4C184B2B9B071A', this.entity.handle, rai());
362
614
  }
363
615
  /**
364
- * @returns
616
+ * @param p1
365
617
  */
366
- getIsPedAimingInTheAir() {
367
- return inv('0x8785E6E40C7A8819', this.entity.handle);
618
+ N_0xFFB520A3E16F7B7B(p1) {
619
+ inv('0xFFB520A3E16F7B7B', this.entity.handle, f(p1));
620
+ }
621
+ persistentCharacter() {
622
+ inv('0x4391700CBD89C3D8', this.entity.handle);
368
623
  }
369
624
  /**
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
625
+ * @param speed
626
+ * @param p2
376
627
  * @param p3
377
628
  * @param p4
378
- * @param p5
379
629
  */
380
- lookAtEntity(lookAtTarget, duration, p3, p4, p5) {
381
- inv('0x69F4BE8C8CC4796C', this.entity.handle, lookAtTarget.handle, duration, p3, p4, p5);
630
+ waypointPlaybackOverrideSpeed(speed, p2, p3, p4) {
631
+ inv('0x7D7D2B47FA788E85', this.entity.handle, f(speed), p2, p3, p4);
382
632
  }
383
633
  /**
384
- * @param taskIndex
385
- * @returns
634
+ * @param p1
635
+ * @param p2
636
+ * @param p3
386
637
  */
387
- getIsTaskActive(taskIndex) {
388
- return inv('0xB0760331C7AA4155', this.entity.handle, taskIndex, rai());
638
+ climbLadder(p1, p2, p3) {
639
+ inv('0xB6C987F9285A3814', this.entity.handle, f(p1), p2, p3);
389
640
  }
390
641
  /**
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
642
+ * Makes a ped run away from another ped (fleeFromTarget) fleeDistance = ped will flee this distance
643
+ * fleeTime = ped will flee for this amount of time, set to "-1" to flee forever
644
+ * 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
645
+ * fleeSpeed = mostly 3f, rarely 1f in R* Scripts
392
646
  *
393
- * @param grappleTarget
394
- * @param grappleStyle
395
- * @param p3
396
- * @param p4
647
+ * @param fleeFromTarget
648
+ * @param fleeDistance
649
+ * @param fleeTime
650
+ * @param fleeType Refer to [enum: eFleeStyle]
651
+ * @param fleeSpeed
652
+ * @param targetPed
653
+ */
654
+ smartFleePed(fleeFromTarget, fleeDistance, fleeTime, fleeType, fleeSpeed, targetPed) {
655
+ inv('0x22B0D0E37CCB840D', this.entity.handle, fleeFromTarget.handle, f(fleeDistance), fleeTime, fleeType, f(fleeSpeed), targetPed.handle);
656
+ }
657
+ /**
658
+ * @param pos
659
+ * @param time
397
660
  * @param p5
398
661
  * @param p6
399
662
  */
400
- putPedDirectlyIntoGrapple(grappleTarget, grappleStyle, p3, p4, p5, p6) {
401
- inv('0xA05F3F20889D7A5B', this.entity.handle, grappleTarget.handle, _h(grappleStyle), f(p3), f(p4), p5, p6);
663
+ aimGunAtCoord(pos, time, p5, p6) {
664
+ inv('0x6671F3EEC681BDA1', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), time, p5, p6);
665
+ }
666
+ /**
667
+ * @param targetPed
668
+ */
669
+ cutFreeHogtiedTargetPed(targetPed) {
670
+ inv('0x81D16C4FF3A77ADF', this.entity.handle, targetPed.handle);
671
+ }
672
+ /**
673
+ * @param signalName
674
+ * @param value
675
+ */
676
+ setTaskMoveNetworkSignalFloat2(signalName, value) {
677
+ inv('0x099D4A855D53B03B', this.entity.handle, signalName, f(value));
402
678
  }
403
679
  /**
404
680
  * @param p1
405
681
  * @param p2
406
682
  */
407
- combatAnimalWarn(p1, p2) {
408
- inv('0xF960F3D57B660E96', this.entity.handle, p1, p2);
683
+ ambientAnimalHunt(p1, p2) {
684
+ inv('0x4B39D8F9D0FE7749', this.entity.handle, p1, p2);
409
685
  }
410
686
  /**
411
- * @param toggle
687
+ * @param p1
688
+ * @param taskFlag Refer to [enum: eEnterExitVehicleFlags]
412
689
  */
413
- setPedIgnoreDeadBodies(toggle) {
414
- inv('0x013A7BA5015C1372', this.entity.handle, toggle);
690
+ leaveAnyVehicle(p1, taskFlag) {
691
+ inv('0x504D54DF3F6F2247', this.entity.handle, p1, taskFlag);
415
692
  }
416
693
  /**
417
- * @param p1
694
+ * @param targetPed
418
695
  * @param p2
419
696
  * @param p3
697
+ */
698
+ combatPed(targetPed, p2, p3) {
699
+ inv('0xF166E48407BAC484', this.entity.handle, targetPed.handle, p2, p3);
700
+ }
701
+ /**
702
+ * Params: p4 = -1.0f, p5 = -1, p6 = 0 in R* Scripts
703
+ *
704
+ * @param fleeFromTarget
705
+ * @param fleeStyle Refer to [enum: eFleeStyle]
706
+ * @param flag
420
707
  * @param p4
421
708
  * @param p5
422
709
  * @param p6
423
- * @param p7
424
710
  */
425
- moveInTrafficToDestination(p1, p2, p3, p4, p5, p6, p7) {
426
- inv('0xDCA3A13F7A45338B', this.entity.handle, p1, p2, p3, p4, p5, p6, p7);
711
+ fleePed(fleeFromTarget, fleeStyle, flag, p4, p5, p6) {
712
+ inv('0xFD45175A6DFD7CE9', this.entity.handle, fleeFromTarget.handle, fleeStyle, flag, f(p4), p5, p6);
427
713
  }
428
714
  /**
429
- * @param attacker
430
- * @param p2
431
- * @returns Returns `true` on success, or `false` if `attacker` doesn't exist, or is dead.
715
+ * @returns
432
716
  */
433
- intimidated(attacker, p2) {
434
- return inv('0x648B75D44930D6BD', this.entity.handle, attacker.handle, p2, rai());
717
+ get IsPedLeadingHorse() {
718
+ return inv('0xEFC4303DDC6E60D3', this.entity.handle);
435
719
  }
436
720
  /**
437
- * @returns
721
+ * @param entity
722
+ * @param offset
723
+ * @param movementSpeed
724
+ * @param timeout
725
+ * @param stoppingRange
726
+ * @param persistFollowing
727
+ * @param p9
728
+ * @param walkOnly
729
+ * @param p11
730
+ * @param p12
731
+ * @param p13
438
732
  */
439
- waypointPlaybackGetIsShooting() {
440
- return inv('0xA5B94DF8AF058F46', this.entity.handle);
733
+ followToOffsetOfEntity(entity, offset, movementSpeed, timeout, stoppingRange, persistFollowing, p9, walkOnly, p11, p12, p13) {
734
+ 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);
441
735
  }
442
736
  /**
443
- * @param pos
444
- * @param distance
445
- * @param p5
446
- * @param p6
447
- * @param p7
448
- * @param p8
737
+ * 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
738
+ *
739
+ * @param targetEntity
740
+ * @param duration
741
+ * @param p3
742
+ * @param p4
449
743
  */
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);
744
+ aimGunAtEntity(targetEntity, duration, p3, p4) {
745
+ inv('0x9B53BB6E8943AF53', this.entity.handle, targetEntity.handle, duration, p3, p4);
452
746
  }
453
747
  /**
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.
748
+ * `_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
749
+ * SEARCH-related scenes (needs more research).
457
750
  *
458
- * @returns
751
+ * @returns Returns the AnimScene handle currently associated with the given Ped, but only when the anim event "SEARCHSTART" has fired on that Ped.
459
752
  */
460
- getSequenceProgress() {
461
- return inv('0x00A9010CFE1E3533', this.entity.handle, rai());
753
+ N_0x2C497BDEF897C6DF() {
754
+ return createFromHandle('AnimScene', inv('0x2C497BDEF897C6DF', this.entity.handle, rai()));
462
755
  }
463
756
  /**
757
+ * @param p1
464
758
  * @returns
465
759
  */
466
- waypointPlaybackGetIsAiming() {
467
- return inv('0xD73A5D1F0325C71C', this.entity.handle);
760
+ police(p1) {
761
+ return inv('0x87BE56724650408E', this.entity.handle, p1);
468
762
  }
469
763
  /**
470
- * @param toggle
764
+ * @param scenarioPoint
765
+ * @param flag
471
766
  */
472
- setPedPathCanUseLadders(toggle) {
473
- inv('0x77A5B103C87F476E', this.entity.handle, toggle);
767
+ hitchAnimal(scenarioPoint, flag) {
768
+ inv('0x9030AD4B6207BFE8', this.entity.handle, scenarioPoint, flag);
769
+ }
770
+ uncuffPed() {
771
+ inv('0x67406F2C8F87FC4F', this.entity.handle);
474
772
  }
475
773
  /**
476
774
  * @param p1
477
775
  * @param p2
776
+ * @param p3
478
777
  */
479
- stopAnimPlayback(p1, p2) {
480
- inv('0xEE08C992D238C5D1', this.entity.handle, p1, p2);
778
+ waypointPlaybackPause(p1, p2, p3) {
779
+ inv('0x0F342546AA06FED5', this.entity.handle, p1, p2, p3);
481
780
  }
482
781
  /**
483
- * @param targetPed
782
+ * meleeStyles: AR_GRAPPLE_BACK_FROM_BACK, AR_GRAPPLE_MOUNT_FACEDOWN_FROM_FRONT, AR_ALLIGATOR_LEAPKILL, AR_ALLIGATOR_WAIST_AUTOKILL_FRONT
783
+ *
784
+ * @param meleeTarget
785
+ * @param meleeStyle
786
+ * @param p3
787
+ * @param animBlendRatio
788
+ * @param p5
789
+ * @param p6
790
+ */
791
+ putPedDirectlyIntoMelee(meleeTarget, meleeStyle, p3, animBlendRatio, p5, p6) {
792
+ inv('0x1C6CD14A876FFE39', this.entity.handle, meleeTarget.handle, _h(meleeStyle), f(p3), f(animBlendRatio), p5, p6);
793
+ }
794
+ /**
795
+ * @param waypointRecording
484
796
  * @param p2
485
- * @returns
797
+ * @param flag
798
+ * @param p4
799
+ * @param p5
800
+ * @param p6
801
+ * @param p7
486
802
  */
487
- confront(targetPed, p2) {
488
- return inv('0x3A2A2071DF5CC569', this.entity.handle, targetPed.handle, p2);
803
+ followWaypointRecording(waypointRecording, p2, flag, p4, p5, p6, p7) {
804
+ inv('0x0759591819534F7B', this.entity.handle, waypointRecording, p2, flag, p4, p5, p6, p7);
489
805
  }
490
- N_0x1F298C7BD30D1240() {
491
- inv('0x1F298C7BD30D1240', this.entity.handle);
806
+ /**
807
+ * @param targetPed
808
+ */
809
+ hogtieTargetPed(targetPed) {
810
+ inv('0x27829AFD3E03AC1A', this.entity.handle, targetPed.handle);
492
811
  }
493
812
  /**
813
+ * shootatEntity:
814
+ * If true, peds will shoot at Entity till it is dead.
815
+ * If false, peds will just walk till they reach the entity and will cease shooting.
816
+ *
494
817
  * @param p1
495
818
  * @param p2
496
819
  * @param p3
820
+ * @param p4
821
+ * @param p5
822
+ * @param p6
823
+ * @param p7
824
+ * @param p8
825
+ * @param p9
826
+ * @param p10
497
827
  */
498
- setCrouchMovement(p1, p2, p3) {
499
- inv('0x17293C633C8AC019', this.entity.handle, p1, p2, p3);
828
+ goToEntityWhileAimingAtEntity(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10) {
829
+ inv('0x97465886D35210E9', this.entity.handle, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
500
830
  }
501
831
  /**
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
832
+ * @param pos
833
+ * @param distance
834
+ */
835
+ useNearestTrainScenarioToCoordWarp(pos, distance) {
836
+ inv('0x3774B03456DD6106', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(distance));
837
+ }
838
+ /**
839
+ * @param p1
840
+ */
841
+ wanderSwim(p1) {
842
+ inv('0x527EA3DB8BC7F03B', this.entity.handle, p1);
843
+ }
844
+ /**
845
+ * duration in milliseconds
503
846
  *
847
+ * @param pos
848
+ * @param duration
849
+ */
850
+ turnPedToFaceCoord(pos, duration) {
851
+ inv('0x1DDA930A0AC38571', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), duration);
852
+ }
853
+ /**
854
+ * @param preferAvoidMud
855
+ * @param p2
856
+ */
857
+ setPedPathPreferToAvoidMud(preferAvoidMud, p2) {
858
+ inv('0x8BB283A7888AD1AD', this.entity.handle, preferAvoidMud, f(p2));
859
+ }
860
+ /**
861
+ * @param animDict
862
+ * @param animName
504
863
  * @param entity
505
- * @param offset
506
- * @param moveBlendRatio
507
- * @param timeBeforeTeleport
864
+ * @param p4
865
+ * @param p5
866
+ * @param p6
508
867
  * @param p7
868
+ * @param p8
869
+ * @param p9
870
+ * @param p10
871
+ * @param p11
872
+ * @param p12
873
+ * @param p13
874
+ * @param p14
509
875
  */
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);
876
+ playUpperAnimFacingEntity(animDict, animName, entity, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14) {
877
+ 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));
512
878
  }
513
879
  /**
514
- * Sets the time it takes for a hogtied ped to escape
515
- * -1.0f for ped to never escape
516
- *
517
- * @param time
880
+ * @param goToLocationX
881
+ * @param goToLocationY
882
+ * @param goToLocationZ
883
+ * @param focusLocationX
884
+ * @param focusLocationY
885
+ * @param focusLocationZ
886
+ * @param speed
887
+ * @param shootAtEnemies
888
+ * @param distanceToStopAt
889
+ * @param noRoadsDistance
890
+ * @param unkTrue
891
+ * @param unkFlag
892
+ * @param aimingFlag
893
+ * @param firingPattern
518
894
  */
519
- setHogtieEscapeTimer(time) {
520
- inv('0xAB591AE6B48B913E', this.entity.handle, f(time));
895
+ goToCoordAndAimAtHatedEntitiesNearCoord(goToLocationX, goToLocationY, goToLocationZ, focusLocationX, focusLocationY, focusLocationZ, speed, shootAtEnemies, distanceToStopAt, noRoadsDistance, unkTrue, unkFlag, aimingFlag, firingPattern) {
896
+ 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));
521
897
  }
522
898
  /**
523
- * Makes the ped run to take cover
899
+ * @param itemHash
900
+ * @param interactionAnimHash
901
+ * @param p3
902
+ * @returns
524
903
  */
525
- stayInCover() {
526
- inv('0xE5DA8615A6180789', this.entity.handle);
904
+ canStartItemInteraction(itemHash, interactionAnimHash, p3) {
905
+ return inv('0x2D19BC4DF626CBE7', this.entity.handle, _h(itemHash), _h(interactionAnimHash), p3);
527
906
  }
528
907
  /**
529
- * @param p1
908
+ * @param targetPed
909
+ * @param p2
910
+ * @param p3
911
+ * @param p4
912
+ * @param p5
913
+ * @param p6
914
+ * @param p7
915
+ * @param p8
916
+ * @param p9
917
+ * @param p10
530
918
  */
531
- followWaypointRecordingAdvanced(p1) {
532
- inv('0x0CFC13EBC19BCA52', this.entity.handle, p1);
919
+ followAndConverseWithPed(targetPed, p2, p3, p4, p5, p6, p7, p8, p9, p10) {
920
+ inv('0x489FFCCCE7392B55', this.entity.handle, targetPed.handle, p2, p3, f(p4), f(p5), p6, p7, p8, f(p9), f(p10));
533
921
  }
534
922
  /**
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
923
  * @param pos
538
- * @param moveBlendRatio
539
- * @param timeBeforeTeleport
540
- * @param finalHeading
541
- * @param targetRadius
924
+ * @param distance
925
+ * @param p5
926
+ * @param p6
927
+ * @param p7
542
928
  * @param p8
543
929
  */
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);
930
+ useNearestScenarioChainToCoord(pos, distance, p5, p6, p7, p8) {
931
+ inv('0x9FDA1B3D7E7028B3', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(distance), p5, p6, p7, p8);
546
932
  }
547
933
  /**
934
+ * @param eventName
548
935
  * @returns
549
936
  */
550
- getPedWaypointOverrideSpeed() {
551
- return inv('0xD39A2F3E7FCAFF08', this.entity.handle, raf());
937
+ getTaskMoveNetworkEvent(eventName) {
938
+ return !!inv('0xB4F47213DF45A64C', this.entity.handle, eventName, rai());
552
939
  }
553
940
  /**
554
- * Climbs or vaults the nearest thing.
941
+ * Baits: see 0x9B0C7FA063E67629
555
942
  *
556
- * @param unused
943
+ * @param bait
944
+ * @param withoutBuoy
557
945
  */
558
- climb(unused) {
559
- inv('0x89D9FCC2435112F1', this.entity.handle, unused);
946
+ swapFishingBait(bait, withoutBuoy) {
947
+ inv('0x2C28AC30A72722DA', this.entity.handle, bait, withoutBuoy);
560
948
  }
561
949
  /**
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
567
- * @param p5
568
- * @param p6
569
- * @param flag
950
+ * @returns
570
951
  */
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);
952
+ get IsDrivebyTaskUnderneathDrivingTask() {
953
+ return !!inv('0x8785E6E40C7A8818', this.entity.handle, rai());
954
+ }
955
+ cuffPed() {
956
+ inv('0x7981037A96E7D174', this.entity.handle);
573
957
  }
574
958
  /**
575
- * @param p1
576
- * @param p2
577
- * @param p3
959
+ * This native allows to control the cruise speed of where you want the ped to go
960
+ * 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?
961
+ * EXAMPLE: TaskGoToCoordAnyMeansExtraParamsWithCruiseSpeed(PlayerPedId(), vector3(x, y, z), 3.0, entity, 1, 0, -1082130432, 0, 101004800, 520, 3.0, 1082130432, 0)
962
+ *
963
+ * @param cruiseSpeed
964
+ * @param entity
578
965
  * @param p4
579
966
  * @param p5
580
967
  * @param p6
@@ -583,196 +970,253 @@ export class PedTask extends BaseTask {
583
970
  * @param p9
584
971
  * @param p10
585
972
  * @param p11
586
- * @param p12
973
+ * @param cruiseSpeed2
587
974
  * @param p13
588
975
  * @param p14
589
- * @param p15
976
+ * @returns gotoCoords
590
977
  */
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);
978
+ goToCoordAnyMeansExtraParamsWithCruiseSpeed(cruiseSpeed, entity, p4, p5, p6, p7, p8, p9, p10, p11, cruiseSpeed2, p13, p14) {
979
+ const result = inv('0xB8ECD61F531A7B02', this.entity.handle, pvv(), f(cruiseSpeed), entity.handle, p4, p5, p6, p7, p8, p9, p10, p11, f(cruiseSpeed2), p13, p14);
980
+ return Vector3.fromArray(result);
593
981
  }
594
982
  /**
595
- * flags: 0 = HANDS_UP_NOTHING; 1 = HANDS_UP_STRAIGHT_TO_LOOP
596
- *
597
- * @param duration
598
- * @param facingPed
599
- * @param timeToFacePed
600
- * @param flags
983
+ * @param radius
601
984
  */
602
- handsUp(duration, facingPed, timeToFacePed, flags) {
603
- inv('0xF2EAB31979A7F910', this.entity.handle, duration, facingPed.handle, timeToFacePed, flags);
985
+ combatHatedTargetsNoLosTest(radius) {
986
+ inv('0xB5BC69D9C4060BC3', this.entity.handle, f(radius));
604
987
  }
605
988
  /**
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
614
- * @param p6
615
- * @param p7
989
+ * @param p1
616
990
  */
617
- mountAnimal(mount, timer, seatIndex, pedSpeed, mountStyle, p6, p7) {
618
- inv('0x92DB0739813C5186', this.entity.handle, mount.handle, timer, seatIndex, f(pedSpeed), mountStyle, p6, p7);
991
+ N_0x31BB338F64D5C861(p1) {
992
+ inv('0x31BB338F64D5C861', this.entity.handle, p1);
619
993
  }
620
994
  /**
621
- * @returns
995
+ * @param modifier
622
996
  */
623
- getPedIsIgnoringDeadBodies() {
624
- return inv('0x1948BBE561A2375A', this.entity.handle);
997
+ set PedPathClimbCostModifier(modifier) {
998
+ inv('0x88E32DB8C1A4AA4B', this.entity.handle, f(modifier));
625
999
  }
626
1000
  /**
627
- * @param p1
628
- * @param taskFlag Refer to [enum: eEnterExitVehicleFlags]
1001
+ * @param entity
1002
+ * @param duration
1003
+ * @param targetRadius
1004
+ * @param offset
1005
+ * @param moveBlendRatio
1006
+ * @param offsetFlags
629
1007
  */
630
- leaveAnyVehicle(p1, taskFlag) {
631
- inv('0x504D54DF3F6F2247', this.entity.handle, p1, taskFlag);
1008
+ gotoEntityOffsetXy(entity, duration, targetRadius, offset, moveBlendRatio, offsetFlags) {
1009
+ inv('0x338E7EF52B6095A9', this.entity.handle, entity.handle, duration, f(targetRadius), f(offset.x), f(offset.y), f(moveBlendRatio), offsetFlags);
632
1010
  }
633
1011
  /**
634
- * @param targetPed
1012
+ * 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
1013
+ *
635
1014
  * @param p2
636
1015
  * @param p3
637
1016
  */
638
- combatPed(targetPed, p2, p3) {
639
- inv('0xF166E48407BAC484', this.entity.handle, targetPed.handle, p2, p3);
1017
+ wanderStandard(p2, p3) {
1018
+ inv('0xBB9CE077274F6A1B', this.entity.handle, f(p2), p3);
640
1019
  }
641
1020
  /**
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
1021
+ * @param p1
1022
+ * @param p2
1023
+ */
1024
+ clearPedTasks(p1, p2) {
1025
+ inv('0xE1EF3C1216AFF2CD', this.entity.handle, p1, p2);
1026
+ }
1027
+ /**
1028
+ * @param moveNetworkDefName
1029
+ * @param p3
1030
+ * @param p4
1031
+ * @param animDict
1032
+ * @param flags
1033
+ * @returns taskData
1034
+ */
1035
+ moveNetworkByNameWithInitParams(moveNetworkDefName, p3, p4, animDict, flags) {
1036
+ const result = inv('0x139805C2A67C4795', this.entity.handle, moveNetworkDefName, pvi(), f(p3), p4, animDict, flags);
1037
+ return result;
1038
+ }
1039
+ /**
1040
+ * @param pos
1041
+ * @param entity
1042
+ */
1043
+ jump2(pos, entity) {
1044
+ inv('0x91083103137D7254', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), entity.handle);
1045
+ }
1046
+ /**
1047
+ * @param scenario
1048
+ * @param conditionalAnim
1049
+ * @param p3
647
1050
  * @param p4
648
1051
  * @param p5
649
1052
  * @param p6
1053
+ * @param p7
1054
+ * @param p8
1055
+ * @param p9
650
1056
  */
651
- fleePed(fleeFromTarget, fleeStyle, flag, p4, p5, p6) {
652
- inv('0xFD45175A6DFD7CE9', this.entity.handle, fleeFromTarget.handle, fleeStyle, flag, f(p4), p5, p6);
1057
+ useScenarioPoint(scenario, conditionalAnim, p3, p4, p5, p6, p7, p8, p9) {
1058
+ inv('0xCCDAE6324B6A821C', this.entity.handle, scenario, conditionalAnim, p3, p4, p5, _h(p6), p7, f(p8), p9);
653
1059
  }
654
1060
  /**
655
1061
  * @returns
656
1062
  */
657
- isPedLeadingHorse() {
658
- return inv('0xEFC4303DDC6E60D3', this.entity.handle);
1063
+ get IsPedRunningTaskItemInteraction() {
1064
+ return !!inv('0xEC7E480FF8BD0BED', this.entity.handle, rai());
659
1065
  }
660
1066
  /**
661
- * @param entity
662
- * @param offset
663
- * @param movementSpeed
664
- * @param timeout
665
- * @param stoppingRange
666
- * @param persistFollowing
667
- * @param p9
668
- * @param walkOnly
669
- * @param p11
670
- * @param p12
671
- * @param p13
1067
+ * @param vehicle
672
1068
  */
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);
1069
+ breakVehicleDoorLock(vehicle) {
1070
+ inv('0xBB28D1BC9EA8A6A5', this.entity.handle, vehicle.handle);
675
1071
  }
676
1072
  /**
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
680
- * @param duration
681
- * @param p3
1073
+ * @param vehicle
1074
+ * @param vehicleTarget
1075
+ * @param missionType
682
1076
  * @param p4
1077
+ * @param p5
1078
+ * @param p6
1079
+ * @param p7
1080
+ * @param DriveAgainstTraffic
683
1081
  */
684
- aimGunAtEntity(targetEntity, duration, p3, p4) {
685
- inv('0x9B53BB6E8943AF53', this.entity.handle, targetEntity.handle, duration, p3, p4);
1082
+ vehicleMission(vehicle, vehicleTarget, missionType, p4, p5, p6, p7, DriveAgainstTraffic) {
1083
+ inv('0x659427E0EF36BCDE', this.entity.handle, vehicle.handle, vehicleTarget.handle, missionType, f(p4), p5, f(p6), f(p7), DriveAgainstTraffic);
686
1084
  }
687
1085
  /**
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).
690
- *
691
- * @returns Returns the AnimScene handle currently associated with the given Ped, but only when the anim event "SEARCHSTART" has fired on that Ped.
1086
+ * @param avoidTraffic
692
1087
  */
693
- N_0x2C497BDEF897C6DF() {
694
- return createFromHandle('AnimScene', inv('0x2C497BDEF897C6DF', this.entity.handle, rai()));
1088
+ set PedPathAvoidTraffic(avoidTraffic) {
1089
+ inv('0x7C015D8BCEC72CF4', this.entity.handle, avoidTraffic);
695
1090
  }
696
1091
  /**
697
1092
  * @param p1
698
- * @returns
1093
+ * @param p2
1094
+ */
1095
+ guard(p1, p2) {
1096
+ inv('0xB9FB242EACCAF30F', this.entity.handle, p1, p2);
1097
+ }
1098
+ /**
1099
+ * @param attacker
1100
+ * @param p2
1101
+ * @param unusedParam3 Unused by the native.
1102
+ * @param unusedParam4 Unused by the native.
1103
+ * @param everyFrame Removes the `0x1000` bitmask from `flag`
1104
+ * @param p6
1105
+ * @param p7 Removes the `0x80000` bitmask from `flag`
1106
+ * @param flag
1107
+ * @returns Returns `true` on success, `false` if it failed (whether due to `attacker` being invalid, or the `attacker` ped being dead)
1108
+ */
1109
+ intimidated2(attacker, p2, unusedParam3, unusedParam4, everyFrame, p6, p7, flag) {
1110
+ return !!inv('0x933ACC1A1771A288', this.entity.handle, attacker.handle, p2, unusedParam3, unusedParam4, everyFrame, p6, p7, flag, rai());
1111
+ }
1112
+ /**
1113
+ * @param avoidFire
1114
+ */
1115
+ set PedPathAvoidFire(avoidFire) {
1116
+ inv('0x4455517B28441E60', this.entity.handle, avoidFire);
1117
+ }
1118
+ /**
1119
+ * @param reviver
1120
+ * @param tool
1121
+ */
1122
+ reviveTarget(reviver, tool) {
1123
+ inv('0x356088527D9EBAAD', this.entity.handle, reviver.handle, _h(tool));
1124
+ }
1125
+ /**
1126
+ * https://github.com/femga/rdr3_discoveries/blob/master/animations/kit_emotes_list.lua
1127
+ * emote: https://alloc8or.re/rdr3/doc/enums/eEmote.txt enum eEmoteType
1128
+ * {
1129
+ * EMOTE_TYPE_INVALID = -1,
1130
+ * EMOTE_TYPE_REACT,
1131
+ * EMOTE_TYPE_ACTION,
1132
+ * EMOTE_TYPE_TAUNT,
1133
+ * EMOTE_TYPE_GREET,
1134
+ * EMOTE_TYPE_TWIRL_GUN,
1135
+ * EMOTE_TYPE_DANCE_FLOOR
1136
+ * }; enum eEmotePlaybackMode
1137
+ * {
1138
+ * EMOTE_PM_INVALID = -1,
1139
+ * EMOTE_PM_UPPERBODY,
1140
+ * EMOTE_PM_UPPERBODY_LOOP,
1141
+ * EMOTE_PM_FULLBODY,
1142
+ * };
1143
+ *
1144
+ * @param emoteType
1145
+ * @param playbackMode
1146
+ * @param emote
1147
+ * @param isSecondaryTask
1148
+ * @param canBreakOut
1149
+ * @param disableEarlyOutAnimTag
1150
+ * @param ignoreInvalidMainTask
1151
+ * @param destroyProps
699
1152
  */
700
- police(p1) {
701
- return inv('0x87BE56724650408E', this.entity.handle, p1);
1153
+ playEmoteWithHash(emoteType, playbackMode, emote, isSecondaryTask, canBreakOut, disableEarlyOutAnimTag, ignoreInvalidMainTask, destroyProps) {
1154
+ inv('0xB31A277C1AC7B7FF', this.entity.handle, emoteType, playbackMode, _h(emote), isSecondaryTask, canBreakOut, disableEarlyOutAnimTag, ignoreInvalidMainTask, destroyProps);
702
1155
  }
703
1156
  /**
704
- * @param scenarioPoint
705
- * @param flag
1157
+ * @returns
706
1158
  */
707
- hitchAnimal(scenarioPoint, flag) {
708
- inv('0x9030AD4B6207BFE8', this.entity.handle, scenarioPoint, flag);
1159
+ get IsTaskMoveNetworkReadyForTransition() {
1160
+ return !!inv('0x30ED88D5E0C56A37', this.entity.handle, rai());
709
1161
  }
710
- uncuffPed() {
711
- inv('0x67406F2C8F87FC4F', this.entity.handle);
1162
+ clearDefensiveArea() {
1163
+ inv('0x95A6C46A31D1917D', this.entity.handle);
712
1164
  }
713
1165
  /**
714
- * @param moveNetworkDefName
715
- * @param p3
716
- * @param p4
717
- * @param animDict
718
- * @param flags
719
- * @returns taskData
1166
+ * @param modifier
720
1167
  */
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;
1168
+ set PedPathDeepSnowCostModifier(modifier) {
1169
+ inv('0xE8C296B75EACC357', this.entity.handle, f(modifier));
724
1170
  }
725
1171
  /**
726
- * @param pos
727
- * @param entity
1172
+ * @returns
728
1173
  */
729
- jump2(pos, entity) {
730
- inv('0x91083103137D7254', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), entity.handle);
1174
+ get ItemInteractionItemId() {
1175
+ return (inv('0x804425C4BBD00883', this.entity.handle, rai())) & 0xFFFFFFFF;
731
1176
  }
732
1177
  /**
733
- * @param scenario
734
- * @param conditionalAnim
1178
+ * @param entity
1179
+ * @param mount
735
1180
  * @param p3
736
- * @param p4
737
- * @param p5
738
- * @param p6
739
- * @param p7
740
- * @param p8
741
- * @param p9
742
1181
  */
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);
1182
+ placeCarriedEntityOnMount(entity, mount, p3) {
1183
+ inv('0x6D3D87C57B3D52C7', this.entity.handle, entity.handle, mount.handle, f(p3));
1184
+ }
1185
+ detachCarriablePed() {
1186
+ inv('0x36D188AECB26094B', this.entity.handle);
745
1187
  }
746
1188
  /**
747
1189
  * @returns
748
1190
  */
749
- isPedRunningTaskItemInteraction() {
750
- return inv('0xEC7E480FF8BD0BED', this.entity.handle);
1191
+ get ItemInteractionState() {
1192
+ return (inv('0x6AA3DCA2C6F5EB6D', this.entity.handle, rai())) & 0xFFFFFFFF;
751
1193
  }
752
1194
  /**
753
- * @param vehicle
1195
+ * @returns
754
1196
  */
755
- breakVehicleDoorLock(vehicle) {
756
- inv('0xBB28D1BC9EA8A6A5', this.entity.handle, vehicle.handle);
1197
+ get IsPedAimingInTheAir() {
1198
+ return inv('0x8785E6E40C7A8819', this.entity.handle);
757
1199
  }
758
1200
  /**
759
- * @param vehicle
760
- * @param vehicleTarget
761
- * @param missionType
1201
+ * param3: duration in ms, use -1 to look forever
1202
+ * param4: using 2048 is fine
1203
+ * param5: using 3 is fine
1204
+ *
1205
+ * @param lookAtTarget
1206
+ * @param duration
1207
+ * @param p3
762
1208
  * @param p4
763
1209
  * @param p5
764
- * @param p6
765
- * @param p7
766
- * @param DriveAgainstTraffic
767
1210
  */
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);
1211
+ lookAtEntity(lookAtTarget, duration, p3, p4, p5) {
1212
+ inv('0x69F4BE8C8CC4796C', this.entity.handle, lookAtTarget.handle, duration, p3, p4, p5);
770
1213
  }
771
1214
  /**
772
- * @param avoidTraffic
1215
+ * @param taskIndex
1216
+ * @returns
773
1217
  */
774
- setPedPathAvoidTraffic(avoidTraffic) {
775
- inv('0x7C015D8BCEC72CF4', this.entity.handle, avoidTraffic);
1218
+ getIsTaskActive(taskIndex) {
1219
+ return !!inv('0xB0760331C7AA4155', this.entity.handle, taskIndex, rai());
776
1220
  }
777
1221
  /**
778
1222
  * Returns hash of the underlying move network def, see move_networks.xml
@@ -780,7 +1224,7 @@ export class PedTask extends BaseTask {
780
1224
  *
781
1225
  * @returns
782
1226
  */
783
- getTaskMoveNetworkId() {
1227
+ get TaskMoveNetworkId() {
784
1228
  return (inv('0xCACC2F9D994504B7', this.entity.handle, rai())) & 0xFFFFFFFF;
785
1229
  }
786
1230
  /**
@@ -904,505 +1348,262 @@ export class PedTask extends BaseTask {
904
1348
  }
905
1349
  /**
906
1350
  * @param pos
907
- * @param speedMultiplier
908
1351
  * @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
- * @param p5
952
- * @param p6
953
- */
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);
965
- }
966
- /**
967
- * @param p1
968
- * @param p2
969
- * @param p3
970
- * @param p4
971
- * @param p5
972
- * @param p6
973
- * @param p7
974
- * @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
- * @param p9
987
- */
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
1352
  * @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
1353
  * @param p6
1063
1354
  * @param p7
1064
1355
  * @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
1356
+ * @param coverpoint
1357
+ * @param p10
1358
+ * @param p11
1359
+ * @param p12
1087
1360
  */
1088
- robPed(p1, p2, p3, p4) {
1089
- inv('0x7BB967F85D8CCBDB', this.entity.handle, p1, p2, p3, p4);
1361
+ putPedDirectlyIntoCover(pos, timeout, p5, p6, p7, p8, coverpoint, p10, p11, p12) {
1362
+ inv('0x4172393E6BE1FECE', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), timeout, p5, f(p6), p7, p8, coverpoint, p10, p11, p12);
1090
1363
  }
1091
- /**
1092
- * getupSetHash: see nm_blend_out_sets.meta
1093
- *
1094
- * @param flags
1095
- * @param getupSetHash
1364
+ /**
1365
+ * @param p1
1366
+ * @param p2
1096
1367
  * @param p3
1097
1368
  * @param p4
1098
1369
  * @param p5
1370
+ * @param p6
1371
+ * @param p7
1372
+ * @param p8
1373
+ * @param p9
1374
+ * @param p10
1375
+ * @param p11
1376
+ * @param p12
1377
+ * @param p13
1378
+ * @param p14
1099
1379
  */
1100
- unhogtiePed(flags, getupSetHash, p3, p4, p5) {
1101
- inv('0x79559BAD83CCD038', this.entity.handle, flags, _h(getupSetHash), p3, p4, f(p5));
1380
+ goToCoordAndAimAtHatedEntitiesNearCoordUsingCombatStyle(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14) {
1381
+ inv('0x87BD711FC31EA273', this.entity.handle, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);
1102
1382
  }
1103
1383
  /**
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
1384
+ * @param target
1109
1385
  */
1110
- isPedLookingAtCoord(coord, radius) {
1111
- return inv('0x508F5053E3F6F0C4', this.entity.handle, f(coord.x), f(coord.y), f(coord.z), f(radius), rai());
1386
+ arrestPed(target) {
1387
+ inv('0xF3B9A78A178572B1', this.entity.handle, target.handle);
1112
1388
  }
1113
1389
  /**
1114
- * @param entity
1390
+ * @param p1
1391
+ * @param p2
1392
+ * @param p3
1393
+ * @returns
1115
1394
  */
1116
- walkAway(entity) {
1117
- inv('0x04ACFAC71E6858F9', this.entity.handle, entity.handle);
1395
+ setPedWaypointRouteOffset(p1, p2, p3) {
1396
+ return inv('0xED98E10B0AFCE4B4', this.entity.handle, f(p1), f(p2), f(p3));
1118
1397
  }
1119
1398
  /**
1399
+ * @param waypointRecording
1120
1400
  * @returns
1121
1401
  */
1122
- getHogtieEscapeTimer() {
1123
- return inv('0x4687E69D258BBE41', this.entity.handle, raf());
1124
- }
1125
- weapon() {
1126
- inv('0x7157B82D60E4BC46', this.entity.handle);
1402
+ isWaypointPlaybackGoingOnForPed(waypointRecording) {
1403
+ return !!inv('0xE03B3F2D3DC59B64', this.entity.handle, waypointRecording, rai());
1127
1404
  }
1128
1405
  /**
1129
- * @returns
1406
+ * @param p1
1407
+ * @param p2
1130
1408
  */
1131
- isPedWalking() {
1132
- return inv('0xDE4C184B2B9B071A', this.entity.handle, rai());
1409
+ animalWrithe(p1, p2) {
1410
+ inv('0x8C038A39C4A4B6D6', this.entity.handle, p1, p2);
1133
1411
  }
1134
1412
  /**
1135
1413
  * @param p1
1136
1414
  * @param p2
1137
1415
  * @param p3
1416
+ * @param p4
1138
1417
  */
1139
- waypointPlaybackPause(p1, p2, p3) {
1140
- inv('0x0F342546AA06FED5', this.entity.handle, p1, p2, p3);
1418
+ aimAtEntity(p1, p2, p3, p4) {
1419
+ inv('0xCF7569BD0FB480A0', this.entity.handle, p1, p2, p3, p4);
1141
1420
  }
1142
1421
  /**
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
1422
+ * @param targetPed
1423
+ * @param p2
1147
1424
  * @param p3
1148
- * @param animBlendRatio
1149
- * @param p5
1150
- * @param p6
1151
1425
  */
1152
- putPedDirectlyIntoMelee(meleeTarget, meleeStyle, p3, animBlendRatio, p5, p6) {
1153
- inv('0x1C6CD14A876FFE39', this.entity.handle, meleeTarget.handle, _h(meleeStyle), f(p3), f(animBlendRatio), p5, p6);
1426
+ combatPedTimed(targetPed, p2, p3) {
1427
+ inv('0x944F30DCB7096BDE', this.entity.handle, targetPed.handle, p2, p3);
1154
1428
  }
1155
1429
  /**
1156
- * @param waypointRecording
1430
+ * @param p1
1157
1431
  * @param p2
1158
- * @param flag
1159
- * @param p4
1160
- * @param p5
1161
- * @param p6
1162
- * @param p7
1432
+ * @param p3
1163
1433
  */
1164
- followWaypointRecording(waypointRecording, p2, flag, p4, p5, p6, p7) {
1165
- inv('0x0759591819534F7B', this.entity.handle, waypointRecording, p2, flag, p4, p5, p6, p7);
1434
+ throwProjectile(p1, p2, p3) {
1435
+ inv('0x7285951DBF6B5A51', this.entity.handle, p1, p2, p3);
1166
1436
  }
1167
1437
  /**
1168
- * @param targetPed
1438
+ * @param pos
1439
+ * @param heading
1440
+ * @param p5
1169
1441
  */
1170
- hogtieTargetPed(targetPed) {
1171
- inv('0x27829AFD3E03AC1A', this.entity.handle, targetPed.handle);
1442
+ pedSlideToCoord(pos, heading, p5) {
1443
+ inv('0xD04FE6765D990A06', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(heading), f(p5));
1172
1444
  }
1173
1445
  /**
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.
1446
+ * grappleStyle: AR_GRAPPLE_STRUGGLE, AR_ALLIGATOR_LEG_GRAB_CHALLENGE_FAIL, AR_GRAPPLE_BACK_FROM_BACK, AR_GRAPPLE_BACK_DEFEND, AR_GRAPPLE_FRONT_FROM_FRONT
1177
1447
  *
1178
- * @param p1
1179
- * @param p2
1448
+ * @param grappleTarget
1449
+ * @param grappleStyle
1180
1450
  * @param p3
1181
1451
  * @param p4
1182
1452
  * @param p5
1183
1453
  * @param p6
1184
- * @param p7
1185
- * @param p8
1186
- * @param p9
1187
- * @param p10
1188
- */
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);
1191
- }
1192
- /**
1193
- * @param pos
1194
- * @param distance
1195
1454
  */
1196
- useNearestTrainScenarioToCoordWarp(pos, distance) {
1197
- inv('0x3774B03456DD6106', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(distance));
1455
+ putPedDirectlyIntoGrapple(grappleTarget, grappleStyle, p3, p4, p5, p6) {
1456
+ inv('0xA05F3F20889D7A5B', this.entity.handle, grappleTarget.handle, _h(grappleStyle), f(p3), f(p4), p5, p6);
1198
1457
  }
1199
1458
  /**
1200
1459
  * @param p1
1460
+ * @param p2
1201
1461
  */
1202
- wanderSwim(p1) {
1203
- inv('0x527EA3DB8BC7F03B', this.entity.handle, p1);
1462
+ combatAnimalWarn(p1, p2) {
1463
+ inv('0xF960F3D57B660E96', this.entity.handle, p1, p2);
1204
1464
  }
1205
1465
  /**
1206
- * duration in milliseconds
1207
- *
1208
- * @param pos
1209
- * @param duration
1466
+ * @param toggle
1210
1467
  */
1211
- turnPedToFaceCoord(pos, duration) {
1212
- inv('0x1DDA930A0AC38571', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), duration);
1468
+ set PedIgnoreDeadBodies(toggle) {
1469
+ inv('0x013A7BA5015C1372', this.entity.handle, toggle);
1213
1470
  }
1214
1471
  /**
1215
- * @param preferAvoidMud
1472
+ * @param p1
1216
1473
  * @param p2
1217
- */
1218
- setPedPathPreferToAvoidMud(preferAvoidMud, p2) {
1219
- inv('0x8BB283A7888AD1AD', this.entity.handle, preferAvoidMud, f(p2));
1220
- }
1221
- /**
1222
- * @param animDict
1223
- * @param animName
1224
- * @param entity
1474
+ * @param p3
1225
1475
  * @param p4
1226
1476
  * @param p5
1227
1477
  * @param p6
1228
1478
  * @param p7
1229
- * @param p8
1230
- * @param p9
1231
- * @param p10
1232
- * @param p11
1233
- * @param p12
1234
- * @param p13
1235
- * @param p14
1236
- */
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));
1239
- }
1240
- /**
1241
- * @param p1
1242
- * @param p2
1243
1479
  */
1244
- guard(p1, p2) {
1245
- inv('0xB9FB242EACCAF30F', this.entity.handle, p1, p2);
1480
+ moveInTrafficToDestination(p1, p2, p3, p4, p5, p6, p7) {
1481
+ inv('0xDCA3A13F7A45338B', this.entity.handle, p1, p2, p3, p4, p5, p6, p7);
1246
1482
  }
1247
1483
  /**
1248
1484
  * @param attacker
1249
1485
  * @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)
1486
+ * @returns Returns `true` on success, or `false` if `attacker` doesn't exist, or is dead.
1257
1487
  */
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());
1488
+ intimidated(attacker, p2) {
1489
+ return !!inv('0x648B75D44930D6BD', this.entity.handle, attacker.handle, p2, rai());
1260
1490
  }
1261
1491
  /**
1262
- * @param avoidFire
1492
+ * @returns
1263
1493
  */
1264
- setPedPathAvoidFire(avoidFire) {
1265
- inv('0x4455517B28441E60', this.entity.handle, avoidFire);
1494
+ waypointPlaybackGetIsShooting() {
1495
+ return inv('0xA5B94DF8AF058F46', this.entity.handle);
1266
1496
  }
1267
1497
  /**
1268
- * @param reviver
1269
- * @param tool
1498
+ * @param pos
1499
+ * @param distance
1500
+ * @param p5
1501
+ * @param p6
1502
+ * @param p7
1503
+ * @param p8
1270
1504
  */
1271
- reviveTarget(reviver, tool) {
1272
- inv('0x356088527D9EBAAD', this.entity.handle, reviver.handle, _h(tool));
1505
+ useNearestScenarioChainToCoordWarp(pos, distance, p5, p6, p7, p8) {
1506
+ inv('0x97A28E63F0BA5631', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(distance), p5, p6, p7, p8);
1273
1507
  }
1274
1508
  /**
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
- * };
1509
+ * returned values:
1510
+ * 0 to 7 = task that's currently in progress, 0 meaning the first one.
1511
+ * -1 no task sequence in progress.
1292
1512
  *
1293
- * @param emoteType
1294
- * @param playbackMode
1295
- * @param emote
1296
- * @param isSecondaryTask
1297
- * @param canBreakOut
1298
- * @param disableEarlyOutAnimTag
1299
- * @param ignoreInvalidMainTask
1300
- * @param destroyProps
1513
+ * @returns
1301
1514
  */
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);
1515
+ get SequenceProgress() {
1516
+ return inv('0x00A9010CFE1E3533', this.entity.handle, rai());
1304
1517
  }
1305
1518
  /**
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
1519
+ * @returns
1316
1520
  */
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);
1521
+ waypointPlaybackGetIsAiming() {
1522
+ return inv('0xD73A5D1F0325C71C', this.entity.handle);
1319
1523
  }
1320
1524
  /**
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
1525
+ * @param signalName
1526
+ * @param value
1335
1527
  */
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);
1528
+ setTaskMoveNetworkSignalFloat(signalName, value) {
1529
+ inv('0xD5BB4025AE449A4E', this.entity.handle, signalName, f(value));
1338
1530
  }
1339
1531
  /**
1340
- * @param target
1532
+ * @param taskSequenceId
1341
1533
  */
1342
- arrestPed(target) {
1343
- inv('0xF3B9A78A178572B1', this.entity.handle, target.handle);
1534
+ performSequence(taskSequenceId) {
1535
+ inv('0x5ABA3986D90D8A3B', this.entity.handle, taskSequenceId);
1344
1536
  }
1345
1537
  /**
1346
1538
  * @param p1
1347
1539
  * @param p2
1348
1540
  * @param p3
1349
- * @returns
1350
1541
  */
1351
- setPedWaypointRouteOffset(p1, p2, p3) {
1352
- return inv('0xED98E10B0AFCE4B4', this.entity.handle, f(p1), f(p2), f(p3));
1542
+ moveInTraffic(p1, p2, p3) {
1543
+ inv('0x8AA1593AEC087A29', this.entity.handle, p1, p2, p3);
1353
1544
  }
1354
1545
  /**
1355
- * @param waypointRecording
1356
- * @returns
1546
+ * @param p1
1547
+ * @param permanently
1357
1548
  */
1358
- isWaypointPlaybackGoingOnForPed(waypointRecording) {
1359
- return inv('0xE03B3F2D3DC59B64', this.entity.handle, waypointRecording, rai());
1549
+ knockedOut(p1, permanently) {
1550
+ inv('0xF90427F00A495A28', this.entity.handle, f(p1), permanently);
1360
1551
  }
1361
1552
  /**
1362
- * @param p1
1363
- * @param p2
1553
+ * @param duration
1364
1554
  */
1365
- animalWrithe(p1, p2) {
1366
- inv('0x8C038A39C4A4B6D6', this.entity.handle, p1, p2);
1555
+ updateTaskHandsUpDuration(duration) {
1556
+ inv('0xA98FCAFD7893C834', this.entity.handle, duration);
1367
1557
  }
1368
1558
  /**
1369
- * @param p1
1370
- * @param p2
1371
- * @param p3
1372
- * @param p4
1559
+ * Similar to 0xB31A277C1AC7B7FF but checks if the ped's inventory contains the specified emote kit.
1560
+ *
1561
+ * @param emoteType
1562
+ * @param playbackMode
1563
+ * @param emote
1564
+ * @param isSecondaryTask
1565
+ * @param canBreakOut
1566
+ * @param disableEarlyOutAnimTag
1567
+ * @param ignoreInvalidMainTask
1568
+ * @param destroyProps
1373
1569
  */
1374
- aimAtEntity(p1, p2, p3, p4) {
1375
- inv('0xCF7569BD0FB480A0', this.entity.handle, p1, p2, p3, p4);
1570
+ playEmote(emoteType, playbackMode, emote, isSecondaryTask, canBreakOut, disableEarlyOutAnimTag, ignoreInvalidMainTask, destroyProps) {
1571
+ inv('0x884E3436CC1F41DD', this.entity.handle, emoteType, playbackMode, _h(emote), isSecondaryTask, canBreakOut, disableEarlyOutAnimTag, ignoreInvalidMainTask, destroyProps);
1376
1572
  }
1377
1573
  /**
1378
- * @param targetPed
1574
+ * @param boat
1379
1575
  * @param p2
1380
1576
  * @param p3
1577
+ * @param pos
1578
+ * @param p7
1579
+ * @param maxSpeed
1580
+ * @param drivingStyle
1581
+ * @param p10
1582
+ * @param p11
1381
1583
  */
1382
- combatPedTimed(targetPed, p2, p3) {
1383
- inv('0x944F30DCB7096BDE', this.entity.handle, targetPed.handle, p2, p3);
1584
+ boatMission(boat, p2, p3, pos, p7, maxSpeed, drivingStyle, p10, p11) {
1585
+ 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);
1384
1586
  }
1385
1587
  /**
1386
- * @param p1
1387
- * @param p2
1388
- * @param p3
1588
+ * @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
1589
+ * @param minAngle The minimum viewing angle, requires `useLimits` to be `true`.
1590
+ * @param maxAngle The maximum viewing angle, reuqeres `useLimits` to be `true`.
1389
1591
  */
1390
- throwProjectile(p1, p2, p3) {
1391
- inv('0x7285951DBF6B5A51', this.entity.handle, p1, p2, p3);
1592
+ setIntimidatedFacingAngle(useLimits, minAngle, maxAngle) {
1593
+ inv('0x0FE797DD9F70DFA6', this.entity.handle, useLimits, f(minAngle), f(maxAngle));
1392
1594
  }
1393
1595
  /**
1394
- * @param pos
1395
- * @param heading
1396
- * @param p5
1596
+ * @param targetPed
1597
+ * @param p2
1397
1598
  */
1398
- pedSlideToCoord(pos, heading, p5) {
1399
- inv('0xD04FE6765D990A06', this.entity.handle, f(pos.x), f(pos.y), f(pos.z), f(heading), f(p5));
1599
+ animalFlee(targetPed, p2) {
1600
+ inv('0xA899B61C66F09134', this.entity.handle, targetPed.handle, p2);
1400
1601
  }
1401
1602
  /**
1402
1603
  * @returns
1403
1604
  */
1404
- isPedCuffed() {
1405
- return inv('0x74E559B3BC910685', this.entity.handle, rai());
1605
+ get IsPedCuffed() {
1606
+ return !!inv('0x74E559B3BC910685', this.entity.handle, rai());
1406
1607
  }
1407
1608
  /**
1408
1609
  * @param avoidWater
@@ -1434,7 +1635,7 @@ export class PedTask extends BaseTask {
1434
1635
  /**
1435
1636
  * @returns
1436
1637
  */
1437
- getPedDesiredMoveBlendRatio() {
1638
+ get PedDesiredMoveBlendRatio() {
1438
1639
  return inv('0x8517D4A6CA8513ED', this.entity.handle, raf());
1439
1640
  }
1440
1641
  N_0xDF94844D474F31E5() {
@@ -1470,7 +1671,7 @@ export class PedTask extends BaseTask {
1470
1671
  /**
1471
1672
  * @param modifier
1472
1673
  */
1473
- setPedPathFoliageCostModifier(modifier) {
1674
+ set PedPathFoliageCostModifier(modifier) {
1474
1675
  inv('0x3AD8EFF9703BE657', this.entity.handle, f(modifier));
1475
1676
  }
1476
1677
  /**
@@ -1488,7 +1689,7 @@ export class PedTask extends BaseTask {
1488
1689
  *
1489
1690
  * @param maxCruiseSpeed
1490
1691
  */
1491
- setDriveTaskMaxCruiseSpeed(maxCruiseSpeed) {
1692
+ set DriveTaskMaxCruiseSpeed(maxCruiseSpeed) {
1492
1693
  inv('0x404A5AA9B9F0B746', this.entity.handle, f(maxCruiseSpeed));
1493
1694
  }
1494
1695
  /**
@@ -1606,7 +1807,7 @@ export class PedTask extends BaseTask {
1606
1807
  /**
1607
1808
  * @param toggle
1608
1809
  */
1609
- setPedPathCanDropFromHeight(toggle) {
1810
+ set PedPathCanDropFromHeight(toggle) {
1610
1811
  inv('0xE361C5C71C431A4F', this.entity.handle, toggle);
1611
1812
  }
1612
1813
  /**
@@ -1750,7 +1951,7 @@ export class PedTask extends BaseTask {
1750
1951
  /**
1751
1952
  * @param toggle
1752
1953
  */
1753
- setPedPathCanUseClimbovers(toggle) {
1954
+ set PedPathCanUseClimbovers(toggle) {
1754
1955
  inv('0x8E06A6FE76C9EFF4', this.entity.handle, toggle);
1755
1956
  }
1756
1957
  /**
@@ -1773,7 +1974,7 @@ export class PedTask extends BaseTask {
1773
1974
  /**
1774
1975
  * @param cruiseSpeed
1775
1976
  */
1776
- setDriveTaskCruiseSpeed(cruiseSpeed) {
1977
+ set DriveTaskCruiseSpeed(cruiseSpeed) {
1777
1978
  inv('0x5C9B84BD7D31D908', this.entity.handle, f(cruiseSpeed));
1778
1979
  }
1779
1980
  /**
@@ -1790,7 +1991,7 @@ export class PedTask extends BaseTask {
1790
1991
  /**
1791
1992
  * @returns
1792
1993
  */
1793
- isPedDuelling() {
1994
+ get IsPedDuelling() {
1794
1995
  return inv('0xC8B29D18022EA2B7', this.entity.handle);
1795
1996
  }
1796
1997
  /**
@@ -1851,7 +2052,7 @@ export class PedTask extends BaseTask {
1851
2052
  *
1852
2053
  * @returns
1853
2054
  */
1854
- getPedWritheBreakFreeProgress() {
2055
+ get PedWritheBreakFreeProgress() {
1855
2056
  return inv('0x03D741CB4052E26C', this.entity.handle, raf());
1856
2057
  }
1857
2058
  /**
@@ -1886,7 +2087,7 @@ export class PedTask extends BaseTask {
1886
2087
  /**
1887
2088
  * @param toggle
1888
2089
  */
1889
- setBlockingOfNonTemporaryEvents(toggle) {
2090
+ set BlockingOfNonTemporaryEvents(toggle) {
1890
2091
  inv('0x90D2156198831D69', this.entity.handle, toggle);
1891
2092
  }
1892
2093
  /**
@@ -1908,7 +2109,7 @@ export class PedTask extends BaseTask {
1908
2109
  /**
1909
2110
  * @param p1
1910
2111
  */
1911
- setPedClearAimingInTheAir(p1) {
2112
+ set PedClearAimingInTheAir(p1) {
1912
2113
  inv('0x34C0010188D7C54A', this.entity.handle, p1);
1913
2114
  }
1914
2115
  /**
@@ -1948,20 +2149,20 @@ export class PedTask extends BaseTask {
1948
2149
  /**
1949
2150
  * @returns
1950
2151
  */
1951
- getLedHorseFromPed() {
2152
+ get LedHorseFromPed() {
1952
2153
  return createFromHandle('Ped', inv('0xED1F514AF4732258', this.entity.handle, rai()));
1953
2154
  }
1954
2155
  /**
1955
2156
  * @returns
1956
2157
  */
1957
2158
  N_0xBEDBE39B5FD98FD6() {
1958
- return inv('0xBEDBE39B5FD98FD6', this.entity.handle, rai());
2159
+ return !!inv('0xBEDBE39B5FD98FD6', this.entity.handle, rai());
1959
2160
  }
1960
2161
  /**
1961
2162
  * @returns
1962
2163
  */
1963
- isPedRunningInspectionTask() {
1964
- return inv('0x038B1F1674F0E242', this.entity.handle);
2164
+ get IsPedRunningInspectionTask() {
2165
+ return !!inv('0x038B1F1674F0E242', this.entity.handle, rai());
1965
2166
  }
1966
2167
  /**
1967
2168
  * @param entity
@@ -1985,7 +2186,7 @@ export class PedTask extends BaseTask {
1985
2186
  /**
1986
2187
  * @returns
1987
2188
  */
1988
- getPedWaypointProgress() {
2189
+ get PedWaypointProgress() {
1989
2190
  return inv('0x2720AAA75001E094', this.entity.handle, rai());
1990
2191
  }
1991
2192
  /**
@@ -2169,7 +2370,7 @@ export class PedTask extends BaseTask {
2169
2370
  /**
2170
2371
  * @param mayEnterDeepWater
2171
2372
  */
2172
- setPedPathMayEnterDeepWater(mayEnterDeepWater) {
2373
+ set PedPathMayEnterDeepWater(mayEnterDeepWater) {
2173
2374
  inv('0x9DE63896B176EA94', this.entity.handle, mayEnterDeepWater);
2174
2375
  }
2175
2376
  /**
@@ -2183,8 +2384,8 @@ export class PedTask extends BaseTask {
2183
2384
  *
2184
2385
  * @returns
2185
2386
  */
2186
- isPedInWrithe() {
2187
- return inv('0xDEB6D52126E7D640', this.entity.handle, rai());
2387
+ get IsPedInWrithe() {
2388
+ return !!inv('0xDEB6D52126E7D640', this.entity.handle, rai());
2188
2389
  }
2189
2390
  /**
2190
2391
  * @param p1
@@ -2207,21 +2408,21 @@ export class PedTask extends BaseTask {
2207
2408
  /**
2208
2409
  * @returns
2209
2410
  */
2210
- isPedArrestingAnyPed() {
2411
+ get IsPedArrestingAnyPed() {
2211
2412
  return inv('0xA9CC7856D52DBD25', this.entity.handle);
2212
2413
  }
2213
2414
  /**
2214
2415
  * @returns
2215
2416
  */
2216
2417
  waypointPlaybackGetIsPaused() {
2217
- return inv('0x701375A7D43F01CB', this.entity.handle, rai());
2418
+ return !!inv('0x701375A7D43F01CB', this.entity.handle, rai());
2218
2419
  }
2219
2420
  /**
2220
2421
  * @param p1
2221
2422
  * @returns
2222
2423
  */
2223
2424
  isPedScenarioReactLooking(p1) {
2224
- return inv('0x916B8E075ABC8B4E', this.entity.handle, p1);
2425
+ return !!inv('0x916B8E075ABC8B4E', this.entity.handle, p1, rai());
2225
2426
  }
2226
2427
  /**
2227
2428
  * @returns args
@@ -2236,13 +2437,13 @@ export class PedTask extends BaseTask {
2236
2437
  /**
2237
2438
  * @returns
2238
2439
  */
2239
- getPedWaypointDistance() {
2440
+ get PedWaypointDistance() {
2240
2441
  return inv('0xE6A877C64CAF1BC5', this.entity.handle, raf());
2241
2442
  }
2242
2443
  /**
2243
2444
  * @param mayEnterWater
2244
2445
  */
2245
- setPedPathMayEnterWater(mayEnterWater) {
2446
+ set PedPathMayEnterWater(mayEnterWater) {
2246
2447
  inv('0xF35425A4204367EC', this.entity.handle, mayEnterWater);
2247
2448
  }
2248
2449
  /**
@@ -2258,7 +2459,7 @@ export class PedTask extends BaseTask {
2258
2459
  /**
2259
2460
  * @param p1
2260
2461
  */
2261
- setPedDesiredMoveBlendRatio(p1) {
2462
+ set PedDesiredMoveBlendRatio(p1) {
2262
2463
  inv('0x1E982AC8716912C5', this.entity.handle, f(p1));
2263
2464
  }
2264
2465
  /**
@@ -2273,7 +2474,7 @@ export class PedTask extends BaseTask {
2273
2474
  /**
2274
2475
  * @returns
2275
2476
  */
2276
- isEntityRevivable() {
2477
+ get IsEntityRevivable() {
2277
2478
  return inv('0x6C50B9DCCCA70023', this.entity.handle);
2278
2479
  }
2279
2480
  /**
@@ -2372,7 +2573,7 @@ export class PedTask extends BaseTask {
2372
2573
  /**
2373
2574
  * @returns
2374
2575
  */
2375
- getTaskMoveNetworkState() {
2576
+ get TaskMoveNetworkState() {
2376
2577
  return inv('0x717E4D1F2048376D', this.entity.handle, ras());
2377
2578
  }
2378
2579
  /**
@@ -2463,7 +2664,7 @@ export class PedTask extends BaseTask {
2463
2664
  /**
2464
2665
  * @returns
2465
2666
  */
2466
- getScenarioPointTypePedIsUsing() {
2667
+ get ScenarioPointTypePedIsUsing() {
2467
2668
  return inv('0x2D0571BB55879DA2', this.entity.handle, rai());
2468
2669
  }
2469
2670
  /**
@@ -2513,8 +2714,8 @@ export class PedTask extends BaseTask {
2513
2714
  *
2514
2715
  * @returns
2515
2716
  */
2516
- isPedBeingArrested() {
2517
- return inv('0x90A09F3A45FED688', this.entity.handle, rai());
2717
+ get IsPedBeingArrested() {
2718
+ return !!inv('0x90A09F3A45FED688', this.entity.handle, rai());
2518
2719
  }
2519
2720
  /**
2520
2721
  * @param p1
@@ -2545,8 +2746,8 @@ export class PedTask extends BaseTask {
2545
2746
  /**
2546
2747
  * @returns Returns `true` if the specified mount is currently being lead by a player, `false` otherwise.
2547
2748
  */
2548
- isPedBeingLead() {
2549
- return inv('0xAC5045AB7F1A34FD', this.entity.handle, rai());
2749
+ get IsPedBeingLead() {
2750
+ return !!inv('0xAC5045AB7F1A34FD', this.entity.handle, rai());
2550
2751
  }
2551
2752
  /**
2552
2753
  * @param entity
@@ -2569,7 +2770,7 @@ export class PedTask extends BaseTask {
2569
2770
  * @returns
2570
2771
  */
2571
2772
  isPedExitingScenario(p1) {
2572
- return inv('0x0C3CB2E600C8977D', this.entity.handle, p1);
2773
+ return !!inv('0x0C3CB2E600C8977D', this.entity.handle, p1, rai());
2573
2774
  }
2574
2775
  /**
2575
2776
  * https://github.com/femga/rdr3_discoveries/tree/master/tasks/TASK_HORSE_ACTION
@@ -2648,7 +2849,7 @@ export class PedTask extends BaseTask {
2648
2849
  *
2649
2850
  * @param modifier
2650
2851
  */
2651
- setPedPathLadderCostModifier(modifier) {
2852
+ set PedPathLadderCostModifier(modifier) {
2652
2853
  inv('0x70F7A1EAB1AE3AA8', this.entity.handle, f(modifier));
2653
2854
  }
2654
2855
  /**
@@ -2694,7 +2895,7 @@ export class PedTask extends BaseTask {
2694
2895
  * @returns
2695
2896
  */
2696
2897
  pedHasUseScenarioTask() {
2697
- return inv('0x295E3CCEC879CCD7', this.entity.handle, rai());
2898
+ return !!inv('0x295E3CCEC879CCD7', this.entity.handle, rai());
2698
2899
  }
2699
2900
  /**
2700
2901
  * Makes the specified ped achieve the specified heading. pedHandle: The handle of the ped to assign the task to.
@@ -2710,15 +2911,15 @@ export class PedTask extends BaseTask {
2710
2911
  /**
2711
2912
  * @returns
2712
2913
  */
2713
- isPedStill() {
2714
- return inv('0xAC29253EEF8F0180', this.entity.handle, rai());
2914
+ get IsPedStill() {
2915
+ return !!inv('0xAC29253EEF8F0180', this.entity.handle, rai());
2715
2916
  }
2716
2917
  /**
2717
2918
  * @param scenario
2718
2919
  * @returns
2719
2920
  */
2720
2921
  isPedActiveInScenario(scenario) {
2721
- return inv('0xAA135F9482C82CC3', this.entity.handle, scenario, rai());
2922
+ return !!inv('0xAA135F9482C82CC3', this.entity.handle, scenario, rai());
2722
2923
  }
2723
2924
  /**
2724
2925
  * @param p1
@@ -2783,7 +2984,7 @@ export class PedTask extends BaseTask {
2783
2984
  /**
2784
2985
  * @returns
2785
2986
  */
2786
- getRansackScenarioPointPedIsUsing() {
2987
+ get RansackScenarioPointPedIsUsing() {
2787
2988
  return inv('0xD04241BBF6D03A5E', this.entity.handle);
2788
2989
  }
2789
2990
  emoteOutro() {
@@ -2801,7 +3002,7 @@ export class PedTask extends BaseTask {
2801
3002
  * @returns
2802
3003
  */
2803
3004
  isEmoteTaskRunning(p1) {
2804
- return inv('0xCF9B71C0AF824036', this.entity.handle, p1, rai());
3005
+ return !!inv('0xCF9B71C0AF824036', this.entity.handle, p1, rai());
2805
3006
  }
2806
3007
  /**
2807
3008
  * @returns args
@@ -2813,8 +3014,8 @@ export class PedTask extends BaseTask {
2813
3014
  /**
2814
3015
  * @returns
2815
3016
  */
2816
- isTaskMoveNetworkActive() {
2817
- return inv('0x921CE12C489C4C41', this.entity.handle, rai());
3017
+ get IsTaskMoveNetworkActive() {
3018
+ return !!inv('0x921CE12C489C4C41', this.entity.handle, rai());
2818
3019
  }
2819
3020
  /**
2820
3021
  * @param pos
@@ -3072,205 +3273,4 @@ export class PedTask extends BaseTask {
3072
3273
  getItemInteractionPromptProgress(inputContext) {
3073
3274
  return inv('0xBC864A70AD55E0C1', this.entity.handle, _h(inputContext), raf());
3074
3275
  }
3075
- /**
3076
- * @param p1
3077
- * @param p2
3078
- * @param p3
3079
- * @param p4
3080
- */
3081
- setSphereDefensiveArea(p1, p2, p3, p4) {
3082
- inv('0x933C06518B52A9A4', this.entity.handle, f(p1), f(p2), f(p3), f(p4));
3083
- }
3084
- /**
3085
- * @param p1
3086
- * @param p2
3087
- * @param p3
3088
- * @param p4
3089
- */
3090
- useRandomScenarioInGroup(p1, p2, p3, p4) {
3091
- inv('0x14747F4A5971DE4E', this.entity.handle, p1, p2, p3, p4);
3092
- }
3093
- /**
3094
- * enum eWhistleType
3095
- * {
3096
- * WHISTLE_MAIN,
3097
- * WHISTLE_SECONDARY,
3098
- * WHISTLE_DOUBLE,
3099
- * WHISTLE_URGENT,
3100
- * WHISTLE_LONG
3101
- * };
3102
- *
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
3115
- */
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);
3118
- }
3119
- /**
3120
- * @returns
3121
- */
3122
- isPedInHitReact() {
3123
- return inv('0xF330A5C062B29BED', this.entity.handle);
3124
- }
3125
- /**
3126
- * @param p1
3127
- * @param p2
3128
- * @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
- */
3141
- isMountedWeaponTaskUnderneathDrivingTask() {
3142
- return inv('0xA320EF046186FA3B', this.entity.handle, rai());
3143
- }
3144
- /**
3145
- * flags: See TASK_ENTER_VEHICLE
3146
- *
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
3155
- */
3156
- combatHatedTargetsNoLosTest(radius) {
3157
- inv('0xB5BC69D9C4060BC3', this.entity.handle, f(radius));
3158
- }
3159
- /**
3160
- * @param p1
3161
- */
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));
3170
- }
3171
- /**
3172
- * @param entity
3173
- * @param duration
3174
- * @param targetRadius
3175
- * @param offset
3176
- * @param moveBlendRatio
3177
- * @param offsetFlags
3178
- */
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);
3181
- }
3182
- /**
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
3187
- */
3188
- wanderStandard(p2, p3) {
3189
- inv('0xBB9CE077274F6A1B', this.entity.handle, f(p2), p3);
3190
- }
3191
- /**
3192
- * @param p1
3193
- * @param p2
3194
- */
3195
- clearPedTasks(p1, p2) {
3196
- inv('0xE1EF3C1216AFF2CD', this.entity.handle, p1, p2);
3197
- }
3198
- /**
3199
- * @param signalName
3200
- * @param value
3201
- */
3202
- setTaskMoveNetworkSignalFloat(signalName, value) {
3203
- inv('0xD5BB4025AE449A4E', this.entity.handle, signalName, f(value));
3204
- }
3205
- /**
3206
- * @param taskSequenceId
3207
- */
3208
- performSequence(taskSequenceId) {
3209
- inv('0x5ABA3986D90D8A3B', this.entity.handle, taskSequenceId);
3210
- }
3211
- /**
3212
- * @param p1
3213
- * @param p2
3214
- * @param p3
3215
- */
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);
3225
- }
3226
- /**
3227
- * @param duration
3228
- */
3229
- updateTaskHandsUpDuration(duration) {
3230
- inv('0xA98FCAFD7893C834', this.entity.handle, duration);
3231
- }
3232
- /**
3233
- * Similar to 0xB31A277C1AC7B7FF but checks if the ped's inventory contains the specified emote kit.
3234
- *
3235
- * @param emoteType
3236
- * @param playbackMode
3237
- * @param emote
3238
- * @param isSecondaryTask
3239
- * @param canBreakOut
3240
- * @param disableEarlyOutAnimTag
3241
- * @param ignoreInvalidMainTask
3242
- * @param destroyProps
3243
- */
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);
3246
- }
3247
- /**
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
3257
- */
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);
3260
- }
3261
- /**
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`.
3265
- */
3266
- setIntimidatedFacingAngle(useLimits, minAngle, maxAngle) {
3267
- inv('0x0FE797DD9F70DFA6', this.entity.handle, useLimits, f(minAngle), f(maxAngle));
3268
- }
3269
- /**
3270
- * @param targetPed
3271
- * @param p2
3272
- */
3273
- animalFlee(targetPed, p2) {
3274
- inv('0xA899B61C66F09134', this.entity.handle, targetPed.handle, p2);
3275
- }
3276
3276
  }