@nativewrappers/redm-codegen 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/classes/AnimScene.d.ts +82 -82
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +124 -124
  4. package/dist/classes/BaseModel.d.ts +29 -29
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +43 -43
  7. package/dist/classes/BaseTask.d.ts +43 -43
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +53 -53
  10. package/dist/classes/Cam.d.ts +82 -82
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +115 -115
  13. package/dist/classes/Entity.d.ts +250 -250
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +350 -350
  16. package/dist/classes/Interior.d.ts +27 -27
  17. package/dist/classes/Interior.d.ts.map +1 -1
  18. package/dist/classes/Interior.js +42 -42
  19. package/dist/classes/Ped.d.ts +55 -55
  20. package/dist/classes/Ped.d.ts.map +1 -1
  21. package/dist/classes/Ped.js +76 -76
  22. package/dist/classes/PedTask.d.ts +797 -797
  23. package/dist/classes/PedTask.d.ts.map +1 -1
  24. package/dist/classes/PedTask.js +1023 -1023
  25. package/dist/classes/PersChar.d.ts +13 -13
  26. package/dist/classes/PersChar.d.ts.map +1 -1
  27. package/dist/classes/PersChar.js +27 -27
  28. package/dist/classes/Pickup.d.ts +8 -8
  29. package/dist/classes/Pickup.d.ts.map +1 -1
  30. package/dist/classes/Pickup.js +15 -15
  31. package/dist/classes/Player.d.ts +185 -185
  32. package/dist/classes/Player.d.ts.map +1 -1
  33. package/dist/classes/Player.js +251 -251
  34. package/dist/classes/Prop.d.ts +130 -130
  35. package/dist/classes/Prop.d.ts.map +1 -1
  36. package/dist/classes/Prop.js +188 -188
  37. package/dist/classes/PropSet.d.ts +17 -17
  38. package/dist/classes/PropSet.d.ts.map +1 -1
  39. package/dist/classes/PropSet.js +25 -25
  40. package/dist/classes/VehicleTask.d.ts +23 -23
  41. package/dist/classes/VehicleTask.d.ts.map +1 -1
  42. package/dist/classes/VehicleTask.js +30 -30
  43. package/dist/classes/Volume.d.ts +39 -39
  44. package/dist/classes/Volume.d.ts.map +1 -1
  45. package/dist/classes/Volume.js +54 -54
  46. package/dist/classes/Weapon.d.ts +291 -291
  47. package/dist/classes/Weapon.d.ts.map +1 -1
  48. package/dist/classes/Weapon.js +414 -414
  49. package/dist/namespaces/Animscene.d.ts +63 -63
  50. package/dist/namespaces/Animscene.d.ts.map +1 -1
  51. package/dist/namespaces/Animscene.js +83 -83
  52. package/dist/namespaces/Audio.d.ts +464 -464
  53. package/dist/namespaces/Audio.d.ts.map +1 -1
  54. package/dist/namespaces/Audio.js +650 -650
  55. package/dist/namespaces/Bounty.d.ts +57 -57
  56. package/dist/namespaces/Bounty.d.ts.map +1 -1
  57. package/dist/namespaces/Bounty.js +90 -90
  58. package/dist/namespaces/CamStatics.d.ts +426 -426
  59. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  60. package/dist/namespaces/CamStatics.js +609 -609
  61. package/dist/namespaces/Collection.d.ts +81 -81
  62. package/dist/namespaces/Collection.d.ts.map +1 -1
  63. package/dist/namespaces/Collection.js +113 -113
  64. package/dist/namespaces/Compendium.d.ts +38 -38
  65. package/dist/namespaces/Compendium.d.ts.map +1 -1
  66. package/dist/namespaces/Compendium.js +52 -52
  67. package/dist/namespaces/Crashlog.d.ts +10 -10
  68. package/dist/namespaces/Crashlog.d.ts.map +1 -1
  69. package/dist/namespaces/Crashlog.js +14 -14
  70. package/dist/namespaces/Databinding.d.ts +174 -174
  71. package/dist/namespaces/Databinding.d.ts.map +1 -1
  72. package/dist/namespaces/Databinding.js +266 -266
  73. package/dist/namespaces/EntityStatics.d.ts +110 -110
  74. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  75. package/dist/namespaces/EntityStatics.js +146 -146
  76. package/dist/namespaces/Graphics.d.ts +547 -547
  77. package/dist/namespaces/Graphics.d.ts.map +1 -1
  78. package/dist/namespaces/Graphics.js +731 -731
  79. package/dist/namespaces/Hud.d.ts +395 -395
  80. package/dist/namespaces/Hud.d.ts.map +1 -1
  81. package/dist/namespaces/Hud.js +564 -564
  82. package/dist/namespaces/InteriorStatics.d.ts +40 -40
  83. package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
  84. package/dist/namespaces/InteriorStatics.js +56 -56
  85. package/dist/namespaces/Inventory.d.ts +107 -107
  86. package/dist/namespaces/Inventory.d.ts.map +1 -1
  87. package/dist/namespaces/Inventory.js +149 -149
  88. package/dist/namespaces/Itemdatabase.d.ts +5 -5
  89. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  90. package/dist/namespaces/Itemdatabase.js +7 -7
  91. package/dist/namespaces/Map.d.ts +173 -173
  92. package/dist/namespaces/Map.d.ts.map +1 -1
  93. package/dist/namespaces/Map.js +240 -240
  94. package/dist/namespaces/Minigame.d.ts +56 -56
  95. package/dist/namespaces/Minigame.d.ts.map +1 -1
  96. package/dist/namespaces/Minigame.js +80 -80
  97. package/dist/namespaces/Network.d.ts +964 -964
  98. package/dist/namespaces/Network.d.ts.map +1 -1
  99. package/dist/namespaces/Network.js +1333 -1333
  100. package/dist/namespaces/Object.d.ts +240 -240
  101. package/dist/namespaces/Object.d.ts.map +1 -1
  102. package/dist/namespaces/Object.js +337 -337
  103. package/dist/namespaces/Pad.d.ts +95 -95
  104. package/dist/namespaces/Pad.d.ts.map +1 -1
  105. package/dist/namespaces/Pad.js +127 -127
  106. package/dist/namespaces/PedStatics.d.ts +18 -18
  107. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  108. package/dist/namespaces/PedStatics.js +26 -26
  109. package/dist/namespaces/Perschar.d.ts +46 -46
  110. package/dist/namespaces/Perschar.d.ts.map +1 -1
  111. package/dist/namespaces/Perschar.js +66 -66
  112. package/dist/namespaces/Physics.d.ts +207 -207
  113. package/dist/namespaces/Physics.d.ts.map +1 -1
  114. package/dist/namespaces/Physics.js +315 -315
  115. package/dist/namespaces/PlayerStatics.d.ts +68 -68
  116. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  117. package/dist/namespaces/PlayerStatics.js +95 -95
  118. package/dist/namespaces/Population.d.ts +86 -86
  119. package/dist/namespaces/Population.d.ts.map +1 -1
  120. package/dist/namespaces/Population.js +116 -116
  121. package/dist/namespaces/Posse.d.ts +43 -43
  122. package/dist/namespaces/Posse.d.ts.map +1 -1
  123. package/dist/namespaces/Posse.js +67 -67
  124. package/dist/namespaces/Propset.d.ts +59 -59
  125. package/dist/namespaces/Propset.d.ts.map +1 -1
  126. package/dist/namespaces/Propset.js +81 -81
  127. package/dist/namespaces/Shapetest.d.ts +11 -11
  128. package/dist/namespaces/Shapetest.d.ts.map +1 -1
  129. package/dist/namespaces/Shapetest.js +13 -13
  130. package/dist/namespaces/Stats.d.ts +90 -90
  131. package/dist/namespaces/Stats.d.ts.map +1 -1
  132. package/dist/namespaces/Stats.js +127 -127
  133. package/dist/namespaces/Streaming.d.ts +127 -127
  134. package/dist/namespaces/Streaming.d.ts.map +1 -1
  135. package/dist/namespaces/Streaming.js +193 -193
  136. package/dist/namespaces/Task.d.ts +346 -346
  137. package/dist/namespaces/Task.d.ts.map +1 -1
  138. package/dist/namespaces/Task.js +525 -525
  139. package/dist/namespaces/Telemetry.d.ts +176 -176
  140. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  141. package/dist/namespaces/Telemetry.js +255 -255
  142. package/dist/namespaces/VolumeStatics.d.ts +64 -64
  143. package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
  144. package/dist/namespaces/VolumeStatics.js +85 -85
  145. package/dist/namespaces/Water.d.ts +27 -27
  146. package/dist/namespaces/Water.d.ts.map +1 -1
  147. package/dist/namespaces/Water.js +41 -41
  148. package/dist/namespaces/WeaponStatics.d.ts +234 -234
  149. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  150. package/dist/namespaces/WeaponStatics.js +320 -320
  151. package/dist/namespaces/Zone.d.ts +7 -7
  152. package/dist/namespaces/Zone.d.ts.map +1 -1
  153. package/dist/namespaces/Zone.js +9 -9
  154. package/package.json +1 -1
  155. package/src/classes/AnimScene.ts +133 -133
  156. package/src/classes/BaseModel.ts +50 -50
  157. package/src/classes/BaseTask.ts +55 -55
  158. package/src/classes/Cam.ts +126 -126
  159. package/src/classes/Entity.ts +365 -365
  160. package/src/classes/Interior.ts +43 -43
  161. package/src/classes/Ped.ts +86 -86
  162. package/src/classes/PedTask.ts +2067 -2067
  163. package/src/classes/PersChar.ts +34 -34
  164. package/src/classes/Pickup.ts +16 -16
  165. package/src/classes/Player.ts +296 -296
  166. package/src/classes/Prop.ts +203 -203
  167. package/src/classes/PropSet.ts +29 -29
  168. package/src/classes/VehicleTask.ts +32 -32
  169. package/src/classes/Volume.ts +61 -61
  170. package/src/classes/Weapon.ts +427 -427
  171. package/src/namespaces/Animscene.ts +86 -86
  172. package/src/namespaces/Audio.ts +760 -760
  173. package/src/namespaces/Bounty.ts +102 -102
  174. package/src/namespaces/CamStatics.ts +631 -631
  175. package/src/namespaces/Collection.ts +114 -114
  176. package/src/namespaces/Compendium.ts +59 -59
  177. package/src/namespaces/Crashlog.ts +16 -16
  178. package/src/namespaces/Databinding.ts +282 -282
  179. package/src/namespaces/EntityStatics.ts +158 -158
  180. package/src/namespaces/Graphics.ts +1140 -1140
  181. package/src/namespaces/Hud.ts +592 -592
  182. package/src/namespaces/InteriorStatics.ts +64 -64
  183. package/src/namespaces/Inventory.ts +165 -165
  184. package/src/namespaces/Itemdatabase.ts +8 -8
  185. package/src/namespaces/Map.ts +256 -256
  186. package/src/namespaces/Minigame.ts +92 -92
  187. package/src/namespaces/Network.ts +1392 -1392
  188. package/src/namespaces/Object.ts +350 -350
  189. package/src/namespaces/Pad.ts +127 -127
  190. package/src/namespaces/PedStatics.ts +30 -30
  191. package/src/namespaces/Perschar.ts +76 -76
  192. package/src/namespaces/Physics.ts +327 -327
  193. package/src/namespaces/PlayerStatics.ts +103 -103
  194. package/src/namespaces/Population.ts +131 -131
  195. package/src/namespaces/Posse.ts +67 -67
  196. package/src/namespaces/Propset.ts +92 -92
  197. package/src/namespaces/Shapetest.ts +14 -14
  198. package/src/namespaces/Stats.ts +143 -143
  199. package/src/namespaces/Streaming.ts +226 -226
  200. package/src/namespaces/Task.ts +498 -498
  201. package/src/namespaces/Telemetry.ts +261 -261
  202. package/src/namespaces/VolumeStatics.ts +87 -87
  203. package/src/namespaces/Water.ts +47 -47
  204. package/src/namespaces/WeaponStatics.ts +325 -325
  205. package/src/namespaces/Zone.ts +10 -10
