@nativewrappers/redm-codegen 0.0.2 → 0.0.3

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 (254) hide show
  1. package/dist/classes/AnimScene.d.ts +142 -142
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +203 -203
  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 +34 -34
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +42 -42
  10. package/dist/classes/Cam.d.ts +71 -71
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +102 -102
  13. package/dist/classes/Entity.d.ts +387 -386
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +509 -504
  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 +67 -66
  20. package/dist/classes/Ped.d.ts.map +1 -1
  21. package/dist/classes/Ped.js +80 -75
  22. package/dist/classes/PedTask.d.ts +1518 -1518
  23. package/dist/classes/PedTask.d.ts.map +1 -1
  24. package/dist/classes/PedTask.js +1930 -1930
  25. package/dist/classes/PersChar.d.ts +11 -11
  26. package/dist/classes/PersChar.d.ts.map +1 -1
  27. package/dist/classes/PersChar.js +23 -23
  28. package/dist/classes/Pickup.d.ts +7 -7
  29. package/dist/classes/Pickup.d.ts.map +1 -1
  30. package/dist/classes/Pickup.js +13 -13
  31. package/dist/classes/Player.d.ts +237 -237
  32. package/dist/classes/Player.d.ts.map +1 -1
  33. package/dist/classes/Player.js +319 -319
  34. package/dist/classes/Prop.d.ts +105 -104
  35. package/dist/classes/Prop.d.ts.map +1 -1
  36. package/dist/classes/Prop.js +155 -150
  37. package/dist/classes/PropSet.d.ts +1 -1
  38. package/dist/classes/PropSet.d.ts.map +1 -1
  39. package/dist/classes/Vehicle.d.ts +1 -0
  40. package/dist/classes/Vehicle.d.ts.map +1 -1
  41. package/dist/classes/Vehicle.js +5 -0
  42. package/dist/classes/VehicleTask.d.ts +21 -21
  43. package/dist/classes/VehicleTask.d.ts.map +1 -1
  44. package/dist/classes/VehicleTask.js +27 -27
  45. package/dist/classes/Volume.d.ts +40 -40
  46. package/dist/classes/Volume.d.ts.map +1 -1
  47. package/dist/classes/Volume.js +54 -54
  48. package/dist/classes/Weapon.d.ts +364 -364
  49. package/dist/classes/Weapon.d.ts.map +1 -1
  50. package/dist/classes/Weapon.js +515 -515
  51. package/dist/namespaces/Aitransport.d.ts +77 -77
  52. package/dist/namespaces/Aitransport.d.ts.map +1 -1
  53. package/dist/namespaces/Aitransport.js +94 -94
  54. package/dist/namespaces/Animscene.d.ts +65 -65
  55. package/dist/namespaces/Animscene.d.ts.map +1 -1
  56. package/dist/namespaces/Animscene.js +83 -83
  57. package/dist/namespaces/Audio.d.ts +464 -464
  58. package/dist/namespaces/Audio.d.ts.map +1 -1
  59. package/dist/namespaces/Audio.js +651 -651
  60. package/dist/namespaces/Bounty.d.ts +23 -23
  61. package/dist/namespaces/Bounty.d.ts.map +1 -1
  62. package/dist/namespaces/Bounty.js +40 -40
  63. package/dist/namespaces/Brain.d.ts +15 -15
  64. package/dist/namespaces/Brain.d.ts.map +1 -1
  65. package/dist/namespaces/Brain.js +20 -20
  66. package/dist/namespaces/CamStatics.d.ts +459 -459
  67. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  68. package/dist/namespaces/CamStatics.js +719 -719
  69. package/dist/namespaces/Collection.d.ts +78 -78
  70. package/dist/namespaces/Collection.d.ts.map +1 -1
  71. package/dist/namespaces/Collection.js +109 -109
  72. package/dist/namespaces/Companion.d.ts +22 -22
  73. package/dist/namespaces/Companion.d.ts.map +1 -1
  74. package/dist/namespaces/Companion.js +30 -30
  75. package/dist/namespaces/Compendium.d.ts +94 -94
  76. package/dist/namespaces/Compendium.d.ts.map +1 -1
  77. package/dist/namespaces/Compendium.js +126 -126
  78. package/dist/namespaces/Databinding.d.ts +113 -113
  79. package/dist/namespaces/Databinding.d.ts.map +1 -1
  80. package/dist/namespaces/Databinding.js +167 -167
  81. package/dist/namespaces/Dlc.d.ts +5 -5
  82. package/dist/namespaces/Dlc.d.ts.map +1 -1
  83. package/dist/namespaces/Dlc.js +9 -9
  84. package/dist/namespaces/EntityStatics.d.ts +164 -164
  85. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  86. package/dist/namespaces/EntityStatics.js +225 -225
  87. package/dist/namespaces/Event.d.ts +62 -62
  88. package/dist/namespaces/Event.d.ts.map +1 -1
  89. package/dist/namespaces/Event.js +82 -82
  90. package/dist/namespaces/Fire.d.ts +7 -7
  91. package/dist/namespaces/Fire.d.ts.map +1 -1
  92. package/dist/namespaces/Fire.js +9 -9
  93. package/dist/namespaces/Graphics.d.ts +688 -688
  94. package/dist/namespaces/Graphics.d.ts.map +1 -1
  95. package/dist/namespaces/Graphics.js +876 -876
  96. package/dist/namespaces/Hud.d.ts +456 -456
  97. package/dist/namespaces/Hud.d.ts.map +1 -1
  98. package/dist/namespaces/Hud.js +598 -598
  99. package/dist/namespaces/InteriorStatics.d.ts +42 -42
  100. package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
  101. package/dist/namespaces/InteriorStatics.js +56 -56
  102. package/dist/namespaces/Inventory.d.ts +156 -156
  103. package/dist/namespaces/Inventory.d.ts.map +1 -1
  104. package/dist/namespaces/Inventory.js +210 -210
  105. package/dist/namespaces/Itemdatabase.d.ts +3 -3
  106. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  107. package/dist/namespaces/Law.d.ts +2 -2
  108. package/dist/namespaces/Law.d.ts.map +1 -1
  109. package/dist/namespaces/Map.d.ts +128 -128
  110. package/dist/namespaces/Map.d.ts.map +1 -1
  111. package/dist/namespaces/Map.js +180 -180
  112. package/dist/namespaces/Minigame.d.ts +60 -60
  113. package/dist/namespaces/Minigame.d.ts.map +1 -1
  114. package/dist/namespaces/Minigame.js +88 -88
  115. package/dist/namespaces/Misc.d.ts +5 -5
  116. package/dist/namespaces/Misc.d.ts.map +1 -1
  117. package/dist/namespaces/Missiondata.d.ts +3 -3
  118. package/dist/namespaces/Missiondata.d.ts.map +1 -1
  119. package/dist/namespaces/Netshopping.d.ts +1 -1
  120. package/dist/namespaces/Netshopping.d.ts.map +1 -1
  121. package/dist/namespaces/Network.d.ts +1528 -1536
  122. package/dist/namespaces/Network.d.ts.map +1 -1
  123. package/dist/namespaces/Network.js +2196 -2204
  124. package/dist/namespaces/Object.d.ts +244 -244
  125. package/dist/namespaces/Object.d.ts.map +1 -1
  126. package/dist/namespaces/Object.js +355 -355
  127. package/dist/namespaces/Pad.d.ts +43 -43
  128. package/dist/namespaces/Pad.d.ts.map +1 -1
  129. package/dist/namespaces/Pad.js +58 -58
  130. package/dist/namespaces/PedStatics.d.ts +21 -21
  131. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  132. package/dist/namespaces/PedStatics.js +26 -26
  133. package/dist/namespaces/Perschar.d.ts +62 -62
  134. package/dist/namespaces/Perschar.d.ts.map +1 -1
  135. package/dist/namespaces/Perschar.js +91 -91
  136. package/dist/namespaces/Persistence.d.ts +30 -30
  137. package/dist/namespaces/Persistence.d.ts.map +1 -1
  138. package/dist/namespaces/Persistence.js +42 -42
  139. package/dist/namespaces/Physics.d.ts +207 -207
  140. package/dist/namespaces/Physics.d.ts.map +1 -1
  141. package/dist/namespaces/Physics.js +310 -310
  142. package/dist/namespaces/PlayerStatics.d.ts +72 -72
  143. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  144. package/dist/namespaces/PlayerStatics.js +103 -103
  145. package/dist/namespaces/Population.d.ts +88 -88
  146. package/dist/namespaces/Population.d.ts.map +1 -1
  147. package/dist/namespaces/Population.js +116 -116
  148. package/dist/namespaces/Posse.d.ts +49 -49
  149. package/dist/namespaces/Posse.d.ts.map +1 -1
  150. package/dist/namespaces/Posse.js +79 -79
  151. package/dist/namespaces/Propset.d.ts +1 -1
  152. package/dist/namespaces/Propset.d.ts.map +1 -1
  153. package/dist/namespaces/Scripts.d.ts +3 -3
  154. package/dist/namespaces/Scripts.d.ts.map +1 -1
  155. package/dist/namespaces/Shapetest.d.ts +11 -11
  156. package/dist/namespaces/Shapetest.d.ts.map +1 -1
  157. package/dist/namespaces/Shapetest.js +13 -13
  158. package/dist/namespaces/Socialclub.d.ts +1 -1
  159. package/dist/namespaces/Socialclub.d.ts.map +1 -1
  160. package/dist/namespaces/Stats.d.ts +174 -174
  161. package/dist/namespaces/Stats.d.ts.map +1 -1
  162. package/dist/namespaces/Stats.js +240 -240
  163. package/dist/namespaces/Streaming.d.ts +127 -127
  164. package/dist/namespaces/Streaming.d.ts.map +1 -1
  165. package/dist/namespaces/Streaming.js +193 -193
  166. package/dist/namespaces/Task.d.ts +220 -220
  167. package/dist/namespaces/Task.d.ts.map +1 -1
  168. package/dist/namespaces/Task.js +299 -299
  169. package/dist/namespaces/Telemetry.d.ts +188 -188
  170. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  171. package/dist/namespaces/Telemetry.js +249 -249
  172. package/dist/namespaces/Uiapps.d.ts +24 -24
  173. package/dist/namespaces/Uiapps.d.ts.map +1 -1
  174. package/dist/namespaces/Uiapps.js +33 -33
  175. package/dist/namespaces/Uistickyfeed.d.ts +16 -16
  176. package/dist/namespaces/Uistickyfeed.d.ts.map +1 -1
  177. package/dist/namespaces/Uistickyfeed.js +21 -21
  178. package/dist/namespaces/VehicleStatics.d.ts +2 -2
  179. package/dist/namespaces/VehicleStatics.d.ts.map +1 -1
  180. package/dist/namespaces/VolumeStatics.d.ts +64 -64
  181. package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
  182. package/dist/namespaces/VolumeStatics.js +85 -85
  183. package/dist/namespaces/WeaponStatics.d.ts +262 -262
  184. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  185. package/dist/namespaces/WeaponStatics.js +361 -361
  186. package/dist/namespaces/Zone.d.ts +2 -2
  187. package/dist/namespaces/Zone.d.ts.map +1 -1
  188. package/package.json +1 -1
  189. package/src/classes/AnimScene.ts +230 -230
  190. package/src/classes/BaseModel.ts +50 -50
  191. package/src/classes/BaseTask.ts +46 -46
  192. package/src/classes/Cam.ts +113 -113
  193. package/src/classes/Entity.ts +537 -532
  194. package/src/classes/Interior.ts +43 -43
  195. package/src/classes/Ped.ts +100 -95
  196. package/src/classes/PedTask.ts +1969 -1969
  197. package/src/classes/PersChar.ts +28 -28
  198. package/src/classes/Pickup.ts +13 -13
  199. package/src/classes/Player.ts +364 -364
  200. package/src/classes/Prop.ts +167 -162
  201. package/src/classes/PropSet.ts +1 -1
  202. package/src/classes/Vehicle.ts +5 -0
  203. package/src/classes/VehicleTask.ts +30 -30
  204. package/src/classes/Volume.ts +62 -62
  205. package/src/classes/Weapon.ts +517 -517
  206. package/src/namespaces/Aitransport.ts +102 -102
  207. package/src/namespaces/Animscene.ts +92 -92
  208. package/src/namespaces/Audio.ts +765 -765
  209. package/src/namespaces/Bounty.ts +46 -46
  210. package/src/namespaces/Brain.ts +22 -22
  211. package/src/namespaces/CamStatics.ts +747 -747
  212. package/src/namespaces/Collection.ts +112 -112
  213. package/src/namespaces/Companion.ts +34 -34
  214. package/src/namespaces/Compendium.ts +131 -131
  215. package/src/namespaces/Databinding.ts +170 -170
  216. package/src/namespaces/Dlc.ts +9 -9
  217. package/src/namespaces/EntityStatics.ts +237 -237
  218. package/src/namespaces/Event.ts +92 -92
  219. package/src/namespaces/Fire.ts +10 -10
  220. package/src/namespaces/Graphics.ts +1206 -1206
  221. package/src/namespaces/Hud.ts +647 -647
  222. package/src/namespaces/InteriorStatics.ts +66 -66
  223. package/src/namespaces/Inventory.ts +237 -237
  224. package/src/namespaces/Itemdatabase.ts +3 -3
  225. package/src/namespaces/Law.ts +2 -2
  226. package/src/namespaces/Map.ts +204 -204
  227. package/src/namespaces/Minigame.ts +100 -100
  228. package/src/namespaces/Misc.ts +5 -5
  229. package/src/namespaces/Missiondata.ts +3 -3
  230. package/src/namespaces/Netshopping.ts +1 -1
  231. package/src/namespaces/Network.ts +2217 -2225
  232. package/src/namespaces/Object.ts +381 -381
  233. package/src/namespaces/Pad.ts +67 -67
  234. package/src/namespaces/PedStatics.ts +33 -33
  235. package/src/namespaces/Perschar.ts +105 -105
  236. package/src/namespaces/Persistence.ts +48 -48
  237. package/src/namespaces/Physics.ts +326 -326
  238. package/src/namespaces/PlayerStatics.ts +113 -113
  239. package/src/namespaces/Population.ts +133 -133
  240. package/src/namespaces/Posse.ts +80 -80
  241. package/src/namespaces/Propset.ts +1 -1
  242. package/src/namespaces/Scripts.ts +3 -3
  243. package/src/namespaces/Shapetest.ts +14 -14
  244. package/src/namespaces/Socialclub.ts +1 -1
  245. package/src/namespaces/Stats.ts +266 -266
  246. package/src/namespaces/Streaming.ts +226 -226
  247. package/src/namespaces/Task.ts +527 -527
  248. package/src/namespaces/Telemetry.ts +300 -300
  249. package/src/namespaces/Uiapps.ts +39 -39
  250. package/src/namespaces/Uistickyfeed.ts +23 -23
  251. package/src/namespaces/VehicleStatics.ts +2 -2
  252. package/src/namespaces/VolumeStatics.ts +87 -87
  253. package/src/namespaces/WeaponStatics.ts +365 -365
  254. package/src/namespaces/Zone.ts +2 -2
