@nativewrappers/redm-codegen 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/dist/classes/AnimScene.d.ts +135 -135
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +208 -208
  4. package/dist/classes/BaseModel.d.ts +21 -21
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +33 -33
  7. package/dist/classes/BaseTask.d.ts +23 -23
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +27 -27
  10. package/dist/classes/Cam.d.ts +98 -98
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +134 -134
  13. package/dist/classes/Entity.d.ts +385 -380
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +498 -489
  16. package/dist/classes/Interior.d.ts +5 -5
  17. package/dist/classes/Interior.d.ts.map +1 -1
  18. package/dist/classes/Interior.js +8 -8
  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 +336 -336
  23. package/dist/classes/Ped.d.ts.map +1 -1
  24. package/dist/classes/Ped.js +495 -495
  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 +255 -255
  29. package/dist/classes/PedTask.d.ts.map +1 -1
  30. package/dist/classes/PedTask.js +345 -345
  31. package/dist/classes/PersChar.d.ts +13 -13
  32. package/dist/classes/PersChar.d.ts.map +1 -1
  33. package/dist/classes/PersChar.js +29 -29
  34. package/dist/classes/Pickup.d.ts +8 -8
  35. package/dist/classes/Pickup.d.ts.map +1 -1
  36. package/dist/classes/Pickup.js +15 -15
  37. package/dist/classes/Player.d.ts +713 -709
  38. package/dist/classes/Player.d.ts.map +1 -1
  39. package/dist/classes/Player.js +979 -973
  40. package/dist/classes/Prop.d.ts +115 -115
  41. package/dist/classes/Prop.d.ts.map +1 -1
  42. package/dist/classes/Prop.js +160 -160
  43. package/dist/classes/PropSet.d.ts +5 -5
  44. package/dist/classes/PropSet.d.ts.map +1 -1
  45. package/dist/classes/PropSet.js +6 -6
  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 +9 -9
  53. package/dist/classes/VehicleTask.d.ts.map +1 -1
  54. package/dist/classes/VehicleTask.js +12 -12
  55. package/dist/classes/Volume.d.ts +56 -56
  56. package/dist/classes/Volume.d.ts.map +1 -1
  57. package/dist/classes/Volume.js +84 -84
  58. package/dist/classes/Weapon.d.ts +354 -354
  59. package/dist/classes/Weapon.d.ts.map +1 -1
  60. package/dist/classes/Weapon.js +464 -464
  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 +49 -49
  68. package/dist/namespaces/Animscene.d.ts.map +1 -1
  69. package/dist/namespaces/Animscene.js +67 -67
  70. package/dist/namespaces/Audio.d.ts +447 -447
  71. package/dist/namespaces/Audio.d.ts.map +1 -1
  72. package/dist/namespaces/Audio.js +635 -635
  73. package/dist/namespaces/CamStatics.d.ts +441 -441
  74. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  75. package/dist/namespaces/CamStatics.js +675 -675
  76. package/dist/namespaces/Collection.d.ts +6 -6
  77. package/dist/namespaces/Collection.d.ts.map +1 -1
  78. package/dist/namespaces/Collection.js +11 -11
  79. package/dist/namespaces/Companion.d.ts +22 -22
  80. package/dist/namespaces/Companion.d.ts.map +1 -1
  81. package/dist/namespaces/Companion.js +30 -30
  82. package/dist/namespaces/Compapp.js +1 -1
  83. package/dist/namespaces/Compendium.d.ts +82 -82
  84. package/dist/namespaces/Compendium.d.ts.map +1 -1
  85. package/dist/namespaces/Compendium.js +115 -115
  86. package/dist/namespaces/Crashlog.js +9 -9
  87. package/dist/namespaces/Crew.js +4 -4
  88. package/dist/namespaces/Databinding.d.ts +164 -164
  89. package/dist/namespaces/Databinding.d.ts.map +1 -1
  90. package/dist/namespaces/Databinding.js +232 -232
  91. package/dist/namespaces/Datafile.js +4 -4
  92. package/dist/namespaces/Decorator.d.ts +19 -19
  93. package/dist/namespaces/Decorator.d.ts.map +1 -1
  94. package/dist/namespaces/Decorator.js +34 -34
  95. package/dist/namespaces/Dlc.d.ts +5 -5
  96. package/dist/namespaces/Dlc.d.ts.map +1 -1
  97. package/dist/namespaces/Dlc.js +9 -9
  98. package/dist/namespaces/EntityStatics.d.ts +119 -119
  99. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  100. package/dist/namespaces/EntityStatics.js +164 -164
  101. package/dist/namespaces/Event.js +4 -4
  102. package/dist/namespaces/Fire.d.ts +89 -89
  103. package/dist/namespaces/Fire.d.ts.map +1 -1
  104. package/dist/namespaces/Fire.js +115 -115
  105. package/dist/namespaces/Flock.js +2 -2
  106. package/dist/namespaces/Gang.js +2 -2
  107. package/dist/namespaces/GoogleAnalytics.js +2 -2
  108. package/dist/namespaces/Graphics.d.ts +375 -375
  109. package/dist/namespaces/Graphics.d.ts.map +1 -1
  110. package/dist/namespaces/Graphics.js +569 -569
  111. package/dist/namespaces/Hud.d.ts +507 -507
  112. package/dist/namespaces/Hud.d.ts.map +1 -1
  113. package/dist/namespaces/Hud.js +706 -706
  114. package/dist/namespaces/Ik.js +1 -1
  115. package/dist/namespaces/Interaction.js +3 -3
  116. package/dist/namespaces/InteriorStatics.js +2 -2
  117. package/dist/namespaces/Inventory.d.ts +159 -159
  118. package/dist/namespaces/Inventory.d.ts.map +1 -1
  119. package/dist/namespaces/Inventory.js +214 -214
  120. package/dist/namespaces/Itemdatabase.d.ts +5 -5
  121. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  122. package/dist/namespaces/Itemdatabase.js +10 -10
  123. package/dist/namespaces/Itemset.js +2 -2
  124. package/dist/namespaces/Law.d.ts +1 -1
  125. package/dist/namespaces/Law.d.ts.map +1 -1
  126. package/dist/namespaces/Law.js +19 -19
  127. package/dist/namespaces/Localization.js +1 -1
  128. package/dist/namespaces/Map.d.ts +173 -173
  129. package/dist/namespaces/Map.d.ts.map +1 -1
  130. package/dist/namespaces/Map.js +240 -240
  131. package/dist/namespaces/Minigame.d.ts +17 -17
  132. package/dist/namespaces/Minigame.d.ts.map +1 -1
  133. package/dist/namespaces/Minigame.js +25 -25
  134. package/dist/namespaces/Misc.d.ts +3 -3
  135. package/dist/namespaces/Misc.d.ts.map +1 -1
  136. package/dist/namespaces/Misc.js +35 -35
  137. package/dist/namespaces/Missiondata.d.ts +15 -15
  138. package/dist/namespaces/Missiondata.d.ts.map +1 -1
  139. package/dist/namespaces/Missiondata.js +24 -24
  140. package/dist/namespaces/Money.js +3 -3
  141. package/dist/namespaces/Netshopping.d.ts +58 -58
  142. package/dist/namespaces/Netshopping.d.ts.map +1 -1
  143. package/dist/namespaces/Netshopping.js +89 -89
  144. package/dist/namespaces/Network.d.ts +694 -694
  145. package/dist/namespaces/Network.d.ts.map +1 -1
  146. package/dist/namespaces/Network.js +1129 -1129
  147. package/dist/namespaces/Object.d.ts +142 -142
  148. package/dist/namespaces/Object.d.ts.map +1 -1
  149. package/dist/namespaces/Object.js +195 -195
  150. package/dist/namespaces/Pad.d.ts +101 -101
  151. package/dist/namespaces/Pad.d.ts.map +1 -1
  152. package/dist/namespaces/Pad.js +142 -142
  153. package/dist/namespaces/Pathfind.js +10 -10
  154. package/dist/namespaces/PedStatics.d.ts +20 -20
  155. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  156. package/dist/namespaces/PedStatics.js +36 -36
  157. package/dist/namespaces/Perschar.d.ts +49 -49
  158. package/dist/namespaces/Perschar.d.ts.map +1 -1
  159. package/dist/namespaces/Perschar.js +76 -76
  160. package/dist/namespaces/Physics.d.ts +89 -89
  161. package/dist/namespaces/Physics.d.ts.map +1 -1
  162. package/dist/namespaces/Physics.js +125 -125
  163. package/dist/namespaces/PlayerStatics.d.ts +139 -139
  164. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  165. package/dist/namespaces/PlayerStatics.js +200 -200
  166. package/dist/namespaces/Population.d.ts +75 -75
  167. package/dist/namespaces/Population.d.ts.map +1 -1
  168. package/dist/namespaces/Population.js +101 -101
  169. package/dist/namespaces/Posse.d.ts +54 -54
  170. package/dist/namespaces/Posse.d.ts.map +1 -1
  171. package/dist/namespaces/Posse.js +86 -86
  172. package/dist/namespaces/Replay.d.ts +1 -1
  173. package/dist/namespaces/Replay.d.ts.map +1 -1
  174. package/dist/namespaces/Replay.js +2 -2
  175. package/dist/namespaces/Scripts.d.ts +1 -1
  176. package/dist/namespaces/Scripts.d.ts.map +1 -1
  177. package/dist/namespaces/Scripts.js +12 -12
  178. package/dist/namespaces/Socialclub.js +8 -8
  179. package/dist/namespaces/Socialclubfeed.js +1 -1
  180. package/dist/namespaces/Spactionproxy.js +4 -4
  181. package/dist/namespaces/Stats.d.ts +197 -197
  182. package/dist/namespaces/Stats.d.ts.map +1 -1
  183. package/dist/namespaces/Stats.js +285 -285
  184. package/dist/namespaces/Streaming.d.ts +46 -46
  185. package/dist/namespaces/Streaming.d.ts.map +1 -1
  186. package/dist/namespaces/Streaming.js +79 -79
  187. package/dist/namespaces/Task.d.ts +138 -138
  188. package/dist/namespaces/Task.d.ts.map +1 -1
  189. package/dist/namespaces/Task.js +204 -204
  190. package/dist/namespaces/Telemetry.d.ts +212 -212
  191. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  192. package/dist/namespaces/Telemetry.js +308 -308
  193. package/dist/namespaces/Txd.js +1 -1
  194. package/dist/namespaces/Uiapps.d.ts +25 -25
  195. package/dist/namespaces/Uiapps.d.ts.map +1 -1
  196. package/dist/namespaces/Uiapps.js +36 -36
  197. package/dist/namespaces/Uievents.js +1 -1
  198. package/dist/namespaces/Uifeed.d.ts +15 -15
  199. package/dist/namespaces/Uifeed.d.ts.map +1 -1
  200. package/dist/namespaces/Uifeed.js +25 -25
  201. package/dist/namespaces/Uistickyfeed.d.ts +16 -16
  202. package/dist/namespaces/Uistickyfeed.d.ts.map +1 -1
  203. package/dist/namespaces/Uistickyfeed.js +21 -21
  204. package/dist/namespaces/Unlock.js +5 -5
  205. package/dist/namespaces/VehicleStatics.js +12 -12
  206. package/dist/namespaces/Voice.d.ts +38 -38
  207. package/dist/namespaces/Voice.d.ts.map +1 -1
  208. package/dist/namespaces/Voice.js +61 -61
  209. package/dist/namespaces/VolumeStatics.d.ts +161 -161
  210. package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
  211. package/dist/namespaces/VolumeStatics.js +217 -217
  212. package/dist/namespaces/Water.d.ts +27 -27
  213. package/dist/namespaces/Water.d.ts.map +1 -1
  214. package/dist/namespaces/Water.js +41 -41
  215. package/dist/namespaces/WeaponStatics.d.ts +274 -274
  216. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  217. package/dist/namespaces/WeaponStatics.js +390 -390
  218. package/dist/namespaces/Zone.d.ts +7 -7
  219. package/dist/namespaces/Zone.d.ts.map +1 -1
  220. package/dist/namespaces/Zone.js +9 -9
  221. package/dist/types/NativeAliases.d.ts +3 -1
  222. package/dist/types/NativeAliases.d.ts.map +1 -1
  223. package/dist/types/NativeAliases.js +3 -1
  224. package/package.json +1 -1
  225. package/src/classes/AnimScene.ts +227 -227
  226. package/src/classes/BaseModel.ts +36 -36
  227. package/src/classes/BaseTask.ts +29 -29
  228. package/src/classes/Cam.ts +143 -143
  229. package/src/classes/Entity.ts +517 -506
  230. package/src/classes/Interior.ts +8 -8
  231. package/src/classes/ItemSet.ts +3 -3
  232. package/src/classes/Ped.ts +512 -512
  233. package/src/classes/PedModel.ts +2 -2
  234. package/src/classes/PedTask.ts +429 -429
  235. package/src/classes/PersChar.ts +35 -35
  236. package/src/classes/Pickup.ts +16 -16
  237. package/src/classes/Player.ts +995 -988
  238. package/src/classes/Prop.ts +177 -177
  239. package/src/classes/PropSet.ts +6 -6
  240. package/src/classes/Vehicle.ts +147 -147
  241. package/src/classes/VehicleModel.ts +2 -2
  242. package/src/classes/VehicleTask.ts +13 -13
  243. package/src/classes/Volume.ts +91 -91
  244. package/src/classes/Weapon.ts +489 -489
  245. package/src/namespaces/Aicoverpoint.ts +40 -40
  246. package/src/namespaces/Aitransport.ts +104 -104
  247. package/src/namespaces/Animscene.ts +74 -74
  248. package/src/namespaces/Audio.ts +647 -647
  249. package/src/namespaces/CamStatics.ts +768 -768
  250. package/src/namespaces/Collection.ts +12 -12
  251. package/src/namespaces/Companion.ts +34 -34
  252. package/src/namespaces/Compapp.ts +1 -1
  253. package/src/namespaces/Compendium.ts +120 -120
  254. package/src/namespaces/Crashlog.ts +9 -9
  255. package/src/namespaces/Crew.ts +4 -4
  256. package/src/namespaces/Databinding.ts +249 -249
  257. package/src/namespaces/Datafile.ts +4 -4
  258. package/src/namespaces/Decorator.ts +37 -37
  259. package/src/namespaces/Dlc.ts +9 -9
  260. package/src/namespaces/EntityStatics.ts +172 -172
  261. package/src/namespaces/Event.ts +4 -4
  262. package/src/namespaces/Fire.ts +127 -127
  263. package/src/namespaces/Flock.ts +2 -2
  264. package/src/namespaces/Gang.ts +2 -2
  265. package/src/namespaces/GoogleAnalytics.ts +2 -2
  266. package/src/namespaces/Graphics.ts +583 -583
  267. package/src/namespaces/Hud.ts +741 -741
  268. package/src/namespaces/Ik.ts +1 -1
  269. package/src/namespaces/Interaction.ts +3 -3
  270. package/src/namespaces/InteriorStatics.ts +2 -2
  271. package/src/namespaces/Inventory.ts +236 -236
  272. package/src/namespaces/Itemdatabase.ts +11 -11
  273. package/src/namespaces/Itemset.ts +2 -2
  274. package/src/namespaces/Law.ts +20 -20
  275. package/src/namespaces/Localization.ts +1 -1
  276. package/src/namespaces/Map.ts +256 -256
  277. package/src/namespaces/Minigame.ts +29 -29
  278. package/src/namespaces/Misc.ts +38 -38
  279. package/src/namespaces/Missiondata.ts +28 -28
  280. package/src/namespaces/Money.ts +3 -3
  281. package/src/namespaces/Netshopping.ts +99 -99
  282. package/src/namespaces/Network.ts +1165 -1165
  283. package/src/namespaces/Object.ts +214 -214
  284. package/src/namespaces/Pad.ts +150 -150
  285. package/src/namespaces/Pathfind.ts +10 -10
  286. package/src/namespaces/PedStatics.ts +42 -42
  287. package/src/namespaces/Perschar.ts +78 -78
  288. package/src/namespaces/Physics.ts +141 -141
  289. package/src/namespaces/PlayerStatics.ts +228 -228
  290. package/src/namespaces/Population.ts +114 -114
  291. package/src/namespaces/Posse.ts +87 -87
  292. package/src/namespaces/Replay.ts +3 -3
  293. package/src/namespaces/Scripts.ts +13 -13
  294. package/src/namespaces/Socialclub.ts +8 -8
  295. package/src/namespaces/Socialclubfeed.ts +1 -1
  296. package/src/namespaces/Spactionproxy.ts +4 -4
  297. package/src/namespaces/Stats.ts +293 -293
  298. package/src/namespaces/Streaming.ts +93 -93
  299. package/src/namespaces/Task.ts +228 -228
  300. package/src/namespaces/Telemetry.ts +322 -322
  301. package/src/namespaces/Txd.ts +1 -1
  302. package/src/namespaces/Uiapps.ts +43 -43
  303. package/src/namespaces/Uievents.ts +1 -1
  304. package/src/namespaces/Uifeed.ts +28 -28
  305. package/src/namespaces/Uistickyfeed.ts +23 -23
  306. package/src/namespaces/Unlock.ts +5 -5
  307. package/src/namespaces/VehicleStatics.ts +12 -12
  308. package/src/namespaces/Voice.ts +70 -70
  309. package/src/namespaces/VolumeStatics.ts +222 -222
  310. package/src/namespaces/Water.ts +47 -47
  311. package/src/namespaces/WeaponStatics.ts +402 -402
  312. package/src/namespaces/Zone.ts +10 -10
  313. package/src/types/NativeAliases.ts +6 -1