@@ -108,6 +108,119 @@ export class Player implements IHandle {
108
108
  inv<void>('0x131E294EF60160DF', this.handle, f(p1), f(p2), f(p3), f(intensity), flag);
109
109
  }
110
110
 
111
+ /**
112
+ * @param target
113
+ */
114
+ setBountyTarget(target: Player): void {
115
+ inv<void>('0x6ADF821FBF21920E', this.handle, target.handle);
116
+ }
117
+
118
+ /**
119
+ * Retrieves whether all trails are currently hidden during Eagle Eye mode for the specified player.
120
+ *
121
+ * @returns
122
+ */
123
+ eagleEyeAreAllTrailsHidden(): any {
124
+ return inv<number>('0xA62BBAAE67A05BB0', this.handle);
125
+ }
126
+
127
+ /**
128
+ * @returns
129
+ */
130
+ getIsDeadeyeTaggingEnabled(): any {
131
+ return inv<number>('0x32348719DCED2969', this.handle);
132
+ }
133
+
134
+ /**
135
+ * @param weaponGroup
136
+ * @param toggle
137
+ */
138
+ setWeaponGroupAsInstantKill(weaponGroup: string | number, toggle: boolean): void {
139
+ inv<void>('0x59F0AFF3E0A1B019', this.handle, _h(weaponGroup), toggle);
140
+ }
141
+
142
+ /**
143
+ * Returns false if PromptType is enabled
144
+ * Params: See 0x0751D461F06E41CE
145
+ *
146
+ * @param promptType
147
+ * @param promptMode
148
+ * @returns
149
+ */
150
+ getUiPromptIsDisabled(promptType: number, promptMode: number): any {
151
+ return inv<number>('0x6614F9039BD31931', this.handle, promptType, promptMode);
152
+ }
153
+
154
+ /**
155
+ * @param toggle
156
+ */
157
+ setLockonToFriendlyPlayers(toggle: boolean): void {
158
+ inv<void>('0x4A056257802DD3E5', this.handle, toggle);
159
+ }
160
+
161
+ /**
162
+ * Activates the Surrender prompt for the specified player in the current frame.
163
+ *
164
+ * @param targetPed
165
+ * @param promptOrder
166
+ * @param p3
167
+ */
168
+ setCooperatePromptThisFrame(targetPed: Ped, promptOrder: number, p3: boolean): void {
169
+ inv<void>('0xCBB54CC7FFFFAB86', this.handle, targetPed.handle, promptOrder, p3);
170
+ }
171
+
172
+ /**
173
+ * https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePlayerResetFlags
174
+ * https://github.com/femga/rdr3_discoveries/tree/master/AI/PLAYER_RESET_FLAGS
175
+ *
176
+ * @param playerResetFlag
177
+ * @param p2
178
+ */
179
+ setResetFlag(playerResetFlag: number, p2: boolean): void {
180
+ inv<void>('0x9F9A829C6751F3C7', this.handle, playerResetFlag, p2);
181
+ }
182
+
183
+ /**
184
+ * @returns
185
+ */
186
+ getWantedLevel(): number {
187
+ return inv<number>('0xABC532F9098BFD9D', this.handle, rai());
188
+ }
189
+
190
+ /**
191
+ * @param closeRangeLowerBound
192
+ * @param closeRangeUpperBound
193
+ */
194
+ setDamageCloseDistanceBonus(closeRangeLowerBound: number, closeRangeUpperBound: number): void {
195
+ inv<void>('0x7761A30432C91297', this.handle, f(closeRangeLowerBound), f(closeRangeUpperBound));
196
+ }
197
+
198
+ /**
199
+ * @param multiplier
200
+ */
201
+ setSneakingNoiseMultiplier(multiplier: number): void {
202
+ inv<void>('0x4DE44FA389DCA565', this.handle, f(multiplier));
203
+ }
204
+
205
+ /**
206
+ * Sets the player's team.
207
+ *
208
+ * @param team
209
+ * @param bRestrictToThisScript
210
+ */
211
+ setTeam(team: number, bRestrictToThisScript: boolean): void {
212
+ inv<void>('0xE8DD8536F01DE600', this.handle, team, bRestrictToThisScript);
213
+ }
214
+
215
+ /**
216
+ * Checks if the player's Deadeye ability is enabled.
217
+ *
218
+ * @returns
219
+ */
220
+ isSpecialAbilityEnabled(): any {
221
+ return inv<number>('0xDE6C85975F9D4894', this.handle);
222
+ }
223
+
111
224
  /**
112
225
  * @param disabled
113
226
  */
