@nativewrappers/fivem 0.0.80 → 0.0.82

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 (265) hide show
  1. package/Audio.d.ts +2 -2
  2. package/Audio.js +99 -0
  3. package/Blip.d.ts +4 -3
  4. package/Blip.js +113 -0
  5. package/Camera.d.ts +3 -3
  6. package/Camera.js +190 -0
  7. package/Checkpoint.d.ts +2 -2
  8. package/Checkpoint.js +51 -0
  9. package/Events.js +80 -0
  10. package/Game.d.ts +10 -3
  11. package/Game.js +478 -0
  12. package/GameplayCamera.d.ts +2 -2
  13. package/GameplayCamera.js +152 -0
  14. package/Model.js +210 -0
  15. package/NetworkedScene.d.ts +2 -1
  16. package/NetworkedScene.js +50 -0
  17. package/ParticleEffect.d.ts +4 -3
  18. package/ParticleEffect.js +128 -0
  19. package/ParticleEffectAsset.d.ts +2 -2
  20. package/ParticleEffectAsset.js +133 -0
  21. package/Pickup.d.ts +1 -1
  22. package/Pickup.js +27 -0
  23. package/Raycast.d.ts +5 -3
  24. package/Raycast.js +132 -0
  25. package/RelationshipGroup.d.ts +1 -1
  26. package/RelationshipGroup.js +72 -0
  27. package/Rope.d.ts +1 -1
  28. package/Rope.js +149 -0
  29. package/TaskSequence.js +52 -0
  30. package/Tasks.d.ts +8 -3
  31. package/Tasks.js +334 -0
  32. package/World.d.ts +13 -4
  33. package/World.js +945 -0
  34. package/cfx/StateBagChangeHandler.js +0 -0
  35. package/cfx/index.d.ts +1 -1
  36. package/cfx/index.js +4 -0
  37. package/common/Command.js +111 -0
  38. package/common/Convar.js +58 -0
  39. package/common/GlobalData.js +16 -0
  40. package/common/Kvp.js +137 -0
  41. package/common/Resource.js +54 -0
  42. package/common/decors/Events.js +170 -0
  43. package/common/net/NetworkedMap.js +225 -0
  44. package/common/types.js +0 -0
  45. package/common/utils/ClassTypes.js +15 -0
  46. package/common/utils/Color.js +33 -0
  47. package/common/utils/Delay.d.ts +1 -0
  48. package/common/utils/Delay.js +6 -0
  49. package/common/utils/Maths.js +18 -0
  50. package/common/utils/Point.d.ts +9 -0
  51. package/common/utils/Point.js +36 -0
  52. package/common/utils/PointF.d.ts +1 -1
  53. package/common/utils/PointF.js +18 -0
  54. package/common/utils/Quaternion.d.ts +1 -1
  55. package/common/utils/Quaternion.js +33 -0
  56. package/common/utils/Vector.js +589 -0
  57. package/common/utils/cleanPlayerName.js +17 -0
  58. package/common/utils/enumValues.js +20 -0
  59. package/common/utils/getStringFromUInt8Array.js +6 -0
  60. package/common/utils/getUInt32FromUint8Array.js +6 -0
  61. package/enums/Alignment.js +9 -0
  62. package/enums/AnimationFlags.js +38 -0
  63. package/enums/AudioFlag.js +41 -0
  64. package/enums/BadgeStyle.js +186 -0
  65. package/enums/Blip.js +229 -0
  66. package/enums/Bone.js +105 -0
  67. package/enums/CameraShake.js +17 -0
  68. package/enums/CameraTypes.js +11 -0
  69. package/enums/CheckboxStyle.js +8 -0
  70. package/enums/Checkpoint.js +68 -0
  71. package/enums/CloudHat.js +27 -0
  72. package/enums/Control.js +364 -0
  73. package/enums/CursorSprite.js +18 -0
  74. package/enums/Driving.js +38 -0
  75. package/enums/ExplosionType.js +45 -0
  76. package/enums/FiringPattern.js +23 -0
  77. package/enums/Font.js +11 -0
  78. package/enums/ForceType.js +12 -0
  79. package/enums/Gender.js +8 -0
  80. package/enums/HelmetType.js +9 -0
  81. package/enums/HudColor.js +187 -0
  82. package/enums/HudComponent.js +57 -0
  83. package/enums/InputMode.js +8 -0
  84. package/enums/InvertAxis.js +10 -0
  85. package/enums/Language.js +18 -0
  86. package/enums/LeaveVehicleFlags.js +14 -0
  87. package/enums/LoadingSpinnerType.js +11 -0
  88. package/enums/MarkerType.js +48 -0
  89. package/enums/MenuAlignment.js +8 -0
  90. package/enums/NotificationType.js +14 -0
  91. package/enums/Parachute.js +19 -0
  92. package/enums/PickupType.js +77 -0
  93. package/enums/RadioStation.js +28 -0
  94. package/enums/RagdollType.js +10 -0
  95. package/enums/RaycastEnums.js +33 -0
  96. package/enums/Relationship.js +13 -0
  97. package/enums/RopeType.js +9 -0
  98. package/enums/ScreenEffect.js +87 -0
  99. package/enums/SpeechModifier.js +43 -0
  100. package/enums/Vehicle.js +396 -0
  101. package/enums/Weather.js +22 -0
  102. package/enums/ZoneID.js +95 -0
  103. package/hashes/MaterialHash.js +220 -0
  104. package/hashes/PedHash.js +728 -0
  105. package/hashes/VehicleHash.js +526 -0
  106. package/hashes/WeaponHash.js +155 -0
  107. package/hashes/WeatherTypeHash.js +22 -0
  108. package/index.js +166 -18794
  109. package/interfaces/Dimensions.d.ts +1 -1
  110. package/interfaces/Dimensions.js +0 -0
  111. package/models/BaseEntity.d.ts +10 -8
  112. package/models/BaseEntity.js +576 -0
  113. package/models/Entity.d.ts +0 -1
  114. package/models/Entity.js +0 -0
  115. package/models/EntityBone.d.ts +1 -1
  116. package/models/EntityBone.js +32 -0
  117. package/models/EntityBoneCollection.d.ts +1 -1
  118. package/models/EntityBoneCollection.js +27 -0
  119. package/models/Ped.d.ts +13 -5
  120. package/models/Ped.js +711 -0
  121. package/models/PedBone.d.ts +3 -2
  122. package/models/PedBone.js +18 -0
  123. package/models/PedBoneCollection.d.ts +3 -1
  124. package/models/PedBoneCollection.js +31 -0
  125. package/models/Player.d.ts +4 -2
  126. package/models/Player.js +188 -0
  127. package/models/Prop.d.ts +1 -1
  128. package/models/Prop.js +34 -0
  129. package/models/Vehicle.d.ts +9 -4
  130. package/models/Vehicle.js +582 -0
  131. package/models/VehicleDoor.d.ts +1 -1
  132. package/models/VehicleDoor.js +52 -0
  133. package/models/VehicleDoorCollection.d.ts +1 -1
  134. package/models/VehicleDoorCollection.js +66 -0
  135. package/models/VehicleMod.d.ts +1 -1
  136. package/models/VehicleMod.js +43 -0
  137. package/models/VehicleModCollection.d.ts +2 -2
  138. package/models/VehicleModCollection.js +227 -0
  139. package/models/VehicleToggleMod.d.ts +1 -1
  140. package/models/VehicleToggleMod.js +37 -0
  141. package/models/VehicleWheel.js +31 -0
  142. package/models/VehicleWheelCollection.d.ts +1 -1
  143. package/models/VehicleWheelCollection.js +61 -0
  144. package/models/VehicleWindow.d.ts +1 -1
  145. package/models/VehicleWindow.js +43 -0
  146. package/models/VehicleWindowCollection.d.ts +1 -1
  147. package/models/VehicleWindowCollection.js +62 -0
  148. package/package.json +2 -2
  149. package/ui/Container.d.ts +4 -2
  150. package/ui/Container.js +39 -0
  151. package/ui/Effects.d.ts +1 -1
  152. package/ui/Effects.js +112 -0
  153. package/ui/Fading.js +74 -0
  154. package/ui/Hud.d.ts +3 -2
  155. package/ui/Hud.js +47 -0
  156. package/ui/InstructionalButtons.js +42 -0
  157. package/ui/LoadingPrompt.d.ts +1 -1
  158. package/ui/LoadingPrompt.js +37 -0
  159. package/ui/Notification.js +17 -0
  160. package/ui/Rectangle.d.ts +4 -2
  161. package/ui/Rectangle.js +46 -0
  162. package/ui/Scaleform.d.ts +2 -1
  163. package/ui/Scaleform.js +240 -0
  164. package/ui/Screen.d.ts +6 -3
  165. package/ui/Screen.js +83 -0
  166. package/ui/Sprite.d.ts +3 -1
  167. package/ui/Sprite.js +70 -0
  168. package/ui/Text.d.ts +6 -3
  169. package/ui/Text.js +119 -0
  170. package/ui/Timerbar.js +241 -0
  171. package/ui/interfaces/IButton.d.ts +1 -1
  172. package/ui/interfaces/IButton.js +0 -0
  173. package/ui/interfaces/IDrawable.d.ts +3 -1
  174. package/ui/interfaces/IDrawable.js +0 -0
  175. package/ui/menu/Menu.d.ts +9 -4
  176. package/ui/menu/Menu.js +830 -0
  177. package/ui/menu/MenuControl.js +20 -0
  178. package/ui/menu/MenuControls.js +17 -0
  179. package/ui/menu/MenuSettings.d.ts +1 -1
  180. package/ui/menu/MenuSettings.js +57 -0
  181. package/ui/menu/items/UIMenuCheckboxItem.d.ts +3 -3
  182. package/ui/menu/items/UIMenuCheckboxItem.js +70 -0
  183. package/ui/menu/items/UIMenuItem.d.ts +10 -4
  184. package/ui/menu/items/UIMenuItem.js +1103 -0
  185. package/ui/menu/items/UIMenuListItem.d.ts +3 -3
  186. package/ui/menu/items/UIMenuListItem.js +118 -0
  187. package/ui/menu/items/UIMenuSeparatorItem.d.ts +1 -1
  188. package/ui/menu/items/UIMenuSeparatorItem.js +37 -0
  189. package/ui/menu/items/UIMenuSliderItem.d.ts +4 -3
  190. package/ui/menu/items/UIMenuSliderItem.js +180 -0
  191. package/ui/menu/items/panels/AbstractUIMenuPanel.d.ts +4 -3
  192. package/ui/menu/items/panels/AbstractUIMenuPanel.js +49 -0
  193. package/ui/menu/items/panels/UIMenuColorPanel.d.ts +3 -3
  194. package/ui/menu/items/panels/UIMenuColorPanel.js +215 -0
  195. package/ui/menu/items/panels/UIMenuGridPanel.d.ts +3 -3
  196. package/ui/menu/items/panels/UIMenuGridPanel.js +216 -0
  197. package/ui/menu/items/panels/UIMenuPercentagePanel.d.ts +2 -2
  198. package/ui/menu/items/panels/UIMenuPercentagePanel.js +138 -0
  199. package/ui/menu/items/panels/UIMenuStatisticsPanel.d.ts +3 -2
  200. package/ui/menu/items/panels/UIMenuStatisticsPanel.js +88 -0
  201. package/ui/menu/items/panels/UIMenuStatisticsPanelItem.d.ts +2 -1
  202. package/ui/menu/items/panels/UIMenuStatisticsPanelItem.js +48 -0
  203. package/ui/menu/modules/ListItem.js +18 -0
  204. package/utils/Animations.js +43 -0
  205. package/utils/Crypto.js +33 -0
  206. package/utils/LiteEvent.js +25 -0
  207. package/utils/Maths.js +18 -0
  208. package/utils/Point.js +36 -0
  209. package/utils/Size.js +16 -0
  210. package/utils/String.d.ts +1 -1
  211. package/utils/String.js +35 -0
  212. package/weapon/DlcWeaponData.d.ts +1 -1
  213. package/weapon/DlcWeaponData.js +40 -0
  214. package/weapon/Mk2WeaponHash.js +18 -0
  215. package/weapon/Weapon.d.ts +7 -7
  216. package/weapon/Weapon.js +276 -0
  217. package/weapon/WeaponAsset.d.ts +1 -1
  218. package/weapon/WeaponAsset.js +87 -0
  219. package/weapon/WeaponCollection.d.ts +3 -2
  220. package/weapon/WeaponCollection.js +179 -0
  221. package/weapon/WeaponDisplayNameByHash.d.ts +1 -1
  222. package/weapon/WeaponDisplayNameByHash.js +73 -0
  223. package/weapon/WeaponGroup.js +22 -0
  224. package/weapon/WeaponHudStats.d.ts +1 -1
  225. package/weapon/WeaponHudStats.js +33 -0
  226. package/weapon/WeaponLivery.js +17 -0
  227. package/weapon/WeaponLiveryColor.js +38 -0
  228. package/weapon/WeaponTint.js +46 -0
  229. package/weaponComponent/ComponentAttachmentPoint.js +22 -0
  230. package/weaponComponent/ComponentAttachmentPointByHash.js +307 -0
  231. package/weaponComponent/ComponentDisplayNameByHash.js +278 -0
  232. package/weaponComponent/DlcWeaponComponentData.js +40 -0
  233. package/weaponComponent/InvalidWeaponComponent.d.ts +1 -1
  234. package/weaponComponent/InvalidWeaponComponent.js +31 -0
  235. package/weaponComponent/WeaponComponent.d.ts +4 -4
  236. package/weaponComponent/WeaponComponent.js +124 -0
  237. package/weaponComponent/WeaponComponentCollection.d.ts +2 -2
  238. package/weaponComponent/WeaponComponentCollection.js +187 -0
  239. package/weaponComponent/WeaponComponentHash.js +670 -0
  240. package/weaponComponent/WeaponComponentHashesByWeaponHash.d.ts +1 -1
  241. package/weaponComponent/WeaponComponentHashesByWeaponHash.js +864 -0
  242. package/weaponComponent/WeaponComponentHudStats.js +33 -0
  243. package/common/index.d.ts +0 -8
  244. package/common/utils/Vector2.d.ts +0 -1
  245. package/common/utils/Vector3.d.ts +0 -1
  246. package/common/utils/Vector4.d.ts +0 -1
  247. package/common/utils/index.d.ts +0 -12
  248. package/enums/index.d.ts +0 -42
  249. package/hashes/index.d.ts +0 -5
  250. package/index.d.ts +0 -25
  251. package/models/index.d.ts +0 -18
  252. package/ui/index.d.ts +0 -15
  253. package/ui/interfaces/index.d.ts +0 -2
  254. package/ui/menu/index.d.ts +0 -6
  255. package/ui/menu/items/index.d.ts +0 -6
  256. package/ui/menu/items/panels/index.d.ts +0 -6
  257. package/ui/menu/modules/index.d.ts +0 -1
  258. package/utils/PointF.d.ts +0 -7
  259. package/utils/Quaternion.d.ts +0 -10
  260. package/utils/enumValues.d.ts +0 -12
  261. package/utils/getStringFromUInt8Array.d.ts +0 -8
  262. package/utils/getUInt32FromUint8Array.d.ts +0 -8
  263. package/utils/index.d.ts +0 -9
  264. package/weapon/index.d.ts +0 -8
  265. package/weaponComponent/index.d.ts +0 -5