@@ -10,391 +10,512 @@ export declare class Weapon {
10
10
  protected ped: Ped;
11
11
  constructor(ped: Ped);
12
12
  /**
13
- * @param toggle
13
+ * @param weaponHash Refer to [enum: eWeaponHash]
14
+ * @param ammoHash Refer to [enum: eAmmoType]
14
15
  */
15
- setAllowAnyWeaponDrop(toggle: boolean): void;
16
+ enableAmmoTypeForPedWeapon(weaponHash: eWeaponHash, ammoHash: eAmmoType): void;
16
17
  /**
17
- * @returns
18
+ * @param toggle
18
19
  */
19
- makePedReload(): any;
20
+ N_0x431240A58484D5D0(toggle: boolean): void;
20
21
  /**
21
- * @param weaponHash Refer to [enum: eWeaponHash]
22
- * @param ammoCount
22
+ * @param p2
23
23
  * @param p3
24
- * @param addReason Refer to [enum: eAddItemReason]
24
+ * @returns outGUID
25
25
  */
26
- giveDelayedWeaponToPed(weaponHash: eWeaponHash, ammoCount: number, p3: boolean, addReason: eAddItemReason): void;
26
+ getBestPedShortarmGuid(p2: boolean, p3: boolean): number;
27
27
  /**
28
- * @param toggle
28
+ * @returns coords
29
29
  */
30
- N_0x45E57FDD531C9477(toggle: boolean): void;
30
+ getPedLastWeaponImpactCoord(): [boolean, Vector3];
31
31
  /**
32
- * @param ammoHash Refer to [enum: eAmmoType]
33
- * @returns weaponInventoryUid
32
+ * Returns WeaponAttachPoint
33
+ *
34
+ * @param attachPoint Refer to [enum: eWeaponAttachPoint]
35
+ * @returns
34
36
  */
35
- setAmmoTypeForPedWeaponInventory(ammoHash: eAmmoType): number;
37
+ getWeaponAttachPoint(attachPoint: number): number;
36
38
  /**
37
- * @param weaponHash Refer to [enum: eWeaponHash]
38
39
  * @param p2
39
- * @param removeReason Refer to [enum: eRemoveItemReason]
40
+ * @param attachPoint Refer to [enum: eWeaponAttachPoint]
41
+ * @param p4
42
+ * @returns weaponHash: Refer to [enum: eWeaponHash]
40
43
  */
41
- removeWeaponFromPed(weaponHash: eWeaponHash, p2: boolean, removeReason: eRemoveItemReason): void;
44
+ getCurrentPedWeapon(p2: boolean, attachPoint: number, p4: boolean): [boolean, number];
42
45
  /**
43
- * Detaches the weapon from the ped and actually removes the ped's weapon
46
+ * Returns whether the ped has a revolver p1: 0 or 1
44
47
  *
45
48
  * @param p1
46
49
  * @returns
47
50
  */
48
- getWeaponObjectFromPed(p1: boolean): Prop | null;
51
+ doesPedHaveRevolver(p1: number): any;
49
52
  /**
53
+ * Returns emote Hash
54
+ *
50
55
  * @returns
51
56
  */
52
- isPedCurrentWeaponHolstered(): any;
57
+ getPedGunSpinningEquippedKitEmoteTwirl(): number;
53
58
  /**
54
- * @param toggle
59
+ * @param weaponHash Refer to [enum: eWeaponHash]
60
+ * @returns ammo
55
61
  */
56
- setInstantlyEquipWeaponPickups(toggle: boolean): void;
62
+ getAmmoInClip(weaponHash: eWeaponHash): [boolean, number];
57
63
  /**
58
- * Hides the ped's weapon during a cutscene.
59
- *
60
64
  * @param toggle
61
65
  */
62
- hidePedWeaponForScriptedCutscene(toggle: boolean): void;
66
+ N_0x16D9841A85FA627E(toggle: boolean): void;
63
67
  /**
64
- * @returns guidPrimary; guidSecondary
68
+ * @param weaponHash Refer to [enum: eWeaponHash]
69
+ * @param offset
70
+ * @param ammoCount
65
71
  */
66
- setPlayerPedQuickSwapWeaponByGuid(): [number, number];
72
+ setPedDropsInventoryWeapon(weaponHash: eWeaponHash, offset: Vector3, ammoCount: number): void;
67
73
  /**
68
- * @returns Returns the total ammo in the ped weapon from it's guid, or `0`.; guid
74
+ * spinHash can be -1, 0 to disable
75
+ *
76
+ * @param weaponEmoteTrickType
77
+ * @param spin
69
78
  */
70
- getAmmoInPedWeaponFromGuid(): [number, number];
79
+ setActiveGunSpinningKitEmoteTwirl(weaponEmoteTrickType: number, spin: string | number): void;
71
80
  /**
72
- * @param p1
73
- * @param p2
81
+ * Appears to just send specified weapon to your horse holster without having to be close
82
+ * However, the weapon is not visible on the horse holster, but you can reach the weapon on the weapon wheel
83
+ *
84
+ * @param weaponHash Refer to [enum: eWeaponHash]
74
85
  */
75
- removeAllPedWeapons(p1: boolean, p2: boolean): void;
86
+ sendWeaponToInventory(weaponHash: eWeaponHash): void;
76
87
  /**
77
- * Returns eCurrentHeldWeapon
78
- * _GET_R* - _GET_T*
88
+ * If near your horse when called, weapons stored on your horse will be considered
89
+ * Returns weaponHash
79
90
  *
91
+ * @param weaponGroup
92
+ * @param p2
93
+ * @param p3
80
94
  * @returns
81
95
  */
82
- getPedCurrentHeldWeapon(): string | number;
96
+ getBestPedWeaponInGroup(weaponGroup: string | number, p2: boolean, p3: boolean): number;
83
97
  /**
84
- * @param toggle
98
+ * Only used in R* SP Scripts native_son2, native_son3 and smuggler2
99
+ * Params: p2 = -1
100
+ *
101
+ * @param p1
102
+ * @param p2
85
103
  */
86
- setForceAutoEquip(toggle: boolean): void;
104
+ N_0x8A779706DA5CA3DD(p1: boolean, p2: number): void;
87
105
  /**
88
- * @param componentHash
89
106
  * @param weaponHash Refer to [enum: eWeaponHash]
107
+ * @param ammoHash Refer to [enum: eAmmoType]
90
108
  */
91
- removeWeaponComponentFromPed(componentHash: string | number, weaponHash: eWeaponHash): void;
109
+ disableAmmoTypeForPedWeapon(weaponHash: eWeaponHash, ammoHash: eAmmoType): void;
92
110
  /**
93
- * @param visible
94
- * @param deselectWeapon
95
- * @param p3
96
- * @param p4
111
+ * @returns data; outData
97
112
  */
98
- setPedCurrentWeaponVisible(visible: boolean, deselectWeapon: boolean, p3: boolean, p4: boolean): void;
113
+ giveWeaponToPedWithOptions(): [boolean, number, number];
99
114
  /**
100
- * Old name: _DROP_CURRENT_PED_WEAPON
101
- *
102
- * @param p1
103
- * @param attachPoint Refer to [enum: eWeaponAttachPoint]
104
- * @param p3
105
- * @param p4
106
115
  * @returns
107
116
  */
108
- makePedDropWeapon(p1: boolean, attachPoint: number, p3: boolean, p4: boolean): Entity | null;
109
- removeAllPedAmmo(): void;
117
+ getMaxLockonDistanceOfCurrentPedWeapon(): number;
110
118
  /**
111
- * @param allow
119
+ * @returns
112
120
  */
113
- setAllowDualWield(allow: boolean): void;
121
+ getAllowDualWield(): any;
114
122
  /**
115
- * Returns weaponEmoteVariation WEAPON_EMOTE_VARIATION_INVALID = -2,
116
- * WEAPON_EMOTE_VARIATION_BASE,
117
- * WEAPON_EMOTE_VARIATION_A,
118
- * WEAPON_EMOTE_VARIATION_B,
119
- * WEAPON_EMOTE_VARIATION_C,
120
- * WEAPON_EMOTE_VARIATION_D,
121
- * WEAPON_EMOTE_VARIATION_PREVIEW,
122
- * WEAPON_EMOTE_NUM_VARIATIONS
123
+ * Returns eCurrentHeldWeapon
124
+ * _GET_R* - _GET_T*
123
125
  *
124
- * @param variation
125
126
  * @returns
126
127
  */
127
- getWeaponEmoteVariation(variation: number): number;
128
+ getPedCurrentHeldWeapon(): number;
129
+ /**
130
+ * @param toggle
131
+ */
132
+ setForceAutoEquip(toggle: boolean): void;
133
+ /**
134
+ * @param weaponHash Refer to [enum: eWeaponHash]
135
+ * @param ammo
136
+ */
137
+ setPedAmmo(weaponHash: eWeaponHash, ammo: number): void;
128
138
  /**
139
+ * Gives the ped the weapon.
140
+ * List: https://github.com/femga/rdr3_discoveries/blob/master/weapons/weapons.lua Params: p7 is 0.5f, and p8 is 1.0f. p11 and p12 are both 0 in R* Scripts
141
+ * permanentDegradation: default 0.5, any higher than 0 it will automatically make the weapon worn, you can also adjust the value to change the weapons maximum cleanliness
142
+ *
129
143
  * @param weaponHash Refer to [enum: eWeaponHash]
144
+ * @param ammoCount
145
+ * @param bForceInHand
146
+ * @param bForceInHolster
147
+ * @param attachPoint Refer to [enum: eWeaponAttachPoint]
148
+ * @param bAllowMultipleCopies
149
+ * @param p7
150
+ * @param p8
151
+ * @param addReason Refer to [enum: eAddItemReason]
152
+ * @param bIgnoreUnlocks
153
+ * @param permanentDegradation
154
+ * @param p12
130
155
  * @returns
131
156
  */
132
- isPedCarryingWeapon(weaponHash: eWeaponHash): any;
157
+ giveWeaponToPed(weaponHash: eWeaponHash, ammoCount: number, bForceInHand: boolean, bForceInHolster: boolean, attachPoint: number, bAllowMultipleCopies: boolean, p7: number, p8: number, addReason: eAddItemReason, bIgnoreUnlocks: boolean, permanentDegradation: number, p12: boolean): number;
133
158
  /**
159
+ * @param weaponHash Refer to [enum: eWeaponHash]
134
160
  * @returns
135
161
  */
136
- refillAmmoInCurrentPedWeapon(): any;
162
+ getAmmoInPedWeapon(weaponHash: eWeaponHash): number;
137
163
  /**
138
- * Unequip current weapon and set current weapon to WEAPON_UNARMED.
139
- * p0 usually 2 in R* scripts. Doesn't seem to have any effect if changed....
140
- * immediately: if true it will instantly switch to unarmed
141
- *
142
- * @param p0
143
- * @param immediately
164
+ * @param attachPoint Refer to [enum: eWeaponAttachPoint]
165
+ * @returns weaponGuid
144
166
  */
145
- hidePedWeapons(p0: number, immediately: boolean): void;
167
+ getPedWeaponGuidAtAttachPoint(attachPoint: number): [any, number];
146
168
  /**
147
- * @param weaponHash Refer to [enum: eWeaponHash]
169
+ * @param toggle
148
170
  */
149
- enableAmmoTypeForPed(weaponHash: eWeaponHash): void;
171
+ setAllowAnyWeaponDrop(toggle: boolean): void;
150
172
  /**
151
- * Returns ammoHash from weaponObject (Returned by 0x6CA484C9A7377E4F)
152
- *
153
- * @param weaponObject
154
173
  * @returns
155
174
  */
156
- getCurrentPedWeaponAmmoType(weaponObject: Prop): string | number;
175
+ makePedReload(): any;
157
176
  /**
158
- * @param p1
159
- * @param p2
177
+ * @param weaponHash Refer to [enum: eWeaponHash]
178
+ * @param ammoCount
160
179
  * @param p3
161
- * @returns
180
+ * @param addReason Refer to [enum: eAddItemReason]
162
181
  */
163
- getPedWorstWeapon(p1: boolean, p2: boolean, p3: boolean): string | number;
182
+ giveDelayedWeaponToPed(weaponHash: eWeaponHash, ammoCount: number, p3: boolean, addReason: eAddItemReason): void;
164
183
  /**
165
184
  * @param toggle
166
185
  */
167
- setPedDropsWeaponsWhenDead(toggle: boolean): void;
186
+ N_0x45E57FDD531C9477(toggle: boolean): void;
168
187
  /**
169
- * Returns ammoHash
170
- *
171
- * @returns Returns the [enum: eAmmoType]; weaponGuid
188
+ * @param ammoHash Refer to [enum: eAmmoType]
189
+ * @returns weaponInventoryUid
172
190
  */
173
- getCurrentAmmoTypeFromGuid(): [string | number, number];
191
+ setAmmoTypeForPedWeaponInventory(ammoHash: eAmmoType): number;
174
192
  /**
175
- * @param toggle
193
+ * @param weaponHash Refer to [enum: eWeaponHash]
194
+ * @param p2
195
+ * @param removeReason Refer to [enum: eRemoveItemReason]
176
196
  */
177
- setPedInfiniteAmmoClip(toggle: boolean): void;
197
+ removeWeaponFromPed(weaponHash: eWeaponHash, p2: boolean, removeReason: eRemoveItemReason): void;
178
198
  /**
179
- * returns the amount of peds that were restrained with the weapon thrown bolas
180
- *
181
- * @returns
199
+ * @param visible
182
200
  */
183
- getNumPedsRestrainedFromWeaponBolas(): any;
201
+ setPedAllWeaponsVisibility(visible: boolean): void;
184
202
  /**
203
+ * @param weaponHash Refer to [enum: eWeaponHash]
204
+ * @param ammo
185
205
  * @returns
186
206
  */
187
- getPedHogtieWeapon(): string | number;
207
+ setAmmoInClip(weaponHash: eWeaponHash, ammo: number): boolean;
188
208
  /**
209
+ * _GET_M* - _GET_PED_A*
210
+ *
211
+ * @param p1
189
212
  * @returns
190
213
  */
191
- enableWeaponRestore(): any;
214
+ getPedWeaponObject(p1: boolean): Prop | null;
192
215
  /**
193
- * Returns whether the specified ped is holding a weapon with the given hash.
194
- * only these weapons below return true
195
- * WEAPON_BOW, WEAPON_KIT_METAL_DETECTOR, WEAPON_MELEE_CLEAVER, WEAPON_MELEE_DAVY_LANTERN, WEAPON_MELEE_HATCHET, WEAPON_MELEE_HATCHET_HUNTER, WEAPON_MELEE_KNIFE_JAWBONE, WEAPON_MELEE_LANTERN WEAPON_MELEE_TORCH, WEAPON_MOONSHINEJUG_MP, WEAPON_RIFLE_BOLTACTION, WEAPON_SHOTGUN_PUMP, WEAPON_THROWN_BOLAS, WEAPON_THROWN_MOLOTOV
216
+ * slotHash is usually just the weaponHash name, but WEAPON_* is replaced with SLOT_*
196
217
  *
197
- * @param weapon
218
+ * @param slotHash
198
219
  * @returns
199
220
  */
200
- isPedHoldingWeapon(weapon: string | number): boolean;
221
+ getPedWeaponInSlot(slotHash: string | number): number;
201
222
  /**
202
- * _GET_D* - _GET_L*
223
+ * Outputs cached guids
224
+ *
225
+ * @returns guidPrimary; guidSecondary
226
+ */
227
+ getPlayerPedQuickSwapWeaponByGuid(): [number, number];
228
+ /**
229
+ * Returns true if the ped is currently holstering or unholstering a weapon
203
230
  *
204
231
  * @returns
205
232
  */
206
- N_0x0DE0944ECCB3DF5D(): boolean;
233
+ isWeaponHolsterStateChanging(): boolean;
207
234
  /**
208
- * @param flags
235
+ * @param ammoHash Refer to [enum: eAmmoType]
209
236
  * @returns
210
237
  */
211
- isPedArmed(flags: number): any;
238
+ N_0x44C8F4908F1B2622(ammoHash: eAmmoType): boolean;
212
239
  /**
213
- * Returns whether the ped has a sniper p1: 0 or 1
240
+ * @param p2
241
+ * @returns clipInventoryUid
242
+ */
243
+ refillAmmoInClip(p2: number): [any, number];
244
+ /**
245
+ * _SET_A* - _SET_B*
246
+ *
247
+ * @param p1
248
+ */
249
+ N_0x2EBF70E1D8C06683(p1: string | number): void;
250
+ /**
251
+ * @param ammoHash Refer to [enum: eAmmoType]
252
+ */
253
+ disableAmmoTypeForPed(ammoHash: eAmmoType): void;
254
+ /**
255
+ * Returns whether the ped has a shotgun p1: 0 or 1
214
256
  *
215
257
  * @param p1
216
258
  * @returns
217
259
  */
218
- doesPedHaveSniper(p1: number): any;
260
+ doesPedHaveShotgun(p1: number): any;
261
+ clearPedLastWeaponDamage(): void;
219
262
  /**
220
- * Returns the ped's default unarmed weapon hash as defined in CPedModelInfo (DefaultUnarmedWeapon).
221
- * Falls back to WEAPON_UNARMED if the ped doesn't have a valid model info pointer, or 0 if the ped doesn't exist.
263
+ * Returns true if ped is on a horse while inside of a town
264
+ * Params: p1 = 0
265
+ * GET_L* - GET_MA*
222
266
  *
267
+ * @param p1
223
268
  * @returns
224
269
  */
225
- getDefaultUnarmedWeaponHash(): string | number;
270
+ N_0x5A695BD328586B44(p1: number): any;
226
271
  /**
227
272
  * @param weaponHash Refer to [enum: eWeaponHash]
273
+ * @param amount
274
+ * @param removeReason Refer to [enum: eRemoveItemReason]
275
+ */
276
+ removeAmmoFromPed(weaponHash: eWeaponHash, amount: number, removeReason: eRemoveItemReason): void;
277
+ /**
278
+ * @param p1
228
279
  * @param p2
280
+ */
281
+ setPedAmmoToDrop(p1: number, p2: number): void;
282
+ /**
283
+ * Returns the current ammo type of the specified ped's specified weapon.
284
+ *
285
+ * @param weaponHash Refer to [enum: eWeaponHash]
229
286
  * @returns
230
287
  */
231
- getMaxAmmoInClip(weaponHash: eWeaponHash, p2: boolean): number;
288
+ getPedAmmoTypeFromWeapon(weaponHash: eWeaponHash): number;
232
289
  /**
233
- * @param attachPoint Refer to [enum: eWeaponAttachPoint]
234
- * @returns Returns the weapon entity
290
+ * @param weaponHash Refer to [enum: eWeaponHash]
291
+ * @returns ammo
235
292
  */
236
- getCurrentPedWeaponEntityIndex(attachPoint: number): Entity | null;
293
+ getMaxAmmo(weaponHash: eWeaponHash): [boolean, number];
237
294
  /**
238
295
  * @param weaponHash Refer to [enum: eWeaponHash]
239
- * @param ammoHash Refer to [enum: eAmmoType]
240
296
  */
241
- enableAmmoTypeForPedWeapon(weaponHash: eWeaponHash, ammoHash: eAmmoType): void;
297
+ enableAmmoTypeForPed(weaponHash: eWeaponHash): void;
242
298
  /**
243
- * @param toggle
299
+ * Detaches the weapon from the ped and actually removes the ped's weapon
300
+ *
301
+ * @param p1
302
+ * @returns
244
303
  */
245
- N_0x431240A58484D5D0(toggle: boolean): void;
304
+ getWeaponObjectFromPed(p1: boolean): Prop | null;
246
305
  /**
247
- * @param p2
248
- * @param p3
249
- * @returns outGUID
306
+ * @returns
250
307
  */
251
- getBestPedShortarmGuid(p2: boolean, p3: boolean): number;
308
+ isPedCurrentWeaponHolstered(): any;
252
309
  /**
253
- * @returns coords
310
+ * @param toggle
254
311
  */
255
- getPedLastWeaponImpactCoord(): [boolean, Vector3];
312
+ setInstantlyEquipWeaponPickups(toggle: boolean): void;
256
313
  /**
257
- * Returns WeaponAttachPoint
314
+ * Hides the ped's weapon during a cutscene.
258
315
  *
259
- * @param attachPoint Refer to [enum: eWeaponAttachPoint]
260
- * @returns
316
+ * @param toggle
261
317
  */
262
- getWeaponAttachPoint(attachPoint: number): number;
318
+ hidePedWeaponForScriptedCutscene(toggle: boolean): void;
319
+ /**
320
+ * @returns guidPrimary; guidSecondary
321
+ */
322
+ setPlayerPedQuickSwapWeaponByGuid(): [number, number];
323
+ /**
324
+ * @returns Returns the total ammo in the ped weapon from it's guid, or `0`.; guid
325
+ */
326
+ getAmmoInPedWeaponFromGuid(): [number, number];
263
327
  /**
328
+ * @param p1
264
329
  * @param p2
265
- * @param attachPoint Refer to [enum: eWeaponAttachPoint]
266
- * @param p4
267
- * @returns weaponHash: Refer to [enum: eWeaponHash]
268
330
  */
269
- getCurrentPedWeapon(p2: boolean, attachPoint: number, p4: boolean): [boolean, number];
331
+ removeAllPedWeapons(p1: boolean, p2: boolean): void;
270
332
  /**
271
- * Returns whether the ped has a revolver p1: 0 or 1
333
+ * Returns ammoHash from weaponObject (Returned by 0x6CA484C9A7377E4F)
272
334
  *
335
+ * @param weaponObject
336
+ * @returns
337
+ */
338
+ getCurrentPedWeaponAmmoType(weaponObject: Prop): number;
339
+ /**
273
340
  * @param p1
341
+ * @param p2
342
+ * @param p3
274
343
  * @returns
275
344
  */
276
- doesPedHaveRevolver(p1: number): any;
345
+ getPedWorstWeapon(p1: boolean, p2: boolean, p3: boolean): number;
277
346
  /**
278
- * Returns emote Hash
347
+ * @param toggle
348
+ */
349
+ setPedDropsWeaponsWhenDead(toggle: boolean): void;
350
+ /**
351
+ * Returns ammoHash
279
352
  *
280
- * @returns
353
+ * @returns Returns the [enum: eAmmoType]; weaponGuid
281
354
  */
282
- getPedGunSpinningEquippedKitEmoteTwirl(): string | number;
355
+ getCurrentAmmoTypeFromGuid(): [number, number];
283
356
  /**
284
357
  * @param toggle
285
358
  */
286
- N_0x16D9841A85FA627E(toggle: boolean): void;
359
+ setPedInfiniteAmmoClip(toggle: boolean): void;
287
360
  /**
288
- * @param weaponHash Refer to [enum: eWeaponHash]
289
- * @param offset
290
- * @param ammoCount
361
+ * returns the amount of peds that were restrained with the weapon thrown bolas
362
+ *
363
+ * @returns
291
364
  */
292
- setPedDropsInventoryWeapon(weaponHash: eWeaponHash, offset: Vector3, ammoCount: number): void;
365
+ getNumPedsRestrainedFromWeaponBolas(): any;
293
366
  /**
294
- * spinHash can be -1, 0 to disable
367
+ * emote hashes: KIT_EMOTE_TWIRL_GUN, KIT_EMOTE_TWIRL_GUN_LEFT_HOLSTER, KIT_EMOTE_TWIRL_GUN_DUAL, 0 (to unequip)
295
368
  *
296
- * @param weaponEmoteTrickType
297
- * @param spin
369
+ * @param emote
298
370
  */
299
- setActiveGunSpinningKitEmoteTwirl(weaponEmoteTrickType: number, spin: string | number): void;
371
+ setActiveGunSpinningEquipKitEmoteTwirl(emote: string | number): void;
300
372
  /**
301
- * Appears to just send specified weapon to your horse holster without having to be close
302
- * However, the weapon is not visible on the horse holster, but you can reach the weapon on the weapon wheel
373
+ * Stores longarms to your horse on dismount
374
+ * Params: p2 = 0
375
+ * SET_[I - M]*
376
+ *
377
+ * @param storeLongarms
378
+ * @param p2
379
+ */
380
+ setInstantlyStoreLongarmsOnDismount(storeLongarms: boolean, p2: number): void;
381
+ /**
382
+ * @param removeReason Refer to [enum: eRemoveItemReason]
383
+ * @returns weaponGuid
384
+ */
385
+ removeWeaponFromPedByGuid(removeReason: eRemoveItemReason): number;
386
+ /**
387
+ * attachPoint:
303
388
  *
304
389
  * @param weaponHash Refer to [enum: eWeaponHash]
390
+ * @param equipNow
391
+ * @param attachPoint Refer to [enum: eWeaponAttachPoint]
392
+ * @param p4
393
+ * @param p5
305
394
  */
306
- sendWeaponToInventory(weaponHash: eWeaponHash): void;
395
+ setCurrentPedWeapon(weaponHash: eWeaponHash, equipNow: boolean, attachPoint: number, p4: boolean, p5: boolean): void;
307
396
  /**
308
- * If near your horse when called, weapons stored on your horse will be considered
309
- * Returns weaponHash
397
+ * Equips a weapon from a weaponItem, similar to GIVE_WEAPON_TO_PED
310
398
  *
311
- * @param weaponGroup
312
399
  * @param p2
313
400
  * @param p3
314
- * @returns
401
+ * @param p4
402
+ * @param p5
403
+ * @returns weaponUid
315
404
  */
316
- getBestPedWeaponInGroup(weaponGroup: string | number, p2: boolean, p3: boolean): string | number;
405
+ setCurrentPedWeaponByGuid(p2: boolean, p3: boolean, p4: boolean, p5: boolean): number;
317
406
  /**
318
- * Only used in R* SP Scripts native_son2, native_son3 and smuggler2
319
- * Params: p2 = -1
320
- *
321
- * @param p1
322
- * @param p2
407
+ * @param componentHash
408
+ * @param weaponHash Refer to [enum: eWeaponHash]
409
+ * @returns
323
410
  */
324
- N_0x8A779706DA5CA3DD(p1: boolean, p2: number): void;
411
+ hasPedGotWeaponComponent(componentHash: string | number, weaponHash: eWeaponHash): any;
325
412
  /**
326
413
  * @param weaponHash Refer to [enum: eWeaponHash]
327
- * @param ammoHash Refer to [enum: eAmmoType]
414
+ * @param amount The amount of ped to add to the ammo
415
+ * @param addReason Refer to [enum: eAddItemReason]
328
416
  */
329
- disableAmmoTypeForPedWeapon(weaponHash: eWeaponHash, ammoHash: eAmmoType): void;
417
+ addAmmoToPed(weaponHash: eWeaponHash, amount: number, addReason: eAddItemReason): void;
330
418
  /**
331
- * @returns data; outData
419
+ * @param ammoType
420
+ * @param amount
421
+ * @param addReason Refer to [enum: eAddItemReason]
332
422
  */
333
- giveWeaponToPedWithOptions(): [boolean, number, number];
423
+ addAmmoToPedByType(ammoType: string | number, amount: number, addReason: eAddItemReason): void;
334
424
  /**
425
+ * @param targetPed
335
426
  * @returns
336
427
  */
337
- getMaxLockonDistanceOfCurrentPedWeapon(): number;
428
+ isTargetPedConstrainedByPedUsingBolas(targetPed: Ped): boolean;
429
+ /**
430
+ * @param p1
431
+ * @returns guidPrimary
432
+ */
433
+ getBestPedWeaponInInventory(p1: any): [any, number];
434
+ /**
435
+ * @param toggle
436
+ */
437
+ N_0xF08D8FEB455F2C8C(toggle: boolean): void;
338
438
  /**
439
+ * @returns ammo; inventoryUid
440
+ */
441
+ getAmmoInClipByInventoryUid(): [any, number, number];
442
+ /**
443
+ * removeReason must be REMOVE_REASON_USED, REMOVE_REASON_GIVEN, REMOVE_REASON_DROPPED or REMOVE_REASON_DEBUG, unless amount is -1
444
+ *
339
445
  * @param ammoHash Refer to [enum: eAmmoType]
446
+ * @param amount
447
+ * @param removeReason Refer to [enum: eRemoveItemReason]
340
448
  */
341
- disableAmmoTypeForPed(ammoHash: eAmmoType): void;
449
+ removeAmmoFromPedByType(ammoHash: eAmmoType, amount: number, removeReason: eRemoveItemReason): void;
342
450
  /**
343
- * @param visible
451
+ * Holster the holded shoulder weapon. Precisions: 0 means with anim while 1 means direct holster
452
+ *
453
+ * @param disableAnim
344
454
  */
345
- setPedAllWeaponsVisibility(visible: boolean): void;
455
+ setPedWeaponOnBack(disableAnim: boolean): void;
346
456
  /**
347
- * @param weaponHash Refer to [enum: eWeaponHash]
457
+ * @param ammoType
348
458
  * @param ammo
459
+ */
460
+ setPedAmmoByType(ammoType: string | number, ammo: number): void;
461
+ /**
462
+ * @param p1
349
463
  * @returns
350
464
  */
351
- setAmmoInClip(weaponHash: eWeaponHash, ammo: number): boolean;
465
+ getPedBackupWeapon(p1: boolean): number;
352
466
  /**
353
- * _GET_M* - _GET_PED_A*
467
+ * @param attachPoint Refer to [enum: eWeaponAttachPoint]
468
+ */
469
+ setForceCurrentWeaponIntoCockedState(attachPoint: number): void;
470
+ /**
471
+ * @returns
472
+ */
473
+ enableWeaponRestore(): any;
474
+ /**
475
+ * Returns whether the specified ped is holding a weapon with the given hash.
476
+ * only these weapons below return true
477
+ * WEAPON_BOW, WEAPON_KIT_METAL_DETECTOR, WEAPON_MELEE_CLEAVER, WEAPON_MELEE_DAVY_LANTERN, WEAPON_MELEE_HATCHET, WEAPON_MELEE_HATCHET_HUNTER, WEAPON_MELEE_KNIFE_JAWBONE, WEAPON_MELEE_LANTERN WEAPON_MELEE_TORCH, WEAPON_MOONSHINEJUG_MP, WEAPON_RIFLE_BOLTACTION, WEAPON_SHOTGUN_PUMP, WEAPON_THROWN_BOLAS, WEAPON_THROWN_MOLOTOV
354
478
  *
355
- * @param p1
479
+ * @param weapon
356
480
  * @returns
357
481
  */
358
- getPedWeaponObject(p1: boolean): Prop | null;
482
+ isPedHoldingWeapon(weapon: string | number): boolean;
359
483
  /**
360
- * slotHash is usually just the weaponHash name, but WEAPON_* is replaced with SLOT_*
484
+ * _GET_D* - _GET_L*
361
485
  *
362
- * @param slotHash
363
486
  * @returns
364
487
  */
365
- getPedWeaponInSlot(slotHash: string | number): string | number;
488
+ N_0x0DE0944ECCB3DF5D(): boolean;
366
489
  /**
367
- * Outputs cached guids
368
- *
369
- * @returns guidPrimary; guidSecondary
490
+ * @param flags
491
+ * @returns
370
492
  */
371
- getPlayerPedQuickSwapWeaponByGuid(): [number, number];
493
+ isPedArmed(flags: number): any;
372
494
  /**
373
- * Returns true if the ped is currently holstering or unholstering a weapon
495
+ * Returns whether the ped has a sniper p1: 0 or 1
374
496
  *
497
+ * @param p1
375
498
  * @returns
376
499
  */
377
- isWeaponHolsterStateChanging(): boolean;
500
+ doesPedHaveSniper(p1: number): any;
378
501
  /**
379
- * @param ammoHash Refer to [enum: eAmmoType]
502
+ * Returns the ped's default unarmed weapon hash as defined in CPedModelInfo (DefaultUnarmedWeapon).
503
+ * Falls back to WEAPON_UNARMED if the ped doesn't have a valid model info pointer, or 0 if the ped doesn't exist.
504
+ *
380
505
  * @returns
381
506
  */
382
- N_0x44C8F4908F1B2622(ammoHash: eAmmoType): boolean;
507
+ getDefaultUnarmedWeaponHash(): number;
383
508
  /**
509
+ * @param weaponHash Refer to [enum: eWeaponHash]
384
510
  * @param p2
385
- * @returns clipInventoryUid
386
- */
387
- refillAmmoInClip(p2: number): [any, number];
388
- /**
389
- * _SET_A* - _SET_B*
390
- *
391
- * @param p1
511
+ * @returns
392
512
  */
393
- N_0x2EBF70E1D8C06683(p1: string | number): void;
513
+ getMaxAmmoInClip(weaponHash: eWeaponHash, p2: boolean): number;
394
514
  /**
395
- * @returns
515
+ * @param attachPoint Refer to [enum: eWeaponAttachPoint]
516
+ * @returns Returns the weapon entity
396
517
  */
397
- isPedWeaponReadyToShoot(): boolean;
518
+ getCurrentPedWeaponEntityIndex(attachPoint: number): Entity | null;
398
519
  /**
399
520
  * @param ammoType
400
521
  * @returns
@@ -405,7 +526,7 @@ export declare class Weapon {
405
526
  * @param p2
406
527
  * @returns
407
528
  */
408
- getBestPedWeapon(p1: boolean, p2: boolean): string | number;
529
+ getBestPedWeapon(p1: boolean, p2: boolean): number;
409
530
  /**
410
531
  * @param toggle
411
532
  * @param weaponHash Refer to [enum: eWeaponHash]
@@ -448,7 +569,7 @@ export declare class Weapon {
448
569
  * @param weaponEmoteVariation
449
570
  * @returns
450
571
  */
451
- getPedGunSpinningHashFromWeaponEmoteVariation(weaponEmoteVariation: number): string | number;
572
+ getPedGunSpinningHashFromWeaponEmoteVariation(weaponEmoteVariation: number): number;
452
573
  /**
453
574
  * Returns whether the ped has a repeater p1: 0 or 1
454
575
  *
@@ -461,46 +582,72 @@ export declare class Weapon {
461
582
  */
462
583
  giveWeaponCollectionToPed(weaponCollection: string | number): void;
463
584
  /**
464
- * @param toggle
585
+ * @returns
465
586
  */
466
- N_0xF08D8FEB455F2C8C(toggle: boolean): void;
587
+ isPedWeaponReadyToShoot(): boolean;
467
588
  /**
468
- * @returns ammo; inventoryUid
589
+ * @param componentHash
590
+ * @param weaponHash Refer to [enum: eWeaponHash]
469
591
  */
470
- getAmmoInClipByInventoryUid(): [any, number, number];
592
+ removeWeaponComponentFromPed(componentHash: string | number, weaponHash: eWeaponHash): void;
471
593
  /**
472
- * removeReason must be REMOVE_REASON_USED, REMOVE_REASON_GIVEN, REMOVE_REASON_DROPPED or REMOVE_REASON_DEBUG, unless amount is -1
594
+ * @param visible
595
+ * @param deselectWeapon
596
+ * @param p3
597
+ * @param p4
598
+ */
599
+ setPedCurrentWeaponVisible(visible: boolean, deselectWeapon: boolean, p3: boolean, p4: boolean): void;
600
+ /**
601
+ * Old name: _DROP_CURRENT_PED_WEAPON
473
602
  *
474
- * @param ammoHash Refer to [enum: eAmmoType]
475
- * @param amount
476
- * @param removeReason Refer to [enum: eRemoveItemReason]
603
+ * @param p1
604
+ * @param attachPoint Refer to [enum: eWeaponAttachPoint]
605
+ * @param p3
606
+ * @param p4
607
+ * @returns
477
608
  */
478
- removeAmmoFromPedByType(ammoHash: eAmmoType, amount: number, removeReason: eRemoveItemReason): void;
609
+ makePedDropWeapon(p1: boolean, attachPoint: number, p3: boolean, p4: boolean): Entity | null;
610
+ removeAllPedAmmo(): void;
479
611
  /**
480
- * Holster the holded shoulder weapon. Precisions: 0 means with anim while 1 means direct holster
612
+ * @param allow
613
+ */
614
+ setAllowDualWield(allow: boolean): void;
615
+ /**
616
+ * Returns weaponEmoteVariation WEAPON_EMOTE_VARIATION_INVALID = -2,
617
+ * WEAPON_EMOTE_VARIATION_BASE,
618
+ * WEAPON_EMOTE_VARIATION_A,
619
+ * WEAPON_EMOTE_VARIATION_B,
620
+ * WEAPON_EMOTE_VARIATION_C,
621
+ * WEAPON_EMOTE_VARIATION_D,
622
+ * WEAPON_EMOTE_VARIATION_PREVIEW,
623
+ * WEAPON_EMOTE_NUM_VARIATIONS
481
624
  *
482
- * @param disableAnim
625
+ * @param variation
626
+ * @returns
483
627
  */
484
- setPedWeaponOnBack(disableAnim: boolean): void;
628
+ getWeaponEmoteVariation(variation: number): number;
485
629
  /**
486
- * @param ammoType
487
- * @param ammo
630
+ * @param weaponHash Refer to [enum: eWeaponHash]
631
+ * @returns
488
632
  */
489
- setPedAmmoByType(ammoType: string | number, ammo: number): void;
633
+ isPedCarryingWeapon(weaponHash: eWeaponHash): any;
490
634
  /**
491
- * @param p1
492
635
  * @returns
493
636
  */
494
- getPedBackupWeapon(p1: boolean): string | number;
637
+ refillAmmoInCurrentPedWeapon(): any;
495
638
  /**
496
- * @param attachPoint Refer to [enum: eWeaponAttachPoint]
639
+ * Unequip current weapon and set current weapon to WEAPON_UNARMED.
640
+ * p0 usually 2 in R* scripts. Doesn't seem to have any effect if changed....
641
+ * immediately: if true it will instantly switch to unarmed
642
+ *
643
+ * @param p0
644
+ * @param immediately
497
645
  */
498
- setForceCurrentWeaponIntoCockedState(attachPoint: number): void;
646
+ hidePedWeapons(p0: number, immediately: boolean): void;
499
647
  /**
500
- * @param weaponHash Refer to [enum: eWeaponHash]
501
- * @returns ammo
648
+ * @returns
502
649
  */
503
- getAmmoInClip(weaponHash: eWeaponHash): [boolean, number];
650
+ getPedHogtieWeapon(): number;
504
651
  /**
505
652
  * Returns whether the ped has a pistol p1: 0 or 1
506
653
  *
@@ -539,152 +686,5 @@ export declare class Weapon {
539
686
  * @returns
540
687
  */
541
688
  hasPedGotWeapon(weaponHash: eWeaponHash, p2: number, onlyCheckPlayerInventory: boolean): boolean;
542
- /**
543
- * @returns
544
- */
545
- getAllowDualWield(): any;
546
- /**
547
- * Stores longarms to your horse on dismount
548
- * Params: p2 = 0
549
- * SET_[I - M]*
550
- *
551
- * @param storeLongarms
552
- * @param p2
553
- */
554
- setInstantlyStoreLongarmsOnDismount(storeLongarms: boolean, p2: number): void;
555
- /**
556
- * @param removeReason Refer to [enum: eRemoveItemReason]
557
- * @returns weaponGuid
558
- */
559
- removeWeaponFromPedByGuid(removeReason: eRemoveItemReason): number;
560
- /**
561
- * attachPoint:
562
- *
563
- * @param weaponHash Refer to [enum: eWeaponHash]
564
- * @param equipNow
565
- * @param attachPoint Refer to [enum: eWeaponAttachPoint]
566
- * @param p4
567
- * @param p5
568
- */
569
- setCurrentPedWeapon(weaponHash: eWeaponHash, equipNow: boolean, attachPoint: number, p4: boolean, p5: boolean): void;
570
- /**
571
- * Equips a weapon from a weaponItem, similar to GIVE_WEAPON_TO_PED
572
- *
573
- * @param p2
574
- * @param p3
575
- * @param p4
576
- * @param p5
577
- * @returns weaponUid
578
- */
579
- setCurrentPedWeaponByGuid(p2: boolean, p3: boolean, p4: boolean, p5: boolean): number;
580
- /**
581
- * @param componentHash
582
- * @param weaponHash Refer to [enum: eWeaponHash]
583
- * @returns
584
- */
585
- hasPedGotWeaponComponent(componentHash: string | number, weaponHash: eWeaponHash): any;
586
- /**
587
- * @param weaponHash Refer to [enum: eWeaponHash]
588
- * @param amount The amount of ped to add to the ammo
589
- * @param addReason Refer to [enum: eAddItemReason]
590
- */
591
- addAmmoToPed(weaponHash: eWeaponHash, amount: number, addReason: eAddItemReason): void;
592
- /**
593
- * @param ammoType
594
- * @param amount
595
- * @param addReason Refer to [enum: eAddItemReason]
596
- */
597
- addAmmoToPedByType(ammoType: string | number, amount: number, addReason: eAddItemReason): void;
598
- /**
599
- * @param targetPed
600
- * @returns
601
- */
602
- isTargetPedConstrainedByPedUsingBolas(targetPed: Ped): boolean;
603
- /**
604
- * @param p1
605
- * @returns guidPrimary
606
- */
607
- getBestPedWeaponInInventory(p1: any): [any, number];
608
- /**
609
- * Returns whether the ped has a shotgun p1: 0 or 1
610
- *
611
- * @param p1
612
- * @returns
613
- */
614
- doesPedHaveShotgun(p1: number): any;
615
- clearPedLastWeaponDamage(): void;
616
- /**
617
- * Returns true if ped is on a horse while inside of a town
618
- * Params: p1 = 0
619
- * GET_L* - GET_MA*
620
- *
621
- * @param p1
622
- * @returns
623
- */
624
- N_0x5A695BD328586B44(p1: number): any;
625
- /**
626
- * @param weaponHash Refer to [enum: eWeaponHash]
627
- * @param amount
628
- * @param removeReason Refer to [enum: eRemoveItemReason]
629
- */
630
- removeAmmoFromPed(weaponHash: eWeaponHash, amount: number, removeReason: eRemoveItemReason): void;
631
- /**
632
- * @param p1
633
- * @param p2
634
- */
635
- setPedAmmoToDrop(p1: number, p2: number): void;
636
- /**
637
- * Returns the current ammo type of the specified ped's specified weapon.
638
- *
639
- * @param weaponHash Refer to [enum: eWeaponHash]
640
- * @returns
641
- */
642
- getPedAmmoTypeFromWeapon(weaponHash: eWeaponHash): string | number;
643
- /**
644
- * @param weaponHash Refer to [enum: eWeaponHash]
645
- * @returns ammo
646
- */
647
- getMaxAmmo(weaponHash: eWeaponHash): [boolean, number];
648
- /**
649
- * @param weaponHash Refer to [enum: eWeaponHash]
650
- * @param ammo
651
- */
652
- setPedAmmo(weaponHash: eWeaponHash, ammo: number): void;
653
- /**
654
- * Gives the ped the weapon.
655
- * List: https://github.com/femga/rdr3_discoveries/blob/master/weapons/weapons.lua Params: p7 is 0.5f, and p8 is 1.0f. p11 and p12 are both 0 in R* Scripts
656
- * permanentDegradation: default 0.5, any higher than 0 it will automatically make the weapon worn, you can also adjust the value to change the weapons maximum cleanliness
657
- *
658
- * @param weaponHash Refer to [enum: eWeaponHash]
659
- * @param ammoCount
660
- * @param bForceInHand
661
- * @param bForceInHolster
662
- * @param attachPoint Refer to [enum: eWeaponAttachPoint]
663
- * @param bAllowMultipleCopies
664
- * @param p7
665
- * @param p8
666
- * @param addReason Refer to [enum: eAddItemReason]
667
- * @param bIgnoreUnlocks
668
- * @param permanentDegradation
669
- * @param p12
670
- * @returns
671
- */
672
- giveWeaponToPed(weaponHash: eWeaponHash, ammoCount: number, bForceInHand: boolean, bForceInHolster: boolean, attachPoint: number, bAllowMultipleCopies: boolean, p7: number, p8: number, addReason: eAddItemReason, bIgnoreUnlocks: boolean, permanentDegradation: number, p12: boolean): string | number;
673
- /**
674
- * @param weaponHash Refer to [enum: eWeaponHash]
675
- * @returns
676
- */
677
- getAmmoInPedWeapon(weaponHash: eWeaponHash): number;
678
- /**
679
- * @param attachPoint Refer to [enum: eWeaponAttachPoint]
680
- * @returns weaponGuid
681
- */
682
- getPedWeaponGuidAtAttachPoint(attachPoint: number): [any, number];
683
- /**
684
- * emote hashes: KIT_EMOTE_TWIRL_GUN, KIT_EMOTE_TWIRL_GUN_LEFT_HOLSTER, KIT_EMOTE_TWIRL_GUN_DUAL, 0 (to unequip)
685
- *
686
- * @param emote
687
- */
688
- setActiveGunSpinningEquipKitEmoteTwirl(emote: string | number): void;
689
689
  }
690
690
  //# sourceMappingURL=Weapon.d.ts.map