@nativewrappers/fivem 0.0.64 → 0.0.72

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 (241) hide show
  1. package/Audio.d.ts +2 -2
  2. package/Blip.d.ts +2 -2
  3. package/Camera.d.ts +1 -1
  4. package/Game.d.ts +1 -1
  5. package/GameplayCamera.d.ts +1 -1
  6. package/Model.d.ts +1 -1
  7. package/ParticleEffect.d.ts +2 -2
  8. package/ParticleEffectAsset.d.ts +1 -1
  9. package/README.md +45 -0
  10. package/Raycast.d.ts +2 -2
  11. package/RelationshipGroup.d.ts +1 -1
  12. package/Tasks.d.ts +3 -3
  13. package/World.d.ts +2 -2
  14. package/cfx/StateBagChangeHandler.d.ts +1 -3
  15. package/common/Command.d.ts +30 -0
  16. package/common/Convar.d.ts +13 -0
  17. package/common/GlobalData.d.ts +8 -0
  18. package/common/Kvp.d.ts +69 -0
  19. package/common/Resource.d.ts +14 -0
  20. package/common/decors/Events.d.ts +54 -0
  21. package/common/index.d.ts +8 -0
  22. package/common/net/NetworkedMap.d.ts +28 -0
  23. package/common/types.d.ts +5 -0
  24. package/common/utils/ClassTypes.d.ts +11 -0
  25. package/common/utils/Color.d.ts +14 -0
  26. package/common/utils/Maths.d.ts +4 -0
  27. package/common/utils/PointF.d.ts +12 -0
  28. package/common/utils/Quaternion.d.ts +10 -0
  29. package/common/utils/Vector.d.ts +429 -0
  30. package/common/utils/Vector2.d.ts +1 -0
  31. package/common/utils/Vector3.d.ts +1 -0
  32. package/common/utils/Vector4.d.ts +1 -0
  33. package/common/utils/cleanPlayerName.d.ts +6 -0
  34. package/common/utils/enumValues.d.ts +12 -0
  35. package/{utils/getStringFromUInt8Array.js → common/utils/getStringFromUInt8Array.d.ts} +1 -3
  36. package/{utils/getUInt32FromUint8Array.js → common/utils/getUInt32FromUint8Array.d.ts} +1 -1
  37. package/common/utils/index.d.ts +12 -0
  38. package/index.d.ts +1 -1
  39. package/index.js +20136 -26
  40. package/interfaces/Dimensions.d.ts +1 -1
  41. package/models/BaseEntity.d.ts +3 -3
  42. package/models/Ped.d.ts +2 -2
  43. package/models/PedBone.d.ts +1 -1
  44. package/models/PedBoneCollection.d.ts +1 -1
  45. package/models/Player.d.ts +1 -1
  46. package/models/Vehicle.d.ts +2 -2
  47. package/models/VehicleDoor.d.ts +2 -2
  48. package/models/VehicleDoorCollection.d.ts +1 -1
  49. package/models/VehicleMod.d.ts +2 -2
  50. package/models/VehicleModCollection.d.ts +2 -2
  51. package/models/VehicleToggleMod.d.ts +2 -2
  52. package/models/VehicleWheel.d.ts +1 -1
  53. package/models/VehicleWheelCollection.d.ts +1 -1
  54. package/models/VehicleWindow.d.ts +2 -2
  55. package/models/VehicleWindowCollection.d.ts +1 -1
  56. package/package.json +6 -4
  57. package/ui/Container.d.ts +2 -2
  58. package/ui/Effects.d.ts +1 -1
  59. package/ui/Hud.d.ts +2 -2
  60. package/ui/InstructionalButtons.d.ts +1 -1
  61. package/ui/Rectangle.d.ts +2 -2
  62. package/ui/Scaleform.d.ts +1 -1
  63. package/ui/Screen.d.ts +1 -1
  64. package/ui/Text.d.ts +1 -1
  65. package/ui/interfaces/IButton.d.ts +1 -1
  66. package/ui/interfaces/IDrawable.d.ts +1 -1
  67. package/ui/menu/items/UIMenuItem.d.ts +1 -1
  68. package/ui/menu/items/UIMenuListItem.d.ts +1 -1
  69. package/ui/menu/items/panels/AbstractUIMenuPanel.d.ts +2 -2
  70. package/ui/menu/items/panels/UIMenuStatisticsPanel.d.ts +1 -1
  71. package/utils/LiteEvent.d.ts +2 -6
  72. package/utils/index.d.ts +1 -1
  73. package/weapon/DlcWeaponData.d.ts +1 -1
  74. package/weapon/Weapon.d.ts +7 -7
  75. package/weapon/WeaponAsset.d.ts +1 -1
  76. package/weapon/WeaponCollection.d.ts +2 -2
  77. package/weaponComponent/DlcWeaponComponentData.d.ts +1 -1
  78. package/weaponComponent/InvalidWeaponComponent.d.ts +1 -1
  79. package/weaponComponent/WeaponComponent.d.ts +3 -3
  80. package/weaponComponent/WeaponComponentCollection.d.ts +3 -3
  81. package/Audio.js +0 -93
  82. package/Blip.js +0 -105
  83. package/Camera.js +0 -162
  84. package/Checkpoint.js +0 -43
  85. package/Events.js +0 -74
  86. package/Game.js +0 -474
  87. package/GameplayCamera.js +0 -141
  88. package/Model.js +0 -213
  89. package/NetworkedScene.js +0 -18
  90. package/ParticleEffect.js +0 -123
  91. package/ParticleEffectAsset.js +0 -105
  92. package/Pickup.js +0 -19
  93. package/Raycast.js +0 -123
  94. package/RelationshipGroup.js +0 -67
  95. package/Rope.js +0 -129
  96. package/TaskSequence.js +0 -48
  97. package/Tasks.js +0 -241
  98. package/World.js +0 -765
  99. package/cfx/StateBagChangeHandler.js +0 -1
  100. package/cfx/index.js +0 -1
  101. package/enums/Alignment.js +0 -6
  102. package/enums/AnimationFlags.js +0 -35
  103. package/enums/AudioFlag.js +0 -38
  104. package/enums/BadgeStyle.js +0 -183
  105. package/enums/Blip.js +0 -225
  106. package/enums/Bone.js +0 -103
  107. package/enums/CameraShake.js +0 -14
  108. package/enums/CameraTypes.js +0 -8
  109. package/enums/CheckboxStyle.js +0 -5
  110. package/enums/Checkpoint.js +0 -67
  111. package/enums/CloudHat.js +0 -27
  112. package/enums/Control.js +0 -361
  113. package/enums/CursorSprite.js +0 -15
  114. package/enums/Driving.js +0 -34
  115. package/enums/ExplosionType.js +0 -45
  116. package/enums/FiringPattern.js +0 -20
  117. package/enums/Font.js +0 -8
  118. package/enums/ForceType.js +0 -9
  119. package/enums/Gender.js +0 -5
  120. package/enums/HelmetType.js +0 -6
  121. package/enums/HudColor.js +0 -184
  122. package/enums/HudComponent.js +0 -54
  123. package/enums/InputMode.js +0 -5
  124. package/enums/InvertAxis.js +0 -7
  125. package/enums/Language.js +0 -15
  126. package/enums/LeaveVehicleFlags.js +0 -11
  127. package/enums/LoadingSpinnerType.js +0 -8
  128. package/enums/MarkerType.js +0 -50
  129. package/enums/MenuAlignment.js +0 -5
  130. package/enums/NotificationType.js +0 -11
  131. package/enums/Parachute.js +0 -15
  132. package/enums/PickupType.js +0 -74
  133. package/enums/RadioStation.js +0 -25
  134. package/enums/RagdollType.js +0 -7
  135. package/enums/RaycastEnums.js +0 -32
  136. package/enums/Relationship.js +0 -10
  137. package/enums/RopeType.js +0 -6
  138. package/enums/ScreenEffect.js +0 -84
  139. package/enums/SpeechModifier.js +0 -40
  140. package/enums/Vehicle.js +0 -376
  141. package/enums/Weather.js +0 -22
  142. package/enums/ZoneID.js +0 -95
  143. package/enums/index.js +0 -42
  144. package/hashes/MaterialHash.js +0 -217
  145. package/hashes/PedHash.js +0 -725
  146. package/hashes/VehicleHash.js +0 -523
  147. package/hashes/WeaponHash.js +0 -161
  148. package/hashes/WeatherTypeHash.js +0 -22
  149. package/hashes/index.js +0 -5
  150. package/interfaces/Dimensions.js +0 -1
  151. package/models/BaseEntity.js +0 -477
  152. package/models/Entity.js +0 -25
  153. package/models/EntityBone.js +0 -26
  154. package/models/EntityBoneCollection.js +0 -18
  155. package/models/Ped.js +0 -692
  156. package/models/PedBone.js +0 -9
  157. package/models/PedBoneCollection.js +0 -21
  158. package/models/Player.js +0 -186
  159. package/models/Prop.js +0 -26
  160. package/models/Vehicle.js +0 -576
  161. package/models/VehicleDoor.js +0 -44
  162. package/models/VehicleDoorCollection.js +0 -62
  163. package/models/VehicleMod.js +0 -35
  164. package/models/VehicleModCollection.js +0 -227
  165. package/models/VehicleToggleMod.js +0 -29
  166. package/models/VehicleWheel.js +0 -23
  167. package/models/VehicleWheelCollection.js +0 -57
  168. package/models/VehicleWindow.js +0 -35
  169. package/models/VehicleWindowCollection.js +0 -57
  170. package/models/index.js +0 -19
  171. package/ui/Container.js +0 -31
  172. package/ui/Effects.js +0 -106
  173. package/ui/Fading.js +0 -69
  174. package/ui/Hud.js +0 -39
  175. package/ui/InstructionalButtons.js +0 -54
  176. package/ui/LoadingPrompt.js +0 -45
  177. package/ui/Notification.js +0 -9
  178. package/ui/Rectangle.js +0 -40
  179. package/ui/Scaleform.js +0 -236
  180. package/ui/Screen.js +0 -72
  181. package/ui/Sprite.js +0 -60
  182. package/ui/Text.js +0 -115
  183. package/ui/Timerbar.js +0 -248
  184. package/ui/index.js +0 -15
  185. package/ui/interfaces/IButton.js +0 -1
  186. package/ui/interfaces/IDrawable.js +0 -1
  187. package/ui/interfaces/index.js +0 -1
  188. package/ui/menu/Menu.js +0 -831
  189. package/ui/menu/MenuControl.js +0 -12
  190. package/ui/menu/MenuControls.js +0 -9
  191. package/ui/menu/MenuSettings.js +0 -54
  192. package/ui/menu/index.js +0 -6
  193. package/ui/menu/items/UIMenuCheckboxItem.js +0 -59
  194. package/ui/menu/items/UIMenuItem.js +0 -1111
  195. package/ui/menu/items/UIMenuListItem.js +0 -119
  196. package/ui/menu/items/UIMenuSeparatorItem.js +0 -29
  197. package/ui/menu/items/UIMenuSliderItem.js +0 -191
  198. package/ui/menu/items/index.js +0 -6
  199. package/ui/menu/items/panels/AbstractUIMenuPanel.js +0 -44
  200. package/ui/menu/items/panels/UIMenuColorPanel.js +0 -217
  201. package/ui/menu/items/panels/UIMenuGridPanel.js +0 -261
  202. package/ui/menu/items/panels/UIMenuPercentagePanel.js +0 -124
  203. package/ui/menu/items/panels/UIMenuStatisticsPanel.js +0 -79
  204. package/ui/menu/items/panels/UIMenuStatisticsPanelItem.js +0 -35
  205. package/ui/menu/items/panels/index.js +0 -6
  206. package/ui/menu/modules/ListItem.js +0 -10
  207. package/ui/menu/modules/index.js +0 -1
  208. package/utils/Animations.js +0 -55
  209. package/utils/Crypto.js +0 -25
  210. package/utils/LiteEvent.js +0 -19
  211. package/utils/Maths.js +0 -10
  212. package/utils/Point.js +0 -30
  213. package/utils/PointF.js +0 -14
  214. package/utils/Quaternion.js +0 -27
  215. package/utils/Size.js +0 -8
  216. package/utils/String.js +0 -25
  217. package/utils/enumValues.js +0 -14
  218. package/utils/index.js +0 -9
  219. package/weapon/DlcWeaponData.js +0 -44
  220. package/weapon/Mk2WeaponHash.js +0 -25
  221. package/weapon/Weapon.js +0 -270
  222. package/weapon/WeaponAsset.js +0 -84
  223. package/weapon/WeaponCollection.js +0 -187
  224. package/weapon/WeaponDisplayNameByHash.js +0 -75
  225. package/weapon/WeaponGroup.js +0 -19
  226. package/weapon/WeaponHudStats.js +0 -38
  227. package/weapon/WeaponLivery.js +0 -14
  228. package/weapon/WeaponLiveryColor.js +0 -35
  229. package/weapon/WeaponTint.js +0 -43
  230. package/weapon/index.js +0 -8
  231. package/weaponComponent/ComponentAttachmentPoint.js +0 -19
  232. package/weaponComponent/ComponentAttachmentPointByHash.js +0 -573
  233. package/weaponComponent/ComponentDisplayNameByHash.js +0 -280
  234. package/weaponComponent/DlcWeaponComponentData.js +0 -44
  235. package/weaponComponent/InvalidWeaponComponent.js +0 -28
  236. package/weaponComponent/WeaponComponent.js +0 -123
  237. package/weaponComponent/WeaponComponentCollection.js +0 -174
  238. package/weaponComponent/WeaponComponentHash.js +0 -887
  239. package/weaponComponent/WeaponComponentHashesByWeaponHash.js +0 -829
  240. package/weaponComponent/WeaponComponentHudStats.js +0 -34
  241. package/weaponComponent/index.js +0 -5