@@ -13,8 +13,8 @@ export class Player {
13
13
  *
14
14
  * @returns
15
15
  */
16
- isRidingTrain() {
17
- return inv('0x2FB0ACADA6A238DD', this.handle, rai());
16
+ get IsRidingTrain() {
17
+ return !!inv('0x2FB0ACADA6A238DD', this.handle, rai());
18
18
  }
19
19
  /**
20
20
  * Sets whether all trails are hidden during Eagle Eye mode.
@@ -30,7 +30,7 @@ export class Player {
30
30
  * @returns
31
31
  */
32
32
  N_0x621D1B289CAF5978() {
33
- return inv('0x621D1B289CAF5978', this.handle, rai());
33
+ return !!inv('0x621D1B289CAF5978', this.handle, rai());
34
34
  }
35
35
  /**
36
36
  * Decreases the damage the player receives while on horseback
@@ -38,13 +38,13 @@ export class Player {
38
38
  *
39
39
  * @param damageDecrease
40
40
  */
41
- setReceivedDamageTakenOnHorsebackModifier(damageDecrease) {
41
+ set ReceivedDamageTakenOnHorsebackModifier(damageDecrease) {
42
42
  inv('0xB427911EA6DFFEF3', this.handle, f(damageDecrease));
43
43
  }
44
44
  /**
45
45
  * @param toggle
46
46
  */
47
- setCanMercyKill(toggle) {
47
+ set CanMercyKill(toggle) {
48
48
  inv('0x39363DFD04E91496', this.handle, toggle);
49
49
  }
50
50
  /**
@@ -58,7 +58,7 @@ export class Player {
58
58
  /**
59
59
  * @param speech
60
60
  */
61
- setInteractionPositiveResponse(speech) {
61
+ set InteractionPositiveResponse(speech) {
62
62
  inv('0xC6366A585659D15C', this.handle, speech);
63
63
  }
64
64
  /**
@@ -66,7 +66,7 @@ export class Player {
66
66
  *
67
67
  * @param multiplier
68
68
  */
69
- setAirDragMultiplierForPlayersVehicle(multiplier) {
69
+ set AirDragMultiplierForPlayersVehicle(multiplier) {
70
70
  inv('0x5DA6500FE849DA16', this.handle, f(multiplier));
71
71
  }
72
72
  /**
@@ -74,7 +74,7 @@ export class Player {
74
74
  *
75
75
  * @param wagon
76
76
  */
77
- setHuntingWagon(wagon) {
77
+ set HuntingWagon(wagon) {
78
78
  inv('0x6A4404BDFA62CE2C', this.handle, wagon.handle);
79
79
  }
80
80
  /**
@@ -90,1719 +90,1725 @@ export class Player {
90
90
  inv('0x131E294EF60160DF', this.handle, f(p1), f(p2), f(p3), f(intensity), flag);
91
91
  }
92
92
  /**
93
- * @param disabled
93
+ * @param target
94
94
  */
95
- specialAbilitySetDisabled(disabled) {
96
- inv('0xAE637BB8EF017875', this.handle, disabled);
95
+ set BountyTarget(target) {
96
+ inv('0x6ADF821FBF21920E', this.handle, target.handle);
97
97
  }
98
98
  /**
99
- * @param ammoType
100
- * @param amount
99
+ * Retrieves whether all trails are currently hidden during Eagle Eye mode for the specified player.
100
+ *
101
+ * @returns
101
102
  */
102
- setMaxAmmoOverrideForAmmoType(ammoType, amount) {
103
- inv('0xE133C1EC5300F740', this.handle, _h(ammoType), amount);
103
+ eagleEyeAreAllTrailsHidden() {
104
+ return inv('0xA62BBAAE67A05BB0', this.handle);
104
105
  }
105
106
  /**
106
- * @param p1
107
+ * @returns
107
108
  */
108
- eagleEyeSetTrackingUpgrade2(p1) {
109
- inv('0x6FA957D1B55941C1', this.handle, f(p1));
110
- }
111
- setAllNeutralRandomPedsFleeThisFrame() {
112
- inv('0x16752DAA7E6D3F72', this.handle);
109
+ get IsDeadeyeTaggingEnabled() {
110
+ return inv('0x32348719DCED2969', this.handle);
113
111
  }
114
112
  /**
115
- * @param p1
113
+ * Sets Player's Defense against AI modifier
114
+ *
115
+ * @param modifier
116
116
  */
117
- restoreStamina(p1) {
118
- inv('0xC41F4B6E23FE6A4A', this.handle, f(p1));
117
+ set AiDefenseModifierAgainstAi(modifier) {
118
+ inv('0x914071FF93AF2692', this.handle, f(modifier));
119
119
  }
120
120
  /**
121
+ * Gets the player's team.
122
+ * Returns -1 in singleplayer.
123
+ *
121
124
  * @returns
122
125
  */
123
- getCachedDeadEyeAmount() {
124
- return inv('0xDF66A37936D5F3D9', this.handle, raf());
125
- }
126
- clearHasDamagedAtLeastOnePed() {
127
- inv('0x270B63A641BE32F2', this.handle);
126
+ get Team() {
127
+ return inv('0xB464EB6A40C7975B', this.handle, rai());
128
128
  }
129
129
  /**
130
- * @param entity
131
- * @param p2
132
130
  * @returns
133
131
  */
134
- isTargettingEntity(entity, p2) {
135
- return inv('0x27F89FDC16688A7A', this.handle, entity.handle, p2, rai());
132
+ get HealthRechargeMultiplier() {
133
+ return inv('0x22CD23BB0C45E0CD', this.handle, raf());
136
134
  }
137
135
  /**
138
- * If player has less Dead Eye than required, Dead Eye cant be triggered.
136
+ * Used in script function: NET_AUTO_FOLLOW_UPDATE_LEADER_VALUES
137
+ * followMode:
138
+ * HORSEFOLLOWMODE_AUTO = 0,
139
+ * HORSEFOLLOWMODE_SIDE_ONLY,
140
+ * HORSEFOLLOWMODE_BEHIND_ONLY,
141
+ * HORSEFOLLOWMODE_BEHIND_AND_SIDE,
142
+ * HORSEFOLLOWMODE_BEHIND_CLOSE
143
+ * followPriority:
144
+ * HORSEFOLLOWPRIORITY_STEER_ASSIST = 0,
145
+ * HORSEFOLLOWPRIORITY_AMBIENT,
146
+ * HORSEFOLLOWPRIORITY_NORMAL,
147
+ * HORSEFOLLOWPRIORITY_HIGH
139
148
  *
140
- * @returns
149
+ * @param ped
150
+ * @param p2
151
+ * @param p3
152
+ * @param followMode
153
+ * @param followPriority
154
+ * @param p6
141
155
  */
142
- getRequiredDeadEyeAmount() {
143
- return inv('0x811A748B1BE231BA', this.handle, raf());
156
+ addAsFollowTarget(ped, p2, p3, followMode, followPriority, p6) {
157
+ inv('0xAC22AA6DF4D1C1DE', this.handle, ped.handle, f(p2), f(p3), followMode, followPriority, p6);
144
158
  }
145
159
  /**
146
- * @param p1
160
+ * Sets the stand prompt for a specific player using a predefined text entry. use AddTextEntry for promptTextKey for custom names
161
+ *
162
+ * @param promptTextKey
147
163
  */
148
- N_0x263D69767F76059C(p1) {
149
- inv('0x263D69767F76059C', this.handle, p1);
164
+ set PromptLeaveText(promptTextKey) {
165
+ inv('0x06C3DB00B69D5435', this.handle, promptTextKey);
150
166
  }
151
167
  /**
152
- * Make sure to request the model first and wait until it has loaded.
168
+ * Retrieves the number of marks placed on a PED when Deadeye mode is active for the specified player.
153
169
  *
154
- * @param modelHash
155
- * @param p2
170
+ * @param ped
171
+ * @returns
156
172
  */
157
- setModel(modelHash, p2) {
158
- inv('0xED40380076A31506', this.handle, _h(modelHash), p2);
173
+ getNumDeadeyeMarksOnPed(ped) {
174
+ return inv('0x27AD7162D3FED01E', this.handle, ped.handle);
159
175
  }
160
176
  /**
161
- * @param toggle
177
+ * @returns
162
178
  */
163
- setLockon(toggle) {
164
- inv('0x462AA1973CBBA75E', this.handle, toggle);
179
+ get Ped2() {
180
+ return createFromHandle('Ped', inv('0x5EBE38A20BC51C27', this.handle, rai()));
165
181
  }
166
182
  /**
167
- * Sets the player's ability to wear hats based on the specified flag. The flag value determines whether the player can wear all hats or only the ones they own.
168
- * If the flag is set to 15 and `allow` is true, the player can wear all available hats. However, if you want to restrict the player to wearing only their owned hats (flag 1), you **must first** disable flag 15 by setting it to false, and then set flag 1 to true.
169
- *
170
- * @param flag
171
- * @param allow
183
+ * @param p1
184
+ * @returns
172
185
  */
173
- setHatAccess(flag, allow) {
174
- inv('0xA0C683284DF027C7', this.handle, flag, allow);
186
+ getIsUiPromptActive(p1) {
187
+ return inv('0x51BEA356B1C60225', this.handle, p1);
175
188
  }
176
189
  /**
177
- * @param closeDamageBonus
190
+ * Returns true if PromptType is enabled for ped (mount)
191
+ * Params: See 0x0751D461F06E41CE
192
+ *
193
+ * @param ped
194
+ * @param promptType
195
+ * @param promptMode
196
+ * @returns
178
197
  */
179
- setDamageCloseDistanceBonusTotal(closeDamageBonus) {
180
- inv('0x5006C36652D6EC56', this.handle, f(closeDamageBonus));
198
+ getUiPromptForPedIsEnabled(ped, promptType, promptMode) {
199
+ return inv('0xEA8F168A76A0B9BC', this.handle, ped.handle, promptType, promptMode);
181
200
  }
182
201
  /**
183
- * Params: p1 = -1 in R* Scripts
202
+ * Applies a aura effect to nearby entities when Deadeye is active, based on a flag parameter. This includes humans, animals, vehicles, and horses pulling those vehicles. Additionally, depending on the flag value, the player's appearance may change (e.g., turning gray).
184
203
  *
185
- * @param p1
186
- * @param p2
204
+ * @param flag
187
205
  */
188
- specialAbilityStartRestore(p1, p2) {
189
- inv('0x1D77B47AFA584E90', this.handle, p1, p2);
206
+ set DeadeyeEntityAuraWithFlag(flag) {
207
+ inv('0x2B12B6FC8B8772AB', this.handle, flag);
190
208
  }
191
209
  /**
192
- * @param multiplier
210
+ * @returns
193
211
  */
194
- setStaminaSprintDepletionMultiplier(multiplier) {
195
- inv('0xBBADFB5E5E5766FB', this.handle, f(multiplier));
212
+ get MountOwnedByPlayer() {
213
+ return createFromHandle('Ped', inv('0xF49F14462F0AE27C', this.handle, rai()));
196
214
  }
197
215
  /**
198
- * @param p1
216
+ * @param weaponHash Refer to [enum: eWeaponHash]
217
+ * @param damageModifier
199
218
  */
200
- eagleEyeSetTrackingUpgrade(p1) {
201
- inv('0xDFC85C5199045026', this.handle, f(p1));
219
+ setWeaponTypeDamageModifier(weaponHash, damageModifier) {
220
+ inv('0xD04AD186CE8BB129', this.handle, weaponHash, f(damageModifier));
202
221
  }
203
222
  /**
204
- * Get the entity the player is aiming at with/without weapon.
223
+ * Only used in script function PROCESS_PED_INTERRUPT_DIALOGUE
224
+ * *GET_PLAYER**
205
225
  *
206
- * @returns entity
226
+ * @returns ped
207
227
  */
208
- getInteractionAimEntity() {
209
- const result = inv('0xBEA3A6E5F5F79A6F', this.handle, pvi(), rai());
210
- return [!!result[0], createFromHandle('Entity', result[1])];
228
+ N_0x7AE93C45EC14A166() {
229
+ const result = inv('0x7AE93C45EC14A166', this.handle, pvi(), rai());
230
+ return [!!result[0], createFromHandle('Ped', result[1])];
211
231
  }
212
232
  /**
213
- * @param modifier
233
+ * @param speed
234
+ * @param duration
235
+ * @param heading
236
+ * @param p4
237
+ * @param p5
214
238
  */
215
- setWeaponDefenseModifier(modifier) {
216
- inv('0xD15CC2D493160BE3', this.handle, f(modifier));
239
+ simulateInputGait(speed, duration, heading, p4, p5) {
240
+ inv('0xFA0C063C422C4355', this.handle, f(speed), duration, f(heading), p4, p5);
217
241
  }
218
242
  /**
243
+ * @param p1
219
244
  * @returns
220
245
  */
221
- hasDamagedAtLeastOneNonAnimalPed() {
222
- return inv('0x16C8D205DD5A2E90', this.handle, rai());
246
+ getDeadEyeMeterLevel(p1) {
247
+ return inv('0x3A6AE4EEE30370FE', this.handle, p1, raf());
223
248
  }
224
249
  /**
225
- * @returns
250
+ * @param drawReductionTime
226
251
  */
227
- getDeadeyeAbilityLevel() {
228
- return inv('0xCCE7C695C164C35F', this.handle, rai());
252
+ set BowDrawReductionTimeInDeadeye(drawReductionTime) {
253
+ inv('0xBE0C524970892D41', this.handle, f(drawReductionTime));
229
254
  }
230
255
  /**
231
- * This native is used to determine if the player has an active lockon an entity while riding a horse.
256
+ * Checks if the player can focus on tracks while in Eagle Eye mode. Returns true if the player is able to focus on a track, otherwise false.
232
257
  *
233
258
  * @returns
234
259
  */
235
- isOnMountLockonEntity() {
236
- return inv('0x2009F8AB7A5E9D6D', this.handle, rai());
237
- }
238
- suppressWitnessesCallingPoliceThisFrame() {
239
- inv('0x96722257E5381E00', this.handle);
260
+ eagleEyeCanFocusOnTrack() {
261
+ return inv('0x1DA5C5B0923E1B85', this.handle);
240
262
  }
241
263
  /**
242
- * bullet damage modifier: type = 4
243
- * explosive damage Defense mod: type = 7
244
- * fire damage Defense mod: type = 8, 15
245
- *
246
- * @param type
247
- * @param defenseModifier
264
+ * @param range
248
265
  */
249
- setDefenseTypeModifier(type, defenseModifier) {
250
- inv('0x93F499CAE53FCD05', this.handle, type, f(defenseModifier));
266
+ eagleEyeSetRange(range) {
267
+ inv('0x22C8B10802301381', this.handle, f(range));
251
268
  }
252
269
  /**
253
- * *CLEAR_FACIAL** - _CLEAR_PED_BLOOD*
270
+ * *SET_SPECIAL_ABILITY**
271
+ *
272
+ * @param p1
254
273
  */
255
- N_0xF21C7A3F3FFBA629() {
256
- inv('0xF21C7A3F3FFBA629', this.handle);
274
+ N_0x4D1699543B1C023C(p1) {
275
+ inv('0x4D1699543B1C023C', this.handle, f(p1));
257
276
  }
258
277
  /**
259
- * Associates a specific interactive focus mode preset between a player and a ped, with a specified location and target entity.
260
- * To access all available presets, refer to the file located at: `/update_1.rpf/common/data/interactive_focus_mode_presets.meta`
278
+ * Drains Deadeye by given amount.
261
279
  *
262
- * @param ped
263
- * @param preset
264
- * @param pos
265
- * @param targetEntity
266
- * @param name
280
+ * @param amount
281
+ * @param p2
267
282
  */
268
- addAmbientInteractiveFocusPreset(ped, preset, pos, targetEntity, name) {
269
- inv('0x3946FC742AC305CD', this.handle, ped.handle, preset, f(pos.x), f(pos.y), f(pos.z), targetEntity.handle, name);
283
+ specialAbilityDrainByAmount(amount, p2) {
284
+ inv('0x200114E99552462B', this.handle, f(amount), p2);
270
285
  }
271
286
  /**
272
- * Resets any aura effects applied to entities for a specific player in Deadeye mode, returning all aura-related visuals to their default state. This function is primarily used to remove any highlighting or aura effects set by `_SET_DEADEYE_ENTITY_AURA_WITH_FLAG - 0x2B12B6FC8B8772AB` and `_SET_DEADEYE_ENTITY_AURA_INTENSITY_WITH_FLAG - 0x131E294EF60160DF`
287
+ * @param weaponGroup
288
+ * @param toggle
273
289
  */
274
- resetDeadeyeAuraEffect() {
275
- inv('0xE910932F4B30BE23', this.handle);
290
+ setWeaponGroupAsInstantKill(weaponGroup, toggle) {
291
+ inv('0x59F0AFF3E0A1B019', this.handle, _h(weaponGroup), toggle);
276
292
  }
277
293
  /**
278
- * @param accuracy
294
+ * Returns false if PromptType is enabled
295
+ * Params: See 0x0751D461F06E41CE
296
+ *
297
+ * @param promptType
298
+ * @param promptMode
299
+ * @returns
279
300
  */
280
- setTotalAccuracyModifier(accuracy) {
281
- inv('0x967FF5BC0CFE6D26', this.handle, f(accuracy));
301
+ getUiPromptIsDisabled(promptType, promptMode) {
302
+ return inv('0x6614F9039BD31931', this.handle, promptType, promptMode);
282
303
  }
283
304
  /**
284
- * @returns
305
+ * @param toggle
285
306
  */
286
- getVehicleOwnedByPlayer() {
287
- return createFromHandle('Vehicle', inv('0xB9050A97594C8832', this.handle, rai()));
307
+ set LockonToFriendlyPlayers(toggle) {
308
+ inv('0x4A056257802DD3E5', this.handle, toggle);
288
309
  }
289
310
  /**
290
- * Activates EagleEye, called together with 0x28A13BF6B05C3D83
311
+ * Activates the Surrender prompt for the specified player in the current frame.
312
+ *
313
+ * @param targetPed
314
+ * @param promptOrder
315
+ * @param p3
291
316
  */
292
- secondarySpecialAbilitySetActive() {
293
- inv('0x1710BC33CFB83634', this.handle);
317
+ setCooperatePromptThisFrame(targetPed, promptOrder, p3) {
318
+ inv('0xCBB54CC7FFFFAB86', this.handle, targetPed.handle, promptOrder, p3);
294
319
  }
295
320
  /**
296
- * _GET_A* - _GET_C*
321
+ * https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePlayerResetFlags
322
+ * https://github.com/femga/rdr3_discoveries/tree/master/AI/PLAYER_RESET_FLAGS
297
323
  *
324
+ * @param playerResetFlag
325
+ * @param p2
326
+ */
327
+ setResetFlag(playerResetFlag, p2) {
328
+ inv('0x9F9A829C6751F3C7', this.handle, playerResetFlag, p2);
329
+ }
330
+ /**
298
331
  * @returns
299
332
  */
300
- N_0x927861B2C08DBEA5() {
301
- return inv('0x927861B2C08DBEA5', this.handle, rai());
333
+ get WantedLevel() {
334
+ return inv('0xABC532F9098BFD9D', this.handle, rai());
302
335
  }
303
336
  /**
304
- * it is used to check for that period of time if player damaged any peds only returns the last 3 hits with the entity ids so if you hit the same entity 3 times it will return the same entity id 3 times, if you hit 4 different entities within that time it will return the last 3 entity ids
305
- * only stores the last 3 hits in the data view buffer
306
- * duration is in miliseconds
307
- * you need dataview
308
- *
309
- * @param duration
310
- * @returns struct
337
+ * @param closeRangeLowerBound
338
+ * @param closeRangeUpperBound
311
339
  */
312
- getPedsDamagedByRecently(duration) {
313
- const result = inv('0x1A6E84F13C952094', this.handle, duration, pvi(), rai());
314
- return [!!result[0], result[1]];
340
+ setDamageCloseDistanceBonus(closeRangeLowerBound, closeRangeUpperBound) {
341
+ inv('0x7761A30432C91297', this.handle, f(closeRangeLowerBound), f(closeRangeUpperBound));
315
342
  }
316
343
  /**
317
344
  * @param multiplier
318
345
  */
319
- setStaminaRechargeMultiplier(multiplier) {
320
- inv('0xFECA17CF3343694B', this.handle, f(multiplier));
346
+ set SneakingNoiseMultiplier(multiplier) {
347
+ inv('0x4DE44FA389DCA565', this.handle, f(multiplier));
321
348
  }
322
349
  /**
323
- * Deactivates EagleEye, called together with 0xC0B21F235C02139C
350
+ * Sets the player's team.
324
351
  *
325
- * @param disabled
352
+ * @param team
353
+ * @param bRestrictToThisScript
326
354
  */
327
- secondarySpecialAbilitySetDisabled(disabled) {
328
- inv('0x64FF4BF9AF59E139', this.handle, disabled);
355
+ setTeam(team, bRestrictToThisScript) {
356
+ inv('0xE8DD8536F01DE600', this.handle, team, bRestrictToThisScript);
329
357
  }
330
358
  /**
359
+ * Checks if the player's Deadeye ability is enabled.
360
+ *
331
361
  * @returns
332
362
  */
333
- updateTeleport() {
334
- return inv('0xC39DCE4672CBFBC1', this.handle, rai());
363
+ get IsSpecialAbilityEnabled() {
364
+ return inv('0xDE6C85975F9D4894', this.handle);
335
365
  }
336
- resetInputGait() {
337
- inv('0x61A2EECAB274829B', this.handle);
366
+ /**
367
+ * @param p2
368
+ * @param p3
369
+ * @returns outEntity
370
+ */
371
+ getInteractionTargetEntity(p2, p3) {
372
+ const result = inv('0x3EE1F7A8C32F24E1', this.handle, pvi(), p2, p3);
373
+ return [result[0], createFromHandle('Entity', result[1])];
338
374
  }
339
375
  /**
340
- * Activates the special ability for the specified player.
376
+ * @param toggle
341
377
  */
342
- specialAbilitySetActivate() {
343
- inv('0xBBA140062B15A8AC', this.handle);
378
+ set DeadeyeTaggingEnabled(toggle) {
379
+ inv('0x6B5DDFB967E5073D', this.handle, toggle);
344
380
  }
345
- clearHasDamagedAtLeastOneNonAnimalPed() {
346
- inv('0x0361096D6CE4372C', this.handle);
381
+ /**
382
+ * @returns
383
+ */
384
+ get Stamina() {
385
+ return inv('0x0FF421E467373FCF', this.handle, raf());
347
386
  }
348
387
  /**
349
388
  * @param modifier
350
389
  */
351
- setWeaponDegradationModifier(modifier) {
352
- inv('0x11A7FF918EF6BC66', this.handle, f(modifier));
390
+ set MeleeWeaponDamageModifier(modifier) {
391
+ inv('0xE4CB5A3F18170381', this.handle, f(modifier));
353
392
  }
354
393
  /**
355
- * Only used in R* SP Script short_update
356
- *
357
- * @param timer
394
+ * @returns
358
395
  */
359
- setSpecialAbilityDisableTimer(timer) {
360
- inv('0xC0B1C05B313693D1', this.handle, f(timer));
396
+ hasBeenSpottedInStolenVehicle() {
397
+ return !!inv('0xC932F57F31EA9152', this.handle, rai());
361
398
  }
362
399
  /**
363
- * @param abilityType
364
- * @param toggle
400
+ * Enables or disables the Pick Up prompt for a hat on the ground for the specified player. When set to true, the player will see a prompt to pick up the hat if they are near it.
401
+ *
402
+ * @param canPickup
365
403
  */
366
- setDeadeyeAbilityLocked(abilityType, toggle) {
367
- inv('0x2797B8D66DD0EBB8', this.handle, abilityType, toggle);
404
+ set CanPickupHat(canPickup) {
405
+ inv('0xACA45DDCEF6071C4', this.handle, canPickup);
368
406
  }
369
407
  /**
370
- * playerResetFlag: See 0x9F9A829C6751F3C7
408
+ * Sets the aura color for entities that the player can target in Deadeye mode, based on a specific hash value. This Native was previously named `SetPlayerStatFlagHash`, but it has been re-evaluated and renamed to better reflect its function in controlling the Deadeye aura color for targeted entities
409
+ * some colors
410
+ * 0: Default aura
411
+ * 1014693585
412
+ * 1936842089
413
+ * 1979474018
371
414
  *
372
- * @param playerResetFlag
373
- * @returns
415
+ * @param auraColorHash
374
416
  */
375
- getResetFlag(playerResetFlag) {
376
- return inv('0xFE691E89C08937B6', this.handle, playerResetFlag);
417
+ set DeadEyeAuraByHash(auraColorHash) {
418
+ inv('0x768E81AE285A4B67', this.handle, _h(auraColorHash));
377
419
  }
378
420
  /**
379
- * Returns TRUE if the player ('s ped) is climbing at the moment.
380
- *
421
+ * @param horse
381
422
  * @returns
382
423
  */
383
- isClimbing() {
384
- return inv('0xB8A70C22FD48197A', this.handle, rai());
424
+ setPedAsTempHorse(horse) {
425
+ return inv('0x227B06324234FB09', this.handle, horse.handle);
385
426
  }
386
427
  /**
387
- * @returns Refer to [enum: ePedMood]
428
+ * Restores Deadeye by given amount.
429
+ * Params: p2, p3, p4 = 0, 0, 1 in R* Scripts
430
+ *
431
+ * @param amount
432
+ * @param p2
433
+ * @param p3
434
+ * @param p4
388
435
  */
389
- getMood() {
390
- return inv('0x054473164C012699', this.handle, rai());
391
- }
392
- clearBountyTarget() {
393
- inv('0x8F2A81C09DA9124A', this.handle);
436
+ specialAbilityRestoreByAmount(amount, p2, p3, p4) {
437
+ inv('0x51345AE20F22C261', this.handle, f(amount), p2, p3, p4);
394
438
  }
395
439
  /**
396
- * Focus Fire VFX start for player: p1 = focusfire
440
+ * Only used in R* SP Script short_update
397
441
  *
398
- * @param p1
442
+ * @param delay
399
443
  */
400
- setLockonFocusFireVfx(p1) {
401
- inv('0x5F8E0303C229C84B', this.handle, p1);
444
+ set DeadeyeAbilityDepletionDelay(delay) {
445
+ inv('0x870634493CB4372C', this.handle, f(delay));
402
446
  }
403
447
  /**
404
- * Params: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePromptType
405
- * promptType is mostly 34 (PP_TRACK_ANIMAL), promptMode = 0 (PP_MODE_BLOCK) in R* Scripts
448
+ * Swim speed multiplier.
449
+ * Multiplier goes up to 1.49f
406
450
  *
407
- * @param promptType
408
- * @param promptMode
409
- * @param disabled
451
+ * @param multiplier
410
452
  */
411
- modifyUiPrompt(promptType, promptMode, disabled) {
412
- inv('0x0751D461F06E41CE', this.handle, promptType, promptMode, disabled);
453
+ set SwimMultiplierForPlayer(multiplier) {
454
+ inv('0xBFCEABDE34DA5085', this.handle, f(multiplier));
413
455
  }
414
456
  /**
415
- * @param p1
416
457
  * @returns
417
458
  */
418
- getMaxDeadEye(p1) {
419
- return inv('0x592F58BC4D2A2CF3', this.handle, p1, raf());
459
+ get IsDead() {
460
+ return !!inv('0x2E9C3FCB6798F397', this.handle, rai());
420
461
  }
421
462
  /**
422
- * @param toggle
423
463
  * @param ped
424
- * @param p3
425
- * @param p4
464
+ * @param p2
426
465
  */
427
- setForcedAim(toggle, ped, p3, p4) {
428
- inv('0xD5FCC166AEB2FD0F', this.handle, toggle, ped.handle, p3, p4);
466
+ N_0x310CE349E0C0EC4B(ped, p2) {
467
+ inv('0x310CE349E0C0EC4B', this.handle, ped.handle, p2);
429
468
  }
430
- N_0x93624B36E8851B42() {
431
- inv('0x93624B36E8851B42', this.handle);
469
+ /**
470
+ * Clears all Eagle Eye trails that were registered for entities associated with the specified player.
471
+ */
472
+ eagleEyeClearRegisteredTrails() {
473
+ inv('0xE5D3EB37ABC1EB03', this.handle);
432
474
  }
433
475
  /**
434
- * @param abilityType
476
+ * @param enable
477
+ */
478
+ enableCustomDeadeyeAbility(enable) {
479
+ inv('0x95EE1DEE1DCD9070', this.handle, enable);
480
+ }
481
+ /**
482
+ * Returns the player's invincibility status.
483
+ *
435
484
  * @returns
436
485
  */
437
- isDeadeyeAbilityLocked(abilityType) {
438
- return inv('0x8A0643B0B4CA276B', this.handle, abilityType);
486
+ get Invincible() {
487
+ return !!inv('0x0CBBCB2CCFA7DC4E', this.handle, rai());
488
+ }
489
+ resetArrestState() {
490
+ inv('0x12917931C31F1750', this.handle);
491
+ }
492
+ /**
493
+ * Toggle handles wether Deadeye and Eagleeye are infinite or not.
494
+ *
495
+ * @param toggle
496
+ */
497
+ modifyInfiniteTrailVision(toggle) {
498
+ inv('0x28A13BF6B05C3D83', this.handle, toggle);
439
499
  }
440
500
  /**
441
- * @param ped
442
- * @param useSteerassist
501
+ * Simply sets you as invincible (Health will not deplete).
502
+ *
503
+ * @param toggle
443
504
  */
444
- N_0x1FDA57E8908F2609(ped, useSteerassist) {
445
- inv('0x1FDA57E8908F2609', this.handle, ped.handle, useSteerassist);
505
+ set Invincible(toggle) {
506
+ inv('0xFEBEEBC9CBDF4B12', this.handle, toggle);
446
507
  }
447
508
  /**
448
- * Returns Deadeye value from player
509
+ * Returns whether the player can control himself.
449
510
  *
450
511
  * @returns
451
512
  */
452
- specialAbilityGetAmountCached() {
453
- return inv('0x029884FB65821B07', this.handle, raf());
513
+ get IsControlOn() {
514
+ return !!inv('0x7964097FCE4C244B', this.handle, rai());
454
515
  }
455
516
  /**
456
517
  * @param vehicle
457
518
  */
458
- setOwnsVehicle(vehicle) {
459
- inv('0xD0E02AA618020D17', this.handle, vehicle.handle);
519
+ set MayOnlyEnterThisVehicle(vehicle) {
520
+ inv('0xDA35A134038557EC', this.handle, vehicle.handle);
460
521
  }
461
522
  /**
462
- * @returns
523
+ * @param disabled
463
524
  */
464
- hasDamagedAtLeastOnePed() {
465
- return inv('0xDA4A4B9B96E20092', this.handle, rai());
525
+ specialAbilitySetDisabled(disabled) {
526
+ inv('0xAE637BB8EF017875', this.handle, disabled);
466
527
  }
467
528
  /**
468
- * Seems to enable active horse equipment prompt when being near it and enables the control that opens the inventory as well
469
- *
470
- * @param mount
529
+ * @param ammoType
530
+ * @param amount
471
531
  */
472
- setOwnsMount(mount) {
473
- inv('0xE6D4E435B56D5BD0', this.handle, mount.handle);
532
+ setMaxAmmoOverrideForAmmoType(ammoType, amount) {
533
+ inv('0xE133C1EC5300F740', this.handle, _h(ammoType), amount);
474
534
  }
475
535
  /**
476
- * nullsub, doesn't do anything
536
+ * @param p1
477
537
  */
478
- clearWantedLevel() {
479
- inv('0x4E4B996C928C7AA6', this.handle);
538
+ eagleEyeSetTrackingUpgrade2(p1) {
539
+ inv('0x6FA957D1B55941C1', this.handle, f(p1));
540
+ }
541
+ setAllNeutralRandomPedsFleeThisFrame() {
542
+ inv('0x16752DAA7E6D3F72', this.handle);
480
543
  }
481
544
  /**
482
- * Does the same like PLAYER::GET_PLAYER_PED
483
- *
484
- * @returns
545
+ * @param p1
485
546
  */
486
- getPedScriptIndex() {
487
- return createFromHandle('Ped', inv('0x5C880F9056D784C8', this.handle, rai()));
547
+ restoreStamina(p1) {
548
+ inv('0xC41F4B6E23FE6A4A', this.handle, f(p1));
488
549
  }
489
550
  /**
490
- * Retrieves the ID of the ped that the specified player is currently tracking while in Eagle Eye mode.
491
- *
492
551
  * @returns
493
552
  */
494
- eagleEyeGetTrackedPedId() {
495
- return inv('0x3813E11A378958A5', this.handle);
553
+ get CachedDeadEyeAmount() {
554
+ return inv('0xDF66A37936D5F3D9', this.handle, raf());
555
+ }
556
+ clearHasDamagedAtLeastOnePed() {
557
+ inv('0x270B63A641BE32F2', this.handle);
496
558
  }
497
559
  /**
498
- * @returns Returns the player name, or if the player doesn't exist, it returns "**Invalid**"
560
+ * @param entity
561
+ * @param p2
562
+ * @returns
499
563
  */
500
- getName() {
501
- return inv('0x7124FD9AC0E01BA0', this.handle, ras());
564
+ isTargettingEntity(entity, p2) {
565
+ return !!inv('0x27F89FDC16688A7A', this.handle, entity.handle, p2, rai());
502
566
  }
503
567
  /**
504
- * Seems to work similar to 0xD2CB0FB0FDCB473D
568
+ * If player has less Dead Eye than required, Dead Eye cant be triggered.
505
569
  *
506
- * @param horse
570
+ * @returns
507
571
  */
508
- setPedActiveHorse(horse) {
509
- inv('0x8FBF9EDB378CCB8C', this.handle, horse.handle);
572
+ get RequiredDeadEyeAmount() {
573
+ return inv('0x811A748B1BE231BA', this.handle, raf());
510
574
  }
511
575
  /**
512
- * Name could potentially be inaccurate.
513
- * Used in Script Function HORSE_SETUP_PLAYER_HORSE_ATTRIBUTES (p1 = true)
514
- * _SET_PLAYER_L* - _SET_PLAYER_M*
515
- *
516
- * @param active
576
+ * @param p1
517
577
  */
518
- setMountStateActive(active) {
519
- inv('0xDF93973251FB2CA5', this.handle, active);
578
+ N_0x263D69767F76059C(p1) {
579
+ inv('0x263D69767F76059C', this.handle, p1);
520
580
  }
521
581
  /**
522
- * _IS_PLAYER_I* - _IS_PLAYER_P*
582
+ * Make sure to request the model first and wait until it has loaded.
523
583
  *
524
- * @returns p1
584
+ * @param modelHash
585
+ * @param p2
525
586
  */
526
- N_0xB331D8A73F9D2BDF() {
527
- const result = inv('0xB331D8A73F9D2BDF', this.handle, pvi(), rai());
528
- return [!!result[0], result[1]];
587
+ setModel(modelHash, p2) {
588
+ inv('0xED40380076A31506', this.handle, _h(modelHash), p2);
529
589
  }
530
590
  /**
531
- * Inhibits the player from using any method of combat including melee and firearms. NOTE: Only disables the firing for one frame
532
- *
533
591
  * @param toggle
534
592
  */
535
- disableFiring(toggle) {
536
- inv('0x2970929FD5F9FC89', this.handle, toggle);
537
- }
538
- specialAbilitySetEagleEyeDisabled() {
539
- inv('0xC0B21F235C02139C', this.handle);
593
+ set Lockon(toggle) {
594
+ inv('0x462AA1973CBBA75E', this.handle, toggle);
540
595
  }
541
596
  /**
542
- * Sets the sit prompt for a specific player using a predefined text entry. use game strings like PLAYER_SIT or use custom with
543
- * AddTextEntry("sit_custom", "Take a seat")
544
- * this native must be invoked
545
- * https://imgur.com/gallery/0x988c9045531b9fce-9bTHgkv
597
+ * Sets the player's ability to wear hats based on the specified flag. The flag value determines whether the player can wear all hats or only the ones they own.
598
+ * If the flag is set to 15 and `allow` is true, the player can wear all available hats. However, if you want to restrict the player to wearing only their owned hats (flag 1), you **must first** disable flag 15 by setting it to false, and then set flag 1 to true.
546
599
  *
547
- * @param label
548
- */
549
- setSitPromptText(label) {
550
- inv('0x988C9045531B9FCE', this.handle, label);
551
- }
552
- updateWantedPositionThisFrame() {
553
- inv('0xD0B0B044112BF424', this.handle);
554
- }
555
- /**
556
- * @param entity
557
- */
558
- unregisterEagleEyeForEntity(entity) {
559
- inv('0x9DAE1380CC5C6451', this.handle, entity.handle);
560
- }
561
- /**
562
- * @param farRangeLowerBound
563
- * @param farRangeUpperBound
600
+ * @param flag
601
+ * @param allow
564
602
  */
565
- setDamageFarDistanceBonus(farRangeLowerBound, farRangeUpperBound) {
566
- inv('0xED591CB17C8BA216', this.handle, f(farRangeLowerBound), f(farRangeUpperBound));
603
+ setHatAccess(flag, allow) {
604
+ inv('0xA0C683284DF027C7', this.handle, flag, allow);
567
605
  }
568
606
  /**
569
- * Sets the melee combat prompt for a specific player using a predefined text entry. use game string or
570
- * AddTextEntry("custom_text", "Throw a punch") and use custom_text in the native
571
- *
572
- * @param label
607
+ * @param closeDamageBonus
573
608
  */
574
- setMeleePromptText(label) {
575
- inv('0x0FAF95D71ED67ADE', this.handle, label);
609
+ set DamageCloseDistanceBonusTotal(closeDamageBonus) {
610
+ inv('0x5006C36652D6EC56', this.handle, f(closeDamageBonus));
576
611
  }
577
612
  /**
578
- * Used in script function INIT_DEADEYE_SLOWDOWN
613
+ * Params: p1 = -1 in R* Scripts
579
614
  *
580
615
  * @param p1
616
+ * @param p2
581
617
  */
582
- N_0x570A13A4CA2799BB(p1) {
583
- inv('0x570A13A4CA2799BB', this.handle, p1);
618
+ specialAbilityStartRestore(p1, p2) {
619
+ inv('0x1D77B47AFA584E90', this.handle, p1, p2);
584
620
  }
585
621
  /**
586
- * @param activationCost
587
- * @param p2
622
+ * @param multiplier
588
623
  */
589
- setSpecialAbilityActivationCost(activationCost, p2) {
590
- inv('0xAE4BCC79C587EBBF', this.handle, f(activationCost), p2);
624
+ set StaminaSprintDepletionMultiplier(multiplier) {
625
+ inv('0xBBADFB5E5E5766FB', this.handle, f(multiplier));
591
626
  }
592
627
  /**
593
- * Used for setting up eagle eye for entity
594
- * Params: p2 = re-register or not?
595
- *
596
- * @param entity
597
- * @param p2
628
+ * @param p1
598
629
  */
599
- registerEagleEyeForEntity(entity, p2) {
600
- inv('0x543DFE14BE720027', this.handle, entity.handle, p2);
630
+ eagleEyeSetTrackingUpgrade(p1) {
631
+ inv('0xDFC85C5199045026', this.handle, f(p1));
601
632
  }
602
633
  /**
603
- * @param p1
634
+ * Get the entity the player is aiming at with/without weapon.
635
+ *
636
+ * @returns entity
604
637
  */
605
- N_0x22B3CABEDDB538B2(p1) {
606
- inv('0x22B3CABEDDB538B2', this.handle, f(p1));
638
+ get InteractionAimEntity() {
639
+ const result = inv('0xBEA3A6E5F5F79A6F', this.handle, pvi(), rai());
640
+ return [!!result[0], createFromHandle('Entity', result[1])];
607
641
  }
608
642
  /**
609
643
  * @param modifier
610
644
  */
611
- setExplosiveWeaponDamageModifier(modifier) {
612
- inv('0x2D3ACE3DE0A2B622', this.handle, f(modifier));
645
+ set WeaponDefenseModifier(modifier) {
646
+ inv('0xD15CC2D493160BE3', this.handle, f(modifier));
613
647
  }
614
648
  /**
615
- * returns true if the player is on a road while riding a horse but at a certain speed, if you go off road then it returns false or if you go too slow like walking state it also returns false
616
- *
617
649
  * @returns
618
650
  */
619
- isMountOnRoad() {
620
- return inv('0xE631EAF35828FA67', this.handle);
651
+ hasDamagedAtLeastOneNonAnimalPed() {
652
+ return !!inv('0x16C8D205DD5A2E90', this.handle, rai());
621
653
  }
622
654
  /**
623
- * @param entity
624
655
  * @returns
625
656
  */
626
- isEagleEyeRegisteredForEntity(entity) {
627
- return inv('0x0E6846476906C9DD', this.handle, entity.handle);
657
+ get DeadeyeAbilityLevel() {
658
+ return inv('0xCCE7C695C164C35F', this.handle, rai());
628
659
  }
629
660
  /**
630
- * Max level is 5.
661
+ * This native is used to determine if the player has an active lockon an entity while riding a horse.
631
662
  *
632
- * @param level
663
+ * @returns
633
664
  */
634
- setDeadeyeAbilityLevel(level) {
635
- inv('0xF0FE8E790BFEB5BB', this.handle, level);
665
+ get IsOnMountLockonEntity() {
666
+ return !!inv('0x2009F8AB7A5E9D6D', this.handle, rai());
636
667
  }
637
- /**
638
- * Shows or hides all Pick Up prompts for the specified player, including the prompt for picking up hats from the ground. When set to true, the player will see Pick Up prompts for all nearby items. If set to false, all Pick Up prompts will be hidden.
639
- *
640
- * @param enable
641
- */
642
- setPickupPromptVisible(enable) {
643
- inv('0xD1A70C1E8D1031FE', this.handle, enable);
668
+ suppressWitnessesCallingPoliceThisFrame() {
669
+ inv('0x96722257E5381E00', this.handle);
644
670
  }
645
671
  /**
646
- * @param mount
672
+ * bullet damage modifier: type = 4
673
+ * explosive damage Defense mod: type = 7
674
+ * fire damage Defense mod: type = 8, 15
675
+ *
676
+ * @param type
677
+ * @param defenseModifier
647
678
  */
648
- setPedAsSaddleHorseForPlayer(mount) {
649
- inv('0xD2CB0FB0FDCB473D', this.handle, mount.handle);
679
+ setDefenseTypeModifier(type, defenseModifier) {
680
+ inv('0x93F499CAE53FCD05', this.handle, type, f(defenseModifier));
650
681
  }
651
682
  /**
652
- * @returns
683
+ * *CLEAR_FACIAL** - _CLEAR_PED_BLOOD*
653
684
  */
654
- getActiveHorseForPlayer() {
655
- return createFromHandle('Ped', inv('0x46FA0AE18F4C7FA9', this.handle, rai()));
685
+ N_0xF21C7A3F3FFBA629() {
686
+ inv('0xF21C7A3F3FFBA629', this.handle);
656
687
  }
657
688
  /**
658
- * @param entity
659
- * @param p2
689
+ * Associates a specific interactive focus mode preset between a player and a ped, with a specified location and target entity.
690
+ * To access all available presets, refer to the file located at: `/update_1.rpf/common/data/interactive_focus_mode_presets.meta`
691
+ *
692
+ * @param ped
693
+ * @param preset
694
+ * @param pos
695
+ * @param targetEntity
696
+ * @param name
660
697
  */
661
- unregisterEagleEyeTrailsForEntity(entity, p2) {
662
- inv('0x9A957912CE2EABD1', this.handle, entity.handle, p2);
698
+ addAmbientInteractiveFocusPreset(ped, preset, pos, targetEntity, name) {
699
+ inv('0x3946FC742AC305CD', this.handle, ped.handle, preset, f(pos.x), f(pos.y), f(pos.z), targetEntity.handle, name);
663
700
  }
664
701
  /**
665
- * Resetter for 0x4DBC4873707E8FD6, sets x, y, z to 1.0
702
+ * Resets any aura effects applied to entities for a specific player in Deadeye mode, returning all aura-related visuals to their default state. This function is primarily used to remove any highlighting or aura effects set by `_SET_DEADEYE_ENTITY_AURA_WITH_FLAG - 0x2B12B6FC8B8772AB` and `_SET_DEADEYE_ENTITY_AURA_INTENSITY_WITH_FLAG - 0x131E294EF60160DF`
666
703
  */
667
- N_0xCEDC16930526F728() {
668
- inv('0xCEDC16930526F728', this.handle);
704
+ resetDeadeyeAuraEffect() {
705
+ inv('0xE910932F4B30BE23', this.handle);
669
706
  }
670
707
  /**
671
- * @param ped
672
- * @param p2
708
+ * @param accuracy
673
709
  */
674
- N_0xDD33A82352C4652F(ped, p2) {
675
- inv('0xDD33A82352C4652F', this.handle, ped.handle, p2);
710
+ set TotalAccuracyModifier(accuracy) {
711
+ inv('0x967FF5BC0CFE6D26', this.handle, f(accuracy));
676
712
  }
677
713
  /**
678
- * _RESET_PLAYER_A* - _RESET_PLAYER_I*
714
+ * @returns
679
715
  */
680
- N_0x1F488807BC8E0630() {
681
- inv('0x1F488807BC8E0630', this.handle);
716
+ get VehicleOwnedByPlayer() {
717
+ return createFromHandle('Vehicle', inv('0xB9050A97594C8832', this.handle, rai()));
682
718
  }
683
719
  /**
684
- * @param p1
720
+ * Activates EagleEye, called together with 0x28A13BF6B05C3D83
685
721
  */
686
- N_0x4EC8BE63B8A5D4EF(p1) {
687
- inv('0x4EC8BE63B8A5D4EF', this.handle, p1);
722
+ secondarySpecialAbilitySetActive() {
723
+ inv('0x1710BC33CFB83634', this.handle);
688
724
  }
689
725
  /**
726
+ * _GET_A* - _GET_C*
727
+ *
690
728
  * @returns
691
729
  */
692
- canStartMission() {
693
- return inv('0x2DF170B1185AF777', this.handle, rai());
730
+ N_0x927861B2C08DBEA5() {
731
+ return !!inv('0x927861B2C08DBEA5', this.handle, rai());
694
732
  }
695
733
  /**
696
- * Adds an interactive focus mode preset between a player and a specific set of coordinates with a target entity.
697
- * To access all available presets, refer to the file located at:update_1.rpf.common.data.interactive_focus_mode_presets.meta
734
+ * it is used to check for that period of time if player damaged any peds only returns the last 3 hits with the entity ids so if you hit the same entity 3 times it will return the same entity id 3 times, if you hit 4 different entities within that time it will return the last 3 entity ids
735
+ * only stores the last 3 hits in the data view buffer
736
+ * duration is in miliseconds
737
+ * you need dataview
698
738
  *
699
- * @param preset
700
- * @param pos
701
- * @param targetEntity
702
- * @param name
703
- * @returns p1
739
+ * @param duration
740
+ * @returns struct
704
741
  */
705
- addAmbientInteractiveFocusPresetAtCoords(preset, pos, targetEntity, name) {
706
- const result = inv('0xD48227263E3D06AE', this.handle, pvv(), preset, f(pos.x), f(pos.y), f(pos.z), targetEntity.handle, name);
707
- return Vector3.fromArray(result);
742
+ getPedsDamagedByRecently(duration) {
743
+ const result = inv('0x1A6E84F13C952094', this.handle, duration, pvi(), rai());
744
+ return [!!result[0], result[1]];
708
745
  }
709
746
  /**
710
- * @returns
747
+ * @param multiplier
711
748
  */
712
- getStaminaRechargeMultiplier() {
713
- return inv('0x617D3494AD58200F', this.handle, raf());
749
+ set StaminaRechargeMultiplier(multiplier) {
750
+ inv('0xFECA17CF3343694B', this.handle, f(multiplier));
714
751
  }
715
752
  /**
716
- * Returns the depletion delay value for the Deadeye ability that was previously set using `SetDeadeyeAbilityDepletionDelay - 0x870634493CB4372C`
753
+ * Deactivates EagleEye, called together with 0xC0B21F235C02139C
717
754
  *
718
- * @returns
755
+ * @param disabled
719
756
  */
720
- getDeadeyeAbilityDepletionDelay() {
721
- return inv('0xE92261BD28C0878F', this.handle);
757
+ secondarySpecialAbilitySetDisabled(disabled) {
758
+ inv('0x64FF4BF9AF59E139', this.handle, disabled);
722
759
  }
723
760
  /**
724
761
  * @returns
725
762
  */
726
- isReadyForCutscene() {
727
- return inv('0xAA67BCB0097F2FA3', this.handle, rai());
763
+ updateTeleport() {
764
+ return !!inv('0xC39DCE4672CBFBC1', this.handle, rai());
765
+ }
766
+ resetInputGait() {
767
+ inv('0x61A2EECAB274829B', this.handle);
728
768
  }
729
769
  /**
730
- * @param p1
770
+ * Activates the special ability for the specified player.
731
771
  */
732
- N_0x216BC0D3D2E413D2(p1) {
733
- inv('0x216BC0D3D2E413D2', this.handle, p1);
772
+ specialAbilitySetActivate() {
773
+ inv('0xBBA140062B15A8AC', this.handle);
774
+ }
775
+ clearHasDamagedAtLeastOneNonAnimalPed() {
776
+ inv('0x0361096D6CE4372C', this.handle);
734
777
  }
735
778
  /**
736
- * nullsub, doesn't do anything
737
- *
738
- * @param wantedLevel
739
- * @param disableNoMission
779
+ * @param modifier
740
780
  */
741
- setWantedLevel(wantedLevel, disableNoMission) {
742
- inv('0x384D4765395E006C', this.handle, wantedLevel, disableNoMission);
781
+ set WeaponDegradationModifier(modifier) {
782
+ inv('0x11A7FF918EF6BC66', this.handle, f(modifier));
743
783
  }
744
784
  /**
745
- * false: default eagleeye color
746
- * true: green eagleeye color
785
+ * Only used in R* SP Script short_update
747
786
  *
748
- * @param p1
749
- * @returns p2
787
+ * @param timer
750
788
  */
751
- eagleEyeSetColor(p1) {
752
- const result = inv('0x2C41D93F550D5E37', this.handle, p1, pvi());
753
- return result;
789
+ set SpecialAbilityDisableTimer(timer) {
790
+ inv('0xC0B1C05B313693D1', this.handle, f(timer));
754
791
  }
755
792
  /**
756
- * *SET_PLAYER_DAMAGE** - *SET_PLAYER_DEFENSE**
757
- *
758
- * @param p1
793
+ * @param abilityType
794
+ * @param toggle
759
795
  */
760
- N_0x818241B3EDA84191(p1) {
761
- inv('0x818241B3EDA84191', this.handle, p1);
796
+ setDeadeyeAbilityLocked(abilityType, toggle) {
797
+ inv('0x2797B8D66DD0EBB8', this.handle, abilityType, toggle);
762
798
  }
763
799
  /**
800
+ * playerResetFlag: See 0x9F9A829C6751F3C7
801
+ *
802
+ * @param playerResetFlag
764
803
  * @returns
765
804
  */
766
- getPed() {
767
- return createFromHandle('Ped', inv('0x275F255ED201B937', this.handle, rai()));
805
+ getResetFlag(playerResetFlag) {
806
+ return inv('0xFE691E89C08937B6', this.handle, playerResetFlag);
768
807
  }
769
808
  /**
770
- * Sets whether all random peds will run away from player if they are agitated (threatened) (bool=true), or some peds can stand up for themselves (bool=false).
809
+ * Returns TRUE if the player ('s ped) is climbing at the moment.
771
810
  *
772
- * @param toggle
811
+ * @returns
773
812
  */
774
- setAllRandomPedsFlee(toggle) {
775
- inv('0xE705309B8C6445A4', this.handle, toggle);
813
+ get IsClimbing() {
814
+ return !!inv('0xB8A70C22FD48197A', this.handle, rai());
776
815
  }
777
816
  /**
778
- * @param p1
779
- * @param discoveryHash
817
+ * @returns Refer to [enum: ePedMood]
780
818
  */
781
- setHasDiscoveredCharacterNameSp(p1, discoveryHash) {
782
- inv('0x946D46CD6DFB9742', this.handle, p1, _h(discoveryHash));
819
+ get Mood() {
820
+ return inv('0x054473164C012699', this.handle, rai());
783
821
  }
784
- /**
785
- * @returns entity
786
- */
787
- getEntityIsFreeAimingAt() {
788
- const result = inv('0xA6817C110B830EAD', this.handle, pvi(), rai());
789
- return [!!result[0], createFromHandle('Entity', result[1])];
822
+ clearBountyTarget() {
823
+ inv('0x8F2A81C09DA9124A', this.handle);
790
824
  }
791
825
  /**
792
- * @returns
826
+ * Focus Fire VFX start for player: p1 = focusfire
827
+ *
828
+ * @param p1
793
829
  */
794
- getTempHorse() {
795
- return createFromHandle('Ped', inv('0xD3F7445CEA2E5035', this.handle, rai()));
830
+ set LockonFocusFireVfx(p1) {
831
+ inv('0x5F8E0303C229C84B', this.handle, p1);
796
832
  }
797
833
  /**
798
- * this native checks if the player has damaged or killed any ped human/animal recently within the duration passed, either by shooting or even using melee
799
- * duration is in miliseconds
834
+ * Params: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePromptType
835
+ * promptType is mostly 34 (PP_TRACK_ANIMAL), promptMode = 0 (PP_MODE_BLOCK) in R* Scripts
800
836
  *
801
- * @param duration
802
- * @returns
837
+ * @param promptType
838
+ * @param promptMode
839
+ * @param disabled
803
840
  */
804
- hasDamagedAnyPedRecently(duration) {
805
- return inv('0x72AD59F7B7FB6E24', this.handle, duration, rai());
841
+ modifyUiPrompt(promptType, promptMode, disabled) {
842
+ inv('0x0751D461F06E41CE', this.handle, promptType, promptMode, disabled);
806
843
  }
807
844
  /**
808
- * @returns entity
845
+ * @param p1
846
+ * @returns
809
847
  */
810
- getTargetEntity() {
811
- const result = inv('0xAE663DDD99C8A670', this.handle, pvi(), rai());
812
- return [!!result[0], createFromHandle('Entity', result[1])];
848
+ getMaxDeadEye(p1) {
849
+ return inv('0x592F58BC4D2A2CF3', this.handle, p1, raf());
813
850
  }
814
851
  /**
815
- * @returns Returns true if the ped has a ped, and the ped is alive and not arrested.
852
+ * @param toggle
853
+ * @param ped
854
+ * @param p3
855
+ * @param p4
816
856
  */
817
- isPlaying() {
818
- return inv('0xBFFB35986CAAE58C', this.handle, rai());
857
+ setForcedAim(toggle, ped, p3, p4) {
858
+ inv('0xD5FCC166AEB2FD0F', this.handle, toggle, ped.handle, p3, p4);
859
+ }
860
+ N_0x93624B36E8851B42() {
861
+ inv('0x93624B36E8851B42', this.handle);
819
862
  }
820
863
  /**
864
+ * @param abilityType
821
865
  * @returns
822
866
  */
823
- getSaddleHorseForPlayer() {
824
- return createFromHandle('Ped', inv('0xB48050D326E9A2F3', this.handle, rai()));
867
+ isDeadeyeAbilityLocked(abilityType) {
868
+ return inv('0x8A0643B0B4CA276B', this.handle, abilityType);
825
869
  }
826
870
  /**
827
- * Affects the range of auto aim target.
828
- *
829
- * @param range
871
+ * @param ped
872
+ * @param useSteerassist
830
873
  */
831
- setLockonRangeOverride(range) {
832
- inv('0x3A3CD06597388322', this.handle, f(range));
874
+ N_0x1FDA57E8908F2609(ped, useSteerassist) {
875
+ inv('0x1FDA57E8908F2609', this.handle, ped.handle, useSteerassist);
833
876
  }
834
877
  /**
878
+ * Returns Deadeye value from player
879
+ *
835
880
  * @returns
836
881
  */
837
- getHuntingWagon() {
838
- return createFromHandle('Vehicle', inv('0x5CA6BBD4A7D8145E', this.handle, rai()));
882
+ specialAbilityGetAmountCached() {
883
+ return inv('0x029884FB65821B07', this.handle, raf());
839
884
  }
840
885
  /**
841
- * @param modifier
886
+ * @param vehicle
842
887
  */
843
- setTrampleDamageModifier(modifier) {
844
- inv('0xAF341032E97FB061', this.handle, f(modifier));
888
+ set OwnsVehicle(vehicle) {
889
+ inv('0xD0E02AA618020D17', this.handle, vehicle.handle);
845
890
  }
846
891
  /**
847
- * Checks if player is focused on any entity
848
- *
849
892
  * @returns
850
893
  */
851
- isFreeFocusing() {
852
- return inv('0x1A51BFE60708E482', this.handle);
894
+ hasDamagedAtLeastOnePed() {
895
+ return !!inv('0xDA4A4B9B96E20092', this.handle, rai());
853
896
  }
854
897
  /**
855
- * flags: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eSetPlayerControlFlags
898
+ * Seems to enable active horse equipment prompt when being near it and enables the control that opens the inventory as well
856
899
  *
857
- * @param toggle
858
- * @param flags
859
- * @param bPreventHeadingChange
900
+ * @param mount
860
901
  */
861
- setControl(toggle, flags, bPreventHeadingChange) {
862
- inv('0x4D51E59243281D80', this.handle, toggle, flags, bPreventHeadingChange);
902
+ set OwnsMount(mount) {
903
+ inv('0xE6D4E435B56D5BD0', this.handle, mount.handle);
863
904
  }
864
905
  /**
865
- * Returns true if eagle eye is enabled for the player
866
- *
867
- * @returns
906
+ * nullsub, doesn't do anything
868
907
  */
869
- isSecondarySpecialAbilityEnabled() {
870
- return inv('0xE022CC1B545F1D9F', this.handle, rai());
908
+ clearWantedLevel() {
909
+ inv('0x4E4B996C928C7AA6', this.handle);
871
910
  }
872
911
  /**
873
- * @param multiplier
912
+ * Does the same like PLAYER::GET_PLAYER_PED
913
+ *
914
+ * @returns
874
915
  */
875
- setNoiseMultiplier(multiplier) {
876
- inv('0xB5EC6BDAEBCA454C', this.handle, f(multiplier));
916
+ get PedScriptIndex() {
917
+ return createFromHandle('Ped', inv('0x5C880F9056D784C8', this.handle, rai()));
877
918
  }
878
919
  /**
879
- * Gets a value indicating whether the specified player is currently aiming freely.
920
+ * Retrieves the ID of the ped that the specified player is currently tracking while in Eagle Eye mode.
880
921
  *
881
922
  * @returns
882
923
  */
883
- isFreeAiming() {
884
- return inv('0x936F967D4BE1CE9D', this.handle, rai());
924
+ eagleEyeGetTrackedPedId() {
925
+ return inv('0x3813E11A378958A5', this.handle);
885
926
  }
886
927
  /**
887
- * @param showingInfoCard
928
+ * @returns Returns the player name, or if the player doesn't exist, it returns "**Invalid**"
888
929
  */
889
- setShowInfoCard(showingInfoCard) {
890
- inv('0xDC68829BB3F37023', this.handle, showingInfoCard);
930
+ get Name() {
931
+ return inv('0x7124FD9AC0E01BA0', this.handle, ras());
891
932
  }
892
933
  /**
893
- * @param regenRate
934
+ * Seems to work similar to 0xD2CB0FB0FDCB473D
935
+ *
936
+ * @param horse
894
937
  */
895
- setHealthRechargeMultiplier(regenRate) {
896
- inv('0x8899C244EBCF70DE', this.handle, f(regenRate));
938
+ set PedActiveHorse(horse) {
939
+ inv('0x8FBF9EDB378CCB8C', this.handle, horse.handle);
897
940
  }
898
941
  /**
899
- * damageInfo: STANDARD_PED_DAMAGE, STANDARD_FEMALE_PED_DAMAGE, STANDARD_PLAYER_PED_DAMAGE_MP, STANDARD_FEMALE_PLAYER_PED_DAMAGE_MP
942
+ * Name could potentially be inaccurate.
943
+ * Used in Script Function HORSE_SETUP_PLAYER_HORSE_ATTRIBUTES (p1 = true)
944
+ * _SET_PLAYER_L* - _SET_PLAYER_M*
900
945
  *
901
- * @param damageInfo
946
+ * @param active
902
947
  */
903
- setDamageInfoOverride(damageInfo) {
904
- inv('0x78B3D19AF6391A55', this.handle, damageInfo);
948
+ set MountStateActive(active) {
949
+ inv('0xDF93973251FB2CA5', this.handle, active);
905
950
  }
906
951
  /**
907
- * Sets whether this player can be hassled by gangs.
952
+ * _IS_PLAYER_I* - _IS_PLAYER_P*
908
953
  *
909
- * @param toggle
954
+ * @returns p1
910
955
  */
911
- setCanBeHassledByGangs(toggle) {
912
- inv('0xC7FE774412046825', this.handle, toggle);
956
+ N_0xB331D8A73F9D2BDF() {
957
+ const result = inv('0xB331D8A73F9D2BDF', this.handle, pvi(), rai());
958
+ return [!!result[0], result[1]];
913
959
  }
914
960
  /**
915
- * Clears the intensity of aura effects applied to entities for a specific player in Deadeye mode based on a flag parameter. This function is used to reset any intensity modifications set by `_SET_DEADEYE_ENTITY_AURA_INTENSITY_WITH_FLAG - 0x131E294EF60160DF`, restoring affected entities' aura intensity to their default state.
961
+ * Inhibits the player from using any method of combat including melee and firearms. NOTE: Only disables the firing for one frame
916
962
  *
917
- * @param bitflag
963
+ * @param toggle
918
964
  */
919
- clearDeadeyeAuraIntensityWithFlag(bitflag) {
920
- inv('0x0E9057A9DA78D0F8', this.handle, bitflag);
965
+ disableFiring(toggle) {
966
+ inv('0x2970929FD5F9FC89', this.handle, toggle);
967
+ }
968
+ specialAbilitySetEagleEyeDisabled() {
969
+ inv('0xC0B21F235C02139C', this.handle);
921
970
  }
922
971
  /**
923
- * Decreases Stamina bar drain speed by % when drawing a bow.
972
+ * Sets the sit prompt for a specific player using a predefined text entry. use game strings like PLAYER_SIT or use custom with
973
+ * AddTextEntry("sit_custom", "Take a seat")
974
+ * this native must be invoked
975
+ * https://imgur.com/gallery/0x988c9045531b9fce-9bTHgkv
924
976
  *
925
- * @param staminaDrain
977
+ * @param label
926
978
  */
927
- setBowStaminaDrainSpeed(staminaDrain) {
928
- inv('0xFE7C9CF376D23342', this.handle, f(staminaDrain));
979
+ set SitPromptText(label) {
980
+ inv('0x988C9045531B9FCE', this.handle, label);
929
981
  }
930
- setAllRandomPedsFleeThisFrame() {
931
- inv('0xD5C198A62F1DEB0A', this.handle);
982
+ updateWantedPositionThisFrame() {
983
+ inv('0xD0B0B044112BF424', this.handle);
932
984
  }
933
985
  /**
934
- * Unsure what it does, sets a Vector on the CPlayerInfo but it doesn't? look like its used anywhere
935
- *
936
- * @param pos
986
+ * @param entity
937
987
  */
938
- N_0x4DBC4873707E8FD6(pos) {
939
- inv('0x4DBC4873707E8FD6', this.handle, f(pos.x), f(pos.y), f(pos.z));
988
+ unregisterEagleEyeForEntity(entity) {
989
+ inv('0x9DAE1380CC5C6451', this.handle, entity.handle);
940
990
  }
941
991
  /**
942
- * _SET_PLAYER_A* - _SET_PLAYER_C*
943
- *
944
- * @param damage
992
+ * @param farRangeLowerBound
993
+ * @param farRangeUpperBound
945
994
  */
946
- setLassoDamagePerSecond(damage) {
947
- inv('0x43F50A7CD2482156', this.handle, f(damage));
995
+ setDamageFarDistanceBonus(farRangeLowerBound, farRangeUpperBound) {
996
+ inv('0xED591CB17C8BA216', this.handle, f(farRangeLowerBound), f(farRangeUpperBound));
948
997
  }
949
998
  /**
950
- * Return true while player is being arrested / busted. If atArresting is set to 1, this function will return 1 when player is being arrested (while player is putting his hand up, but still have control) If atArresting is set to 0, this function will return 1 only when the busted screen is shown.
999
+ * Sets the melee combat prompt for a specific player using a predefined text entry. use game string or
1000
+ * AddTextEntry("custom_text", "Throw a punch") and use custom_text in the native
951
1001
  *
952
- * @param atArresting
953
- * @returns
1002
+ * @param label
954
1003
  */
955
- isBeingArrested(atArresting) {
956
- return inv('0xC8183AE963C58374', this.handle, atArresting, rai());
1004
+ set MeleePromptText(label) {
1005
+ inv('0x0FAF95D71ED67ADE', this.handle, label);
957
1006
  }
958
1007
  /**
959
- * Gets a value indicating whether the specified player is currently aiming freely at the specified entity.
1008
+ * Used in script function INIT_DEADEYE_SLOWDOWN
960
1009
  *
961
- * @param entity
962
- * @returns
1010
+ * @param p1
963
1011
  */
964
- isFreeAimingAtEntity(entity) {
965
- return inv('0x8C67C11C68713D25', this.handle, entity.handle, rai());
1012
+ N_0x570A13A4CA2799BB(p1) {
1013
+ inv('0x570A13A4CA2799BB', this.handle, p1);
966
1014
  }
967
1015
  /**
968
- * @param farDamageBonus
1016
+ * @param activationCost
1017
+ * @param p2
1018
+ */
1019
+ setSpecialAbilityActivationCost(activationCost, p2) {
1020
+ inv('0xAE4BCC79C587EBBF', this.handle, f(activationCost), p2);
1021
+ }
1022
+ /**
1023
+ * Used for setting up eagle eye for entity
1024
+ * Params: p2 = re-register or not?
1025
+ *
1026
+ * @param entity
1027
+ * @param p2
969
1028
  */
970
- setDamageFarDistanceBonusTotal(farDamageBonus) {
971
- inv('0x1F0E3A4434565F8F', this.handle, f(farDamageBonus));
972
- }
973
- setMayNotEnterAnyVehicle() {
974
- inv('0xBEC463B3A11C909E', this.handle);
1029
+ registerEagleEyeForEntity(entity, p2) {
1030
+ inv('0x543DFE14BE720027', this.handle, entity.handle, p2);
975
1031
  }
976
1032
  /**
977
- * @returns
1033
+ * @param p1
978
1034
  */
979
- getHealth() {
980
- return inv('0x0317C947D062854E', this.handle, raf());
981
- }
982
- resetWantedLevelDifficulty() {
983
- inv('0x062D14F18E8B0CAE', this.handle);
1035
+ N_0x22B3CABEDDB538B2(p1) {
1036
+ inv('0x22B3CABEDDB538B2', this.handle, f(p1));
984
1037
  }
985
1038
  /**
986
- * @param linkedWaypointPed
1039
+ * @param modifier
987
1040
  */
988
- eagleEyeSetFocusOnAssociatedClueTrail(linkedWaypointPed) {
989
- inv('0x2AF423D6ECB2C485', this.handle, linkedWaypointPed.handle);
1041
+ set ExplosiveWeaponDamageModifier(modifier) {
1042
+ inv('0x2D3ACE3DE0A2B622', this.handle, f(modifier));
990
1043
  }
991
1044
  /**
1045
+ * returns true if the player is on a road while riding a horse but at a certain speed, if you go off road then it returns false or if you go too slow like walking state it also returns false
1046
+ *
992
1047
  * @returns
993
1048
  */
994
- getNumMarkedDeadeyeTargets() {
995
- return inv('0xCCD9B77F70D31C9D', this.handle, rai());
1049
+ get IsMountOnRoad() {
1050
+ return inv('0xE631EAF35828FA67', this.handle);
996
1051
  }
997
1052
  /**
998
- * @param weaponHash Refer to [enum: eWeaponHash]
1053
+ * @param entity
999
1054
  * @returns
1000
1055
  */
1001
- getWeaponDamage(weaponHash) {
1002
- return inv('0xFE0304050261442C', this.handle, weaponHash, raf());
1056
+ isEagleEyeRegisteredForEntity(entity) {
1057
+ return inv('0x0E6846476906C9DD', this.handle, entity.handle);
1003
1058
  }
1004
1059
  /**
1005
- * Sets the behavior of sprinting while the Eagleeye feature is active, determining whether sprinting cancels the effect based on the specified parameter.
1006
- * old name was _EAGLE_EYE_SET_PLUS_FLAG_DISABLED this native can still be used as its declared.
1060
+ * Max level is 5.
1007
1061
  *
1008
- * @param disabled
1062
+ * @param level
1009
1063
  */
1010
- eagleeyeSetSprintBehavior(disabled) {
1011
- inv('0xCE285A4413B00B7F', this.handle, disabled);
1064
+ set DeadeyeAbilityLevel(level) {
1065
+ inv('0xF0FE8E790BFEB5BB', this.handle, level);
1012
1066
  }
1013
1067
  /**
1014
- * @param speech
1068
+ * Shows or hides all Pick Up prompts for the specified player, including the prompt for picking up hats from the ground. When set to true, the player will see Pick Up prompts for all nearby items. If set to false, all Pick Up prompts will be hidden.
1069
+ *
1070
+ * @param enable
1015
1071
  */
1016
- setInteractionNegativeResponse(speech) {
1017
- inv('0x98CD760DE43B612E', this.handle, speech);
1072
+ set PickupPromptVisible(enable) {
1073
+ inv('0xD1A70C1E8D1031FE', this.handle, enable);
1018
1074
  }
1019
1075
  /**
1020
- * Params: p1, p2, p3, p4 = 1.f, 0, 0, 0 in R* Scripts
1021
- * _SPECIAL_ABILITY*
1022
- *
1023
- * @param p1
1024
- * @param p2
1025
- * @param p3
1026
- * @param p4
1076
+ * @param mount
1027
1077
  */
1028
- N_0xFA437FA0738C370C(p1, p2, p3, p4) {
1029
- inv('0xFA437FA0738C370C', this.handle, f(p1), p2, p3, p4);
1078
+ set PedAsSaddleHorseForPlayer(mount) {
1079
+ inv('0xD2CB0FB0FDCB473D', this.handle, mount.handle);
1030
1080
  }
1031
1081
  /**
1032
- * @param toggle
1082
+ * @returns
1033
1083
  */
1034
- setSimulateAiming(toggle) {
1035
- inv('0xE0447DEF81CCDFD2', this.handle, toggle);
1084
+ get ActiveHorseForPlayer() {
1085
+ return createFromHandle('Ped', inv('0x46FA0AE18F4C7FA9', this.handle, rai()));
1036
1086
  }
1037
1087
  /**
1038
- * @returns
1088
+ * @param entity
1089
+ * @param p2
1039
1090
  */
1040
- getAiDefenseModifierAgainstAi() {
1041
- return inv('0x2E78D822208E740A', this.handle, raf());
1091
+ unregisterEagleEyeTrailsForEntity(entity, p2) {
1092
+ inv('0x9A957912CE2EABD1', this.handle, entity.handle, p2);
1042
1093
  }
1043
1094
  /**
1044
- * Setting player's Health recharge time to zero forces immediate health regen
1045
- *
1046
- * @param modifier
1095
+ * Resetter for 0x4DBC4873707E8FD6, sets x, y, z to 1.0
1047
1096
  */
1048
- setHealthRechargeTimeModifier(modifier) {
1049
- inv('0x535ED4605F89AB6E', this.handle, f(modifier));
1097
+ N_0xCEDC16930526F728() {
1098
+ inv('0xCEDC16930526F728', this.handle);
1050
1099
  }
1051
1100
  /**
1052
- * Returns true if the given player has a valid ped.
1053
- *
1054
- * @returns
1101
+ * @param ped
1102
+ * @param p2
1055
1103
  */
1056
- networkHasValidPed() {
1057
- return inv('0x0760D6F70EBCC05C', this.handle);
1104
+ N_0xDD33A82352C4652F(ped, p2) {
1105
+ inv('0xDD33A82352C4652F', this.handle, ped.handle, p2);
1058
1106
  }
1059
1107
  /**
1060
- * @param accuracy
1108
+ * _RESET_PLAYER_A* - _RESET_PLAYER_I*
1061
1109
  */
1062
- setRemoteAccuracyFloorModifier(accuracy) {
1063
- inv('0xDEE80FEDFDD43C9B', this.handle, f(accuracy));
1110
+ N_0x1F488807BC8E0630() {
1111
+ inv('0x1F488807BC8E0630', this.handle);
1064
1112
  }
1065
1113
  /**
1066
- * @param weapon
1067
- * @param speed
1114
+ * @param p1
1068
1115
  */
1069
- setWeaponDrawSpeed(weapon, speed) {
1070
- inv('0x00EB5A760638DB55', this.handle, _h(weapon), f(speed));
1116
+ N_0x4EC8BE63B8A5D4EF(p1) {
1117
+ inv('0x4EC8BE63B8A5D4EF', this.handle, p1);
1071
1118
  }
1072
1119
  /**
1073
1120
  * @returns
1074
1121
  */
1075
- getStaminaDepletionMultiplier() {
1076
- return inv('0x68A0389E0718AC8F', this.handle, raf());
1122
+ canStartMission() {
1123
+ return !!inv('0x2DF170B1185AF777', this.handle, rai());
1077
1124
  }
1078
1125
  /**
1079
- * @returns
1126
+ * Adds an interactive focus mode preset between a player and a specific set of coordinates with a target entity.
1127
+ * To access all available presets, refer to the file located at:update_1.rpf.common.data.interactive_focus_mode_presets.meta
1128
+ *
1129
+ * @param preset
1130
+ * @param pos
1131
+ * @param targetEntity
1132
+ * @param name
1133
+ * @returns p1
1080
1134
  */
1081
- getCurrentStealthNoise() {
1082
- return inv('0xD7ECC25E176ECBA5', this.handle, raf());
1135
+ addAmbientInteractiveFocusPresetAtCoords(preset, pos, targetEntity, name) {
1136
+ const result = inv('0xD48227263E3D06AE', this.handle, pvv(), preset, f(pos.x), f(pos.y), f(pos.z), targetEntity.handle, name);
1137
+ return Vector3.fromArray(result);
1083
1138
  }
1084
1139
  /**
1085
- * @param ped
1086
1140
  * @returns
1087
1141
  */
1088
- isFollowingTarget(ped) {
1089
- return inv('0xE24C64D9ADED2EF5', this.handle, ped.handle);
1142
+ get StaminaRechargeMultiplier() {
1143
+ return inv('0x617D3494AD58200F', this.handle, raf());
1090
1144
  }
1091
1145
  /**
1092
- * mood: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePedMood
1146
+ * Returns the depletion delay value for the Deadeye ability that was previously set using `SetDeadeyeAbilityDepletionDelay - 0x870634493CB4372C`
1093
1147
  *
1094
- * @param mood Refer to [enum: ePedMood]
1148
+ * @returns
1095
1149
  */
1096
- setMood(mood) {
1097
- inv('0x39BED552DB46FFA9', this.handle, mood);
1150
+ get DeadeyeAbilityDepletionDelay() {
1151
+ return inv('0xE92261BD28C0878F', this.handle);
1098
1152
  }
1099
1153
  /**
1100
- * Params: See 0x0751D461F06E41CE
1101
- *
1102
- * @param ped
1103
- * @param promptType
1104
- * @param promptMode
1105
- * @param enabled
1154
+ * @returns
1106
1155
  */
1107
- modifyUiPromptForPed(ped, promptType, promptMode, enabled) {
1108
- inv('0xA3DB37EDF9A74635', this.handle, ped.handle, promptType, promptMode, enabled);
1156
+ get IsReadyForCutscene() {
1157
+ return !!inv('0xAA67BCB0097F2FA3', this.handle, rai());
1109
1158
  }
1110
1159
  /**
1111
- * Used in script function INIT_DEADEYE_SLOWDOWN
1112
- *
1113
1160
  * @param p1
1114
1161
  */
1115
- N_0x3ACAC8832E77BC93(p1) {
1116
- inv('0x3ACAC8832E77BC93', this.handle, p1);
1162
+ N_0x216BC0D3D2E413D2(p1) {
1163
+ inv('0x216BC0D3D2E413D2', this.handle, p1);
1117
1164
  }
1118
1165
  /**
1119
- * Disables the players ability to be wanted by lawmen
1166
+ * nullsub, doesn't do anything
1120
1167
  *
1121
- * @param disable
1168
+ * @param wantedLevel
1169
+ * @param disableNoMission
1122
1170
  */
1123
- setDisableWantedLevel(disable) {
1124
- inv('0x8674D138391FFB1B', this.handle, disable);
1171
+ setWantedLevel(wantedLevel, disableNoMission) {
1172
+ inv('0x384D4765395E006C', this.handle, wantedLevel, disableNoMission);
1125
1173
  }
1126
1174
  /**
1127
- * Disables the previously set interactive focus mode preset for a given player. see `_SET_PLAYER_INTERACTIVE_FOCUS_PRESET - 0x3C1B1807C7A415D6`
1175
+ * false: default eagleeye color
1176
+ * true: green eagleeye color
1128
1177
  *
1129
- * @param name
1130
- */
1131
- disableInteractiveFocusPreset(name) {
1132
- inv('0xC67A4910425F11F1', this.handle, name);
1133
- }
1134
- /**
1135
1178
  * @param p1
1179
+ * @returns p2
1136
1180
  */
1137
- setManageBuffSuperJump(p1) {
1138
- inv('0x292F0B6EDC82E3A4', this.handle, f(p1));
1139
- }
1140
- /**
1141
- * @param multiplier
1142
- */
1143
- setSpecialAbilityMultiplier(multiplier) {
1144
- inv('0x5A498FCA232F71E1', this.handle, f(multiplier));
1181
+ eagleEyeSetColor(p1) {
1182
+ const result = inv('0x2C41D93F550D5E37', this.handle, p1, pvi());
1183
+ return result;
1145
1184
  }
1146
1185
  /**
1147
- * @param accuracy
1186
+ * *SET_PLAYER_DAMAGE** - *SET_PLAYER_DEFENSE**
1187
+ *
1188
+ * @param p1
1148
1189
  */
1149
- setLocalAccuracyFloorModifier(accuracy) {
1150
- inv('0x4EA69188FBCE6A7D', this.handle, f(accuracy));
1190
+ N_0x818241B3EDA84191(p1) {
1191
+ inv('0x818241B3EDA84191', this.handle, p1);
1151
1192
  }
1152
1193
  /**
1153
- * @param wantedLevel
1154
1194
  * @returns
1155
1195
  */
1156
- isWantedLevelGreater(wantedLevel) {
1157
- return inv('0xE1C0AD4C24324C36', this.handle, wantedLevel, rai());
1196
+ get Ped() {
1197
+ return createFromHandle('Ped', inv('0x275F255ED201B937', this.handle, rai()));
1158
1198
  }
1159
1199
  /**
1160
- * SPECIAL_ABILITY_NONE = -1,
1161
- * SPECIAL_ABILITY_CAR_SLOWDOWN,
1162
- * SPECIAL_ABILITY_RAGE,
1163
- * SPECIAL_ABILITY_BULLET_TIME,
1164
- * SPECIAL_ABILITY_SNAPSHOT,
1165
- * SPECIAL_ABILITY_INSULT,
1166
- * SPECIAL_ABILITY_DEADEYE,
1167
- * SPECIAL_ABILITY_REVIVE
1200
+ * Sets whether all random peds will run away from player if they are agitated (threatened) (bool=true), or some peds can stand up for themselves (bool=false).
1168
1201
  *
1169
- * @param type
1170
- */
1171
- setSpecialAbilityType(type) {
1172
- inv('0x00BA333DA05ADC23', this.handle, type);
1173
- }
1174
- /**
1175
1202
  * @param toggle
1176
1203
  */
1177
- setEveryoneIgnorePlayer(toggle) {
1178
- inv('0x34630A768925B852', this.handle, toggle);
1204
+ set AllRandomPedsFlee(toggle) {
1205
+ inv('0xE705309B8C6445A4', this.handle, toggle);
1179
1206
  }
1180
1207
  /**
1181
- * Sets whether this player can take cover.
1182
- *
1183
- * @param toggle
1208
+ * @param p1
1209
+ * @param discoveryHash
1184
1210
  */
1185
- setCanUseCover(toggle) {
1186
- inv('0x5EDA520F7A3BAF4E', this.handle, toggle);
1211
+ setHasDiscoveredCharacterNameSp(p1, discoveryHash) {
1212
+ inv('0x946D46CD6DFB9742', this.handle, p1, _h(discoveryHash));
1187
1213
  }
1188
1214
  /**
1189
- * @param ped
1215
+ * @returns entity
1190
1216
  */
1191
- removeAsFollowTarget(ped) {
1192
- inv('0x0C6B89876262A99D', this.handle, ped.handle);
1217
+ get EntityIsFreeAimingAt() {
1218
+ const result = inv('0xA6817C110B830EAD', this.handle, pvi(), rai());
1219
+ return [!!result[0], createFromHandle('Entity', result[1])];
1193
1220
  }
1194
1221
  /**
1195
- * @param weaponGroup
1196
- * @param modifier
1222
+ * @returns
1197
1223
  */
1198
- setWeaponGroupDamageModifier(weaponGroup, modifier) {
1199
- inv('0xFC79DCC94D0A5897', this.handle, _h(weaponGroup), f(modifier));
1224
+ get TempHorse() {
1225
+ return createFromHandle('Ped', inv('0xD3F7445CEA2E5035', this.handle, rai()));
1200
1226
  }
1201
1227
  /**
1202
- * @param ped
1203
- * @param p2
1228
+ * this native checks if the player has damaged or killed any ped human/animal recently within the duration passed, either by shooting or even using melee
1229
+ * duration is in miliseconds
1230
+ *
1231
+ * @param duration
1232
+ * @returns
1204
1233
  */
1205
- N_0x84481018E668E1B8(ped, p2) {
1206
- inv('0x84481018E668E1B8', this.handle, ped.handle, p2);
1234
+ hasDamagedAnyPedRecently(duration) {
1235
+ return !!inv('0x72AD59F7B7FB6E24', this.handle, duration, rai());
1207
1236
  }
1208
1237
  /**
1209
- * @param entity
1210
- * @param p2
1238
+ * @returns entity
1211
1239
  */
1212
- registerEagleEyeTrailsForEntity(entity, p2) {
1213
- inv('0xAC67098A1E54ABB0', this.handle, entity.handle, p2);
1240
+ get TargetEntity() {
1241
+ const result = inv('0xAE663DDD99C8A670', this.handle, pvi(), rai());
1242
+ return [!!result[0], createFromHandle('Entity', result[1])];
1214
1243
  }
1215
1244
  /**
1216
- * @param filter
1245
+ * @returns Returns true if the ped has a ped, and the ped is alive and not arrested.
1217
1246
  */
1218
- setDeadeyeTaggingConfig(filter) {
1219
- inv('0x83FCD6921FC8FD05', this.handle, filter);
1247
+ get IsPlaying() {
1248
+ return !!inv('0xBFFB35986CAAE58C', this.handle, rai());
1220
1249
  }
1221
1250
  /**
1222
- * (Un)lock Eagle Eye functionality
1223
- *
1224
- * @param enable
1251
+ * @returns
1225
1252
  */
1226
- enableEagleeye(enable) {
1227
- inv('0xA63FCAD3A6FEC6D2', this.handle, enable);
1253
+ get SaddleHorseForPlayer() {
1254
+ return createFromHandle('Ped', inv('0xB48050D326E9A2F3', this.handle, rai()));
1228
1255
  }
1229
1256
  /**
1230
- * Only used in R* SP Script short_update
1231
- * Restores Deadeye Outer Ring
1257
+ * Affects the range of auto aim target.
1232
1258
  *
1233
- * @param amount
1259
+ * @param range
1234
1260
  */
1235
- specialAbilityRestoreOuterRing(amount) {
1236
- inv('0x2498035289B5688F', this.handle, f(amount));
1261
+ set LockonRangeOverride(range) {
1262
+ inv('0x3A3CD06597388322', this.handle, f(range));
1237
1263
  }
1238
1264
  /**
1239
1265
  * @returns
1240
1266
  */
1241
- isSpecialAbilityActive() {
1242
- return inv('0xB16223CB7DA965F0', this.handle);
1267
+ get HuntingWagon() {
1268
+ return createFromHandle('Vehicle', inv('0x5CA6BBD4A7D8145E', this.handle, rai()));
1243
1269
  }
1244
- reportPoliceSpottedPlayer() {
1245
- inv('0xCBCCF73FFA69CC6B', this.handle);
1270
+ /**
1271
+ * @param modifier
1272
+ */
1273
+ set TrampleDamageModifier(modifier) {
1274
+ inv('0xAF341032E97FB061', this.handle, f(modifier));
1246
1275
  }
1247
1276
  /**
1248
- * @param p1
1249
- * @param p2
1277
+ * Checks if player is focused on any entity
1278
+ *
1250
1279
  * @returns
1251
1280
  */
1252
- getReceivedBattleEventRecently(p1, p2) {
1253
- return inv('0xFB6EB8785F808551', this.handle, p1, p2, rai());
1281
+ get IsFreeFocusing() {
1282
+ return inv('0x1A51BFE60708E482', this.handle);
1254
1283
  }
1255
1284
  /**
1256
- * @returns
1285
+ * flags: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eSetPlayerControlFlags
1286
+ *
1287
+ * @param toggle
1288
+ * @param flags
1289
+ * @param bPreventHeadingChange
1257
1290
  */
1258
- getSpecialAbilityMultiplier() {
1259
- return inv('0xAB3773E7AA1E9DCC', this.handle, raf());
1291
+ setControl(toggle, flags, bPreventHeadingChange) {
1292
+ inv('0x4D51E59243281D80', this.handle, toggle, flags, bPreventHeadingChange);
1260
1293
  }
1261
1294
  /**
1262
- * Sets the weapon that the specified player will aim with. The weapon must already be assigned to the PED. This also determines the weapon order, specifying which weapon the player will automatically switch to when the current weapon runs out of ammo.
1295
+ * Returns true if eagle eye is enabled for the player
1263
1296
  *
1264
- * @param weapon
1265
- * @param attachSlotId
1297
+ * @returns
1266
1298
  */
1267
- setAimWeapon(weapon, attachSlotId) {
1268
- inv('0xCFFC3ECCD7A5CCEB', this.handle, _h(weapon), attachSlotId);
1299
+ get IsSecondarySpecialAbilityEnabled() {
1300
+ return !!inv('0xE022CC1B545F1D9F', this.handle, rai());
1269
1301
  }
1270
1302
  /**
1271
- * @param pos
1272
- * @param heading
1273
- * @param p5
1274
- * @param p6
1275
- * @param p7
1276
- * @param p8
1303
+ * @param multiplier
1277
1304
  */
1278
- startTeleport(pos, heading, p5, p6, p7, p8) {
1279
- inv('0xDF8822C55EDDA65B', this.handle, f(pos.x), f(pos.y), f(pos.z), f(heading), p5, p6, p7, p8);
1305
+ set NoiseMultiplier(multiplier) {
1306
+ inv('0xB5EC6BDAEBCA454C', this.handle, f(multiplier));
1280
1307
  }
1281
1308
  /**
1282
- * _IS_PLAYER_A* - _IS_PLAYER_BE*
1309
+ * Gets a value indicating whether the specified player is currently aiming freely.
1283
1310
  *
1284
- * @param ped
1285
1311
  * @returns
1286
1312
  */
1287
- N_0xE7F8707269544B29(ped) {
1288
- return inv('0xE7F8707269544B29', this.handle, ped.handle, rai());
1313
+ get IsFreeAiming() {
1314
+ return !!inv('0x936F967D4BE1CE9D', this.handle, rai());
1289
1315
  }
1290
1316
  /**
1291
- * @returns
1317
+ * @param showingInfoCard
1292
1318
  */
1293
- isScriptControlOn() {
1294
- return inv('0xB78350754157C00F', this.handle, rai());
1319
+ set ShowInfoCard(showingInfoCard) {
1320
+ inv('0xDC68829BB3F37023', this.handle, showingInfoCard);
1295
1321
  }
1296
1322
  /**
1297
- * @returns
1323
+ * @param regenRate
1298
1324
  */
1299
- isSecondarySpecialAbilityActive() {
1300
- return inv('0x45AB66D02B601FA7', this.handle);
1301
- }
1302
- N_0xC900A465364A85D6() {
1303
- inv('0xC900A465364A85D6', this.handle);
1325
+ set HealthRechargeMultiplier(regenRate) {
1326
+ inv('0x8899C244EBCF70DE', this.handle, f(regenRate));
1304
1327
  }
1305
1328
  /**
1306
- * Returns the group ID the player is member of.
1329
+ * damageInfo: STANDARD_PED_DAMAGE, STANDARD_FEMALE_PED_DAMAGE, STANDARD_PLAYER_PED_DAMAGE_MP, STANDARD_FEMALE_PLAYER_PED_DAMAGE_MP
1307
1330
  *
1308
- * @returns
1331
+ * @param damageInfo
1309
1332
  */
1310
- getGroup() {
1311
- return inv('0x9BAB31815159ABCF', this.handle, rai());
1333
+ set DamageInfoOverride(damageInfo) {
1334
+ inv('0x78B3D19AF6391A55', this.handle, damageInfo);
1312
1335
  }
1313
1336
  /**
1314
- * Sets stamina core drains peed using ranged damage scale and melee damage scale
1337
+ * Sets whether this player can be hassled by gangs.
1315
1338
  *
1316
- * @param weaponDefenseMod
1317
- * @param meleeDefenseMod
1339
+ * @param toggle
1318
1340
  */
1319
- setDefenseModifier(weaponDefenseMod, meleeDefenseMod) {
1320
- inv('0x497A6539BB0E8787', this.handle, f(weaponDefenseMod), f(meleeDefenseMod));
1341
+ set CanBeHassledByGangs(toggle) {
1342
+ inv('0xC7FE774412046825', this.handle, toggle);
1321
1343
  }
1322
1344
  /**
1323
- * This modifies the damage value of your weapon. Whether it is a multiplier or base damage is unknown.
1345
+ * Clears the intensity of aura effects applied to entities for a specific player in Deadeye mode based on a flag parameter. This function is used to reset any intensity modifications set by `_SET_DEADEYE_ENTITY_AURA_INTENSITY_WITH_FLAG - 0x131E294EF60160DF`, restoring affected entities' aura intensity to their default state.
1324
1346
  *
1325
- * @param modifier
1347
+ * @param bitflag
1326
1348
  */
1327
- setWeaponDamageModifier(modifier) {
1328
- inv('0x94D529F7B73D7A85', this.handle, f(modifier));
1349
+ clearDeadeyeAuraIntensityWithFlag(bitflag) {
1350
+ inv('0x0E9057A9DA78D0F8', this.handle, bitflag);
1329
1351
  }
1330
1352
  /**
1331
- * durationCost: per second
1353
+ * Decreases Stamina bar drain speed by % when drawing a bow.
1332
1354
  *
1333
- * @param durationCost
1355
+ * @param staminaDrain
1334
1356
  */
1335
- setSpecialAbilityDurationCost(durationCost) {
1336
- inv('0xB783F75940B23014', this.handle, f(durationCost));
1357
+ set BowStaminaDrainSpeed(staminaDrain) {
1358
+ inv('0xFE7C9CF376D23342', this.handle, f(staminaDrain));
1359
+ }
1360
+ setAllRandomPedsFleeThisFrame() {
1361
+ inv('0xD5C198A62F1DEB0A', this.handle);
1337
1362
  }
1338
1363
  /**
1339
- * @returns
1364
+ * Unsure what it does, sets a Vector on the CPlayerInfo but it doesn't? look like its used anywhere
1365
+ *
1366
+ * @param pos
1340
1367
  */
1341
- isTargettingAnything() {
1342
- return inv('0x4605C66E0F935F83', this.handle, rai());
1368
+ N_0x4DBC4873707E8FD6(pos) {
1369
+ inv('0x4DBC4873707E8FD6', this.handle, f(pos.x), f(pos.y), f(pos.z));
1343
1370
  }
1344
1371
  /**
1345
- * @param modifier
1372
+ * _SET_PLAYER_A* - _SET_PLAYER_C*
1373
+ *
1374
+ * @param damage
1346
1375
  */
1347
- eagleEyeSetDrainRateModifier(modifier) {
1348
- inv('0xE0D6C2A146A5C993', this.handle, f(modifier));
1376
+ set LassoDamagePerSecond(damage) {
1377
+ inv('0x43F50A7CD2482156', this.handle, f(damage));
1349
1378
  }
1350
1379
  /**
1380
+ * Return true while player is being arrested / busted. If atArresting is set to 1, this function will return 1 when player is being arrested (while player is putting his hand up, but still have control) If atArresting is set to 0, this function will return 1 only when the busted screen is shown.
1381
+ *
1382
+ * @param atArresting
1351
1383
  * @returns
1352
1384
  */
1353
- getDeadEye() {
1354
- return inv('0xA81D24AE0AF99A5E', this.handle, raf());
1385
+ isBeingArrested(atArresting) {
1386
+ return !!inv('0xC8183AE963C58374', this.handle, atArresting, rai());
1355
1387
  }
1356
1388
  /**
1389
+ * Gets a value indicating whether the specified player is currently aiming freely at the specified entity.
1390
+ *
1391
+ * @param entity
1357
1392
  * @returns
1358
1393
  */
1359
- isInScope() {
1360
- return inv('0x04D7F33640662FA2', this.handle);
1394
+ isFreeAimingAtEntity(entity) {
1395
+ return !!inv('0x8C67C11C68713D25', this.handle, entity.handle, rai());
1361
1396
  }
1362
1397
  /**
1363
- * SET_PLAYER_S/T*
1364
- *
1365
- * @param toggle
1398
+ * @param farDamageBonus
1366
1399
  */
1367
- N_0x8591EE69CC3ED257(toggle) {
1368
- inv('0x8591EE69CC3ED257', this.handle, toggle);
1400
+ set DamageFarDistanceBonusTotal(farDamageBonus) {
1401
+ inv('0x1F0E3A4434565F8F', this.handle, f(farDamageBonus));
1402
+ }
1403
+ setMayNotEnterAnyVehicle() {
1404
+ inv('0xBEC463B3A11C909E', this.handle);
1369
1405
  }
1370
1406
  /**
1371
- * @param speedBoost
1372
- * @param duration
1407
+ * @returns
1373
1408
  */
1374
- boostHorseSpeedForTime(speedBoost, duration) {
1375
- inv('0x09C28F828EE674FA', this.handle, f(speedBoost), duration);
1409
+ get Health() {
1410
+ return inv('0x0317C947D062854E', this.handle, raf());
1411
+ }
1412
+ resetWantedLevelDifficulty() {
1413
+ inv('0x062D14F18E8B0CAE', this.handle);
1376
1414
  }
1377
1415
  /**
1378
- * Sets Player's Defense against AI modifier
1379
- *
1380
- * @param modifier
1416
+ * @param linkedWaypointPed
1381
1417
  */
1382
- setAiDefenseModifierAgainstAi(modifier) {
1383
- inv('0x914071FF93AF2692', this.handle, f(modifier));
1418
+ eagleEyeSetFocusOnAssociatedClueTrail(linkedWaypointPed) {
1419
+ inv('0x2AF423D6ECB2C485', this.handle, linkedWaypointPed.handle);
1384
1420
  }
1385
1421
  /**
1386
- * Gets the player's team.
1387
- * Returns -1 in singleplayer.
1388
- *
1389
1422
  * @returns
1390
1423
  */
1391
- getTeam() {
1392
- return inv('0xB464EB6A40C7975B', this.handle, rai());
1424
+ get NumMarkedDeadeyeTargets() {
1425
+ return inv('0xCCD9B77F70D31C9D', this.handle, rai());
1393
1426
  }
1394
1427
  /**
1428
+ * @param weaponHash Refer to [enum: eWeaponHash]
1395
1429
  * @returns
1396
1430
  */
1397
- getHealthRechargeMultiplier() {
1398
- return inv('0x22CD23BB0C45E0CD', this.handle, raf());
1431
+ getWeaponDamage(weaponHash) {
1432
+ return inv('0xFE0304050261442C', this.handle, weaponHash, raf());
1399
1433
  }
1400
1434
  /**
1401
- * Used in script function: NET_AUTO_FOLLOW_UPDATE_LEADER_VALUES
1402
- * followMode:
1403
- * HORSEFOLLOWMODE_AUTO = 0,
1404
- * HORSEFOLLOWMODE_SIDE_ONLY,
1405
- * HORSEFOLLOWMODE_BEHIND_ONLY,
1406
- * HORSEFOLLOWMODE_BEHIND_AND_SIDE,
1407
- * HORSEFOLLOWMODE_BEHIND_CLOSE
1408
- * followPriority:
1409
- * HORSEFOLLOWPRIORITY_STEER_ASSIST = 0,
1410
- * HORSEFOLLOWPRIORITY_AMBIENT,
1411
- * HORSEFOLLOWPRIORITY_NORMAL,
1412
- * HORSEFOLLOWPRIORITY_HIGH
1435
+ * Sets the behavior of sprinting while the Eagleeye feature is active, determining whether sprinting cancels the effect based on the specified parameter.
1436
+ * old name was _EAGLE_EYE_SET_PLUS_FLAG_DISABLED this native can still be used as its declared.
1413
1437
  *
1414
- * @param ped
1415
- * @param p2
1416
- * @param p3
1417
- * @param followMode
1418
- * @param followPriority
1419
- * @param p6
1438
+ * @param disabled
1420
1439
  */
1421
- addAsFollowTarget(ped, p2, p3, followMode, followPriority, p6) {
1422
- inv('0xAC22AA6DF4D1C1DE', this.handle, ped.handle, f(p2), f(p3), followMode, followPriority, p6);
1440
+ eagleeyeSetSprintBehavior(disabled) {
1441
+ inv('0xCE285A4413B00B7F', this.handle, disabled);
1423
1442
  }
1424
1443
  /**
1425
- * Sets the stand prompt for a specific player using a predefined text entry. use AddTextEntry for promptTextKey for custom names
1426
- *
1427
- * @param promptTextKey
1444
+ * @param speech
1428
1445
  */
1429
- setPromptLeaveText(promptTextKey) {
1430
- inv('0x06C3DB00B69D5435', this.handle, promptTextKey);
1446
+ set InteractionNegativeResponse(speech) {
1447
+ inv('0x98CD760DE43B612E', this.handle, speech);
1431
1448
  }
1432
1449
  /**
1433
- * Retrieves the number of marks placed on a PED when Deadeye mode is active for the specified player.
1450
+ * Params: p1, p2, p3, p4 = 1.f, 0, 0, 0 in R* Scripts
1451
+ * _SPECIAL_ABILITY*
1434
1452
  *
1435
- * @param ped
1436
- * @returns
1453
+ * @param p1
1454
+ * @param p2
1455
+ * @param p3
1456
+ * @param p4
1437
1457
  */
1438
- getNumDeadeyeMarksOnPed(ped) {
1439
- return inv('0x27AD7162D3FED01E', this.handle, ped.handle);
1458
+ N_0xFA437FA0738C370C(p1, p2, p3, p4) {
1459
+ inv('0xFA437FA0738C370C', this.handle, f(p1), p2, p3, p4);
1440
1460
  }
1441
1461
  /**
1442
- * @returns
1462
+ * @param toggle
1443
1463
  */
1444
- getPed2() {
1445
- return createFromHandle('Ped', inv('0x5EBE38A20BC51C27', this.handle, rai()));
1464
+ set SimulateAiming(toggle) {
1465
+ inv('0xE0447DEF81CCDFD2', this.handle, toggle);
1446
1466
  }
1447
1467
  /**
1448
- * @param p1
1449
1468
  * @returns
1450
1469
  */
1451
- getIsUiPromptActive(p1) {
1452
- return inv('0x51BEA356B1C60225', this.handle, p1);
1470
+ get AiDefenseModifierAgainstAi() {
1471
+ return inv('0x2E78D822208E740A', this.handle, raf());
1453
1472
  }
1454
1473
  /**
1455
- * @param horse
1456
- * @returns
1474
+ * Setting player's Health recharge time to zero forces immediate health regen
1475
+ *
1476
+ * @param modifier
1457
1477
  */
1458
- setPedAsTempHorse(horse) {
1459
- return inv('0x227B06324234FB09', this.handle, horse.handle);
1478
+ set HealthRechargeTimeModifier(modifier) {
1479
+ inv('0x535ED4605F89AB6E', this.handle, f(modifier));
1460
1480
  }
1461
1481
  /**
1462
- * Restores Deadeye by given amount.
1463
- * Params: p2, p3, p4 = 0, 0, 1 in R* Scripts
1482
+ * Returns true if the given player has a valid ped.
1464
1483
  *
1465
- * @param amount
1466
- * @param p2
1467
- * @param p3
1468
- * @param p4
1484
+ * @returns
1469
1485
  */
1470
- specialAbilityRestoreByAmount(amount, p2, p3, p4) {
1471
- inv('0x51345AE20F22C261', this.handle, f(amount), p2, p3, p4);
1486
+ networkHasValidPed() {
1487
+ return inv('0x0760D6F70EBCC05C', this.handle);
1472
1488
  }
1473
1489
  /**
1474
- * Only used in R* SP Script short_update
1475
- *
1476
- * @param delay
1490
+ * @param accuracy
1477
1491
  */
1478
- setDeadeyeAbilityDepletionDelay(delay) {
1479
- inv('0x870634493CB4372C', this.handle, f(delay));
1492
+ set RemoteAccuracyFloorModifier(accuracy) {
1493
+ inv('0xDEE80FEDFDD43C9B', this.handle, f(accuracy));
1480
1494
  }
1481
1495
  /**
1482
- * Swim speed multiplier.
1483
- * Multiplier goes up to 1.49f
1484
- *
1485
- * @param multiplier
1496
+ * @param weapon
1497
+ * @param speed
1486
1498
  */
1487
- setSwimMultiplierForPlayer(multiplier) {
1488
- inv('0xBFCEABDE34DA5085', this.handle, f(multiplier));
1499
+ setWeaponDrawSpeed(weapon, speed) {
1500
+ inv('0x00EB5A760638DB55', this.handle, _h(weapon), f(speed));
1489
1501
  }
1490
1502
  /**
1491
1503
  * @returns
1492
1504
  */
1493
- isDead() {
1494
- return inv('0x2E9C3FCB6798F397', this.handle, rai());
1505
+ get StaminaDepletionMultiplier() {
1506
+ return inv('0x68A0389E0718AC8F', this.handle, raf());
1495
1507
  }
1496
1508
  /**
1497
- * @param ped
1498
- * @param p2
1509
+ * @returns
1499
1510
  */
1500
- N_0x310CE349E0C0EC4B(ped, p2) {
1501
- inv('0x310CE349E0C0EC4B', this.handle, ped.handle, p2);
1511
+ get CurrentStealthNoise() {
1512
+ return inv('0xD7ECC25E176ECBA5', this.handle, raf());
1502
1513
  }
1503
1514
  /**
1504
- * Clears all Eagle Eye trails that were registered for entities associated with the specified player.
1515
+ * @param ped
1516
+ * @returns
1505
1517
  */
1506
- eagleEyeClearRegisteredTrails() {
1507
- inv('0xE5D3EB37ABC1EB03', this.handle);
1518
+ isFollowingTarget(ped) {
1519
+ return inv('0xE24C64D9ADED2EF5', this.handle, ped.handle);
1508
1520
  }
1509
1521
  /**
1510
- * @param enable
1522
+ * mood: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePedMood
1523
+ *
1524
+ * @param mood Refer to [enum: ePedMood]
1511
1525
  */
1512
- enableCustomDeadeyeAbility(enable) {
1513
- inv('0x95EE1DEE1DCD9070', this.handle, enable);
1526
+ set Mood(mood) {
1527
+ inv('0x39BED552DB46FFA9', this.handle, mood);
1514
1528
  }
1515
1529
  /**
1516
- * Returns the player's invincibility status.
1530
+ * Params: See 0x0751D461F06E41CE
1517
1531
  *
1518
- * @returns
1532
+ * @param ped
1533
+ * @param promptType
1534
+ * @param promptMode
1535
+ * @param enabled
1519
1536
  */
1520
- getInvincible() {
1521
- return inv('0x0CBBCB2CCFA7DC4E', this.handle, rai());
1522
- }
1523
- resetArrestState() {
1524
- inv('0x12917931C31F1750', this.handle);
1537
+ modifyUiPromptForPed(ped, promptType, promptMode, enabled) {
1538
+ inv('0xA3DB37EDF9A74635', this.handle, ped.handle, promptType, promptMode, enabled);
1525
1539
  }
1526
1540
  /**
1527
- * Toggle handles wether Deadeye and Eagleeye are infinite or not.
1541
+ * Used in script function INIT_DEADEYE_SLOWDOWN
1528
1542
  *
1529
- * @param toggle
1543
+ * @param p1
1530
1544
  */
1531
- modifyInfiniteTrailVision(toggle) {
1532
- inv('0x28A13BF6B05C3D83', this.handle, toggle);
1545
+ N_0x3ACAC8832E77BC93(p1) {
1546
+ inv('0x3ACAC8832E77BC93', this.handle, p1);
1533
1547
  }
1534
1548
  /**
1535
- * Simply sets you as invincible (Health will not deplete).
1549
+ * Disables the players ability to be wanted by lawmen
1536
1550
  *
1537
- * @param toggle
1551
+ * @param disable
1538
1552
  */
1539
- setInvincible(toggle) {
1540
- inv('0xFEBEEBC9CBDF4B12', this.handle, toggle);
1553
+ set DisableWantedLevel(disable) {
1554
+ inv('0x8674D138391FFB1B', this.handle, disable);
1541
1555
  }
1542
1556
  /**
1543
- * Returns whether the player can control himself.
1557
+ * Disables the previously set interactive focus mode preset for a given player. see `_SET_PLAYER_INTERACTIVE_FOCUS_PRESET - 0x3C1B1807C7A415D6`
1544
1558
  *
1545
- * @returns
1559
+ * @param name
1546
1560
  */
1547
- isControlOn() {
1548
- return inv('0x7964097FCE4C244B', this.handle, rai());
1561
+ disableInteractiveFocusPreset(name) {
1562
+ inv('0xC67A4910425F11F1', this.handle, name);
1549
1563
  }
1550
1564
  /**
1551
- * @param vehicle
1565
+ * @param p1
1552
1566
  */
1553
- setMayOnlyEnterThisVehicle(vehicle) {
1554
- inv('0xDA35A134038557EC', this.handle, vehicle.handle);
1567
+ set ManageBuffSuperJump(p1) {
1568
+ inv('0x292F0B6EDC82E3A4', this.handle, f(p1));
1555
1569
  }
1556
1570
  /**
1557
- * @param p2
1558
- * @param p3
1559
- * @returns outEntity
1571
+ * @param multiplier
1560
1572
  */
1561
- getInteractionTargetEntity(p2, p3) {
1562
- const result = inv('0x3EE1F7A8C32F24E1', this.handle, pvi(), p2, p3);
1563
- return [result[0], createFromHandle('Entity', result[1])];
1573
+ set SpecialAbilityMultiplier(multiplier) {
1574
+ inv('0x5A498FCA232F71E1', this.handle, f(multiplier));
1564
1575
  }
1565
1576
  /**
1566
- * @param toggle
1577
+ * @param accuracy
1567
1578
  */
1568
- setDeadeyeTaggingEnabled(toggle) {
1569
- inv('0x6B5DDFB967E5073D', this.handle, toggle);
1579
+ set LocalAccuracyFloorModifier(accuracy) {
1580
+ inv('0x4EA69188FBCE6A7D', this.handle, f(accuracy));
1570
1581
  }
1571
1582
  /**
1583
+ * @param wantedLevel
1572
1584
  * @returns
1573
1585
  */
1574
- getStamina() {
1575
- return inv('0x0FF421E467373FCF', this.handle, raf());
1586
+ isWantedLevelGreater(wantedLevel) {
1587
+ return !!inv('0xE1C0AD4C24324C36', this.handle, wantedLevel, rai());
1576
1588
  }
1577
1589
  /**
1578
- * @param modifier
1590
+ * SPECIAL_ABILITY_NONE = -1,
1591
+ * SPECIAL_ABILITY_CAR_SLOWDOWN,
1592
+ * SPECIAL_ABILITY_RAGE,
1593
+ * SPECIAL_ABILITY_BULLET_TIME,
1594
+ * SPECIAL_ABILITY_SNAPSHOT,
1595
+ * SPECIAL_ABILITY_INSULT,
1596
+ * SPECIAL_ABILITY_DEADEYE,
1597
+ * SPECIAL_ABILITY_REVIVE
1598
+ *
1599
+ * @param type
1579
1600
  */
1580
- setMeleeWeaponDamageModifier(modifier) {
1581
- inv('0xE4CB5A3F18170381', this.handle, f(modifier));
1601
+ set SpecialAbilityType(type) {
1602
+ inv('0x00BA333DA05ADC23', this.handle, type);
1582
1603
  }
1583
1604
  /**
1584
- * @returns
1605
+ * @param toggle
1585
1606
  */
1586
- hasBeenSpottedInStolenVehicle() {
1587
- return inv('0xC932F57F31EA9152', this.handle, rai());
1607
+ set EveryoneIgnorePlayer(toggle) {
1608
+ inv('0x34630A768925B852', this.handle, toggle);
1588
1609
  }
1589
1610
  /**
1590
- * Enables or disables the Pick Up prompt for a hat on the ground for the specified player. When set to true, the player will see a prompt to pick up the hat if they are near it.
1611
+ * Sets whether this player can take cover.
1591
1612
  *
1592
- * @param canPickup
1613
+ * @param toggle
1593
1614
  */
1594
- setCanPickupHat(canPickup) {
1595
- inv('0xACA45DDCEF6071C4', this.handle, canPickup);
1615
+ set CanUseCover(toggle) {
1616
+ inv('0x5EDA520F7A3BAF4E', this.handle, toggle);
1596
1617
  }
1597
1618
  /**
1598
- * Sets the aura color for entities that the player can target in Deadeye mode, based on a specific hash value. This Native was previously named `SetPlayerStatFlagHash`, but it has been re-evaluated and renamed to better reflect its function in controlling the Deadeye aura color for targeted entities
1599
- * some colors
1600
- * 0: Default aura
1601
- * 1014693585
1602
- * 1936842089
1603
- * 1979474018
1604
- *
1605
- * @param auraColorHash
1619
+ * @param ped
1606
1620
  */
1607
- setDeadEyeAuraByHash(auraColorHash) {
1608
- inv('0x768E81AE285A4B67', this.handle, _h(auraColorHash));
1621
+ removeAsFollowTarget(ped) {
1622
+ inv('0x0C6B89876262A99D', this.handle, ped.handle);
1609
1623
  }
1610
1624
  /**
1611
- * @param target
1625
+ * @param weaponGroup
1626
+ * @param modifier
1612
1627
  */
1613
- setBountyTarget(target) {
1614
- inv('0x6ADF821FBF21920E', this.handle, target.handle);
1628
+ setWeaponGroupDamageModifier(weaponGroup, modifier) {
1629
+ inv('0xFC79DCC94D0A5897', this.handle, _h(weaponGroup), f(modifier));
1615
1630
  }
1616
1631
  /**
1617
- * Retrieves whether all trails are currently hidden during Eagle Eye mode for the specified player.
1618
- *
1619
- * @returns
1632
+ * @param ped
1633
+ * @param p2
1620
1634
  */
1621
- eagleEyeAreAllTrailsHidden() {
1622
- return inv('0xA62BBAAE67A05BB0', this.handle);
1635
+ N_0x84481018E668E1B8(ped, p2) {
1636
+ inv('0x84481018E668E1B8', this.handle, ped.handle, p2);
1623
1637
  }
1624
1638
  /**
1625
- * @returns
1639
+ * @param entity
1640
+ * @param p2
1626
1641
  */
1627
- getIsDeadeyeTaggingEnabled() {
1628
- return inv('0x32348719DCED2969', this.handle);
1642
+ registerEagleEyeTrailsForEntity(entity, p2) {
1643
+ inv('0xAC67098A1E54ABB0', this.handle, entity.handle, p2);
1629
1644
  }
1630
1645
  /**
1631
- * @param weaponGroup
1632
- * @param toggle
1646
+ * @param filter
1633
1647
  */
1634
- setWeaponGroupAsInstantKill(weaponGroup, toggle) {
1635
- inv('0x59F0AFF3E0A1B019', this.handle, _h(weaponGroup), toggle);
1648
+ set DeadeyeTaggingConfig(filter) {
1649
+ inv('0x83FCD6921FC8FD05', this.handle, filter);
1636
1650
  }
1637
1651
  /**
1638
- * Returns false if PromptType is enabled
1639
- * Params: See 0x0751D461F06E41CE
1652
+ * (Un)lock Eagle Eye functionality
1640
1653
  *
1641
- * @param promptType
1642
- * @param promptMode
1643
- * @returns
1654
+ * @param enable
1644
1655
  */
1645
- getUiPromptIsDisabled(promptType, promptMode) {
1646
- return inv('0x6614F9039BD31931', this.handle, promptType, promptMode);
1656
+ enableEagleeye(enable) {
1657
+ inv('0xA63FCAD3A6FEC6D2', this.handle, enable);
1647
1658
  }
1648
1659
  /**
1649
- * @param toggle
1660
+ * Only used in R* SP Script short_update
1661
+ * Restores Deadeye Outer Ring
1662
+ *
1663
+ * @param amount
1650
1664
  */
1651
- setLockonToFriendlyPlayers(toggle) {
1652
- inv('0x4A056257802DD3E5', this.handle, toggle);
1665
+ specialAbilityRestoreOuterRing(amount) {
1666
+ inv('0x2498035289B5688F', this.handle, f(amount));
1653
1667
  }
1654
1668
  /**
1655
- * Activates the Surrender prompt for the specified player in the current frame.
1656
- *
1657
- * @param targetPed
1658
- * @param promptOrder
1659
- * @param p3
1669
+ * @returns
1660
1670
  */
1661
- setCooperatePromptThisFrame(targetPed, promptOrder, p3) {
1662
- inv('0xCBB54CC7FFFFAB86', this.handle, targetPed.handle, promptOrder, p3);
1671
+ get IsSpecialAbilityActive() {
1672
+ return inv('0xB16223CB7DA965F0', this.handle);
1673
+ }
1674
+ reportPoliceSpottedPlayer() {
1675
+ inv('0xCBCCF73FFA69CC6B', this.handle);
1663
1676
  }
1664
1677
  /**
1665
- * https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePlayerResetFlags
1666
- * https://github.com/femga/rdr3_discoveries/tree/master/AI/PLAYER_RESET_FLAGS
1667
- *
1668
- * @param playerResetFlag
1678
+ * @param p1
1669
1679
  * @param p2
1680
+ * @returns
1670
1681
  */
1671
- setResetFlag(playerResetFlag, p2) {
1672
- inv('0x9F9A829C6751F3C7', this.handle, playerResetFlag, p2);
1682
+ getReceivedBattleEventRecently(p1, p2) {
1683
+ return !!inv('0xFB6EB8785F808551', this.handle, p1, p2, rai());
1673
1684
  }
1674
1685
  /**
1675
1686
  * @returns
1676
1687
  */
1677
- getWantedLevel() {
1678
- return inv('0xABC532F9098BFD9D', this.handle, rai());
1688
+ get SpecialAbilityMultiplier() {
1689
+ return inv('0xAB3773E7AA1E9DCC', this.handle, raf());
1679
1690
  }
1680
1691
  /**
1681
- * @param closeRangeLowerBound
1682
- * @param closeRangeUpperBound
1692
+ * Sets the weapon that the specified player will aim with. The weapon must already be assigned to the PED. This also determines the weapon order, specifying which weapon the player will automatically switch to when the current weapon runs out of ammo.
1693
+ *
1694
+ * @param weapon
1695
+ * @param attachSlotId
1683
1696
  */
1684
- setDamageCloseDistanceBonus(closeRangeLowerBound, closeRangeUpperBound) {
1685
- inv('0x7761A30432C91297', this.handle, f(closeRangeLowerBound), f(closeRangeUpperBound));
1697
+ setAimWeapon(weapon, attachSlotId) {
1698
+ inv('0xCFFC3ECCD7A5CCEB', this.handle, _h(weapon), attachSlotId);
1686
1699
  }
1687
1700
  /**
1688
- * @param multiplier
1701
+ * @param pos
1702
+ * @param heading
1703
+ * @param p5
1704
+ * @param p6
1705
+ * @param p7
1706
+ * @param p8
1689
1707
  */
1690
- setSneakingNoiseMultiplier(multiplier) {
1691
- inv('0x4DE44FA389DCA565', this.handle, f(multiplier));
1708
+ startTeleport(pos, heading, p5, p6, p7, p8) {
1709
+ inv('0xDF8822C55EDDA65B', this.handle, f(pos.x), f(pos.y), f(pos.z), f(heading), p5, p6, p7, p8);
1692
1710
  }
1693
1711
  /**
1694
- * Sets the player's team.
1712
+ * _IS_PLAYER_A* - _IS_PLAYER_BE*
1695
1713
  *
1696
- * @param team
1697
- * @param bRestrictToThisScript
1714
+ * @param ped
1715
+ * @returns
1698
1716
  */
1699
- setTeam(team, bRestrictToThisScript) {
1700
- inv('0xE8DD8536F01DE600', this.handle, team, bRestrictToThisScript);
1717
+ N_0xE7F8707269544B29(ped) {
1718
+ return !!inv('0xE7F8707269544B29', this.handle, ped.handle, rai());
1701
1719
  }
1702
1720
  /**
1703
- * Checks if the player's Deadeye ability is enabled.
1704
- *
1705
1721
  * @returns
1706
1722
  */
1707
- isSpecialAbilityEnabled() {
1708
- return inv('0xDE6C85975F9D4894', this.handle);
1723
+ get IsScriptControlOn() {
1724
+ return !!inv('0xB78350754157C00F', this.handle, rai());
1709
1725
  }
1710
1726
  /**
1711
- * Returns true if PromptType is enabled for ped (mount)
1712
- * Params: See 0x0751D461F06E41CE
1713
- *
1714
- * @param ped
1715
- * @param promptType
1716
- * @param promptMode
1717
1727
  * @returns
1718
1728
  */
1719
- getUiPromptForPedIsEnabled(ped, promptType, promptMode) {
1720
- return inv('0xEA8F168A76A0B9BC', this.handle, ped.handle, promptType, promptMode);
1729
+ get IsSecondarySpecialAbilityActive() {
1730
+ return inv('0x45AB66D02B601FA7', this.handle);
1721
1731
  }
1722
- /**
1723
- * Applies a aura effect to nearby entities when Deadeye is active, based on a flag parameter. This includes humans, animals, vehicles, and horses pulling those vehicles. Additionally, depending on the flag value, the player's appearance may change (e.g., turning gray).
1724
- *
1725
- * @param flag
1726
- */
1727
- setDeadeyeEntityAuraWithFlag(flag) {
1728
- inv('0x2B12B6FC8B8772AB', this.handle, flag);
1732
+ N_0xC900A465364A85D6() {
1733
+ inv('0xC900A465364A85D6', this.handle);
1729
1734
  }
1730
1735
  /**
1736
+ * Returns the group ID the player is member of.
1737
+ *
1731
1738
  * @returns
1732
1739
  */
1733
- getMountOwnedByPlayer() {
1734
- return createFromHandle('Ped', inv('0xF49F14462F0AE27C', this.handle, rai()));
1740
+ get Group() {
1741
+ return inv('0x9BAB31815159ABCF', this.handle, rai());
1735
1742
  }
1736
1743
  /**
1737
- * @param weaponHash Refer to [enum: eWeaponHash]
1738
- * @param damageModifier
1744
+ * Sets stamina core drains peed using ranged damage scale and melee damage scale
1745
+ *
1746
+ * @param weaponDefenseMod
1747
+ * @param meleeDefenseMod
1739
1748
  */
1740
- setWeaponTypeDamageModifier(weaponHash, damageModifier) {
1741
- inv('0xD04AD186CE8BB129', this.handle, weaponHash, f(damageModifier));
1749
+ setDefenseModifier(weaponDefenseMod, meleeDefenseMod) {
1750
+ inv('0x497A6539BB0E8787', this.handle, f(weaponDefenseMod), f(meleeDefenseMod));
1742
1751
  }
1743
1752
  /**
1744
- * Only used in script function PROCESS_PED_INTERRUPT_DIALOGUE
1745
- * *GET_PLAYER**
1753
+ * This modifies the damage value of your weapon. Whether it is a multiplier or base damage is unknown.
1746
1754
  *
1747
- * @returns ped
1755
+ * @param modifier
1748
1756
  */
1749
- N_0x7AE93C45EC14A166() {
1750
- const result = inv('0x7AE93C45EC14A166', this.handle, pvi(), rai());
1751
- return [!!result[0], createFromHandle('Ped', result[1])];
1757
+ set WeaponDamageModifier(modifier) {
1758
+ inv('0x94D529F7B73D7A85', this.handle, f(modifier));
1752
1759
  }
1753
1760
  /**
1754
- * @param speed
1755
- * @param duration
1756
- * @param heading
1757
- * @param p4
1758
- * @param p5
1761
+ * durationCost: per second
1762
+ *
1763
+ * @param durationCost
1759
1764
  */
1760
- simulateInputGait(speed, duration, heading, p4, p5) {
1761
- inv('0xFA0C063C422C4355', this.handle, f(speed), duration, f(heading), p4, p5);
1765
+ set SpecialAbilityDurationCost(durationCost) {
1766
+ inv('0xB783F75940B23014', this.handle, f(durationCost));
1762
1767
  }
1763
1768
  /**
1764
- * @param p1
1765
1769
  * @returns
1766
1770
  */
1767
- getDeadEyeMeterLevel(p1) {
1768
- return inv('0x3A6AE4EEE30370FE', this.handle, p1, raf());
1771
+ get IsTargettingAnything() {
1772
+ return !!inv('0x4605C66E0F935F83', this.handle, rai());
1769
1773
  }
1770
1774
  /**
1771
- * @param drawReductionTime
1775
+ * @param modifier
1772
1776
  */
1773
- setBowDrawReductionTimeInDeadeye(drawReductionTime) {
1774
- inv('0xBE0C524970892D41', this.handle, f(drawReductionTime));
1777
+ eagleEyeSetDrainRateModifier(modifier) {
1778
+ inv('0xE0D6C2A146A5C993', this.handle, f(modifier));
1775
1779
  }
1776
1780
  /**
1777
- * Checks if the player can focus on tracks while in Eagle Eye mode. Returns true if the player is able to focus on a track, otherwise false.
1778
- *
1779
1781
  * @returns
1780
1782
  */
1781
- eagleEyeCanFocusOnTrack() {
1782
- return inv('0x1DA5C5B0923E1B85', this.handle);
1783
+ get DeadEye() {
1784
+ return inv('0xA81D24AE0AF99A5E', this.handle, raf());
1783
1785
  }
1784
1786
  /**
1785
- * @param range
1787
+ * @returns
1786
1788
  */
1787
- eagleEyeSetRange(range) {
1788
- inv('0x22C8B10802301381', this.handle, f(range));
1789
+ get IsInScope() {
1790
+ return inv('0x04D7F33640662FA2', this.handle);
1789
1791
  }
1790
1792
  /**
1791
- * *SET_SPECIAL_ABILITY**
1793
+ * SET_PLAYER_S/T*
1792
1794
  *
1793
- * @param p1
1795
+ * @param toggle
1794
1796
  */
1795
- N_0x4D1699543B1C023C(p1) {
1796
- inv('0x4D1699543B1C023C', this.handle, f(p1));
1797
+ N_0x8591EE69CC3ED257(toggle) {
1798
+ inv('0x8591EE69CC3ED257', this.handle, toggle);
1797
1799
  }
1798
1800
  /**
1799
- * Drains Deadeye by given amount.
1800
- *
1801
- * @param amount
1802
- * @param p2
1801
+ * @param speedBoost
1802
+ * @param duration
1803
1803
  */
1804
- specialAbilityDrainByAmount(amount, p2) {
1805
- inv('0x200114E99552462B', this.handle, f(amount), p2);
1804
+ boostHorseSpeedForTime(speedBoost, duration) {
1805
+ inv('0x09C28F828EE674FA', this.handle, f(speedBoost), duration);
1806
+ }
1807
+ /**
1808
+ * Gets the player's server ID. In multiplayer, this is the player's unique server-side identifier.
1809
+ */
1810
+ get ServerId() {
1811
+ return inv('0x4D97BCC7', this.handle, rai());
1806
1812
  }
1807
1813
  }
1808
1814
  registerHandle('Player', Player);