@@ -1575,487 +1688,374 @@ export class Player implements IHandle {
1575
1688
  }
1576
1689
 
1577
1690
  /**
1578
- * Sets Player's Defense against AI modifier
1579
- *
1580
- * @param modifier
1691
+ * @param p2
1692
+ * @param p3
1693
+ * @returns outEntity
1581
1694
  */
1582
- setAiDefenseModifierAgainstAi(modifier: number): void {
1583
- inv<void>('0x914071FF93AF2692', this.handle, f(modifier));
1695
+ getInteractionTargetEntity(p2: boolean, p3: boolean): [any, Entity | null] {
1696
+ const result = inv<[number, number]>('0x3EE1F7A8C32F24E1', this.handle, pvi(), p2, p3);
1697
+ return [result[0], createFromHandle<Entity>('Entity', result[1])];
1584
1698
  }
1585
1699
 
1586
1700
  /**
1587
- * Gets the player's team.
1588
- * Returns -1 in singleplayer.
1589
- *
1590
- * @returns
1701
+ * @param toggle
1591
1702
  */
1592
- getTeam(): number {
1593
- return inv<number>('0xB464EB6A40C7975B', this.handle, rai());
1703
+ setDeadeyeTaggingEnabled(toggle: boolean): void {
1704
+ inv<void>('0x6B5DDFB967E5073D', this.handle, toggle);
1594
1705
  }
1595
1706
 
1596
1707
  /**
1597
1708
  * @returns
1598
1709
  */
1599
- getHealthRechargeMultiplier(): number {
1600
- return inv<number>('0x22CD23BB0C45E0CD', this.handle, raf());
1710
+ getStamina(): number {
1711
+ return inv<number>('0x0FF421E467373FCF', this.handle, raf());
1601
1712
  }
1602
1713
 
1603
1714
  /**
1604
- * Used in script function: NET_AUTO_FOLLOW_UPDATE_LEADER_VALUES
1605
- * followMode:
1606
- * HORSEFOLLOWMODE_AUTO = 0,
1607
- * HORSEFOLLOWMODE_SIDE_ONLY,
1608
- * HORSEFOLLOWMODE_BEHIND_ONLY,
1609
- * HORSEFOLLOWMODE_BEHIND_AND_SIDE,
1610
- * HORSEFOLLOWMODE_BEHIND_CLOSE
1611
- * followPriority:
1612
- * HORSEFOLLOWPRIORITY_STEER_ASSIST = 0,
1613
- * HORSEFOLLOWPRIORITY_AMBIENT,
1614
- * HORSEFOLLOWPRIORITY_NORMAL,
1615
- * HORSEFOLLOWPRIORITY_HIGH
1616
- *
1617
- * @param ped
1618
- * @param p2
1619
- * @param p3
1620
- * @param followMode
1621
- * @param followPriority
1622
- * @param p6
1715
+ * @param modifier
1623
1716
  */
1624
- addAsFollowTarget(ped: Ped, p2: number, p3: number, followMode: number, followPriority: number, p6: boolean): void {
1625
- inv<void>('0xAC22AA6DF4D1C1DE', this.handle, ped.handle, f(p2), f(p3), followMode, followPriority, p6);
1717
+ setMeleeWeaponDamageModifier(modifier: number): void {
1718
+ inv<void>('0xE4CB5A3F18170381', this.handle, f(modifier));
1626
1719
  }
1627
1720
 
1628
1721
  /**
1629
- * Sets the stand prompt for a specific player using a predefined text entry. use AddTextEntry for promptTextKey for custom names
1722
+ * @returns
1723
+ */
1724
+ hasBeenSpottedInStolenVehicle(): boolean {
1725
+ return inv<boolean>('0xC932F57F31EA9152', this.handle, rai());
1726
+ }
1727
+
1728
+ /**
1729
+ * 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.
1630
1730
  *
1631
- * @param promptTextKey
1731
+ * @param canPickup
1632
1732
  */
1633
- setPromptLeaveText(promptTextKey: string | null): void {
1634
- inv<void>('0x06C3DB00B69D5435', this.handle, promptTextKey);
1733
+ setCanPickupHat(canPickup: boolean): void {
1734
+ inv<void>('0xACA45DDCEF6071C4', this.handle, canPickup);
1635
1735
  }
1636
1736
 
1637
1737
  /**
1638
- * Retrieves the number of marks placed on a PED when Deadeye mode is active for the specified player.
1738
+ * 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
1739
+ * some colors
1740
+ * 0: Default aura
1741
+ * 1014693585
1742
+ * 1936842089
1743
+ * 1979474018
1639
1744
  *
1640
- * @param ped
1641
- * @returns
1745
+ * @param auraColorHash
1642
1746
  */
1643
- getNumDeadeyeMarksOnPed(ped: Ped): any {
1644
- return inv<number>('0x27AD7162D3FED01E', this.handle, ped.handle);
1747
+ setDeadEyeAuraByHash(auraColorHash: string | number): void {
1748
+ inv<void>('0x768E81AE285A4B67', this.handle, _h(auraColorHash));
1645
1749
  }
1646
1750
 
1647
1751
  /**
1752
+ * Returns true if PromptType is enabled for ped (mount)
1753
+ * Params: See 0x0751D461F06E41CE
1754
+ *
1755
+ * @param ped
1756
+ * @param promptType
1757
+ * @param promptMode
1648
1758
  * @returns
1649
1759
  */
1650
- getPed2(): Ped | null {
1651
- return createFromHandle<Ped>('Ped', inv<number>('0x5EBE38A20BC51C27', this.handle, rai()));
1760
+ getUiPromptForPedIsEnabled(ped: Ped, promptType: number, promptMode: number): any {
1761
+ return inv<number>('0xEA8F168A76A0B9BC', this.handle, ped.handle, promptType, promptMode);
1652
1762
  }
1653
1763
 
1654
1764
  /**
1655
- * @param p1
1656
- * @returns
1765
+ * 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).
1766
+ *
1767
+ * @param flag
1657
1768
  */
1658
- getIsUiPromptActive(p1: number): any {
1659
- return inv<number>('0x51BEA356B1C60225', this.handle, p1);
1769
+ setDeadeyeEntityAuraWithFlag(flag: number): void {
1770
+ inv<void>('0x2B12B6FC8B8772AB', this.handle, flag);
1660
1771
  }
1661
1772
 
1662
1773
  /**
1663
- * @param horse
1664
1774
  * @returns
1665
1775
  */
1666
- setPedAsTempHorse(horse: Ped): any {
1667
- return inv<number>('0x227B06324234FB09', this.handle, horse.handle);
1776
+ getMountOwnedByPlayer(): Ped | null {
1777
+ return createFromHandle<Ped>('Ped', inv<number>('0xF49F14462F0AE27C', this.handle, rai()));
1668
1778
  }
1669
1779
 
1670
1780
  /**
1671
- * Restores Deadeye by given amount.
1672
- * Params: p2, p3, p4 = 0, 0, 1 in R* Scripts
1673
- *
1674
- * @param amount
1675
- * @param p2
1676
- * @param p3
1677
- * @param p4
1781
+ * @param weaponHash Refer to [enum: eWeaponHash]
1782
+ * @param damageModifier
1678
1783
  */
1679
- specialAbilityRestoreByAmount(amount: number, p2: number, p3: number, p4: number): void {
1680
- inv<void>('0x51345AE20F22C261', this.handle, f(amount), p2, p3, p4);
1784
+ setWeaponTypeDamageModifier(weaponHash: eWeaponHash, damageModifier: number): void {
1785
+ inv<void>('0xD04AD186CE8BB129', this.handle, weaponHash, f(damageModifier));
1681
1786
  }
1682
1787
 
1683
1788
  /**
1684
- * Only used in R* SP Script short_update
1789
+ * Only used in script function PROCESS_PED_INTERRUPT_DIALOGUE
1790
+ * *GET_PLAYER**
1685
1791
  *
1686
- * @param delay
1792
+ * @returns ped
1687
1793
  */
1688
- setDeadeyeAbilityDepletionDelay(delay: number): void {
1689
- inv<void>('0x870634493CB4372C', this.handle, f(delay));
1794
+ N_0x7AE93C45EC14A166(): [boolean, Ped | null] {
1795
+ const result = inv<[boolean, number]>('0x7AE93C45EC14A166', this.handle, pvi(), rai());
1796
+ return [!!result[0], createFromHandle<Ped>('Ped', result[1])];
1690
1797
  }
1691
1798
 
1692
1799
  /**
1693
- * Swim speed multiplier.
1694
- * Multiplier goes up to 1.49f
1695
- *
1696
- * @param multiplier
1800
+ * @param speed
1801
+ * @param duration
1802
+ * @param heading
1803
+ * @param p4
1804
+ * @param p5
1697
1805
  */
1698
- setSwimMultiplierForPlayer(multiplier: number): void {
1699
- inv<void>('0xBFCEABDE34DA5085', this.handle, f(multiplier));
1806
+ simulateInputGait(speed: number, duration: number, heading: number, p4: boolean, p5: boolean): void {
1807
+ inv<void>('0xFA0C063C422C4355', this.handle, f(speed), duration, f(heading), p4, p5);
1700
1808
  }
1701
1809
 
1702
1810
  /**
1811
+ * @param p1
1703
1812
  * @returns
1704
1813
  */
1705
- isDead(): boolean {
1706
- return inv<boolean>('0x2E9C3FCB6798F397', this.handle, rai());
1814
+ getDeadEyeMeterLevel(p1: boolean): number {
1815
+ return inv<number>('0x3A6AE4EEE30370FE', this.handle, p1, raf());
1707
1816
  }
1708
1817
 
1709
1818
  /**
1710
- * @param ped
1711
- * @param p2
1712
- */
1713
- N_0x310CE349E0C0EC4B(ped: Ped, p2: number): void {
1714
- inv<void>('0x310CE349E0C0EC4B', this.handle, ped.handle, p2);
1715
- }
1716
-
1717
- /**
1718
- * Clears all Eagle Eye trails that were registered for entities associated with the specified player.
1719
- */
1720
- eagleEyeClearRegisteredTrails(): void {
1721
- inv<void>('0xE5D3EB37ABC1EB03', this.handle);
1722
- }
1723
-
1724
- /**
1725
- * @param enable
1819
+ * @param drawReductionTime
1726
1820
  */
1727
- enableCustomDeadeyeAbility(enable: boolean): void {
1728
- inv<void>('0x95EE1DEE1DCD9070', this.handle, enable);
1821
+ setBowDrawReductionTimeInDeadeye(drawReductionTime: number): void {
1822
+ inv<void>('0xBE0C524970892D41', this.handle, f(drawReductionTime));
1729
1823
  }
1730
1824
 
1731
1825
  /**
1732
- * Returns the player's invincibility status.
1826
+ * 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.
1733
1827
  *
1734
1828
  * @returns
1735
1829
  */
1736
- getInvincible(): boolean {
1737
- return inv<boolean>('0x0CBBCB2CCFA7DC4E', this.handle, rai());
1738
- }
1739
-
1740
- resetArrestState(): void {
1741
- inv<void>('0x12917931C31F1750', this.handle);
1830
+ eagleEyeCanFocusOnTrack(): any {
1831
+ return inv<number>('0x1DA5C5B0923E1B85', this.handle);
1742
1832
  }
1743
1833
 
1744
1834
  /**
1745
- * Toggle handles wether Deadeye and Eagleeye are infinite or not.
1746
- *
1747
- * @param toggle
1835
+ * @param range
1748
1836
  */
1749
- modifyInfiniteTrailVision(toggle: boolean): void {
1750
- inv<void>('0x28A13BF6B05C3D83', this.handle, toggle);
1837
+ eagleEyeSetRange(range: number): void {
1838
+ inv<void>('0x22C8B10802301381', this.handle, f(range));
1751
1839
  }
1752
1840
 
1753
1841
  /**
1754
- * Simply sets you as invincible (Health will not deplete).
1842
+ * *SET_SPECIAL_ABILITY**
1755
1843
  *
1756
- * @param toggle
1844
+ * @param p1
1757
1845
  */
1758
- setInvincible(toggle: boolean): void {
1759
- inv<void>('0xFEBEEBC9CBDF4B12', this.handle, toggle);
1846
+ N_0x4D1699543B1C023C(p1: number): void {
1847
+ inv<void>('0x4D1699543B1C023C', this.handle, f(p1));
1760
1848
  }
1761
1849
 
1762
1850
  /**
1763
- * Returns whether the player can control himself.
1851
+ * Drains Deadeye by given amount.
1764
1852
  *
1765
- * @returns
1766
- */
1767
- isControlOn(): boolean {
1768
- return inv<boolean>('0x7964097FCE4C244B', this.handle, rai());
1769
- }
1770
-
1771
- /**
1772
- * @param vehicle
1773
- */
1774
- setMayOnlyEnterThisVehicle(vehicle: Vehicle): void {
1775
- inv<void>('0xDA35A134038557EC', this.handle, vehicle.handle);
1776
- }
1777
-
1778
- /**
1853
+ * @param amount
1779
1854
  * @param p2
1780
- * @param p3
1781
- * @returns outEntity
1782
1855
  */
1783
- getInteractionTargetEntity(p2: boolean, p3: boolean): [any, Entity | null] {
1784
- const result = inv<[number, number]>('0x3EE1F7A8C32F24E1', this.handle, pvi(), p2, p3);
1785
- return [result[0], createFromHandle<Entity>('Entity', result[1])];
1856
+ specialAbilityDrainByAmount(amount: number, p2: any): void {
1857
+ inv<void>('0x200114E99552462B', this.handle, f(amount), p2);
1786
1858
  }
1787
1859
 
1788
1860
  /**
1789
- * @param toggle
1861
+ * Sets Player's Defense against AI modifier
1862
+ *
1863
+ * @param modifier
1790
1864
  */
1791
- setDeadeyeTaggingEnabled(toggle: boolean): void {
1792
- inv<void>('0x6B5DDFB967E5073D', this.handle, toggle);
1865
+ setAiDefenseModifierAgainstAi(modifier: number): void {
1866
+ inv<void>('0x914071FF93AF2692', this.handle, f(modifier));
1793
1867
  }
1794
1868
 
1795
1869
  /**
1870
+ * Gets the player's team.
1871
+ * Returns -1 in singleplayer.
1872
+ *
1796
1873
  * @returns
1797
1874
  */
1798
- getStamina(): number {
1799
- return inv<number>('0x0FF421E467373FCF', this.handle, raf());
1800
- }
1801
-
1802
- /**
1803
- * @param modifier
1804
- */
1805
- setMeleeWeaponDamageModifier(modifier: number): void {
1806
- inv<void>('0xE4CB5A3F18170381', this.handle, f(modifier));
1875
+ getTeam(): number {
1876
+ return inv<number>('0xB464EB6A40C7975B', this.handle, rai());
1807
1877
  }
1808
1878
 
1809
1879
  /**
1810
1880
  * @returns
1811
1881
  */
1812
- hasBeenSpottedInStolenVehicle(): boolean {
1813
- return inv<boolean>('0xC932F57F31EA9152', this.handle, rai());
1882
+ getHealthRechargeMultiplier(): number {
1883
+ return inv<number>('0x22CD23BB0C45E0CD', this.handle, raf());
1814
1884
  }
1815
1885
 
1816
1886
  /**
1817
- * 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.
1887
+ * Used in script function: NET_AUTO_FOLLOW_UPDATE_LEADER_VALUES
1888
+ * followMode:
1889
+ * HORSEFOLLOWMODE_AUTO = 0,
1890
+ * HORSEFOLLOWMODE_SIDE_ONLY,
1891
+ * HORSEFOLLOWMODE_BEHIND_ONLY,
1892
+ * HORSEFOLLOWMODE_BEHIND_AND_SIDE,
1893
+ * HORSEFOLLOWMODE_BEHIND_CLOSE
1894
+ * followPriority:
1895
+ * HORSEFOLLOWPRIORITY_STEER_ASSIST = 0,
1896
+ * HORSEFOLLOWPRIORITY_AMBIENT,
1897
+ * HORSEFOLLOWPRIORITY_NORMAL,
1898
+ * HORSEFOLLOWPRIORITY_HIGH
1818
1899
  *
1819
- * @param canPickup
1900
+ * @param ped
1901
+ * @param p2
1902
+ * @param p3
1903
+ * @param followMode
1904
+ * @param followPriority
1905
+ * @param p6
1820
1906
  */
1821
- setCanPickupHat(canPickup: boolean): void {
1822
- inv<void>('0xACA45DDCEF6071C4', this.handle, canPickup);
1907
+ addAsFollowTarget(ped: Ped, p2: number, p3: number, followMode: number, followPriority: number, p6: boolean): void {
1908
+ inv<void>('0xAC22AA6DF4D1C1DE', this.handle, ped.handle, f(p2), f(p3), followMode, followPriority, p6);
1823
1909
  }
1824
1910
 
1825
1911
  /**
1826
- * 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
1827
- * some colors
1828
- * 0: Default aura
1829
- * 1014693585
1830
- * 1936842089
1831
- * 1979474018
1912
+ * Sets the stand prompt for a specific player using a predefined text entry. use AddTextEntry for promptTextKey for custom names
1832
1913
  *
1833
- * @param auraColorHash
1834
- */
1835
- setDeadEyeAuraByHash(auraColorHash: string | number): void {
1836
- inv<void>('0x768E81AE285A4B67', this.handle, _h(auraColorHash));
1837
- }
1838
-
1839
- /**
1840
- * @param target
1914
+ * @param promptTextKey
1841
1915
  */
1842
- setBountyTarget(target: Player): void {
1843
- inv<void>('0x6ADF821FBF21920E', this.handle, target.handle);
1916
+ setPromptLeaveText(promptTextKey: string | null): void {
1917
+ inv<void>('0x06C3DB00B69D5435', this.handle, promptTextKey);
1844
1918
  }
1845
1919
 
1846
1920
  /**
1847
- * Retrieves whether all trails are currently hidden during Eagle Eye mode for the specified player.
1921
+ * Retrieves the number of marks placed on a PED when Deadeye mode is active for the specified player.
1848
1922
  *
1923
+ * @param ped
1849
1924
  * @returns
1850
1925
  */
1851
- eagleEyeAreAllTrailsHidden(): any {
1852
- return inv<number>('0xA62BBAAE67A05BB0', this.handle);
1926
+ getNumDeadeyeMarksOnPed(ped: Ped): any {
1927
+ return inv<number>('0x27AD7162D3FED01E', this.handle, ped.handle);
1853
1928
  }
1854
1929
 
1855
1930
  /**
1856
1931
  * @returns
1857
1932
  */
1858
- getIsDeadeyeTaggingEnabled(): any {
1859
- return inv<number>('0x32348719DCED2969', this.handle);
1860
- }
1861
-
1862
- /**
1863
- * @param weaponGroup
1864
- * @param toggle
1865
- */
1866
- setWeaponGroupAsInstantKill(weaponGroup: string | number, toggle: boolean): void {
1867
- inv<void>('0x59F0AFF3E0A1B019', this.handle, _h(weaponGroup), toggle);
1933
+ getPed2(): Ped | null {
1934
+ return createFromHandle<Ped>('Ped', inv<number>('0x5EBE38A20BC51C27', this.handle, rai()));
1868
1935
  }
1869
1936
 
1870
1937
  /**
1871
- * Returns false if PromptType is enabled
1872
- * Params: See 0x0751D461F06E41CE
1873
- *
1874
- * @param promptType
1875
- * @param promptMode
1938
+ * @param p1
1876
1939
  * @returns
1877
1940
  */
1878
- getUiPromptIsDisabled(promptType: number, promptMode: number): any {
1879
- return inv<number>('0x6614F9039BD31931', this.handle, promptType, promptMode);
1941
+ getIsUiPromptActive(p1: number): any {
1942
+ return inv<number>('0x51BEA356B1C60225', this.handle, p1);
1880
1943
  }
1881
1944
 
1882
1945
  /**
1883
- * @param toggle
1946
+ * @param horse
1947
+ * @returns
1884
1948
  */
1885
- setLockonToFriendlyPlayers(toggle: boolean): void {
1886
- inv<void>('0x4A056257802DD3E5', this.handle, toggle);
1949
+ setPedAsTempHorse(horse: Ped): any {
1950
+ return inv<number>('0x227B06324234FB09', this.handle, horse.handle);
1887
1951
  }
1888
1952
 
1889
1953
  /**
1890
- * Activates the Surrender prompt for the specified player in the current frame.
1954
+ * Restores Deadeye by given amount.
1955
+ * Params: p2, p3, p4 = 0, 0, 1 in R* Scripts
1891
1956
  *
1892
- * @param targetPed
1893
- * @param promptOrder
1957
+ * @param amount
1958
+ * @param p2
1894
1959
  * @param p3
1960
+ * @param p4
1895
1961
  */
1896
- setCooperatePromptThisFrame(targetPed: Ped, promptOrder: number, p3: boolean): void {
1897
- inv<void>('0xCBB54CC7FFFFAB86', this.handle, targetPed.handle, promptOrder, p3);
1962
+ specialAbilityRestoreByAmount(amount: number, p2: number, p3: number, p4: number): void {
1963
+ inv<void>('0x51345AE20F22C261', this.handle, f(amount), p2, p3, p4);
1898
1964
  }
1899
1965
 
1900
1966
  /**
1901
- * https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePlayerResetFlags
1902
- * https://github.com/femga/rdr3_discoveries/tree/master/AI/PLAYER_RESET_FLAGS
1967
+ * Only used in R* SP Script short_update
1903
1968
  *
1904
- * @param playerResetFlag
1905
- * @param p2
1906
- */
1907
- setResetFlag(playerResetFlag: number, p2: boolean): void {
1908
- inv<void>('0x9F9A829C6751F3C7', this.handle, playerResetFlag, p2);
1909
- }
1910
-
1911
- /**
1912
- * @returns
1913
- */
1914
- getWantedLevel(): number {
1915
- return inv<number>('0xABC532F9098BFD9D', this.handle, rai());
1916
- }
1917
-
1918
- /**
1919
- * @param closeRangeLowerBound
1920
- * @param closeRangeUpperBound
1921
- */
1922
- setDamageCloseDistanceBonus(closeRangeLowerBound: number, closeRangeUpperBound: number): void {
1923
- inv<void>('0x7761A30432C91297', this.handle, f(closeRangeLowerBound), f(closeRangeUpperBound));
1924
- }
1925
-
1926
- /**
1927
- * @param multiplier
1969
+ * @param delay
1928
1970
  */
1929
- setSneakingNoiseMultiplier(multiplier: number): void {
1930
- inv<void>('0x4DE44FA389DCA565', this.handle, f(multiplier));
1971
+ setDeadeyeAbilityDepletionDelay(delay: number): void {
1972
+ inv<void>('0x870634493CB4372C', this.handle, f(delay));
1931
1973
  }
1932
1974
 
1933
1975
  /**
1934
- * Sets the player's team.
1976
+ * Swim speed multiplier.
1977
+ * Multiplier goes up to 1.49f
1935
1978
  *
1936
- * @param team
1937
- * @param bRestrictToThisScript
1979
+ * @param multiplier
1938
1980
  */
1939
- setTeam(team: number, bRestrictToThisScript: boolean): void {
1940
- inv<void>('0xE8DD8536F01DE600', this.handle, team, bRestrictToThisScript);
1981
+ setSwimMultiplierForPlayer(multiplier: number): void {
1982
+ inv<void>('0xBFCEABDE34DA5085', this.handle, f(multiplier));
1941
1983
  }
1942
1984
 
1943
1985
  /**
1944
- * Checks if the player's Deadeye ability is enabled.
1945
- *
1946
1986
  * @returns
1947
1987
  */
1948
- isSpecialAbilityEnabled(): any {
1949
- return inv<number>('0xDE6C85975F9D4894', this.handle);
1988
+ isDead(): boolean {
1989
+ return inv<boolean>('0x2E9C3FCB6798F397', this.handle, rai());
1950
1990
  }
1951
1991
 
1952
1992
  /**
1953
- * Returns true if PromptType is enabled for ped (mount)
1954
- * Params: See 0x0751D461F06E41CE
1955
- *
1956
1993
  * @param ped
1957
- * @param promptType
1958
- * @param promptMode
1959
- * @returns
1960
- */
1961
- getUiPromptForPedIsEnabled(ped: Ped, promptType: number, promptMode: number): any {
1962
- return inv<number>('0xEA8F168A76A0B9BC', this.handle, ped.handle, promptType, promptMode);
1963
- }
1964
-
1965
- /**
1966
- * 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).
1967
- *
1968
- * @param flag
1994
+ * @param p2
1969
1995
  */
1970
- setDeadeyeEntityAuraWithFlag(flag: number): void {
1971
- inv<void>('0x2B12B6FC8B8772AB', this.handle, flag);
1996
+ N_0x310CE349E0C0EC4B(ped: Ped, p2: number): void {
1997
+ inv<void>('0x310CE349E0C0EC4B', this.handle, ped.handle, p2);
1972
1998
  }
1973
1999
 
1974
2000
  /**
1975
- * @returns
2001
+ * Clears all Eagle Eye trails that were registered for entities associated with the specified player.
1976
2002
  */
1977
- getMountOwnedByPlayer(): Ped | null {
1978
- return createFromHandle<Ped>('Ped', inv<number>('0xF49F14462F0AE27C', this.handle, rai()));
2003
+ eagleEyeClearRegisteredTrails(): void {
2004
+ inv<void>('0xE5D3EB37ABC1EB03', this.handle);
1979
2005
  }
1980
2006
 
1981
2007
  /**
1982
- * @param weaponHash Refer to [enum: eWeaponHash]
1983
- * @param damageModifier
2008
+ * @param enable
1984
2009
  */
1985
- setWeaponTypeDamageModifier(weaponHash: eWeaponHash, damageModifier: number): void {
1986
- inv<void>('0xD04AD186CE8BB129', this.handle, weaponHash, f(damageModifier));
2010
+ enableCustomDeadeyeAbility(enable: boolean): void {
2011
+ inv<void>('0x95EE1DEE1DCD9070', this.handle, enable);
1987
2012
  }
1988
2013
 
1989
2014
  /**
1990
- * Only used in script function PROCESS_PED_INTERRUPT_DIALOGUE
1991
- * *GET_PLAYER**
2015
+ * Returns the player's invincibility status.
1992
2016
  *
1993
- * @returns ped
1994
- */
1995
- N_0x7AE93C45EC14A166(): [boolean, Ped | null] {
1996
- const result = inv<[boolean, number]>('0x7AE93C45EC14A166', this.handle, pvi(), rai());
1997
- return [!!result[0], createFromHandle<Ped>('Ped', result[1])];
1998
- }
1999
-
2000
- /**
2001
- * @param speed
2002
- * @param duration
2003
- * @param heading
2004
- * @param p4
2005
- * @param p5
2006
- */
2007
- simulateInputGait(speed: number, duration: number, heading: number, p4: boolean, p5: boolean): void {
2008
- inv<void>('0xFA0C063C422C4355', this.handle, f(speed), duration, f(heading), p4, p5);
2009
- }
2010
-
2011
- /**
2012
- * @param p1
2013
2017
  * @returns
2014
2018
  */
2015
- getDeadEyeMeterLevel(p1: boolean): number {
2016
- return inv<number>('0x3A6AE4EEE30370FE', this.handle, p1, raf());
2019
+ getInvincible(): boolean {
2020
+ return inv<boolean>('0x0CBBCB2CCFA7DC4E', this.handle, rai());
2017
2021
  }
2018
2022
 
2019
- /**
2020
- * @param drawReductionTime
2021
- */
2022
- setBowDrawReductionTimeInDeadeye(drawReductionTime: number): void {
2023
- inv<void>('0xBE0C524970892D41', this.handle, f(drawReductionTime));
2023
+ resetArrestState(): void {
2024
+ inv<void>('0x12917931C31F1750', this.handle);
2024
2025
  }
2025
2026
 
2026
2027
  /**
2027
- * 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.
2028
+ * Toggle handles wether Deadeye and Eagleeye are infinite or not.
2028
2029
  *
2029
- * @returns
2030
+ * @param toggle
2030
2031
  */
2031
- eagleEyeCanFocusOnTrack(): any {
2032
- return inv<number>('0x1DA5C5B0923E1B85', this.handle);
2032
+ modifyInfiniteTrailVision(toggle: boolean): void {
2033
+ inv<void>('0x28A13BF6B05C3D83', this.handle, toggle);
2033
2034
  }
2034
2035
 
2035
2036
  /**
2036
- * @param range
2037
+ * Simply sets you as invincible (Health will not deplete).
2038
+ *
2039
+ * @param toggle
2037
2040
  */
2038
- eagleEyeSetRange(range: number): void {
2039
- inv<void>('0x22C8B10802301381', this.handle, f(range));
2041
+ setInvincible(toggle: boolean): void {
2042
+ inv<void>('0xFEBEEBC9CBDF4B12', this.handle, toggle);
2040
2043
  }
2041
2044
 
2042
2045
  /**
2043
- * *SET_SPECIAL_ABILITY**
2046
+ * Returns whether the player can control himself.
2044
2047
  *
2045
- * @param p1
2048
+ * @returns
2046
2049
  */
2047
- N_0x4D1699543B1C023C(p1: number): void {
2048
- inv<void>('0x4D1699543B1C023C', this.handle, f(p1));
2050
+ isControlOn(): boolean {
2051
+ return inv<boolean>('0x7964097FCE4C244B', this.handle, rai());
2049
2052
  }
2050
2053
 
2051
2054
  /**
2052
- * Drains Deadeye by given amount.
2053
- *
2054
- * @param amount
2055
- * @param p2
2055
+ * @param vehicle
2056
2056
  */
2057
- specialAbilityDrainByAmount(amount: number, p2: any): void {
2058
- inv<void>('0x200114E99552462B', this.handle, f(amount), p2);
2057
+ setMayOnlyEnterThisVehicle(vehicle: Vehicle): void {
2058
+ inv<void>('0xDA35A134038557EC', this.handle, vehicle.handle);
2059
2059
  }
2060
2060
 
2061
2061
  }