@@ -0,0 +1,307 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ import { WeaponComponentHash } from "./WeaponComponentHash";
4
+ import { ComponentAttachmentPoint } from "./ComponentAttachmentPoint";
5
+ import { DlcWeaponComponentData } from "./DlcWeaponComponentData";
6
+ const ComponentAttachmentPointByHash = /* @__PURE__ */ new Map([
7
+ [WeaponComponentHash.PistolClip01, ComponentAttachmentPoint.Clip],
8
+ [WeaponComponentHash.PistolClip02, ComponentAttachmentPoint.Clip],
9
+ [WeaponComponentHash.CombatPistolClip01, ComponentAttachmentPoint.Clip],
10
+ [WeaponComponentHash.CombatPistolClip02, ComponentAttachmentPoint.Clip],
11
+ [WeaponComponentHash.APPistolClip01, ComponentAttachmentPoint.Clip],
12
+ [WeaponComponentHash.APPistolClip02, ComponentAttachmentPoint.Clip],
13
+ [WeaponComponentHash.MicroSMGClip01, ComponentAttachmentPoint.Clip],
14
+ [WeaponComponentHash.MicroSMGClip02, ComponentAttachmentPoint.Clip],
15
+ [WeaponComponentHash.SMGClip01, ComponentAttachmentPoint.Clip],
16
+ [WeaponComponentHash.SMGClip02, ComponentAttachmentPoint.Clip],
17
+ [WeaponComponentHash.SMGClip03, ComponentAttachmentPoint.Clip],
18
+ [WeaponComponentHash.AssaultRifleClip01, ComponentAttachmentPoint.Clip],
19
+ [WeaponComponentHash.AssaultRifleClip02, ComponentAttachmentPoint.Clip],
20
+ [WeaponComponentHash.AssaultRifleClip03, ComponentAttachmentPoint.Clip],
21
+ [WeaponComponentHash.CarbineRifleClip01, ComponentAttachmentPoint.Clip],
22
+ [WeaponComponentHash.CarbineRifleClip02, ComponentAttachmentPoint.Clip],
23
+ [WeaponComponentHash.CarbineRifleClip03, ComponentAttachmentPoint.Clip],
24
+ [WeaponComponentHash.AdvancedRifleClip01, ComponentAttachmentPoint.Clip],
25
+ [WeaponComponentHash.AdvancedRifleClip02, ComponentAttachmentPoint.Clip],
26
+ [WeaponComponentHash.MGClip01, ComponentAttachmentPoint.Clip],
27
+ [WeaponComponentHash.MGClip02, ComponentAttachmentPoint.Clip],
28
+ [WeaponComponentHash.CombatMGClip01, ComponentAttachmentPoint.Clip],
29
+ [WeaponComponentHash.CombatMGClip02, ComponentAttachmentPoint.Clip],
30
+ [WeaponComponentHash.PumpShotgunClip01, ComponentAttachmentPoint.Clip],
31
+ [WeaponComponentHash.AssaultShotgunClip01, ComponentAttachmentPoint.Clip],
32
+ [WeaponComponentHash.AssaultShotgunClip02, ComponentAttachmentPoint.Clip],
33
+ [WeaponComponentHash.SniperRifleClip01, ComponentAttachmentPoint.Clip],
34
+ [WeaponComponentHash.HeavySniperClip01, ComponentAttachmentPoint.Clip],
35
+ [WeaponComponentHash.MinigunClip01, ComponentAttachmentPoint.Clip],
36
+ [WeaponComponentHash.AssaultSMGClip01, ComponentAttachmentPoint.Clip],
37
+ [WeaponComponentHash.AssaultSMGClip02, ComponentAttachmentPoint.Clip],
38
+ [WeaponComponentHash.BullpupShotgunClip01, ComponentAttachmentPoint.Clip],
39
+ [WeaponComponentHash.Pistol50Clip01, ComponentAttachmentPoint.Clip],
40
+ [WeaponComponentHash.Pistol50Clip02, ComponentAttachmentPoint.Clip],
41
+ [WeaponComponentHash.SawnoffShotgunClip01, ComponentAttachmentPoint.Clip],
42
+ [WeaponComponentHash.PistolMk2ClipNormal, ComponentAttachmentPoint.Clip],
43
+ [WeaponComponentHash.PistolMk2ClipExtended, ComponentAttachmentPoint.Clip],
44
+ [WeaponComponentHash.PistolMk2ClipFMJ, ComponentAttachmentPoint.Clip],
45
+ [WeaponComponentHash.PistolMk2ClipHollowpoint, ComponentAttachmentPoint.Clip],
46
+ [WeaponComponentHash.PistolMk2ClipIncendiary, ComponentAttachmentPoint.Clip],
47
+ [WeaponComponentHash.PistolMk2ClipTracer, ComponentAttachmentPoint.Clip],
48
+ [WeaponComponentHash.AssaultRifleMk2ClipNormal, ComponentAttachmentPoint.Clip],
49
+ [WeaponComponentHash.AssaultRifleMk2ClipExtended, ComponentAttachmentPoint.Clip],
50
+ [WeaponComponentHash.AssaultRifleMk2ClipFMJ, ComponentAttachmentPoint.Clip],
51
+ [WeaponComponentHash.AssaultRifleMk2ClipArmorPiercing, ComponentAttachmentPoint.Clip],
52
+ [WeaponComponentHash.AssaultRifleMk2ClipIncendiary, ComponentAttachmentPoint.Clip],
53
+ [WeaponComponentHash.AssaultRifleMk2ClipTracer, ComponentAttachmentPoint.Clip],
54
+ [WeaponComponentHash.CarbineRifleMk2ClipNormal, ComponentAttachmentPoint.Clip],
55
+ [WeaponComponentHash.CarbineRifleMk2ClipExtended, ComponentAttachmentPoint.Clip],
56
+ [WeaponComponentHash.CarbineRifleMk2ClipFMJ, ComponentAttachmentPoint.Clip],
57
+ [WeaponComponentHash.CarbineRifleMk2ClipArmorPiercing, ComponentAttachmentPoint.Clip],
58
+ [WeaponComponentHash.CarbineRifleMk2ClipIncendiary, ComponentAttachmentPoint.Clip],
59
+ [WeaponComponentHash.CarbineRifleMk2ClipTracer, ComponentAttachmentPoint.Clip],
60
+ [WeaponComponentHash.CombatMGMk2ClipNormal, ComponentAttachmentPoint.Clip],
61
+ [WeaponComponentHash.CombatMGMk2ClipExtended, ComponentAttachmentPoint.Clip],
62
+ [WeaponComponentHash.CombatMGMk2ClipFMJ, ComponentAttachmentPoint.Clip],
63
+ [WeaponComponentHash.CombatMGMk2ClipArmorPiercing, ComponentAttachmentPoint.Clip],
64
+ [WeaponComponentHash.CombatMGMk2ClipIncendiary, ComponentAttachmentPoint.Clip],
65
+ [WeaponComponentHash.CombatMGMk2ClipTracer, ComponentAttachmentPoint.Clip],
66
+ [WeaponComponentHash.HeavySniperMk2ClipNormal, ComponentAttachmentPoint.Clip],
67
+ [WeaponComponentHash.HeavySniperMk2ClipExtended, ComponentAttachmentPoint.Clip],
68
+ [WeaponComponentHash.HeavySniperMk2ClipFMJ, ComponentAttachmentPoint.Clip],
69
+ [WeaponComponentHash.HeavySniperMk2ClipArmorPiercing, ComponentAttachmentPoint.Clip],
70
+ [WeaponComponentHash.HeavySniperMk2ClipIncendiary, ComponentAttachmentPoint.Clip],
71
+ [WeaponComponentHash.HeavySniperMk2ClipExplosive, ComponentAttachmentPoint.Clip],
72
+ [WeaponComponentHash.SMGMk2ClipNormal, ComponentAttachmentPoint.Clip],
73
+ [WeaponComponentHash.SMGMk2ClipExtended, ComponentAttachmentPoint.Clip],
74
+ [WeaponComponentHash.SMGMk2ClipFMJ, ComponentAttachmentPoint.Clip],
75
+ [WeaponComponentHash.SMGMk2ClipHollowpoint, ComponentAttachmentPoint.Clip],
76
+ [WeaponComponentHash.SMGMk2ClipIncendiary, ComponentAttachmentPoint.Clip],
77
+ [WeaponComponentHash.SMGMk2ClipTracer, ComponentAttachmentPoint.Clip],
78
+ [WeaponComponentHash.AtPiFlsh, ComponentAttachmentPoint.FlashLaser],
79
+ [WeaponComponentHash.AtPiFlsh, ComponentAttachmentPoint.FlashLaser],
80
+ [WeaponComponentHash.AtPiFlsh, ComponentAttachmentPoint.FlashLaser],
81
+ [WeaponComponentHash.AtPiFlsh, ComponentAttachmentPoint.FlashLaser],
82
+ [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
83
+ [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
84
+ [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
85
+ [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
86
+ [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
87
+ [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
88
+ [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
89
+ [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
90
+ [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
91
+ [WeaponComponentHash.AtPiFlsh, ComponentAttachmentPoint.FlashLaser],
92
+ [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
93
+ [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
94
+ [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
95
+ [WeaponComponentHash.PistolMk2Compensator, ComponentAttachmentPoint.Supp],
96
+ [WeaponComponentHash.AtPiSupp02, ComponentAttachmentPoint.Supp],
97
+ [WeaponComponentHash.AtPiSupp, ComponentAttachmentPoint.Supp],
98
+ [WeaponComponentHash.AtPiSupp, ComponentAttachmentPoint.Supp],
99
+ [WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp],
100
+ [WeaponComponentHash.AtPiSupp, ComponentAttachmentPoint.Supp],
101
+ [WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp],
102
+ [WeaponComponentHash.AtArSupp, ComponentAttachmentPoint.Supp],
103
+ [WeaponComponentHash.AtArSupp, ComponentAttachmentPoint.Supp],
104
+ [WeaponComponentHash.AtArSupp, ComponentAttachmentPoint.Supp],
105
+ [WeaponComponentHash.AtArSupp, ComponentAttachmentPoint.Supp],
106
+ [WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp],
107
+ [WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp],
108
+ [WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp],
109
+ [WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp],
110
+ [WeaponComponentHash.AtPiSupp02, ComponentAttachmentPoint.Supp],
111
+ [WeaponComponentHash.AtMuzzle1, ComponentAttachmentPoint.Supp],
112
+ [WeaponComponentHash.AtMuzzle2, ComponentAttachmentPoint.Supp],
113
+ [WeaponComponentHash.AtMuzzle3, ComponentAttachmentPoint.Supp],
114
+ [WeaponComponentHash.AtMuzzle4, ComponentAttachmentPoint.Supp],
115
+ [WeaponComponentHash.AtMuzzle5, ComponentAttachmentPoint.Supp],
116
+ [WeaponComponentHash.AtMuzzle6, ComponentAttachmentPoint.Supp],
117
+ [WeaponComponentHash.AtMuzzle7, ComponentAttachmentPoint.Supp],
118
+ [WeaponComponentHash.HeavySniperMk2Suppressor, ComponentAttachmentPoint.Supp],
119
+ [WeaponComponentHash.HeavySniperMk2Muzzle8, ComponentAttachmentPoint.Supp],
120
+ [WeaponComponentHash.HeavySniperMk2Muzzle9, ComponentAttachmentPoint.Supp],
121
+ [WeaponComponentHash.AtArSupp, ComponentAttachmentPoint.Supp2],
122
+ [WeaponComponentHash.AtMuzzle1, ComponentAttachmentPoint.Supp2],
123
+ [WeaponComponentHash.AtMuzzle2, ComponentAttachmentPoint.Supp2],
124
+ [WeaponComponentHash.AtMuzzle3, ComponentAttachmentPoint.Supp2],
125
+ [WeaponComponentHash.AtMuzzle4, ComponentAttachmentPoint.Supp2],
126
+ [WeaponComponentHash.AtMuzzle5, ComponentAttachmentPoint.Supp2],
127
+ [WeaponComponentHash.AtMuzzle6, ComponentAttachmentPoint.Supp2],
128
+ [WeaponComponentHash.AtMuzzle7, ComponentAttachmentPoint.Supp2],
129
+ [WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp2],
130
+ [WeaponComponentHash.AtMuzzle1, ComponentAttachmentPoint.Supp2],
131
+ [WeaponComponentHash.AtMuzzle2, ComponentAttachmentPoint.Supp2],
132
+ [WeaponComponentHash.AtMuzzle3, ComponentAttachmentPoint.Supp2],
133
+ [WeaponComponentHash.AtMuzzle4, ComponentAttachmentPoint.Supp2],
134
+ [WeaponComponentHash.AtMuzzle5, ComponentAttachmentPoint.Supp2],
135
+ [WeaponComponentHash.AtMuzzle6, ComponentAttachmentPoint.Supp2],
136
+ [WeaponComponentHash.AtMuzzle7, ComponentAttachmentPoint.Supp2],
137
+ [WeaponComponentHash.AtPiSupp, ComponentAttachmentPoint.Supp2],
138
+ [WeaponComponentHash.AtMuzzle1, ComponentAttachmentPoint.Supp2],
139
+ [WeaponComponentHash.AtMuzzle2, ComponentAttachmentPoint.Supp2],
140
+ [WeaponComponentHash.AtMuzzle3, ComponentAttachmentPoint.Supp2],
141
+ [WeaponComponentHash.AtMuzzle4, ComponentAttachmentPoint.Supp2],
142
+ [WeaponComponentHash.AtMuzzle5, ComponentAttachmentPoint.Supp2],
143
+ [WeaponComponentHash.AtMuzzle6, ComponentAttachmentPoint.Supp2],
144
+ [WeaponComponentHash.AtMuzzle7, ComponentAttachmentPoint.Supp2],
145
+ [WeaponComponentHash.PistolVarmodLuxe, ComponentAttachmentPoint.GunRoot],
146
+ [WeaponComponentHash.CombatPistolVarmodLowrider, ComponentAttachmentPoint.GunRoot],
147
+ [WeaponComponentHash.APPistolVarmodLuxe, ComponentAttachmentPoint.GunRoot],
148
+ [WeaponComponentHash.MicroSMGVarmodLuxe, ComponentAttachmentPoint.GunRoot],
149
+ [WeaponComponentHash.SMGVarmodLuxe, ComponentAttachmentPoint.GunRoot],
150
+ [WeaponComponentHash.AssaultRifleVarmodLuxe, ComponentAttachmentPoint.GunRoot],
151
+ [WeaponComponentHash.CarbineRifleVarmodLuxe, ComponentAttachmentPoint.GunRoot],
152
+ [WeaponComponentHash.AdvancedRifleVarmodLuxe, ComponentAttachmentPoint.GunRoot],
153
+ [WeaponComponentHash.MGVarmodLowrider, ComponentAttachmentPoint.GunRoot],
154
+ [WeaponComponentHash.CombatMGVarmodLowrider, ComponentAttachmentPoint.GunRoot],
155
+ [WeaponComponentHash.PumpShotgunVarmodLowrider, ComponentAttachmentPoint.GunRoot],
156
+ [WeaponComponentHash.SniperRifleVarmodLuxe, ComponentAttachmentPoint.GunRoot],
157
+ [WeaponComponentHash.AssaultSMGVarmodLowrider, ComponentAttachmentPoint.GunRoot],
158
+ [WeaponComponentHash.Pistol50VarmodLuxe, ComponentAttachmentPoint.GunRoot],
159
+ [WeaponComponentHash.SawnoffShotgunVarmodLuxe, ComponentAttachmentPoint.GunRoot],
160
+ [WeaponComponentHash.PistolMk2CamoDigital, ComponentAttachmentPoint.GunRoot],
161
+ [WeaponComponentHash.PistolMk2CamoBrushstroke, ComponentAttachmentPoint.GunRoot],
162
+ [WeaponComponentHash.PistolMk2CamoWoodland, ComponentAttachmentPoint.GunRoot],
163
+ [WeaponComponentHash.PistolMk2CamoSkull, ComponentAttachmentPoint.GunRoot],
164
+ [WeaponComponentHash.PistolMk2CamoSessanta, ComponentAttachmentPoint.GunRoot],
165
+ [WeaponComponentHash.PistolMk2CamoPerseus, ComponentAttachmentPoint.GunRoot],
166
+ [WeaponComponentHash.PistolMk2CamoLeopard, ComponentAttachmentPoint.GunRoot],
167
+ [WeaponComponentHash.PistolMk2CamoZebra, ComponentAttachmentPoint.GunRoot],
168
+ [WeaponComponentHash.PistolMk2CamoGeometric, ComponentAttachmentPoint.GunRoot],
169
+ [WeaponComponentHash.PistolMk2CamoBoom, ComponentAttachmentPoint.GunRoot],
170
+ [WeaponComponentHash.PistolMk2CamoPatriotic, ComponentAttachmentPoint.GunRoot],
171
+ [WeaponComponentHash.AssaultRifleMk2CamoDigital, ComponentAttachmentPoint.GunRoot],
172
+ [WeaponComponentHash.AssaultRifleMk2CamoBrushstroke, ComponentAttachmentPoint.GunRoot],
173
+ [WeaponComponentHash.AssaultRifleMk2CamoWoodland, ComponentAttachmentPoint.GunRoot],
174
+ [WeaponComponentHash.AssaultRifleMk2CamoSkull, ComponentAttachmentPoint.GunRoot],
175
+ [WeaponComponentHash.AssaultRifleMk2CamoSessanta, ComponentAttachmentPoint.GunRoot],
176
+ [WeaponComponentHash.AssaultRifleMk2CamoPerseus, ComponentAttachmentPoint.GunRoot],
177
+ [WeaponComponentHash.AssaultRifleMk2CamoLeopard, ComponentAttachmentPoint.GunRoot],
178
+ [WeaponComponentHash.AssaultRifleMk2CamoZebra, ComponentAttachmentPoint.GunRoot],
179
+ [WeaponComponentHash.AssaultRifleMk2CamoGeometric, ComponentAttachmentPoint.GunRoot],
180
+ [WeaponComponentHash.AssaultRifleMk2CamoBoom, ComponentAttachmentPoint.GunRoot],
181
+ [WeaponComponentHash.AssaultRifleMk2CamoPatriotic, ComponentAttachmentPoint.GunRoot],
182
+ [WeaponComponentHash.CarbineRifleMk2CamoDigital, ComponentAttachmentPoint.GunRoot],
183
+ [WeaponComponentHash.CarbineRifleMk2CamoBrushstroke, ComponentAttachmentPoint.GunRoot],
184
+ [WeaponComponentHash.CarbineRifleMk2CamoWoodland, ComponentAttachmentPoint.GunRoot],
185
+ [WeaponComponentHash.CarbineRifleMk2CamoSkull, ComponentAttachmentPoint.GunRoot],
186
+ [WeaponComponentHash.CarbineRifleMk2CamoSessanta, ComponentAttachmentPoint.GunRoot],
187
+ [WeaponComponentHash.CarbineRifleMk2CamoPerseus, ComponentAttachmentPoint.GunRoot],
188
+ [WeaponComponentHash.CarbineRifleMk2CamoLeopard, ComponentAttachmentPoint.GunRoot],
189
+ [WeaponComponentHash.CarbineRifleMk2CamoZebra, ComponentAttachmentPoint.GunRoot],
190
+ [WeaponComponentHash.CarbineRifleMk2CamoGeometric, ComponentAttachmentPoint.GunRoot],
191
+ [WeaponComponentHash.CarbineRifleMk2CamoBoom, ComponentAttachmentPoint.GunRoot],
192
+ [WeaponComponentHash.CarbineRifleMk2CamoPatriotic, ComponentAttachmentPoint.GunRoot],
193
+ [WeaponComponentHash.CombatMGMk2CamoDigital, ComponentAttachmentPoint.GunRoot],
194
+ [WeaponComponentHash.CombatMGMk2CamoBrushstroke, ComponentAttachmentPoint.GunRoot],
195
+ [WeaponComponentHash.CombatMGMk2CamoWoodland, ComponentAttachmentPoint.GunRoot],
196
+ [WeaponComponentHash.CombatMGMk2CamoSkull, ComponentAttachmentPoint.GunRoot],
197
+ [WeaponComponentHash.CombatMGMk2CamoSessanta, ComponentAttachmentPoint.GunRoot],
198
+ [WeaponComponentHash.CombatMGMk2CamoPerseus, ComponentAttachmentPoint.GunRoot],
199
+ [WeaponComponentHash.CombatMGMk2CamoLeopard, ComponentAttachmentPoint.GunRoot],
200
+ [WeaponComponentHash.CombatMGMk2CamoZebra, ComponentAttachmentPoint.GunRoot],
201
+ [WeaponComponentHash.CombatMGMk2CamoGeometric, ComponentAttachmentPoint.GunRoot],
202
+ [WeaponComponentHash.CombatMGMk2CamoBoom, ComponentAttachmentPoint.GunRoot],
203
+ [WeaponComponentHash.CombatMGMk2CamoPatriotic, ComponentAttachmentPoint.GunRoot],
204
+ [WeaponComponentHash.HeavySniperMk2CamoDigital, ComponentAttachmentPoint.GunRoot],
205
+ [WeaponComponentHash.HeavySniperMk2CamoBrushstroke, ComponentAttachmentPoint.GunRoot],
206
+ [WeaponComponentHash.HeavySniperMk2CamoWoodland, ComponentAttachmentPoint.GunRoot],
207
+ [WeaponComponentHash.HeavySniperMk2CamoSkull, ComponentAttachmentPoint.GunRoot],
208
+ [WeaponComponentHash.HeavySniperMk2CamoSessanta, ComponentAttachmentPoint.GunRoot],
209
+ [WeaponComponentHash.HeavySniperMk2CamoPerseus, ComponentAttachmentPoint.GunRoot],
210
+ [WeaponComponentHash.HeavySniperMk2CamoLeopard, ComponentAttachmentPoint.GunRoot],
211
+ [WeaponComponentHash.HeavySniperMk2CamoZebra, ComponentAttachmentPoint.GunRoot],
212
+ [WeaponComponentHash.HeavySniperMk2CamoGeometric, ComponentAttachmentPoint.GunRoot],
213
+ [WeaponComponentHash.HeavySniperMk2CamoBoom, ComponentAttachmentPoint.GunRoot],
214
+ [WeaponComponentHash.HeavySniperMk2CamoPatriotic, ComponentAttachmentPoint.GunRoot],
215
+ [WeaponComponentHash.SMGMk2CamoDigital, ComponentAttachmentPoint.GunRoot],
216
+ [WeaponComponentHash.SMGMk2CamoBrushstroke, ComponentAttachmentPoint.GunRoot],
217
+ [WeaponComponentHash.SMGMk2CamoWoodland, ComponentAttachmentPoint.GunRoot],
218
+ [WeaponComponentHash.SMGMk2CamoSkull, ComponentAttachmentPoint.GunRoot],
219
+ [WeaponComponentHash.SMGMk2CamoSessanta, ComponentAttachmentPoint.GunRoot],
220
+ [WeaponComponentHash.SMGMk2CamoPerseus, ComponentAttachmentPoint.GunRoot],
221
+ [WeaponComponentHash.SMGMk2CamoLeopard, ComponentAttachmentPoint.GunRoot],
222
+ [WeaponComponentHash.SMGMk2CamoZebra, ComponentAttachmentPoint.GunRoot],
223
+ [WeaponComponentHash.SMGMk2CamoGeometric, ComponentAttachmentPoint.GunRoot],
224
+ [WeaponComponentHash.SMGMk2CamoBoom, ComponentAttachmentPoint.GunRoot],
225
+ [WeaponComponentHash.SMGMk2CamoPatriotic, ComponentAttachmentPoint.GunRoot],
226
+ [WeaponComponentHash.AtScopeMacro, ComponentAttachmentPoint.Scope],
227
+ [WeaponComponentHash.AtScopeMacro02, ComponentAttachmentPoint.Scope],
228
+ [WeaponComponentHash.AtScopeMacro, ComponentAttachmentPoint.Scope],
229
+ [WeaponComponentHash.AtScopeMedium, ComponentAttachmentPoint.Scope],
230
+ [WeaponComponentHash.AtScopeSmall, ComponentAttachmentPoint.Scope],
231
+ [WeaponComponentHash.AtScopeSmall02, ComponentAttachmentPoint.Scope],
232
+ [WeaponComponentHash.AtScopeMedium, ComponentAttachmentPoint.Scope],
233
+ [WeaponComponentHash.AtScopeLarge, ComponentAttachmentPoint.Scope],
234
+ [WeaponComponentHash.AtScopeMax, ComponentAttachmentPoint.Scope],
235
+ [WeaponComponentHash.AtScopeLarge, ComponentAttachmentPoint.Scope],
236
+ [WeaponComponentHash.AtScopeMax, ComponentAttachmentPoint.Scope],
237
+ [WeaponComponentHash.AtScopeSmall, ComponentAttachmentPoint.Scope],
238
+ [WeaponComponentHash.AtScopeMacro, ComponentAttachmentPoint.Scope],
239
+ [WeaponComponentHash.PistolMk2Scope, ComponentAttachmentPoint.Scope],
240
+ [WeaponComponentHash.PistolMk2Flash, ComponentAttachmentPoint.Scope],
241
+ [WeaponComponentHash.HeavySniperMk2ScopeLarge, ComponentAttachmentPoint.Scope],
242
+ [WeaponComponentHash.AtScopeMax, ComponentAttachmentPoint.Scope],
243
+ [WeaponComponentHash.HeavySniperMk2ScopeNightvision, ComponentAttachmentPoint.Scope],
244
+ [WeaponComponentHash.HeavySniperMk2ScopeThermal, ComponentAttachmentPoint.Scope],
245
+ [WeaponComponentHash.SMGMk2Sights, ComponentAttachmentPoint.Scope],
246
+ [WeaponComponentHash.SMGMk2ScopeMacro, ComponentAttachmentPoint.Scope],
247
+ [WeaponComponentHash.SMGMk2ScopeSmall, ComponentAttachmentPoint.Scope],
248
+ [WeaponComponentHash.PistolMk2CamoSlideDigital, ComponentAttachmentPoint.Scope2],
249
+ [WeaponComponentHash.PistolMk2CamoSlideBrushstroke, ComponentAttachmentPoint.Scope2],
250
+ [WeaponComponentHash.PistolMk2CamoSlideWoodland, ComponentAttachmentPoint.Scope2],
251
+ [WeaponComponentHash.PistolMk2CamoSlideSkull, ComponentAttachmentPoint.Scope2],
252
+ [WeaponComponentHash.PistolMk2CamoSlideSessanta, ComponentAttachmentPoint.Scope2],
253
+ [WeaponComponentHash.PistolMk2CamoSlidePerseus, ComponentAttachmentPoint.Scope2],
254
+ [WeaponComponentHash.PistolMk2CamoSlideLeopard, ComponentAttachmentPoint.Scope2],
255
+ [WeaponComponentHash.PistolMk2CamoSlideZebra, ComponentAttachmentPoint.Scope2],
256
+ [WeaponComponentHash.PistolMk2CamoSlideGeometric, ComponentAttachmentPoint.Scope2],
257
+ [WeaponComponentHash.PistolMk2CamoSlideBoom, ComponentAttachmentPoint.Scope2],
258
+ [WeaponComponentHash.PistolMk2CamoSlidePatriotic, ComponentAttachmentPoint.Scope2],
259
+ [WeaponComponentHash.AtSights, ComponentAttachmentPoint.Scope2],
260
+ [WeaponComponentHash.AtScopeMacroMk2, ComponentAttachmentPoint.Scope2],
261
+ [WeaponComponentHash.AtScopeMediumMk2, ComponentAttachmentPoint.Scope2],
262
+ [WeaponComponentHash.AtSights, ComponentAttachmentPoint.Scope2],
263
+ [WeaponComponentHash.AtScopeSmallMk2, ComponentAttachmentPoint.Scope2],
264
+ [WeaponComponentHash.AtScopeMediumMk2, ComponentAttachmentPoint.Scope2],
265
+ [WeaponComponentHash.AtSights, ComponentAttachmentPoint.Scope2],
266
+ [WeaponComponentHash.AtScopeMacroMk2, ComponentAttachmentPoint.Scope2],
267
+ [WeaponComponentHash.AtScopeMediumMk2, ComponentAttachmentPoint.Scope2],
268
+ [WeaponComponentHash.AtArAfGrip, ComponentAttachmentPoint.Grip2],
269
+ [WeaponComponentHash.AtArAfGrip, ComponentAttachmentPoint.Grip2],
270
+ [WeaponComponentHash.AtArAfGrip, ComponentAttachmentPoint.Grip2],
271
+ [WeaponComponentHash.AtArAfGrip, ComponentAttachmentPoint.Grip2],
272
+ [WeaponComponentHash.GrenadeLauncherClip01, ComponentAttachmentPoint.Grip2],
273
+ [WeaponComponentHash.AtArAfGrip, ComponentAttachmentPoint.Grip2],
274
+ [WeaponComponentHash.AtArAfGrip, ComponentAttachmentPoint.Grip2],
275
+ [WeaponComponentHash.AtArAfGrip2, ComponentAttachmentPoint.Grip2],
276
+ [WeaponComponentHash.AtArAfGrip2, ComponentAttachmentPoint.Grip2],
277
+ [WeaponComponentHash.AtArAfGrip2, ComponentAttachmentPoint.Grip2],
278
+ [WeaponComponentHash.AtArAfGrip2, ComponentAttachmentPoint.Grip2],
279
+ [WeaponComponentHash.AtRailCover01, ComponentAttachmentPoint.Rail],
280
+ [WeaponComponentHash.AssaultRifleMk2BarrelNormal, ComponentAttachmentPoint.Barrel],
281
+ [WeaponComponentHash.AssaultRifleMk2BarrelHeavy, ComponentAttachmentPoint.Barrel],
282
+ [WeaponComponentHash.CarbineRifleMk2BarrelNormal, ComponentAttachmentPoint.Barrel],
283
+ [WeaponComponentHash.CarbineRifleMk2BarrelHeavy, ComponentAttachmentPoint.Barrel],
284
+ [WeaponComponentHash.CombatMGMk2BarrelNormal, ComponentAttachmentPoint.Barrel],
285
+ [WeaponComponentHash.CombatMGMk2BarrelHeavy, ComponentAttachmentPoint.Barrel],
286
+ [WeaponComponentHash.HeavySniperMk2BarrelNormal, ComponentAttachmentPoint.Barrel],
287
+ [WeaponComponentHash.HeavySniperMk2BarrelHeavy, ComponentAttachmentPoint.Barrel],
288
+ [WeaponComponentHash.SMGMk2BarrelNormal, ComponentAttachmentPoint.Barrel],
289
+ [WeaponComponentHash.SMGMk2BarrelHeavy, ComponentAttachmentPoint.Barrel]
290
+ ]);
291
+ function initializeOnce() {
292
+ let isInitialized = false;
293
+ return () => {
294
+ if (isInitialized) {
295
+ return;
296
+ }
297
+ for (const [hash, data] of DlcWeaponComponentData) {
298
+ ComponentAttachmentPointByHash.set(hash, data.attachBone);
299
+ }
300
+ isInitialized = true;
301
+ };
302
+ }
303
+ __name(initializeOnce, "initializeOnce");
304
+ initializeOnce()();
305
+ export {
306
+ ComponentAttachmentPointByHash
307
+ };
@@ -0,0 +1,278 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ import { WeaponComponentHash } from "./WeaponComponentHash";
4
+ import { DlcWeaponComponentData } from "./DlcWeaponComponentData";
5
+ const ComponentDisplayNameByHash = /* @__PURE__ */ new Map([
6
+ [WeaponComponentHash.Invalid, "WCT_INVALID"],
7
+ // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_BASE, 'WT_KNUCKLE'],
8
+ // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_PIMP, 'WCT_KNUCK_02'],
9
+ // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_BALLAS, 'WCT_KNUCK_BG'],
10
+ // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_DOLLAR, 'WCT_KNUCK_DLR'],
11
+ // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_DIAMOND, 'WCT_KNUCK_DMD'],
12
+ // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_HATE, 'WCT_KNUCK_HT'],
13
+ // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_LOVE, 'WCT_KNUCK_LV'],
14
+ // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_PLAYER, 'WCT_KNUCK_PC'],
15
+ // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_KING, 'WCT_KNUCK_SLG'],
16
+ // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_VAGOS, 'WCT_KNUCK_VG'],
17
+ [WeaponComponentHash.KnuckleVarmodBase, "WT_KNUCKLE"],
18
+ [WeaponComponentHash.KnuckleVarmodPimp, "WCT_KNUCK_02"],
19
+ [WeaponComponentHash.KnuckleVarmodBallas, "WCT_KNUCK_BG"],
20
+ [WeaponComponentHash.KnuckleVarmodDollar, "WCT_KNUCK_DLR"],
21
+ [WeaponComponentHash.KnuckleVarmodDiamond, "WCT_KNUCK_DMD"],
22
+ [WeaponComponentHash.KnuckleVarmodHate, "WCT_KNUCK_HT"],
23
+ [WeaponComponentHash.KnuckleVarmodLove, "WCT_KNUCK_LV"],
24
+ [WeaponComponentHash.KnuckleVarmodPlayer, "WCT_KNUCK_PC"],
25
+ [WeaponComponentHash.KnuckleVarmodKing, "WCT_KNUCK_SLG"],
26
+ [WeaponComponentHash.KnuckleVarmodVagos, "WCT_KNUCK_VG"],
27
+ [WeaponComponentHash.Invalid, "WCT_INVALID"],
28
+ [WeaponComponentHash.AtRailCover01, "WCT_RAIL"],
29
+ [WeaponComponentHash.AtArAfGrip, "WCT_GRIP"],
30
+ [WeaponComponentHash.AtArAfGrip2, "WCT_GRIP"],
31
+ [WeaponComponentHash.AtPiFlsh, "WCT_FLASH"],
32
+ [WeaponComponentHash.AtArFlsh, "WCT_FLASH"],
33
+ [WeaponComponentHash.PistolMk2Flash, "WCT_FLASH"],
34
+ [WeaponComponentHash.AtScopeMacro, "WCT_SCOPE_MAC"],
35
+ [WeaponComponentHash.AtScopeMacro02, "WCT_SCOPE_MAC"],
36
+ [WeaponComponentHash.AtScopeSmall, "WCT_SCOPE_SML"],
37
+ [WeaponComponentHash.AtScopeSmall02, "WCT_SCOPE_SML"],
38
+ [WeaponComponentHash.AtScopeMedium, "WCT_SCOPE_MED"],
39
+ [WeaponComponentHash.AtScopeLarge, "WCT_SCOPE_LRG"],
40
+ [WeaponComponentHash.AtScopeMax, "WCT_SCOPE_MAX"],
41
+ [WeaponComponentHash.AtPiSupp, "WCT_SUPP"],
42
+ [WeaponComponentHash.AtArSupp, "WCT_SUPP"],
43
+ [WeaponComponentHash.AtArSupp02, "WCT_SUPP"],
44
+ [WeaponComponentHash.AtSrSupp, "WCT_SUPP"],
45
+ [WeaponComponentHash.HeavySniperMk2Suppressor, "WCT_SUPP"],
46
+ [WeaponComponentHash.AtPiSupp02, "WCT_SUPP"],
47
+ [WeaponComponentHash.CombatPistolClip01, "WCT_CLIP1"],
48
+ [WeaponComponentHash.APPistolClip01, "WCT_CLIP1"],
49
+ [WeaponComponentHash.MicroSMGClip01, "WCT_CLIP1"],
50
+ [WeaponComponentHash.AssaultRifleClip01, "WCT_CLIP1"],
51
+ [WeaponComponentHash.CarbineRifleClip01, "WCT_CLIP1"],
52
+ [WeaponComponentHash.AdvancedRifleClip01, "WCT_CLIP1"],
53
+ [WeaponComponentHash.MGClip01, "WCT_CLIP1"],
54
+ [WeaponComponentHash.CombatMGClip01, "WCT_CLIP1"],
55
+ [WeaponComponentHash.AssaultShotgunClip01, "WCT_CLIP1"],
56
+ [WeaponComponentHash.SniperRifleClip01, "WCT_CLIP1"],
57
+ [WeaponComponentHash.HeavySniperClip01, "WCT_CLIP1"],
58
+ [WeaponComponentHash.AssaultSMGClip01, "WCT_CLIP1"],
59
+ [WeaponComponentHash.Pistol50Clip01, "WCT_CLIP1"],
60
+ [195735895, "WCT_CLIP1"],
61
+ [1525977990, "WCT_CLIP1"],
62
+ [3404452422, "WCT_CLIP1"],
63
+ [4170538377, "WCT_CLIP1"],
64
+ [WeaponComponentHash.SNSPistolClip01, "WCT_CLIP1"],
65
+ [WeaponComponentHash.VintagePistolClip01, "WCT_CLIP1"],
66
+ [WeaponComponentHash.HeavyShotgunClip01, "WCT_CLIP1"],
67
+ [WeaponComponentHash.MarksmanRifleClip01, "WCT_CLIP1"],
68
+ [WeaponComponentHash.CombatPDWClip01, "WCT_CLIP1"],
69
+ [WeaponComponentHash.MarksmanPistolClip01, "WCT_CLIP1"],
70
+ [WeaponComponentHash.MachinePistolClip01, "WCT_CLIP1"],
71
+ [WeaponComponentHash.PistolMk2ClipNormal, "WCT_CLIP1"],
72
+ [WeaponComponentHash.AssaultRifleMk2ClipNormal, "WCT_CLIP1"],
73
+ [WeaponComponentHash.CarbineRifleMk2ClipNormal, "WCT_CLIP1"],
74
+ [WeaponComponentHash.CombatMGMk2ClipNormal, "WCT_CLIP1"],
75
+ [WeaponComponentHash.HeavySniperMk2ClipNormal, "WCT_CLIP1"],
76
+ [WeaponComponentHash.SMGMk2ClipNormal, "WCT_CLIP1"],
77
+ [WeaponComponentHash.PistolClip02, "WCT_CLIP2"],
78
+ [WeaponComponentHash.CombatPistolClip02, "WCT_CLIP2"],
79
+ [WeaponComponentHash.APPistolClip02, "WCT_CLIP2"],
80
+ [WeaponComponentHash.MicroSMGClip02, "WCT_CLIP2"],
81
+ [WeaponComponentHash.SMGClip02, "WCT_CLIP2"],
82
+ [WeaponComponentHash.AssaultRifleClip02, "WCT_CLIP2"],
83
+ [WeaponComponentHash.CarbineRifleClip02, "WCT_CLIP2"],
84
+ [WeaponComponentHash.AdvancedRifleClip02, "WCT_CLIP2"],
85
+ [WeaponComponentHash.MGClip02, "WCT_CLIP2"],
86
+ [WeaponComponentHash.CombatMGClip02, "WCT_CLIP2"],
87
+ [WeaponComponentHash.AssaultShotgunClip02, "WCT_CLIP2"],
88
+ [WeaponComponentHash.MinigunClip01, "WCT_CLIP2"],
89
+ [WeaponComponentHash.AssaultSMGClip02, "WCT_CLIP2"],
90
+ [WeaponComponentHash.Pistol50Clip02, "WCT_CLIP2"],
91
+ [1824470811, "WCT_CLIP2"],
92
+ [3787849722, "WCT_CLIP2"],
93
+ [1048471894, "WCT_CLIP2"],
94
+ [WeaponComponentHash.SNSPistolClip02, "WCT_CLIP2"],
95
+ [WeaponComponentHash.VintagePistolClip02, "WCT_CLIP2"],
96
+ [WeaponComponentHash.HeavyShotgunClip02, "WCT_CLIP2"],
97
+ [WeaponComponentHash.MarksmanRifleClip02, "WCT_CLIP2"],
98
+ [WeaponComponentHash.CombatPDWClip02, "WCT_CLIP2"],
99
+ [WeaponComponentHash.MachinePistolClip02, "WCT_CLIP2"],
100
+ [WeaponComponentHash.PistolMk2ClipExtended, "WCT_CLIP2"],
101
+ [WeaponComponentHash.AssaultRifleMk2ClipExtended, "WCT_CLIP2"],
102
+ [WeaponComponentHash.CarbineRifleMk2ClipExtended, "WCT_CLIP2"],
103
+ [WeaponComponentHash.CombatMGMk2ClipExtended, "WCT_CLIP2"],
104
+ [WeaponComponentHash.HeavySniperMk2ClipExtended, "WCT_CLIP2"],
105
+ [WeaponComponentHash.SMGMk2ClipExtended, "WCT_CLIP2"],
106
+ [WeaponComponentHash.AtScopeLargeFixedZoom, "WCT_SCOPE_LRG"],
107
+ [WeaponComponentHash.AssaultRifleVarmodLuxe, "WCT_VAR_GOLD"],
108
+ [WeaponComponentHash.CarbineRifleVarmodLuxe, "WCT_VAR_GOLD"],
109
+ [WeaponComponentHash.PistolVarmodLuxe, "WCT_VAR_GOLD"],
110
+ [WeaponComponentHash.SMGVarmodLuxe, "WCT_VAR_GOLD"],
111
+ [WeaponComponentHash.MicroSMGVarmodLuxe, "WCT_VAR_GOLD"],
112
+ [371102273, "WCT_VAR_GOLD"],
113
+ [WeaponComponentHash.AssaultSMGVarmodLowrider, "WCT_VAR_GOLD"],
114
+ [WeaponComponentHash.CombatPistolVarmodLowrider, "WCT_VAR_GOLD"],
115
+ [WeaponComponentHash.MGVarmodLowrider, "WCT_VAR_GOLD"],
116
+ [WeaponComponentHash.PumpShotgunVarmodLowrider, "WCT_VAR_GOLD"],
117
+ [WeaponComponentHash.AdvancedRifleVarmodLuxe, "WCT_VAR_METAL"],
118
+ [WeaponComponentHash.APPistolVarmodLuxe, "WCT_VAR_METAL"],
119
+ [WeaponComponentHash.SawnoffShotgunVarmodLuxe, "WCT_VAR_METAL"],
120
+ [WeaponComponentHash.BullpupRifleVarmodLow, "WCT_VAR_METAL"],
121
+ [WeaponComponentHash.Pistol50VarmodLuxe, "WCT_VAR_SIL"],
122
+ [WeaponComponentHash.HeavyPistolVarmodLuxe, "WCT_VAR_WOOD"],
123
+ [WeaponComponentHash.SniperRifleVarmodLuxe, "WCT_VAR_WOOD"],
124
+ [WeaponComponentHash.SNSPistolVarmodLowrider, "WCT_VAR_WOOD"],
125
+ [WeaponComponentHash.CombatMGVarmodLowrider, "WCT_VAR_ETCHM"],
126
+ [WeaponComponentHash.SpecialCarbineVarmodLowrider, "WCT_VAR_ETCHM"],
127
+ [WeaponComponentHash.SwitchbladeVarmodBase, "WCT_SB_BASE"],
128
+ [WeaponComponentHash.SwitchbladeVarmodVar1, "WCT_SB_VAR1"],
129
+ [WeaponComponentHash.SwitchbladeVarmodVar2, "WCT_SB_VAR2"],
130
+ [WeaponComponentHash.RevolverClip01, "WCT_CLIP1"],
131
+ [WeaponComponentHash.RevolverVarmodBoss, "WCT_REV_VARB"],
132
+ [WeaponComponentHash.RevolverVarmodGoon, "WCT_REV_VARG"],
133
+ [WeaponComponentHash.SMGClip03, "WCT_CLIP_DRM"],
134
+ [WeaponComponentHash.AssaultRifleClip03, "WCT_CLIP_DRM"],
135
+ [WeaponComponentHash.HeavyShotgunClip03, "WCT_CLIP_DRM"],
136
+ [WeaponComponentHash.CarbineRifleClip03, "WCT_CLIP_BOX"],
137
+ [WeaponComponentHash.AssaultRifleMk2ClipArmorPiercing, "WCT_CLIP_AP"],
138
+ [WeaponComponentHash.CarbineRifleMk2ClipArmorPiercing, "WCT_CLIP_AP"],
139
+ [WeaponComponentHash.CombatMGMk2ClipArmorPiercing, "WCT_CLIP_AP"],
140
+ [WeaponComponentHash.HeavySniperMk2ClipArmorPiercing, "WCT_CLIP_AP"],
141
+ [WeaponComponentHash.PistolMk2ClipFMJ, "WCT_CLIP_FMJ"],
142
+ [WeaponComponentHash.AssaultRifleMk2ClipFMJ, "WCT_CLIP_FMJ"],
143
+ [WeaponComponentHash.CarbineRifleMk2ClipFMJ, "WCT_CLIP_FMJ"],
144
+ [WeaponComponentHash.CombatMGMk2ClipFMJ, "WCT_CLIP_FMJ"],
145
+ [WeaponComponentHash.HeavySniperMk2ClipFMJ, "WCT_CLIP_FMJ"],
146
+ [WeaponComponentHash.SMGMk2ClipFMJ, "WCT_CLIP_FMJ"],
147
+ [WeaponComponentHash.PistolMk2ClipIncendiary, "WCT_CLIP_INC"],
148
+ [WeaponComponentHash.AssaultRifleMk2ClipIncendiary, "WCT_CLIP_INC"],
149
+ [WeaponComponentHash.CarbineRifleMk2ClipIncendiary, "WCT_CLIP_INC"],
150
+ [WeaponComponentHash.CombatMGMk2ClipIncendiary, "WCT_CLIP_INC"],
151
+ [WeaponComponentHash.HeavySniperMk2ClipIncendiary, "WCT_CLIP_INC"],
152
+ [WeaponComponentHash.SMGMk2ClipIncendiary, "WCT_CLIP_INC"],
153
+ [WeaponComponentHash.PistolMk2ClipTracer, "WCT_CLIP_TR"],
154
+ [WeaponComponentHash.AssaultRifleMk2ClipTracer, "WCT_CLIP_TR"],
155
+ [WeaponComponentHash.CarbineRifleMk2ClipTracer, "WCT_CLIP_TR"],
156
+ [WeaponComponentHash.CombatMGMk2ClipTracer, "WCT_CLIP_TR"],
157
+ [WeaponComponentHash.SMGMk2ClipTracer, "WCT_CLIP_TR"],
158
+ [WeaponComponentHash.HeavySniperMk2ClipExplosive, "WCT_CLIP_EX"],
159
+ [WeaponComponentHash.PistolMk2ClipHollowpoint, "WCT_CLIP_HP"],
160
+ [WeaponComponentHash.SMGMk2ClipHollowpoint, "WCT_CLIP_HP"],
161
+ [WeaponComponentHash.AssaultRifleMk2BarrelNormal, "WCT_BARR"],
162
+ [WeaponComponentHash.CarbineRifleMk2BarrelNormal, "WCT_BARR"],
163
+ [WeaponComponentHash.CombatMGMk2BarrelNormal, "WCT_BARR"],
164
+ [WeaponComponentHash.SMGMk2BarrelNormal, "WCT_BARR"],
165
+ [WeaponComponentHash.AssaultRifleMk2BarrelHeavy, "WCT_BARR2"],
166
+ [WeaponComponentHash.CarbineRifleMk2BarrelHeavy, "WCT_BARR2"],
167
+ [WeaponComponentHash.CombatMGMk2BarrelHeavy, "WCT_BARR2"],
168
+ [WeaponComponentHash.SMGMk2BarrelHeavy, "WCT_BARR2"],
169
+ [WeaponComponentHash.PistolMk2CamoDigital, "WCT_CAMO_1"],
170
+ [WeaponComponentHash.AssaultRifleMk2CamoDigital, "WCT_CAMO_1"],
171
+ [WeaponComponentHash.CarbineRifleMk2CamoDigital, "WCT_CAMO_1"],
172
+ [WeaponComponentHash.CombatMGMk2CamoDigital, "WCT_CAMO_1"],
173
+ [WeaponComponentHash.HeavySniperMk2CamoDigital, "WCT_CAMO_1"],
174
+ [WeaponComponentHash.SMGMk2CamoDigital, "WCT_CAMO_1"],
175
+ [WeaponComponentHash.PistolMk2CamoSlideDigital, "WCT_CAMO_1"],
176
+ [WeaponComponentHash.PistolMk2CamoBrushstroke, "WCT_CAMO_2"],
177
+ [WeaponComponentHash.AssaultRifleMk2CamoBrushstroke, "WCT_CAMO_2"],
178
+ [WeaponComponentHash.CarbineRifleMk2CamoBrushstroke, "WCT_CAMO_2"],
179
+ [WeaponComponentHash.CombatMGMk2CamoBrushstroke, "WCT_CAMO_2"],
180
+ [WeaponComponentHash.HeavySniperMk2CamoBrushstroke, "WCT_CAMO_2"],
181
+ [WeaponComponentHash.SMGMk2CamoBrushstroke, "WCT_CAMO_2"],
182
+ [WeaponComponentHash.PistolMk2CamoSlideBrushstroke, "WCT_CAMO_2"],
183
+ [WeaponComponentHash.PistolMk2CamoWoodland, "WCT_CAMO_3"],
184
+ [WeaponComponentHash.AssaultRifleMk2CamoWoodland, "WCT_CAMO_3"],
185
+ [WeaponComponentHash.CarbineRifleMk2CamoWoodland, "WCT_CAMO_3"],
186
+ [WeaponComponentHash.CombatMGMk2CamoWoodland, "WCT_CAMO_3"],
187
+ [WeaponComponentHash.HeavySniperMk2CamoWoodland, "WCT_CAMO_3"],
188
+ [WeaponComponentHash.SMGMk2CamoWoodland, "WCT_CAMO_3"],
189
+ [WeaponComponentHash.PistolMk2CamoSlideWoodland, "WCT_CAMO_3"],
190
+ [WeaponComponentHash.PistolMk2CamoSkull, "WCT_CAMO_4"],
191
+ [WeaponComponentHash.AssaultRifleMk2CamoSkull, "WCT_CAMO_4"],
192
+ [WeaponComponentHash.CarbineRifleMk2CamoSkull, "WCT_CAMO_4"],
193
+ [WeaponComponentHash.CombatMGMk2CamoSkull, "WCT_CAMO_4"],
194
+ [WeaponComponentHash.HeavySniperMk2CamoSkull, "WCT_CAMO_4"],
195
+ [WeaponComponentHash.SMGMk2CamoSkull, "WCT_CAMO_4"],
196
+ [WeaponComponentHash.PistolMk2CamoSlideSkull, "WCT_CAMO_4"],
197
+ [WeaponComponentHash.PistolMk2CamoSessanta, "WCT_CAMO_5"],
198
+ [WeaponComponentHash.AssaultRifleMk2CamoSessanta, "WCT_CAMO_5"],
199
+ [WeaponComponentHash.CarbineRifleMk2CamoSessanta, "WCT_CAMO_5"],
200
+ [WeaponComponentHash.CombatMGMk2CamoSessanta, "WCT_CAMO_5"],
201
+ [WeaponComponentHash.HeavySniperMk2CamoSessanta, "WCT_CAMO_5"],
202
+ [WeaponComponentHash.SMGMk2CamoSessanta, "WCT_CAMO_5"],
203
+ [WeaponComponentHash.PistolMk2CamoSlideSessanta, "WCT_CAMO_5"],
204
+ [WeaponComponentHash.PistolMk2CamoPerseus, "WCT_CAMO_6"],
205
+ [WeaponComponentHash.AssaultRifleMk2CamoPerseus, "WCT_CAMO_6"],
206
+ [WeaponComponentHash.CarbineRifleMk2CamoPerseus, "WCT_CAMO_6"],
207
+ [WeaponComponentHash.CombatMGMk2CamoPerseus, "WCT_CAMO_6"],
208
+ [WeaponComponentHash.HeavySniperMk2CamoPerseus, "WCT_CAMO_6"],
209
+ [WeaponComponentHash.SMGMk2CamoPerseus, "WCT_CAMO_6"],
210
+ [WeaponComponentHash.PistolMk2CamoSlidePerseus, "WCT_CAMO_6"],
211
+ [WeaponComponentHash.PistolMk2CamoLeopard, "WCT_CAMO_7"],
212
+ [WeaponComponentHash.AssaultRifleMk2CamoLeopard, "WCT_CAMO_7"],
213
+ [WeaponComponentHash.CarbineRifleMk2CamoLeopard, "WCT_CAMO_7"],
214
+ [WeaponComponentHash.CombatMGMk2CamoLeopard, "WCT_CAMO_7"],
215
+ [WeaponComponentHash.HeavySniperMk2CamoLeopard, "WCT_CAMO_7"],
216
+ [WeaponComponentHash.SMGMk2CamoLeopard, "WCT_CAMO_7"],
217
+ [WeaponComponentHash.PistolMk2CamoSlideLeopard, "WCT_CAMO_7"],
218
+ [WeaponComponentHash.PistolMk2CamoZebra, "WCT_CAMO_8"],
219
+ [WeaponComponentHash.AssaultRifleMk2CamoZebra, "WCT_CAMO_8"],
220
+ [WeaponComponentHash.CarbineRifleMk2CamoZebra, "WCT_CAMO_8"],
221
+ [WeaponComponentHash.CombatMGMk2CamoZebra, "WCT_CAMO_8"],
222
+ [WeaponComponentHash.HeavySniperMk2CamoZebra, "WCT_CAMO_8"],
223
+ [WeaponComponentHash.SMGMk2CamoZebra, "WCT_CAMO_8"],
224
+ [WeaponComponentHash.PistolMk2CamoSlideZebra, "WCT_CAMO_8"],
225
+ [WeaponComponentHash.PistolMk2CamoGeometric, "WCT_CAMO_9"],
226
+ [WeaponComponentHash.AssaultRifleMk2CamoGeometric, "WCT_CAMO_9"],
227
+ [WeaponComponentHash.CarbineRifleMk2CamoGeometric, "WCT_CAMO_9"],
228
+ [WeaponComponentHash.CombatMGMk2CamoGeometric, "WCT_CAMO_9"],
229
+ [WeaponComponentHash.HeavySniperMk2CamoGeometric, "WCT_CAMO_9"],
230
+ [WeaponComponentHash.SMGMk2CamoGeometric, "WCT_CAMO_9"],
231
+ [WeaponComponentHash.PistolMk2CamoSlideGeometric, "WCT_CAMO_9"],
232
+ [WeaponComponentHash.PistolMk2CamoBoom, "WCT_CAMO_10"],
233
+ [WeaponComponentHash.AssaultRifleMk2CamoBoom, "WCT_CAMO_10"],
234
+ [WeaponComponentHash.CarbineRifleMk2CamoBoom, "WCT_CAMO_10"],
235
+ [WeaponComponentHash.CombatMGMk2CamoBoom, "WCT_CAMO_10"],
236
+ [WeaponComponentHash.HeavySniperMk2CamoBoom, "WCT_CAMO_10"],
237
+ [WeaponComponentHash.SMGMk2CamoBoom, "WCT_CAMO_10"],
238
+ [WeaponComponentHash.PistolMk2CamoSlideBoom, "WCT_CAMO_10"],
239
+ [WeaponComponentHash.PistolMk2CamoPatriotic, "WCT_CAMO_IND"],
240
+ [WeaponComponentHash.AssaultRifleMk2CamoPatriotic, "WCT_CAMO_IND"],
241
+ [WeaponComponentHash.CarbineRifleMk2CamoPatriotic, "WCT_CAMO_IND"],
242
+ [WeaponComponentHash.CombatMGMk2CamoPatriotic, "WCT_CAMO_IND"],
243
+ [WeaponComponentHash.HeavySniperMk2CamoPatriotic, "WCT_CAMO_IND"],
244
+ [WeaponComponentHash.SMGMk2CamoPatriotic, "WCT_CAMO_IND"],
245
+ [WeaponComponentHash.PistolMk2CamoSlidePatriotic, "WCT_CAMO_IND"],
246
+ [WeaponComponentHash.AtSights, "WCT_HOLO"],
247
+ [WeaponComponentHash.AtScopeSmallMk2, "WCT_SCOPE_SML2"],
248
+ [WeaponComponentHash.AtScopeMacroMk2, "WCT_SCOPE_MAC2"],
249
+ [WeaponComponentHash.AtScopeMediumMk2, "WCT_SCOPE_MED2"],
250
+ [WeaponComponentHash.AtMuzzle1, "WCT_MUZZ"],
251
+ [WeaponComponentHash.AtMuzzle2, "WCT_MUZZ"],
252
+ [WeaponComponentHash.AtMuzzle3, "WCT_MUZZ"],
253
+ [WeaponComponentHash.AtMuzzle4, "WCT_MUZZ"],
254
+ [WeaponComponentHash.AtMuzzle5, "WCT_MUZZ"],
255
+ [WeaponComponentHash.AtMuzzle7, "WCT_MUZZ"],
256
+ [WeaponComponentHash.HeavySniperMk2Muzzle8, "WCT_MUZZ"],
257
+ [WeaponComponentHash.HeavySniperMk2Muzzle9, "WCT_MUZZ"],
258
+ [WeaponComponentHash.PistolMk2Scope, "WCT_SCOPE_PI"],
259
+ [WeaponComponentHash.PistolMk2Compensator, "WCT_COMP"],
260
+ [WeaponComponentHash.HeavySniperMk2ScopeLarge, "WCT_SCOPE_LRG2"]
261
+ ]);
262
+ function initializeOnce() {
263
+ let isInitialized = false;
264
+ return () => {
265
+ if (isInitialized) {
266
+ return;
267
+ }
268
+ for (const [hash, data] of DlcWeaponComponentData) {
269
+ ComponentDisplayNameByHash.set(hash, data.name);
270
+ }
271
+ isInitialized = true;
272
+ };
273
+ }
274
+ __name(initializeOnce, "initializeOnce");
275
+ initializeOnce()();
276
+ export {
277
+ ComponentDisplayNameByHash
278
+ };
@@ -0,0 +1,40 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ import { getStringFromUInt8Array } from "../common/utils/getStringFromUInt8Array";
4
+ import { getUInt32FromUint8Array } from "../common/utils/getUInt32FromUint8Array";
5
+ const DlcWeaponComponentData = /* @__PURE__ */ new Map();
6
+ function initializeOnce() {
7
+ let isInitialized = false;
8
+ return () => {
9
+ if (isInitialized || IsDuplicityVersion()) {
10
+ return;
11
+ }
12
+ const intLength = 4;
13
+ const strLength = 64;
14
+ const weaponCount = GetNumDlcWeapons();
15
+ for (let i = 0; i < weaponCount; i++) {
16
+ const componentCount = GetNumDlcWeaponComponents(i);
17
+ for (let j = 0; j < componentCount; j++) {
18
+ const buffer = new Uint8Array(14 * intLength + 4 * strLength);
19
+ Citizen.invokeNative("0x6CF598A2957C2BF8", i, j, buffer, Citizen.returnResultAnyway());
20
+ const dlcWeaponComponentData = {
21
+ attachBone: getUInt32FromUint8Array(buffer, 0 * intLength, 1 * intLength),
22
+ bActiveByDefault: getUInt32FromUint8Array(buffer, 2 * intLength, 3 * intLength),
23
+ unk: getUInt32FromUint8Array(buffer, 4 * intLength, 5 * intLength),
24
+ componentHash: getUInt32FromUint8Array(buffer, 6 * intLength, 7 * intLength),
25
+ unk2: getUInt32FromUint8Array(buffer, 8 * intLength, 9 * intLength),
26
+ componentCost: getUInt32FromUint8Array(buffer, 10 * intLength, 11 * intLength),
27
+ name: getStringFromUInt8Array(buffer, 12 * intLength, 12 * intLength + strLength),
28
+ desc: getStringFromUInt8Array(buffer, 12 * intLength + strLength, 12 * intLength + 2 * strLength)
29
+ };
30
+ DlcWeaponComponentData.set(dlcWeaponComponentData.componentHash, dlcWeaponComponentData);
31
+ }
32
+ }
33
+ isInitialized = true;
34
+ };
35
+ }
36
+ __name(initializeOnce, "initializeOnce");
37
+ initializeOnce()();
38
+ export {
39
+ DlcWeaponComponentData
40
+ };
@@ -1,7 +1,7 @@
1
1
  import { WeaponComponent } from "./WeaponComponent";
2
2
  import { WeaponComponentHash } from "./WeaponComponentHash";
3
- import type { WeaponHash } from "../hashes";
4
3
  import { ComponentAttachmentPoint } from "./ComponentAttachmentPoint";
4
+ import type { WeaponHash } from "fivem/hashes/WeaponHash";
5
5
  export declare class InvalidWeaponComponent extends WeaponComponent {
6
6
  constructor();
7
7
  get Active(): boolean;