@@ -1,573 +0,0 @@
1
- import { WeaponComponentHash } from "./WeaponComponentHash";
2
- import { ComponentAttachmentPoint } from "./ComponentAttachmentPoint";
3
- import { DlcWeaponComponentData } from "./DlcWeaponComponentData";
4
- /**
5
- * ComponentAttachmentPointByHash - Mapping of WeaponComponentHash -> ComponentAttachmentPoint
6
- *
7
- */
8
- export const ComponentAttachmentPointByHash = new Map([
9
- [WeaponComponentHash.PistolClip01, ComponentAttachmentPoint.Clip],
10
- [WeaponComponentHash.PistolClip02, ComponentAttachmentPoint.Clip],
11
- [WeaponComponentHash.CombatPistolClip01, ComponentAttachmentPoint.Clip],
12
- [WeaponComponentHash.CombatPistolClip02, ComponentAttachmentPoint.Clip],
13
- [WeaponComponentHash.APPistolClip01, ComponentAttachmentPoint.Clip],
14
- [WeaponComponentHash.APPistolClip02, ComponentAttachmentPoint.Clip],
15
- [WeaponComponentHash.MicroSMGClip01, ComponentAttachmentPoint.Clip],
16
- [WeaponComponentHash.MicroSMGClip02, ComponentAttachmentPoint.Clip],
17
- [WeaponComponentHash.SMGClip01, ComponentAttachmentPoint.Clip],
18
- [WeaponComponentHash.SMGClip02, ComponentAttachmentPoint.Clip],
19
- [WeaponComponentHash.SMGClip03, ComponentAttachmentPoint.Clip],
20
- [WeaponComponentHash.AssaultRifleClip01, ComponentAttachmentPoint.Clip],
21
- [WeaponComponentHash.AssaultRifleClip02, ComponentAttachmentPoint.Clip],
22
- [WeaponComponentHash.AssaultRifleClip03, ComponentAttachmentPoint.Clip],
23
- [WeaponComponentHash.CarbineRifleClip01, ComponentAttachmentPoint.Clip],
24
- [WeaponComponentHash.CarbineRifleClip02, ComponentAttachmentPoint.Clip],
25
- [WeaponComponentHash.CarbineRifleClip03, ComponentAttachmentPoint.Clip],
26
- [WeaponComponentHash.AdvancedRifleClip01, ComponentAttachmentPoint.Clip],
27
- [WeaponComponentHash.AdvancedRifleClip02, ComponentAttachmentPoint.Clip],
28
- [WeaponComponentHash.MGClip01, ComponentAttachmentPoint.Clip],
29
- [WeaponComponentHash.MGClip02, ComponentAttachmentPoint.Clip],
30
- [WeaponComponentHash.CombatMGClip01, ComponentAttachmentPoint.Clip],
31
- [WeaponComponentHash.CombatMGClip02, ComponentAttachmentPoint.Clip],
32
- [WeaponComponentHash.PumpShotgunClip01, ComponentAttachmentPoint.Clip],
33
- [WeaponComponentHash.AssaultShotgunClip01, ComponentAttachmentPoint.Clip],
34
- [WeaponComponentHash.AssaultShotgunClip02, ComponentAttachmentPoint.Clip],
35
- [WeaponComponentHash.SniperRifleClip01, ComponentAttachmentPoint.Clip],
36
- [WeaponComponentHash.HeavySniperClip01, ComponentAttachmentPoint.Clip],
37
- [WeaponComponentHash.MinigunClip01, ComponentAttachmentPoint.Clip],
38
- [WeaponComponentHash.AssaultSMGClip01, ComponentAttachmentPoint.Clip],
39
- [WeaponComponentHash.AssaultSMGClip02, ComponentAttachmentPoint.Clip],
40
- [WeaponComponentHash.BullpupShotgunClip01, ComponentAttachmentPoint.Clip],
41
- [WeaponComponentHash.Pistol50Clip01, ComponentAttachmentPoint.Clip],
42
- [WeaponComponentHash.Pistol50Clip02, ComponentAttachmentPoint.Clip],
43
- [WeaponComponentHash.SawnoffShotgunClip01, ComponentAttachmentPoint.Clip],
44
- [WeaponComponentHash.PistolMk2ClipNormal, ComponentAttachmentPoint.Clip],
45
- [WeaponComponentHash.PistolMk2ClipExtended, ComponentAttachmentPoint.Clip],
46
- [WeaponComponentHash.PistolMk2ClipFMJ, ComponentAttachmentPoint.Clip],
47
- [WeaponComponentHash.PistolMk2ClipHollowpoint, ComponentAttachmentPoint.Clip],
48
- [WeaponComponentHash.PistolMk2ClipIncendiary, ComponentAttachmentPoint.Clip],
49
- [WeaponComponentHash.PistolMk2ClipTracer, ComponentAttachmentPoint.Clip],
50
- [
51
- WeaponComponentHash.AssaultRifleMk2ClipNormal,
52
- ComponentAttachmentPoint.Clip,
53
- ],
54
- [
55
- WeaponComponentHash.AssaultRifleMk2ClipExtended,
56
- ComponentAttachmentPoint.Clip,
57
- ],
58
- [WeaponComponentHash.AssaultRifleMk2ClipFMJ, ComponentAttachmentPoint.Clip],
59
- [
60
- WeaponComponentHash.AssaultRifleMk2ClipArmorPiercing,
61
- ComponentAttachmentPoint.Clip,
62
- ],
63
- [
64
- WeaponComponentHash.AssaultRifleMk2ClipIncendiary,
65
- ComponentAttachmentPoint.Clip,
66
- ],
67
- [
68
- WeaponComponentHash.AssaultRifleMk2ClipTracer,
69
- ComponentAttachmentPoint.Clip,
70
- ],
71
- [
72
- WeaponComponentHash.CarbineRifleMk2ClipNormal,
73
- ComponentAttachmentPoint.Clip,
74
- ],
75
- [
76
- WeaponComponentHash.CarbineRifleMk2ClipExtended,
77
- ComponentAttachmentPoint.Clip,
78
- ],
79
- [WeaponComponentHash.CarbineRifleMk2ClipFMJ, ComponentAttachmentPoint.Clip],
80
- [
81
- WeaponComponentHash.CarbineRifleMk2ClipArmorPiercing,
82
- ComponentAttachmentPoint.Clip,
83
- ],
84
- [
85
- WeaponComponentHash.CarbineRifleMk2ClipIncendiary,
86
- ComponentAttachmentPoint.Clip,
87
- ],
88
- [
89
- WeaponComponentHash.CarbineRifleMk2ClipTracer,
90
- ComponentAttachmentPoint.Clip,
91
- ],
92
- [WeaponComponentHash.CombatMGMk2ClipNormal, ComponentAttachmentPoint.Clip],
93
- [WeaponComponentHash.CombatMGMk2ClipExtended, ComponentAttachmentPoint.Clip],
94
- [WeaponComponentHash.CombatMGMk2ClipFMJ, ComponentAttachmentPoint.Clip],
95
- [
96
- WeaponComponentHash.CombatMGMk2ClipArmorPiercing,
97
- ComponentAttachmentPoint.Clip,
98
- ],
99
- [
100
- WeaponComponentHash.CombatMGMk2ClipIncendiary,
101
- ComponentAttachmentPoint.Clip,
102
- ],
103
- [WeaponComponentHash.CombatMGMk2ClipTracer, ComponentAttachmentPoint.Clip],
104
- [WeaponComponentHash.HeavySniperMk2ClipNormal, ComponentAttachmentPoint.Clip],
105
- [
106
- WeaponComponentHash.HeavySniperMk2ClipExtended,
107
- ComponentAttachmentPoint.Clip,
108
- ],
109
- [WeaponComponentHash.HeavySniperMk2ClipFMJ, ComponentAttachmentPoint.Clip],
110
- [
111
- WeaponComponentHash.HeavySniperMk2ClipArmorPiercing,
112
- ComponentAttachmentPoint.Clip,
113
- ],
114
- [
115
- WeaponComponentHash.HeavySniperMk2ClipIncendiary,
116
- ComponentAttachmentPoint.Clip,
117
- ],
118
- [
119
- WeaponComponentHash.HeavySniperMk2ClipExplosive,
120
- ComponentAttachmentPoint.Clip,
121
- ],
122
- [WeaponComponentHash.SMGMk2ClipNormal, ComponentAttachmentPoint.Clip],
123
- [WeaponComponentHash.SMGMk2ClipExtended, ComponentAttachmentPoint.Clip],
124
- [WeaponComponentHash.SMGMk2ClipFMJ, ComponentAttachmentPoint.Clip],
125
- [WeaponComponentHash.SMGMk2ClipHollowpoint, ComponentAttachmentPoint.Clip],
126
- [WeaponComponentHash.SMGMk2ClipIncendiary, ComponentAttachmentPoint.Clip],
127
- [WeaponComponentHash.SMGMk2ClipTracer, ComponentAttachmentPoint.Clip],
128
- [WeaponComponentHash.AtPiFlsh, ComponentAttachmentPoint.FlashLaser],
129
- [WeaponComponentHash.AtPiFlsh, ComponentAttachmentPoint.FlashLaser],
130
- [WeaponComponentHash.AtPiFlsh, ComponentAttachmentPoint.FlashLaser],
131
- [WeaponComponentHash.AtPiFlsh, ComponentAttachmentPoint.FlashLaser],
132
- [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
133
- [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
134
- [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
135
- [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
136
- [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
137
- [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
138
- [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
139
- [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
140
- [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
141
- [WeaponComponentHash.AtPiFlsh, ComponentAttachmentPoint.FlashLaser],
142
- [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
143
- [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
144
- [WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
145
- [WeaponComponentHash.PistolMk2Compensator, ComponentAttachmentPoint.Supp],
146
- [WeaponComponentHash.AtPiSupp02, ComponentAttachmentPoint.Supp],
147
- [WeaponComponentHash.AtPiSupp, ComponentAttachmentPoint.Supp],
148
- [WeaponComponentHash.AtPiSupp, ComponentAttachmentPoint.Supp],
149
- [WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp],
150
- [WeaponComponentHash.AtPiSupp, ComponentAttachmentPoint.Supp],
151
- [WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp],
152
- [WeaponComponentHash.AtArSupp, ComponentAttachmentPoint.Supp],
153
- [WeaponComponentHash.AtArSupp, ComponentAttachmentPoint.Supp],
154
- [WeaponComponentHash.AtArSupp, ComponentAttachmentPoint.Supp],
155
- [WeaponComponentHash.AtArSupp, ComponentAttachmentPoint.Supp],
156
- [WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp],
157
- [WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp],
158
- [WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp],
159
- [WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp],
160
- [WeaponComponentHash.AtPiSupp02, ComponentAttachmentPoint.Supp],
161
- [WeaponComponentHash.AtMuzzle1, ComponentAttachmentPoint.Supp],
162
- [WeaponComponentHash.AtMuzzle2, ComponentAttachmentPoint.Supp],
163
- [WeaponComponentHash.AtMuzzle3, ComponentAttachmentPoint.Supp],
164
- [WeaponComponentHash.AtMuzzle4, ComponentAttachmentPoint.Supp],
165
- [WeaponComponentHash.AtMuzzle5, ComponentAttachmentPoint.Supp],
166
- [WeaponComponentHash.AtMuzzle6, ComponentAttachmentPoint.Supp],
167
- [WeaponComponentHash.AtMuzzle7, ComponentAttachmentPoint.Supp],
168
- [WeaponComponentHash.HeavySniperMk2Suppressor, ComponentAttachmentPoint.Supp],
169
- [WeaponComponentHash.HeavySniperMk2Muzzle8, ComponentAttachmentPoint.Supp],
170
- [WeaponComponentHash.HeavySniperMk2Muzzle9, ComponentAttachmentPoint.Supp],
171
- [WeaponComponentHash.AtArSupp, ComponentAttachmentPoint.Supp2],
172
- [WeaponComponentHash.AtMuzzle1, ComponentAttachmentPoint.Supp2],
173
- [WeaponComponentHash.AtMuzzle2, ComponentAttachmentPoint.Supp2],
174
- [WeaponComponentHash.AtMuzzle3, ComponentAttachmentPoint.Supp2],
175
- [WeaponComponentHash.AtMuzzle4, ComponentAttachmentPoint.Supp2],
176
- [WeaponComponentHash.AtMuzzle5, ComponentAttachmentPoint.Supp2],
177
- [WeaponComponentHash.AtMuzzle6, ComponentAttachmentPoint.Supp2],
178
- [WeaponComponentHash.AtMuzzle7, ComponentAttachmentPoint.Supp2],
179
- [WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp2],
180
- [WeaponComponentHash.AtMuzzle1, ComponentAttachmentPoint.Supp2],
181
- [WeaponComponentHash.AtMuzzle2, ComponentAttachmentPoint.Supp2],
182
- [WeaponComponentHash.AtMuzzle3, ComponentAttachmentPoint.Supp2],
183
- [WeaponComponentHash.AtMuzzle4, ComponentAttachmentPoint.Supp2],
184
- [WeaponComponentHash.AtMuzzle5, ComponentAttachmentPoint.Supp2],
185
- [WeaponComponentHash.AtMuzzle6, ComponentAttachmentPoint.Supp2],
186
- [WeaponComponentHash.AtMuzzle7, ComponentAttachmentPoint.Supp2],
187
- [WeaponComponentHash.AtPiSupp, ComponentAttachmentPoint.Supp2],
188
- [WeaponComponentHash.AtMuzzle1, ComponentAttachmentPoint.Supp2],
189
- [WeaponComponentHash.AtMuzzle2, ComponentAttachmentPoint.Supp2],
190
- [WeaponComponentHash.AtMuzzle3, ComponentAttachmentPoint.Supp2],
191
- [WeaponComponentHash.AtMuzzle4, ComponentAttachmentPoint.Supp2],
192
- [WeaponComponentHash.AtMuzzle5, ComponentAttachmentPoint.Supp2],
193
- [WeaponComponentHash.AtMuzzle6, ComponentAttachmentPoint.Supp2],
194
- [WeaponComponentHash.AtMuzzle7, ComponentAttachmentPoint.Supp2],
195
- [WeaponComponentHash.PistolVarmodLuxe, ComponentAttachmentPoint.GunRoot],
196
- [
197
- WeaponComponentHash.CombatPistolVarmodLowrider,
198
- ComponentAttachmentPoint.GunRoot,
199
- ],
200
- [WeaponComponentHash.APPistolVarmodLuxe, ComponentAttachmentPoint.GunRoot],
201
- [WeaponComponentHash.MicroSMGVarmodLuxe, ComponentAttachmentPoint.GunRoot],
202
- [WeaponComponentHash.SMGVarmodLuxe, ComponentAttachmentPoint.GunRoot],
203
- [
204
- WeaponComponentHash.AssaultRifleVarmodLuxe,
205
- ComponentAttachmentPoint.GunRoot,
206
- ],
207
- [
208
- WeaponComponentHash.CarbineRifleVarmodLuxe,
209
- ComponentAttachmentPoint.GunRoot,
210
- ],
211
- [
212
- WeaponComponentHash.AdvancedRifleVarmodLuxe,
213
- ComponentAttachmentPoint.GunRoot,
214
- ],
215
- [WeaponComponentHash.MGVarmodLowrider, ComponentAttachmentPoint.GunRoot],
216
- [
217
- WeaponComponentHash.CombatMGVarmodLowrider,
218
- ComponentAttachmentPoint.GunRoot,
219
- ],
220
- [
221
- WeaponComponentHash.PumpShotgunVarmodLowrider,
222
- ComponentAttachmentPoint.GunRoot,
223
- ],
224
- [WeaponComponentHash.SniperRifleVarmodLuxe, ComponentAttachmentPoint.GunRoot],
225
- [
226
- WeaponComponentHash.AssaultSMGVarmodLowrider,
227
- ComponentAttachmentPoint.GunRoot,
228
- ],
229
- [WeaponComponentHash.Pistol50VarmodLuxe, ComponentAttachmentPoint.GunRoot],
230
- [
231
- WeaponComponentHash.SawnoffShotgunVarmodLuxe,
232
- ComponentAttachmentPoint.GunRoot,
233
- ],
234
- [WeaponComponentHash.PistolMk2CamoDigital, ComponentAttachmentPoint.GunRoot],
235
- [
236
- WeaponComponentHash.PistolMk2CamoBrushstroke,
237
- ComponentAttachmentPoint.GunRoot,
238
- ],
239
- [WeaponComponentHash.PistolMk2CamoWoodland, ComponentAttachmentPoint.GunRoot],
240
- [WeaponComponentHash.PistolMk2CamoSkull, ComponentAttachmentPoint.GunRoot],
241
- [WeaponComponentHash.PistolMk2CamoSessanta, ComponentAttachmentPoint.GunRoot],
242
- [WeaponComponentHash.PistolMk2CamoPerseus, ComponentAttachmentPoint.GunRoot],
243
- [WeaponComponentHash.PistolMk2CamoLeopard, ComponentAttachmentPoint.GunRoot],
244
- [WeaponComponentHash.PistolMk2CamoZebra, ComponentAttachmentPoint.GunRoot],
245
- [
246
- WeaponComponentHash.PistolMk2CamoGeometric,
247
- ComponentAttachmentPoint.GunRoot,
248
- ],
249
- [WeaponComponentHash.PistolMk2CamoBoom, ComponentAttachmentPoint.GunRoot],
250
- [
251
- WeaponComponentHash.PistolMk2CamoPatriotic,
252
- ComponentAttachmentPoint.GunRoot,
253
- ],
254
- [
255
- WeaponComponentHash.AssaultRifleMk2CamoDigital,
256
- ComponentAttachmentPoint.GunRoot,
257
- ],
258
- [
259
- WeaponComponentHash.AssaultRifleMk2CamoBrushstroke,
260
- ComponentAttachmentPoint.GunRoot,
261
- ],
262
- [
263
- WeaponComponentHash.AssaultRifleMk2CamoWoodland,
264
- ComponentAttachmentPoint.GunRoot,
265
- ],
266
- [
267
- WeaponComponentHash.AssaultRifleMk2CamoSkull,
268
- ComponentAttachmentPoint.GunRoot,
269
- ],
270
- [
271
- WeaponComponentHash.AssaultRifleMk2CamoSessanta,
272
- ComponentAttachmentPoint.GunRoot,
273
- ],
274
- [
275
- WeaponComponentHash.AssaultRifleMk2CamoPerseus,
276
- ComponentAttachmentPoint.GunRoot,
277
- ],
278
- [
279
- WeaponComponentHash.AssaultRifleMk2CamoLeopard,
280
- ComponentAttachmentPoint.GunRoot,
281
- ],
282
- [
283
- WeaponComponentHash.AssaultRifleMk2CamoZebra,
284
- ComponentAttachmentPoint.GunRoot,
285
- ],
286
- [
287
- WeaponComponentHash.AssaultRifleMk2CamoGeometric,
288
- ComponentAttachmentPoint.GunRoot,
289
- ],
290
- [
291
- WeaponComponentHash.AssaultRifleMk2CamoBoom,
292
- ComponentAttachmentPoint.GunRoot,
293
- ],
294
- [
295
- WeaponComponentHash.AssaultRifleMk2CamoPatriotic,
296
- ComponentAttachmentPoint.GunRoot,
297
- ],
298
- [
299
- WeaponComponentHash.CarbineRifleMk2CamoDigital,
300
- ComponentAttachmentPoint.GunRoot,
301
- ],
302
- [
303
- WeaponComponentHash.CarbineRifleMk2CamoBrushstroke,
304
- ComponentAttachmentPoint.GunRoot,
305
- ],
306
- [
307
- WeaponComponentHash.CarbineRifleMk2CamoWoodland,
308
- ComponentAttachmentPoint.GunRoot,
309
- ],
310
- [
311
- WeaponComponentHash.CarbineRifleMk2CamoSkull,
312
- ComponentAttachmentPoint.GunRoot,
313
- ],
314
- [
315
- WeaponComponentHash.CarbineRifleMk2CamoSessanta,
316
- ComponentAttachmentPoint.GunRoot,
317
- ],
318
- [
319
- WeaponComponentHash.CarbineRifleMk2CamoPerseus,
320
- ComponentAttachmentPoint.GunRoot,
321
- ],
322
- [
323
- WeaponComponentHash.CarbineRifleMk2CamoLeopard,
324
- ComponentAttachmentPoint.GunRoot,
325
- ],
326
- [
327
- WeaponComponentHash.CarbineRifleMk2CamoZebra,
328
- ComponentAttachmentPoint.GunRoot,
329
- ],
330
- [
331
- WeaponComponentHash.CarbineRifleMk2CamoGeometric,
332
- ComponentAttachmentPoint.GunRoot,
333
- ],
334
- [
335
- WeaponComponentHash.CarbineRifleMk2CamoBoom,
336
- ComponentAttachmentPoint.GunRoot,
337
- ],
338
- [
339
- WeaponComponentHash.CarbineRifleMk2CamoPatriotic,
340
- ComponentAttachmentPoint.GunRoot,
341
- ],
342
- [
343
- WeaponComponentHash.CombatMGMk2CamoDigital,
344
- ComponentAttachmentPoint.GunRoot,
345
- ],
346
- [
347
- WeaponComponentHash.CombatMGMk2CamoBrushstroke,
348
- ComponentAttachmentPoint.GunRoot,
349
- ],
350
- [
351
- WeaponComponentHash.CombatMGMk2CamoWoodland,
352
- ComponentAttachmentPoint.GunRoot,
353
- ],
354
- [WeaponComponentHash.CombatMGMk2CamoSkull, ComponentAttachmentPoint.GunRoot],
355
- [
356
- WeaponComponentHash.CombatMGMk2CamoSessanta,
357
- ComponentAttachmentPoint.GunRoot,
358
- ],
359
- [
360
- WeaponComponentHash.CombatMGMk2CamoPerseus,
361
- ComponentAttachmentPoint.GunRoot,
362
- ],
363
- [
364
- WeaponComponentHash.CombatMGMk2CamoLeopard,
365
- ComponentAttachmentPoint.GunRoot,
366
- ],
367
- [WeaponComponentHash.CombatMGMk2CamoZebra, ComponentAttachmentPoint.GunRoot],
368
- [
369
- WeaponComponentHash.CombatMGMk2CamoGeometric,
370
- ComponentAttachmentPoint.GunRoot,
371
- ],
372
- [WeaponComponentHash.CombatMGMk2CamoBoom, ComponentAttachmentPoint.GunRoot],
373
- [
374
- WeaponComponentHash.CombatMGMk2CamoPatriotic,
375
- ComponentAttachmentPoint.GunRoot,
376
- ],
377
- [
378
- WeaponComponentHash.HeavySniperMk2CamoDigital,
379
- ComponentAttachmentPoint.GunRoot,
380
- ],
381
- [
382
- WeaponComponentHash.HeavySniperMk2CamoBrushstroke,
383
- ComponentAttachmentPoint.GunRoot,
384
- ],
385
- [
386
- WeaponComponentHash.HeavySniperMk2CamoWoodland,
387
- ComponentAttachmentPoint.GunRoot,
388
- ],
389
- [
390
- WeaponComponentHash.HeavySniperMk2CamoSkull,
391
- ComponentAttachmentPoint.GunRoot,
392
- ],
393
- [
394
- WeaponComponentHash.HeavySniperMk2CamoSessanta,
395
- ComponentAttachmentPoint.GunRoot,
396
- ],
397
- [
398
- WeaponComponentHash.HeavySniperMk2CamoPerseus,
399
- ComponentAttachmentPoint.GunRoot,
400
- ],
401
- [
402
- WeaponComponentHash.HeavySniperMk2CamoLeopard,
403
- ComponentAttachmentPoint.GunRoot,
404
- ],
405
- [
406
- WeaponComponentHash.HeavySniperMk2CamoZebra,
407
- ComponentAttachmentPoint.GunRoot,
408
- ],
409
- [
410
- WeaponComponentHash.HeavySniperMk2CamoGeometric,
411
- ComponentAttachmentPoint.GunRoot,
412
- ],
413
- [
414
- WeaponComponentHash.HeavySniperMk2CamoBoom,
415
- ComponentAttachmentPoint.GunRoot,
416
- ],
417
- [
418
- WeaponComponentHash.HeavySniperMk2CamoPatriotic,
419
- ComponentAttachmentPoint.GunRoot,
420
- ],
421
- [WeaponComponentHash.SMGMk2CamoDigital, ComponentAttachmentPoint.GunRoot],
422
- [WeaponComponentHash.SMGMk2CamoBrushstroke, ComponentAttachmentPoint.GunRoot],
423
- [WeaponComponentHash.SMGMk2CamoWoodland, ComponentAttachmentPoint.GunRoot],
424
- [WeaponComponentHash.SMGMk2CamoSkull, ComponentAttachmentPoint.GunRoot],
425
- [WeaponComponentHash.SMGMk2CamoSessanta, ComponentAttachmentPoint.GunRoot],
426
- [WeaponComponentHash.SMGMk2CamoPerseus, ComponentAttachmentPoint.GunRoot],
427
- [WeaponComponentHash.SMGMk2CamoLeopard, ComponentAttachmentPoint.GunRoot],
428
- [WeaponComponentHash.SMGMk2CamoZebra, ComponentAttachmentPoint.GunRoot],
429
- [WeaponComponentHash.SMGMk2CamoGeometric, ComponentAttachmentPoint.GunRoot],
430
- [WeaponComponentHash.SMGMk2CamoBoom, ComponentAttachmentPoint.GunRoot],
431
- [WeaponComponentHash.SMGMk2CamoPatriotic, ComponentAttachmentPoint.GunRoot],
432
- [WeaponComponentHash.AtScopeMacro, ComponentAttachmentPoint.Scope],
433
- [WeaponComponentHash.AtScopeMacro02, ComponentAttachmentPoint.Scope],
434
- [WeaponComponentHash.AtScopeMacro, ComponentAttachmentPoint.Scope],
435
- [WeaponComponentHash.AtScopeMedium, ComponentAttachmentPoint.Scope],
436
- [WeaponComponentHash.AtScopeSmall, ComponentAttachmentPoint.Scope],
437
- [WeaponComponentHash.AtScopeSmall02, ComponentAttachmentPoint.Scope],
438
- [WeaponComponentHash.AtScopeMedium, ComponentAttachmentPoint.Scope],
439
- [WeaponComponentHash.AtScopeLarge, ComponentAttachmentPoint.Scope],
440
- [WeaponComponentHash.AtScopeMax, ComponentAttachmentPoint.Scope],
441
- [WeaponComponentHash.AtScopeLarge, ComponentAttachmentPoint.Scope],
442
- [WeaponComponentHash.AtScopeMax, ComponentAttachmentPoint.Scope],
443
- [WeaponComponentHash.AtScopeSmall, ComponentAttachmentPoint.Scope],
444
- [WeaponComponentHash.AtScopeMacro, ComponentAttachmentPoint.Scope],
445
- [WeaponComponentHash.PistolMk2Scope, ComponentAttachmentPoint.Scope],
446
- [WeaponComponentHash.PistolMk2Flash, ComponentAttachmentPoint.Scope],
447
- [
448
- WeaponComponentHash.HeavySniperMk2ScopeLarge,
449
- ComponentAttachmentPoint.Scope,
450
- ],
451
- [WeaponComponentHash.AtScopeMax, ComponentAttachmentPoint.Scope],
452
- [
453
- WeaponComponentHash.HeavySniperMk2ScopeNightvision,
454
- ComponentAttachmentPoint.Scope,
455
- ],
456
- [
457
- WeaponComponentHash.HeavySniperMk2ScopeThermal,
458
- ComponentAttachmentPoint.Scope,
459
- ],
460
- [WeaponComponentHash.SMGMk2Sights, ComponentAttachmentPoint.Scope],
461
- [WeaponComponentHash.SMGMk2ScopeMacro, ComponentAttachmentPoint.Scope],
462
- [WeaponComponentHash.SMGMk2ScopeSmall, ComponentAttachmentPoint.Scope],
463
- [
464
- WeaponComponentHash.PistolMk2CamoSlideDigital,
465
- ComponentAttachmentPoint.Scope2,
466
- ],
467
- [
468
- WeaponComponentHash.PistolMk2CamoSlideBrushstroke,
469
- ComponentAttachmentPoint.Scope2,
470
- ],
471
- [
472
- WeaponComponentHash.PistolMk2CamoSlideWoodland,
473
- ComponentAttachmentPoint.Scope2,
474
- ],
475
- [
476
- WeaponComponentHash.PistolMk2CamoSlideSkull,
477
- ComponentAttachmentPoint.Scope2,
478
- ],
479
- [
480
- WeaponComponentHash.PistolMk2CamoSlideSessanta,
481
- ComponentAttachmentPoint.Scope2,
482
- ],
483
- [
484
- WeaponComponentHash.PistolMk2CamoSlidePerseus,
485
- ComponentAttachmentPoint.Scope2,
486
- ],
487
- [
488
- WeaponComponentHash.PistolMk2CamoSlideLeopard,
489
- ComponentAttachmentPoint.Scope2,
490
- ],
491
- [
492
- WeaponComponentHash.PistolMk2CamoSlideZebra,
493
- ComponentAttachmentPoint.Scope2,
494
- ],
495
- [
496
- WeaponComponentHash.PistolMk2CamoSlideGeometric,
497
- ComponentAttachmentPoint.Scope2,
498
- ],
499
- [WeaponComponentHash.PistolMk2CamoSlideBoom, ComponentAttachmentPoint.Scope2],
500
- [
501
- WeaponComponentHash.PistolMk2CamoSlidePatriotic,
502
- ComponentAttachmentPoint.Scope2,
503
- ],
504
- [WeaponComponentHash.AtSights, ComponentAttachmentPoint.Scope2],
505
- [WeaponComponentHash.AtScopeMacroMk2, ComponentAttachmentPoint.Scope2],
506
- [WeaponComponentHash.AtScopeMediumMk2, ComponentAttachmentPoint.Scope2],
507
- [WeaponComponentHash.AtSights, ComponentAttachmentPoint.Scope2],
508
- [WeaponComponentHash.AtScopeSmallMk2, ComponentAttachmentPoint.Scope2],
509
- [WeaponComponentHash.AtScopeMediumMk2, ComponentAttachmentPoint.Scope2],
510
- [WeaponComponentHash.AtSights, ComponentAttachmentPoint.Scope2],
511
- [WeaponComponentHash.AtScopeMacroMk2, ComponentAttachmentPoint.Scope2],
512
- [WeaponComponentHash.AtScopeMediumMk2, ComponentAttachmentPoint.Scope2],
513
- [WeaponComponentHash.AtArAfGrip, ComponentAttachmentPoint.Grip2],
514
- [WeaponComponentHash.AtArAfGrip, ComponentAttachmentPoint.Grip2],
515
- [WeaponComponentHash.AtArAfGrip, ComponentAttachmentPoint.Grip2],
516
- [WeaponComponentHash.AtArAfGrip, ComponentAttachmentPoint.Grip2],
517
- [WeaponComponentHash.GrenadeLauncherClip01, ComponentAttachmentPoint.Grip2],
518
- [WeaponComponentHash.AtArAfGrip, ComponentAttachmentPoint.Grip2],
519
- [WeaponComponentHash.AtArAfGrip, ComponentAttachmentPoint.Grip2],
520
- [WeaponComponentHash.AtArAfGrip2, ComponentAttachmentPoint.Grip2],
521
- [WeaponComponentHash.AtArAfGrip2, ComponentAttachmentPoint.Grip2],
522
- [WeaponComponentHash.AtArAfGrip2, ComponentAttachmentPoint.Grip2],
523
- [WeaponComponentHash.AtArAfGrip2, ComponentAttachmentPoint.Grip2],
524
- [WeaponComponentHash.AtRailCover01, ComponentAttachmentPoint.Rail],
525
- [
526
- WeaponComponentHash.AssaultRifleMk2BarrelNormal,
527
- ComponentAttachmentPoint.Barrel,
528
- ],
529
- [
530
- WeaponComponentHash.AssaultRifleMk2BarrelHeavy,
531
- ComponentAttachmentPoint.Barrel,
532
- ],
533
- [
534
- WeaponComponentHash.CarbineRifleMk2BarrelNormal,
535
- ComponentAttachmentPoint.Barrel,
536
- ],
537
- [
538
- WeaponComponentHash.CarbineRifleMk2BarrelHeavy,
539
- ComponentAttachmentPoint.Barrel,
540
- ],
541
- [
542
- WeaponComponentHash.CombatMGMk2BarrelNormal,
543
- ComponentAttachmentPoint.Barrel,
544
- ],
545
- [WeaponComponentHash.CombatMGMk2BarrelHeavy, ComponentAttachmentPoint.Barrel],
546
- [
547
- WeaponComponentHash.HeavySniperMk2BarrelNormal,
548
- ComponentAttachmentPoint.Barrel,
549
- ],
550
- [
551
- WeaponComponentHash.HeavySniperMk2BarrelHeavy,
552
- ComponentAttachmentPoint.Barrel,
553
- ],
554
- [WeaponComponentHash.SMGMk2BarrelNormal, ComponentAttachmentPoint.Barrel],
555
- [WeaponComponentHash.SMGMk2BarrelHeavy, ComponentAttachmentPoint.Barrel],
556
- ]);
557
- /**
558
- * Initialize with DlcWeaponComponentData, in case of any missing dlc data
559
- *
560
- */
561
- function initializeOnce() {
562
- let isInitialized = false;
563
- return function () {
564
- if (isInitialized) {
565
- return;
566
- }
567
- for (const [hash, data] of DlcWeaponComponentData) {
568
- ComponentAttachmentPointByHash.set(hash, data.attachBone);
569
- }
570
- isInitialized = true;
571
- };
572
- }
573
- initializeOnce()();