@nativewrappers/fivem 0.0.42 → 0.0.45

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 (438) hide show
  1. package/{client/Audio.d.ts → Audio.d.ts} +3 -3
  2. package/{client/Audio.js → Audio.js} +44 -43
  3. package/{client/Blip.d.ts → Blip.d.ts} +3 -3
  4. package/{client/Blip.js → Blip.js} +4 -3
  5. package/{client/Camera.d.ts → Camera.d.ts} +4 -4
  6. package/{client/Camera.js → Camera.js} +18 -17
  7. package/{client/Checkpoint.d.ts → Checkpoint.d.ts} +2 -2
  8. package/{client/Checkpoint.js → Checkpoint.js} +7 -6
  9. package/{client/Events.js → Events.js} +23 -23
  10. package/{client/Game.d.ts → Game.d.ts} +4 -3
  11. package/{client/Game.js → Game.js} +16 -10
  12. package/{client/GameplayCamera.d.ts → GameplayCamera.d.ts} +2 -2
  13. package/{client/GameplayCamera.js → GameplayCamera.js} +2 -2
  14. package/{client/Model.d.ts → Model.d.ts} +4 -2
  15. package/{client/Model.js → Model.js} +19 -5
  16. package/{client/NetworkedScene.d.ts → NetworkedScene.d.ts} +2 -2
  17. package/{client/NetworkedScene.js → NetworkedScene.js} +1 -0
  18. package/{client/ParticleEffect.d.ts → ParticleEffect.d.ts} +3 -3
  19. package/{client/ParticleEffect.js → ParticleEffect.js} +11 -8
  20. package/{client/ParticleEffectAsset.d.ts → ParticleEffectAsset.d.ts} +3 -3
  21. package/{client/ParticleEffectAsset.js → ParticleEffectAsset.js} +4 -3
  22. package/{client/Pickup.d.ts → Pickup.d.ts} +1 -1
  23. package/{client/Pickup.js → Pickup.js} +2 -1
  24. package/{client/Raycast.d.ts → Raycast.d.ts} +3 -3
  25. package/{client/Raycast.js → Raycast.js} +10 -3
  26. package/{client/RelationshipGroup.d.ts → RelationshipGroup.d.ts} +1 -1
  27. package/{client/RelationshipGroup.js → RelationshipGroup.js} +4 -0
  28. package/{client/Rope.d.ts → Rope.d.ts} +2 -2
  29. package/{client/Rope.js → Rope.js} +6 -2
  30. package/{client/TaskSequence.d.ts → TaskSequence.d.ts} +1 -1
  31. package/{client/TaskSequence.js → TaskSequence.js} +5 -2
  32. package/{client/Tasks.d.ts → Tasks.d.ts} +5 -5
  33. package/{client/Tasks.js → Tasks.js} +7 -6
  34. package/{client/World.d.ts → World.d.ts} +20 -12
  35. package/{client/World.js → World.js} +66 -62
  36. package/{client/cfx → cfx}/index.d.ts +1 -1
  37. package/{client/enums → enums}/RaycastEnums.js +3 -1
  38. package/enums/index.d.ts +42 -0
  39. package/enums/index.js +42 -0
  40. package/hashes/index.d.ts +5 -0
  41. package/hashes/index.js +5 -0
  42. package/index.d.ts +24 -0
  43. package/index.js +25 -0
  44. package/{client/interfaces → interfaces}/Dimensions.d.ts +1 -1
  45. package/{client/models → models}/BaseEntity.d.ts +26 -26
  46. package/{client/models → models}/BaseEntity.js +32 -30
  47. package/{client/models → models}/EntityBone.d.ts +2 -2
  48. package/{client/models → models}/EntityBone.js +4 -2
  49. package/{client/models → models}/EntityBoneCollection.d.ts +2 -2
  50. package/{client/models → models}/EntityBoneCollection.js +5 -2
  51. package/{client/models → models}/Ped.d.ts +20 -9
  52. package/{client/models → models}/Ped.js +66 -56
  53. package/{client/models → models}/PedBone.d.ts +2 -2
  54. package/{client/models → models}/PedBone.js +1 -1
  55. package/{client/models → models}/PedBoneCollection.d.ts +1 -1
  56. package/{client/models → models}/PedBoneCollection.js +4 -2
  57. package/{client/models → models}/Player.d.ts +3 -3
  58. package/{client/models → models}/Player.js +12 -9
  59. package/{client/models → models}/Prop.d.ts +2 -2
  60. package/{client/models → models}/Prop.js +4 -4
  61. package/{client/models → models}/Vehicle.d.ts +6 -6
  62. package/{client/models → models}/Vehicle.js +22 -16
  63. package/{client/models → models}/VehicleDoor.d.ts +2 -2
  64. package/{client/models → models}/VehicleDoor.js +2 -0
  65. package/{client/models → models}/VehicleDoorCollection.d.ts +3 -3
  66. package/{client/models → models}/VehicleDoorCollection.js +16 -15
  67. package/{client/models → models}/VehicleMod.d.ts +2 -2
  68. package/{client/models → models}/VehicleMod.js +2 -0
  69. package/{client/models → models}/VehicleModCollection.d.ts +5 -5
  70. package/{client/models → models}/VehicleModCollection.js +20 -19
  71. package/{client/models → models}/VehicleToggleMod.d.ts +2 -2
  72. package/{client/models → models}/VehicleToggleMod.js +2 -0
  73. package/{client/models → models}/VehicleWheel.d.ts +1 -1
  74. package/{client/models → models}/VehicleWheel.js +2 -0
  75. package/{client/models → models}/VehicleWheelCollection.d.ts +3 -3
  76. package/{client/models → models}/VehicleWheelCollection.js +15 -14
  77. package/{client/models → models}/VehicleWindow.d.ts +2 -2
  78. package/{client/models → models}/VehicleWindow.js +2 -0
  79. package/{client/models → models}/VehicleWindowCollection.d.ts +3 -3
  80. package/{client/models → models}/VehicleWindowCollection.js +13 -12
  81. package/models/index.d.ts +18 -0
  82. package/models/index.js +19 -0
  83. package/package.json +6 -30
  84. package/{client/ui → ui}/Container.d.ts +2 -2
  85. package/{client/ui → ui}/Container.js +6 -3
  86. package/{client/ui → ui}/Effects.d.ts +1 -1
  87. package/ui/Effects.js +106 -0
  88. package/{client/ui → ui}/Fading.js +2 -2
  89. package/{client/ui → ui}/Hud.d.ts +2 -2
  90. package/{client/ui → ui}/Hud.js +1 -1
  91. package/{client/ui → ui}/InstructionalButtons.d.ts +1 -1
  92. package/{client/ui → ui}/InstructionalButtons.js +8 -7
  93. package/{client/ui → ui}/LoadingPrompt.d.ts +1 -1
  94. package/{client/ui → ui}/LoadingPrompt.js +5 -5
  95. package/{client/ui → ui}/Notification.js +1 -0
  96. package/{client/ui → ui}/Rectangle.d.ts +2 -2
  97. package/{client/ui → ui}/Rectangle.js +5 -2
  98. package/{client/ui → ui}/Scaleform.d.ts +1 -1
  99. package/{client/ui → ui}/Scaleform.js +10 -8
  100. package/{client/ui → ui}/Screen.d.ts +3 -3
  101. package/{client/ui → ui}/Screen.js +13 -13
  102. package/{client/ui → ui}/Sprite.d.ts +1 -1
  103. package/{client/ui → ui}/Sprite.js +10 -3
  104. package/{client/ui → ui}/Text.d.ts +3 -3
  105. package/{client/ui → ui}/Text.js +19 -7
  106. package/{client/ui → ui}/Timerbar.d.ts +1 -1
  107. package/{client/ui → ui}/Timerbar.js +37 -30
  108. package/ui/index.d.ts +15 -0
  109. package/ui/index.js +15 -0
  110. package/{client/ui → ui}/interfaces/IButton.d.ts +1 -1
  111. package/{client/ui → ui}/interfaces/IDrawable.d.ts +1 -1
  112. package/ui/interfaces/index.d.ts +2 -0
  113. package/{client/ui → ui}/menu/Menu.d.ts +4 -4
  114. package/{client/ui → ui}/menu/Menu.js +96 -67
  115. package/{client/ui → ui}/menu/MenuControl.js +1 -0
  116. package/{client/ui → ui}/menu/MenuControls.d.ts +1 -1
  117. package/ui/menu/MenuControls.js +9 -0
  118. package/{client/ui → ui}/menu/MenuSettings.d.ts +1 -1
  119. package/ui/menu/MenuSettings.js +54 -0
  120. package/ui/menu/index.d.ts +6 -0
  121. package/ui/menu/index.js +6 -0
  122. package/{client/ui → ui}/menu/items/UIMenuCheckboxItem.d.ts +3 -3
  123. package/{client/ui → ui}/menu/items/UIMenuCheckboxItem.js +17 -15
  124. package/{client/ui → ui}/menu/items/UIMenuItem.d.ts +4 -4
  125. package/{client/ui → ui}/menu/items/UIMenuItem.js +276 -255
  126. package/{client/ui → ui}/menu/items/UIMenuListItem.d.ts +3 -3
  127. package/{client/ui → ui}/menu/items/UIMenuListItem.js +28 -19
  128. package/{client/ui → ui}/menu/items/UIMenuSeparatorItem.d.ts +1 -1
  129. package/{client/ui → ui}/menu/items/UIMenuSeparatorItem.js +10 -10
  130. package/{client/ui → ui}/menu/items/UIMenuSliderItem.d.ts +3 -3
  131. package/{client/ui → ui}/menu/items/UIMenuSliderItem.js +45 -27
  132. package/ui/menu/items/index.d.ts +6 -0
  133. package/ui/menu/items/index.js +6 -0
  134. package/{client/ui → ui}/menu/items/panels/AbstractUIMenuPanel.d.ts +3 -3
  135. package/{client/ui → ui}/menu/items/panels/AbstractUIMenuPanel.js +9 -8
  136. package/{client/ui → ui}/menu/items/panels/UIMenuColorPanel.d.ts +3 -3
  137. package/{client/ui → ui}/menu/items/panels/UIMenuColorPanel.js +29 -23
  138. package/{client/ui → ui}/menu/items/panels/UIMenuGridPanel.d.ts +3 -3
  139. package/{client/ui → ui}/menu/items/panels/UIMenuGridPanel.js +86 -40
  140. package/{client/ui → ui}/menu/items/panels/UIMenuPercentagePanel.d.ts +2 -2
  141. package/{client/ui → ui}/menu/items/panels/UIMenuPercentagePanel.js +27 -18
  142. package/{client/ui → ui}/menu/items/panels/UIMenuStatisticsPanel.d.ts +2 -2
  143. package/{client/ui → ui}/menu/items/panels/UIMenuStatisticsPanel.js +10 -8
  144. package/{client/ui → ui}/menu/items/panels/UIMenuStatisticsPanelItem.d.ts +1 -1
  145. package/{client/ui → ui}/menu/items/panels/UIMenuStatisticsPanelItem.js +10 -7
  146. package/ui/menu/items/panels/index.d.ts +6 -0
  147. package/ui/menu/items/panels/index.js +6 -0
  148. package/{client/ui → ui}/menu/modules/ListItem.js +4 -2
  149. package/ui/menu/modules/index.d.ts +1 -0
  150. package/ui/menu/modules/index.js +1 -0
  151. package/{client/utils → utils}/Animations.js +2 -2
  152. package/{client/utils → utils}/Crypto.js +5 -5
  153. package/{client/utils → utils}/LiteEvent.js +3 -5
  154. package/{client/utils → utils}/Point.js +5 -3
  155. package/{common/utils → utils}/PointF.js +3 -0
  156. package/{client/utils → utils}/Quaternion.d.ts +1 -1
  157. package/{client/utils → utils}/Quaternion.js +5 -1
  158. package/{client/utils → utils}/Size.js +2 -0
  159. package/{client/utils → utils}/String.d.ts +1 -1
  160. package/{client/utils → utils}/String.js +3 -3
  161. package/{client/utils → utils}/enumValues.js +2 -2
  162. package/{client/utils → utils}/getStringFromUInt8Array.js +1 -1
  163. package/utils/index.d.ts +9 -0
  164. package/utils/index.js +9 -0
  165. package/{client/weapon → weapon}/DlcWeaponData.d.ts +1 -1
  166. package/{client/weapon → weapon}/DlcWeaponData.js +3 -3
  167. package/{client/weapon → weapon}/Weapon.d.ts +10 -10
  168. package/{client/weapon → weapon}/Weapon.js +17 -14
  169. package/{client/weapon → weapon}/WeaponAsset.d.ts +1 -1
  170. package/{client/weapon → weapon}/WeaponAsset.js +4 -3
  171. package/{client/weapon → weapon}/WeaponCollection.d.ts +3 -3
  172. package/{client/weapon → weapon}/WeaponCollection.js +4 -3
  173. package/{client/weapon → weapon}/WeaponDisplayNameByHash.d.ts +1 -1
  174. package/weapon/WeaponDisplayNameByHash.js +75 -0
  175. package/{client/weapon → weapon}/WeaponHudStats.d.ts +1 -1
  176. package/{client/weapon → weapon}/WeaponHudStats.js +4 -4
  177. package/weapon/index.d.ts +8 -0
  178. package/weapon/index.js +8 -0
  179. package/{client/weaponComponent → weaponComponent}/ComponentAttachmentPointByHash.d.ts +2 -2
  180. package/{client/weaponComponent → weaponComponent}/ComponentAttachmentPointByHash.js +355 -91
  181. package/{client/weaponComponent → weaponComponent}/ComponentDisplayNameByHash.d.ts +1 -1
  182. package/weaponComponent/ComponentDisplayNameByHash.js +280 -0
  183. package/{client/weaponComponent → weaponComponent}/DlcWeaponComponentData.d.ts +1 -1
  184. package/{client/weaponComponent → weaponComponent}/DlcWeaponComponentData.js +2 -2
  185. package/{client/weaponComponent → weaponComponent}/InvalidWeaponComponent.d.ts +4 -4
  186. package/{client/weaponComponent → weaponComponent}/InvalidWeaponComponent.js +5 -5
  187. package/{client/weaponComponent → weaponComponent}/WeaponComponent.d.ts +6 -6
  188. package/{client/weaponComponent → weaponComponent}/WeaponComponent.js +15 -11
  189. package/{client/weaponComponent → weaponComponent}/WeaponComponentCollection.d.ts +4 -4
  190. package/{client/weaponComponent → weaponComponent}/WeaponComponentCollection.js +13 -11
  191. package/{client/weaponComponent → weaponComponent}/WeaponComponentHashesByWeaponHash.d.ts +2 -2
  192. package/{client/weaponComponent → weaponComponent}/WeaponComponentHashesByWeaponHash.js +13 -7
  193. package/{client/weaponComponent → weaponComponent}/WeaponComponentHudStats.d.ts +1 -1
  194. package/{client/weaponComponent → weaponComponent}/WeaponComponentHudStats.js +4 -4
  195. package/weaponComponent/index.d.ts +5 -0
  196. package/weaponComponent/index.js +5 -0
  197. package/README.md +0 -41
  198. package/client/enums/index.d.ts +0 -42
  199. package/client/enums/index.js +0 -42
  200. package/client/hashes/index.d.ts +0 -5
  201. package/client/hashes/index.js +0 -5
  202. package/client/index.d.ts +0 -24
  203. package/client/index.js +0 -25
  204. package/client/models/index.d.ts +0 -18
  205. package/client/models/index.js +0 -19
  206. package/client/ui/Effects.js +0 -106
  207. package/client/ui/index.d.ts +0 -15
  208. package/client/ui/index.js +0 -15
  209. package/client/ui/interfaces/index.d.ts +0 -2
  210. package/client/ui/menu/MenuControls.js +0 -11
  211. package/client/ui/menu/MenuSettings.js +0 -51
  212. package/client/ui/menu/index.d.ts +0 -6
  213. package/client/ui/menu/index.js +0 -6
  214. package/client/ui/menu/items/index.d.ts +0 -6
  215. package/client/ui/menu/items/index.js +0 -6
  216. package/client/ui/menu/items/panels/index.d.ts +0 -6
  217. package/client/ui/menu/items/panels/index.js +0 -6
  218. package/client/ui/menu/modules/index.d.ts +0 -1
  219. package/client/ui/menu/modules/index.js +0 -1
  220. package/client/utils/PointF.js +0 -11
  221. package/client/utils/index.d.ts +0 -9
  222. package/client/utils/index.js +0 -9
  223. package/client/weapon/WeaponDisplayNameByHash.js +0 -75
  224. package/client/weapon/index.d.ts +0 -8
  225. package/client/weapon/index.js +0 -8
  226. package/client/weaponComponent/ComponentDisplayNameByHash.js +0 -280
  227. package/client/weaponComponent/index.d.ts +0 -5
  228. package/client/weaponComponent/index.js +0 -5
  229. package/common/Convar.d.ts +0 -8
  230. package/common/Convar.js +0 -20
  231. package/common/Kvp.d.ts +0 -91
  232. package/common/Kvp.js +0 -161
  233. package/common/Resource.d.ts +0 -14
  234. package/common/Resource.js +0 -35
  235. package/common/index.d.ts +0 -5
  236. package/common/index.js +0 -5
  237. package/common/types.d.ts +0 -5
  238. package/common/types.js +0 -1
  239. package/common/utils/ClassTypes.d.ts +0 -11
  240. package/common/utils/ClassTypes.js +0 -12
  241. package/common/utils/Color.d.ts +0 -14
  242. package/common/utils/Color.js +0 -21
  243. package/common/utils/Maths.d.ts +0 -4
  244. package/common/utils/Maths.js +0 -10
  245. package/common/utils/PointF.d.ts +0 -12
  246. package/common/utils/Quaternion.d.ts +0 -10
  247. package/common/utils/Quaternion.js +0 -23
  248. package/common/utils/Vector.d.ts +0 -390
  249. package/common/utils/Vector.js +0 -546
  250. package/common/utils/Vector2.d.ts +0 -1
  251. package/common/utils/Vector2.js +0 -1
  252. package/common/utils/Vector3.d.ts +0 -1
  253. package/common/utils/Vector3.js +0 -1
  254. package/common/utils/Vector4.d.ts +0 -1
  255. package/common/utils/Vector4.js +0 -1
  256. package/common/utils/cleanPlayerName.d.ts +0 -6
  257. package/common/utils/cleanPlayerName.js +0 -27
  258. package/common/utils/enumValues.d.ts +0 -12
  259. package/common/utils/enumValues.js +0 -14
  260. package/common/utils/getStringFromUInt8Array.d.ts +0 -8
  261. package/common/utils/getStringFromUInt8Array.js +0 -10
  262. package/common/utils/getUInt32FromUint8Array.d.ts +0 -8
  263. package/common/utils/getUInt32FromUint8Array.js +0 -8
  264. package/common/utils/index.d.ts +0 -12
  265. package/common/utils/index.js +0 -12
  266. package/server/Events.d.ts +0 -16
  267. package/server/Events.js +0 -79
  268. package/server/Game.d.ts +0 -25
  269. package/server/Game.js +0 -55
  270. package/server/cfx/StateBagChangeHandler.d.ts +0 -3
  271. package/server/cfx/StateBagChangeHandler.js +0 -1
  272. package/server/cfx/index.d.ts +0 -6
  273. package/server/cfx/index.js +0 -1
  274. package/server/entities/BaseEntity.d.ts +0 -47
  275. package/server/entities/BaseEntity.js +0 -109
  276. package/server/entities/Entity.d.ts +0 -6
  277. package/server/entities/Entity.js +0 -12
  278. package/server/entities/Ped.d.ts +0 -32
  279. package/server/entities/Ped.js +0 -81
  280. package/server/entities/Player.d.ts +0 -63
  281. package/server/entities/Player.js +0 -135
  282. package/server/entities/Prop.d.ts +0 -14
  283. package/server/entities/Prop.js +0 -32
  284. package/server/entities/Vehicle.d.ts +0 -67
  285. package/server/entities/Vehicle.js +0 -175
  286. package/server/entities/index.d.ts +0 -5
  287. package/server/entities/index.js +0 -5
  288. package/server/enum/PopulationType.d.ts +0 -13
  289. package/server/enum/PopulationType.js +0 -14
  290. package/server/enum/VehicleLockStatus.d.ts +0 -9
  291. package/server/enum/VehicleLockStatus.js +0 -10
  292. package/server/enum/VehicleType.d.ts +0 -10
  293. package/server/enum/VehicleType.js +0 -11
  294. package/server/enum/eEntityType.d.ts +0 -5
  295. package/server/enum/eEntityType.js +0 -6
  296. package/server/enum/index.d.ts +0 -4
  297. package/server/enum/index.js +0 -4
  298. package/server/index.d.ts +0 -7
  299. package/server/index.js +0 -7
  300. package/server/type/Anticheat.d.ts +0 -153
  301. package/server/type/Anticheat.js +0 -1
  302. package/server/type/Hash.d.ts +0 -1
  303. package/server/type/Hash.js +0 -1
  304. package/server/utils/index.d.ts +0 -1
  305. package/server/utils/index.js +0 -1
  306. /package/{client/Events.d.ts → Events.d.ts} +0 -0
  307. /package/{client/cfx → cfx}/StateBagChangeHandler.d.ts +0 -0
  308. /package/{client/cfx → cfx}/StateBagChangeHandler.js +0 -0
  309. /package/{client/cfx → cfx}/index.js +0 -0
  310. /package/{client/enums → enums}/Alignment.d.ts +0 -0
  311. /package/{client/enums → enums}/Alignment.js +0 -0
  312. /package/{client/enums → enums}/AnimationFlags.d.ts +0 -0
  313. /package/{client/enums → enums}/AnimationFlags.js +0 -0
  314. /package/{client/enums → enums}/AudioFlag.d.ts +0 -0
  315. /package/{client/enums → enums}/AudioFlag.js +0 -0
  316. /package/{client/enums → enums}/BadgeStyle.d.ts +0 -0
  317. /package/{client/enums → enums}/BadgeStyle.js +0 -0
  318. /package/{client/enums → enums}/Blip.d.ts +0 -0
  319. /package/{client/enums → enums}/Blip.js +0 -0
  320. /package/{client/enums → enums}/Bone.d.ts +0 -0
  321. /package/{client/enums → enums}/Bone.js +0 -0
  322. /package/{client/enums → enums}/CameraShake.d.ts +0 -0
  323. /package/{client/enums → enums}/CameraShake.js +0 -0
  324. /package/{client/enums → enums}/CameraTypes.d.ts +0 -0
  325. /package/{client/enums → enums}/CameraTypes.js +0 -0
  326. /package/{client/enums → enums}/CheckboxStyle.d.ts +0 -0
  327. /package/{client/enums → enums}/CheckboxStyle.js +0 -0
  328. /package/{client/enums → enums}/Checkpoint.d.ts +0 -0
  329. /package/{client/enums → enums}/Checkpoint.js +0 -0
  330. /package/{client/enums → enums}/CloudHat.d.ts +0 -0
  331. /package/{client/enums → enums}/CloudHat.js +0 -0
  332. /package/{client/enums → enums}/Control.d.ts +0 -0
  333. /package/{client/enums → enums}/Control.js +0 -0
  334. /package/{client/enums → enums}/CursorSprite.d.ts +0 -0
  335. /package/{client/enums → enums}/CursorSprite.js +0 -0
  336. /package/{client/enums → enums}/Driving.d.ts +0 -0
  337. /package/{client/enums → enums}/Driving.js +0 -0
  338. /package/{client/enums → enums}/ExplosionType.d.ts +0 -0
  339. /package/{client/enums → enums}/ExplosionType.js +0 -0
  340. /package/{client/enums → enums}/FiringPattern.d.ts +0 -0
  341. /package/{client/enums → enums}/FiringPattern.js +0 -0
  342. /package/{client/enums → enums}/Font.d.ts +0 -0
  343. /package/{client/enums → enums}/Font.js +0 -0
  344. /package/{client/enums → enums}/ForceType.d.ts +0 -0
  345. /package/{client/enums → enums}/ForceType.js +0 -0
  346. /package/{client/enums → enums}/Gender.d.ts +0 -0
  347. /package/{client/enums → enums}/Gender.js +0 -0
  348. /package/{client/enums → enums}/HelmetType.d.ts +0 -0
  349. /package/{client/enums → enums}/HelmetType.js +0 -0
  350. /package/{client/enums → enums}/HudColor.d.ts +0 -0
  351. /package/{client/enums → enums}/HudColor.js +0 -0
  352. /package/{client/enums → enums}/HudComponent.d.ts +0 -0
  353. /package/{client/enums → enums}/HudComponent.js +0 -0
  354. /package/{client/enums → enums}/InputMode.d.ts +0 -0
  355. /package/{client/enums → enums}/InputMode.js +0 -0
  356. /package/{client/enums → enums}/InvertAxis.d.ts +0 -0
  357. /package/{client/enums → enums}/InvertAxis.js +0 -0
  358. /package/{client/enums → enums}/Language.d.ts +0 -0
  359. /package/{client/enums → enums}/Language.js +0 -0
  360. /package/{client/enums → enums}/LeaveVehicleFlags.d.ts +0 -0
  361. /package/{client/enums → enums}/LeaveVehicleFlags.js +0 -0
  362. /package/{client/enums → enums}/LoadingSpinnerType.d.ts +0 -0
  363. /package/{client/enums → enums}/LoadingSpinnerType.js +0 -0
  364. /package/{client/enums → enums}/MarkerType.d.ts +0 -0
  365. /package/{client/enums → enums}/MarkerType.js +0 -0
  366. /package/{client/enums → enums}/MenuAlignment.d.ts +0 -0
  367. /package/{client/enums → enums}/MenuAlignment.js +0 -0
  368. /package/{client/enums → enums}/NotificationType.d.ts +0 -0
  369. /package/{client/enums → enums}/NotificationType.js +0 -0
  370. /package/{client/enums → enums}/Parachute.d.ts +0 -0
  371. /package/{client/enums → enums}/Parachute.js +0 -0
  372. /package/{client/enums → enums}/PickupType.d.ts +0 -0
  373. /package/{client/enums → enums}/PickupType.js +0 -0
  374. /package/{client/enums → enums}/RadioStation.d.ts +0 -0
  375. /package/{client/enums → enums}/RadioStation.js +0 -0
  376. /package/{client/enums → enums}/RagdollType.d.ts +0 -0
  377. /package/{client/enums → enums}/RagdollType.js +0 -0
  378. /package/{client/enums → enums}/RaycastEnums.d.ts +0 -0
  379. /package/{client/enums → enums}/Relationship.d.ts +0 -0
  380. /package/{client/enums → enums}/Relationship.js +0 -0
  381. /package/{client/enums → enums}/RopeType.d.ts +0 -0
  382. /package/{client/enums → enums}/RopeType.js +0 -0
  383. /package/{client/enums → enums}/ScreenEffect.d.ts +0 -0
  384. /package/{client/enums → enums}/ScreenEffect.js +0 -0
  385. /package/{client/enums → enums}/SpeechModifier.d.ts +0 -0
  386. /package/{client/enums → enums}/SpeechModifier.js +0 -0
  387. /package/{client/enums → enums}/Vehicle.d.ts +0 -0
  388. /package/{client/enums → enums}/Vehicle.js +0 -0
  389. /package/{client/enums → enums}/Weather.d.ts +0 -0
  390. /package/{client/enums → enums}/Weather.js +0 -0
  391. /package/{client/enums → enums}/ZoneID.d.ts +0 -0
  392. /package/{client/enums → enums}/ZoneID.js +0 -0
  393. /package/{client/hashes → hashes}/MaterialHash.d.ts +0 -0
  394. /package/{client/hashes → hashes}/MaterialHash.js +0 -0
  395. /package/{client/hashes → hashes}/PedHash.d.ts +0 -0
  396. /package/{client/hashes → hashes}/PedHash.js +0 -0
  397. /package/{client/hashes → hashes}/VehicleHash.d.ts +0 -0
  398. /package/{client/hashes → hashes}/VehicleHash.js +0 -0
  399. /package/{client/hashes → hashes}/WeaponHash.d.ts +0 -0
  400. /package/{client/hashes → hashes}/WeaponHash.js +0 -0
  401. /package/{client/hashes → hashes}/WeatherTypeHash.d.ts +0 -0
  402. /package/{client/hashes → hashes}/WeatherTypeHash.js +0 -0
  403. /package/{client/interfaces → interfaces}/Dimensions.js +0 -0
  404. /package/{client/models → models}/Entity.d.ts +0 -0
  405. /package/{client/models → models}/Entity.js +0 -0
  406. /package/{client/ui → ui}/Fading.d.ts +0 -0
  407. /package/{client/ui → ui}/Notification.d.ts +0 -0
  408. /package/{client/ui → ui}/interfaces/IButton.js +0 -0
  409. /package/{client/ui → ui}/interfaces/IDrawable.js +0 -0
  410. /package/{client/ui → ui}/interfaces/index.js +0 -0
  411. /package/{client/ui → ui}/menu/MenuControl.d.ts +0 -0
  412. /package/{client/ui → ui}/menu/modules/ListItem.d.ts +0 -0
  413. /package/{client/utils → utils}/Animations.d.ts +0 -0
  414. /package/{client/utils → utils}/Crypto.d.ts +0 -0
  415. /package/{client/utils → utils}/LiteEvent.d.ts +0 -0
  416. /package/{client/utils → utils}/Maths.d.ts +0 -0
  417. /package/{client/utils → utils}/Maths.js +0 -0
  418. /package/{client/utils → utils}/Point.d.ts +0 -0
  419. /package/{client/utils → utils}/PointF.d.ts +0 -0
  420. /package/{client/utils → utils}/Size.d.ts +0 -0
  421. /package/{client/utils → utils}/enumValues.d.ts +0 -0
  422. /package/{client/utils → utils}/getStringFromUInt8Array.d.ts +0 -0
  423. /package/{client/utils → utils}/getUInt32FromUint8Array.d.ts +0 -0
  424. /package/{client/utils → utils}/getUInt32FromUint8Array.js +0 -0
  425. /package/{client/weapon → weapon}/Mk2WeaponHash.d.ts +0 -0
  426. /package/{client/weapon → weapon}/Mk2WeaponHash.js +0 -0
  427. /package/{client/weapon → weapon}/WeaponGroup.d.ts +0 -0
  428. /package/{client/weapon → weapon}/WeaponGroup.js +0 -0
  429. /package/{client/weapon → weapon}/WeaponLivery.d.ts +0 -0
  430. /package/{client/weapon → weapon}/WeaponLivery.js +0 -0
  431. /package/{client/weapon → weapon}/WeaponLiveryColor.d.ts +0 -0
  432. /package/{client/weapon → weapon}/WeaponLiveryColor.js +0 -0
  433. /package/{client/weapon → weapon}/WeaponTint.d.ts +0 -0
  434. /package/{client/weapon → weapon}/WeaponTint.js +0 -0
  435. /package/{client/weaponComponent → weaponComponent}/ComponentAttachmentPoint.d.ts +0 -0
  436. /package/{client/weaponComponent → weaponComponent}/ComponentAttachmentPoint.js +0 -0
  437. /package/{client/weaponComponent → weaponComponent}/WeaponComponentHash.d.ts +0 -0
  438. /package/{client/weaponComponent → weaponComponent}/WeaponComponentHash.js +0 -0
@@ -1,280 +0,0 @@
1
- import { WeaponComponentHash } from './WeaponComponentHash';
2
- import { DlcWeaponComponentData } from './DlcWeaponComponentData';
3
- /**
4
- * Mapping of WeaponComponentHash -> ComponentDisplayName(Label)
5
- *
6
- */
7
- export const ComponentDisplayNameByHash = new Map([
8
- [WeaponComponentHash.Invalid, 'WCT_INVALID'],
9
- // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_BASE, 'WT_KNUCKLE'],
10
- // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_PIMP, 'WCT_KNUCK_02'],
11
- // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_BALLAS, 'WCT_KNUCK_BG'],
12
- // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_DOLLAR, 'WCT_KNUCK_DLR'],
13
- // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_DIAMOND, 'WCT_KNUCK_DMD'],
14
- // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_HATE, 'WCT_KNUCK_HT'],
15
- // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_LOVE, 'WCT_KNUCK_LV'],
16
- // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_PLAYER, 'WCT_KNUCK_PC'],
17
- // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_KING, 'WCT_KNUCK_SLG'],
18
- // [WeaponComponentHash.COMPONENT_KNUCKLE_VARMOD_VAGOS, 'WCT_KNUCK_VG'],
19
- [WeaponComponentHash.KnuckleVarmodBase, 'WT_KNUCKLE'],
20
- [WeaponComponentHash.KnuckleVarmodPimp, 'WCT_KNUCK_02'],
21
- [WeaponComponentHash.KnuckleVarmodBallas, 'WCT_KNUCK_BG'],
22
- [WeaponComponentHash.KnuckleVarmodDollar, 'WCT_KNUCK_DLR'],
23
- [WeaponComponentHash.KnuckleVarmodDiamond, 'WCT_KNUCK_DMD'],
24
- [WeaponComponentHash.KnuckleVarmodHate, 'WCT_KNUCK_HT'],
25
- [WeaponComponentHash.KnuckleVarmodLove, 'WCT_KNUCK_LV'],
26
- [WeaponComponentHash.KnuckleVarmodPlayer, 'WCT_KNUCK_PC'],
27
- [WeaponComponentHash.KnuckleVarmodKing, 'WCT_KNUCK_SLG'],
28
- [WeaponComponentHash.KnuckleVarmodVagos, 'WCT_KNUCK_VG'],
29
- [WeaponComponentHash.Invalid, 'WCT_INVALID'],
30
- [WeaponComponentHash.AtRailCover01, 'WCT_RAIL'],
31
- [WeaponComponentHash.AtArAfGrip, 'WCT_GRIP'],
32
- [WeaponComponentHash.AtArAfGrip2, 'WCT_GRIP'],
33
- [WeaponComponentHash.AtPiFlsh, 'WCT_FLASH'],
34
- [WeaponComponentHash.AtArFlsh, 'WCT_FLASH'],
35
- [WeaponComponentHash.PistolMk2Flash, 'WCT_FLASH'],
36
- [WeaponComponentHash.AtScopeMacro, 'WCT_SCOPE_MAC'],
37
- [WeaponComponentHash.AtScopeMacro02, 'WCT_SCOPE_MAC'],
38
- [WeaponComponentHash.AtScopeSmall, 'WCT_SCOPE_SML'],
39
- [WeaponComponentHash.AtScopeSmall02, 'WCT_SCOPE_SML'],
40
- [WeaponComponentHash.AtScopeMedium, 'WCT_SCOPE_MED'],
41
- [WeaponComponentHash.AtScopeLarge, 'WCT_SCOPE_LRG'],
42
- [WeaponComponentHash.AtScopeMax, 'WCT_SCOPE_MAX'],
43
- [WeaponComponentHash.AtPiSupp, 'WCT_SUPP'],
44
- [WeaponComponentHash.AtArSupp, 'WCT_SUPP'],
45
- [WeaponComponentHash.AtArSupp02, 'WCT_SUPP'],
46
- [WeaponComponentHash.AtSrSupp, 'WCT_SUPP'],
47
- [WeaponComponentHash.HeavySniperMk2Suppressor, 'WCT_SUPP'],
48
- [WeaponComponentHash.AtPiSupp02, 'WCT_SUPP'],
49
- [WeaponComponentHash.CombatPistolClip01, 'WCT_CLIP1'],
50
- [WeaponComponentHash.APPistolClip01, 'WCT_CLIP1'],
51
- [WeaponComponentHash.MicroSMGClip01, 'WCT_CLIP1'],
52
- [WeaponComponentHash.AssaultRifleClip01, 'WCT_CLIP1'],
53
- [WeaponComponentHash.CarbineRifleClip01, 'WCT_CLIP1'],
54
- [WeaponComponentHash.AdvancedRifleClip01, 'WCT_CLIP1'],
55
- [WeaponComponentHash.MGClip01, 'WCT_CLIP1'],
56
- [WeaponComponentHash.CombatMGClip01, 'WCT_CLIP1'],
57
- [WeaponComponentHash.AssaultShotgunClip01, 'WCT_CLIP1'],
58
- [WeaponComponentHash.SniperRifleClip01, 'WCT_CLIP1'],
59
- [WeaponComponentHash.HeavySniperClip01, 'WCT_CLIP1'],
60
- [WeaponComponentHash.AssaultSMGClip01, 'WCT_CLIP1'],
61
- [WeaponComponentHash.Pistol50Clip01, 'WCT_CLIP1'],
62
- [0x0baab157, 'WCT_CLIP1'],
63
- [0x5af49386, 'WCT_CLIP1'],
64
- [0xcaebd246, 'WCT_CLIP1'],
65
- [0xf8955d89, 'WCT_CLIP1'],
66
- [WeaponComponentHash.SNSPistolClip01, 'WCT_CLIP1'],
67
- [WeaponComponentHash.VintagePistolClip01, 'WCT_CLIP1'],
68
- [WeaponComponentHash.HeavyShotgunClip01, 'WCT_CLIP1'],
69
- [WeaponComponentHash.MarksmanRifleClip01, 'WCT_CLIP1'],
70
- [WeaponComponentHash.CombatPDWClip01, 'WCT_CLIP1'],
71
- [WeaponComponentHash.MarksmanPistolClip01, 'WCT_CLIP1'],
72
- [WeaponComponentHash.MachinePistolClip01, 'WCT_CLIP1'],
73
- [WeaponComponentHash.PistolMk2ClipNormal, 'WCT_CLIP1'],
74
- [WeaponComponentHash.AssaultRifleMk2ClipNormal, 'WCT_CLIP1'],
75
- [WeaponComponentHash.CarbineRifleMk2ClipNormal, 'WCT_CLIP1'],
76
- [WeaponComponentHash.CombatMGMk2ClipNormal, 'WCT_CLIP1'],
77
- [WeaponComponentHash.HeavySniperMk2ClipNormal, 'WCT_CLIP1'],
78
- [WeaponComponentHash.SMGMk2ClipNormal, 'WCT_CLIP1'],
79
- [WeaponComponentHash.PistolClip02, 'WCT_CLIP2'],
80
- [WeaponComponentHash.CombatPistolClip02, 'WCT_CLIP2'],
81
- [WeaponComponentHash.APPistolClip02, 'WCT_CLIP2'],
82
- [WeaponComponentHash.MicroSMGClip02, 'WCT_CLIP2'],
83
- [WeaponComponentHash.SMGClip02, 'WCT_CLIP2'],
84
- [WeaponComponentHash.AssaultRifleClip02, 'WCT_CLIP2'],
85
- [WeaponComponentHash.CarbineRifleClip02, 'WCT_CLIP2'],
86
- [WeaponComponentHash.AdvancedRifleClip02, 'WCT_CLIP2'],
87
- [WeaponComponentHash.MGClip02, 'WCT_CLIP2'],
88
- [WeaponComponentHash.CombatMGClip02, 'WCT_CLIP2'],
89
- [WeaponComponentHash.AssaultShotgunClip02, 'WCT_CLIP2'],
90
- [WeaponComponentHash.MinigunClip01, 'WCT_CLIP2'],
91
- [WeaponComponentHash.AssaultSMGClip02, 'WCT_CLIP2'],
92
- [WeaponComponentHash.Pistol50Clip02, 'WCT_CLIP2'],
93
- [0x6cbf371b, 'WCT_CLIP2'],
94
- [0xe1c5fffa, 'WCT_CLIP2'],
95
- [0x3e7e6956, 'WCT_CLIP2'],
96
- [WeaponComponentHash.SNSPistolClip02, 'WCT_CLIP2'],
97
- [WeaponComponentHash.VintagePistolClip02, 'WCT_CLIP2'],
98
- [WeaponComponentHash.HeavyShotgunClip02, 'WCT_CLIP2'],
99
- [WeaponComponentHash.MarksmanRifleClip02, 'WCT_CLIP2'],
100
- [WeaponComponentHash.CombatPDWClip02, 'WCT_CLIP2'],
101
- [WeaponComponentHash.MachinePistolClip02, 'WCT_CLIP2'],
102
- [WeaponComponentHash.PistolMk2ClipExtended, 'WCT_CLIP2'],
103
- [WeaponComponentHash.AssaultRifleMk2ClipExtended, 'WCT_CLIP2'],
104
- [WeaponComponentHash.CarbineRifleMk2ClipExtended, 'WCT_CLIP2'],
105
- [WeaponComponentHash.CombatMGMk2ClipExtended, 'WCT_CLIP2'],
106
- [WeaponComponentHash.HeavySniperMk2ClipExtended, 'WCT_CLIP2'],
107
- [WeaponComponentHash.SMGMk2ClipExtended, 'WCT_CLIP2'],
108
- [WeaponComponentHash.AtScopeLargeFixedZoom, 'WCT_SCOPE_LRG'],
109
- [WeaponComponentHash.AssaultRifleVarmodLuxe, 'WCT_VAR_GOLD'],
110
- [WeaponComponentHash.CarbineRifleVarmodLuxe, 'WCT_VAR_GOLD'],
111
- [WeaponComponentHash.PistolVarmodLuxe, 'WCT_VAR_GOLD'],
112
- [WeaponComponentHash.SMGVarmodLuxe, 'WCT_VAR_GOLD'],
113
- [WeaponComponentHash.MicroSMGVarmodLuxe, 'WCT_VAR_GOLD'],
114
- [0x161e9241, 'WCT_VAR_GOLD'],
115
- [WeaponComponentHash.AssaultSMGVarmodLowrider, 'WCT_VAR_GOLD'],
116
- [WeaponComponentHash.CombatPistolVarmodLowrider, 'WCT_VAR_GOLD'],
117
- [WeaponComponentHash.MGVarmodLowrider, 'WCT_VAR_GOLD'],
118
- [WeaponComponentHash.PumpShotgunVarmodLowrider, 'WCT_VAR_GOLD'],
119
- [WeaponComponentHash.AdvancedRifleVarmodLuxe, 'WCT_VAR_METAL'],
120
- [WeaponComponentHash.APPistolVarmodLuxe, 'WCT_VAR_METAL'],
121
- [WeaponComponentHash.SawnoffShotgunVarmodLuxe, 'WCT_VAR_METAL'],
122
- [WeaponComponentHash.BullpupRifleVarmodLow, 'WCT_VAR_METAL'],
123
- [WeaponComponentHash.Pistol50VarmodLuxe, 'WCT_VAR_SIL'],
124
- [WeaponComponentHash.HeavyPistolVarmodLuxe, 'WCT_VAR_WOOD'],
125
- [WeaponComponentHash.SniperRifleVarmodLuxe, 'WCT_VAR_WOOD'],
126
- [WeaponComponentHash.SNSPistolVarmodLowrider, 'WCT_VAR_WOOD'],
127
- [WeaponComponentHash.CombatMGVarmodLowrider, 'WCT_VAR_ETCHM'],
128
- [WeaponComponentHash.SpecialCarbineVarmodLowrider, 'WCT_VAR_ETCHM'],
129
- [WeaponComponentHash.SwitchbladeVarmodBase, 'WCT_SB_BASE'],
130
- [WeaponComponentHash.SwitchbladeVarmodVar1, 'WCT_SB_VAR1'],
131
- [WeaponComponentHash.SwitchbladeVarmodVar2, 'WCT_SB_VAR2'],
132
- [WeaponComponentHash.RevolverClip01, 'WCT_CLIP1'],
133
- [WeaponComponentHash.RevolverVarmodBoss, 'WCT_REV_VARB'],
134
- [WeaponComponentHash.RevolverVarmodGoon, 'WCT_REV_VARG'],
135
- [WeaponComponentHash.SMGClip03, 'WCT_CLIP_DRM'],
136
- [WeaponComponentHash.AssaultRifleClip03, 'WCT_CLIP_DRM'],
137
- [WeaponComponentHash.HeavyShotgunClip03, 'WCT_CLIP_DRM'],
138
- [WeaponComponentHash.CarbineRifleClip03, 'WCT_CLIP_BOX'],
139
- [WeaponComponentHash.AssaultRifleMk2ClipArmorPiercing, 'WCT_CLIP_AP'],
140
- [WeaponComponentHash.CarbineRifleMk2ClipArmorPiercing, 'WCT_CLIP_AP'],
141
- [WeaponComponentHash.CombatMGMk2ClipArmorPiercing, 'WCT_CLIP_AP'],
142
- [WeaponComponentHash.HeavySniperMk2ClipArmorPiercing, 'WCT_CLIP_AP'],
143
- [WeaponComponentHash.PistolMk2ClipFMJ, 'WCT_CLIP_FMJ'],
144
- [WeaponComponentHash.AssaultRifleMk2ClipFMJ, 'WCT_CLIP_FMJ'],
145
- [WeaponComponentHash.CarbineRifleMk2ClipFMJ, 'WCT_CLIP_FMJ'],
146
- [WeaponComponentHash.CombatMGMk2ClipFMJ, 'WCT_CLIP_FMJ'],
147
- [WeaponComponentHash.HeavySniperMk2ClipFMJ, 'WCT_CLIP_FMJ'],
148
- [WeaponComponentHash.SMGMk2ClipFMJ, 'WCT_CLIP_FMJ'],
149
- [WeaponComponentHash.PistolMk2ClipIncendiary, 'WCT_CLIP_INC'],
150
- [WeaponComponentHash.AssaultRifleMk2ClipIncendiary, 'WCT_CLIP_INC'],
151
- [WeaponComponentHash.CarbineRifleMk2ClipIncendiary, 'WCT_CLIP_INC'],
152
- [WeaponComponentHash.CombatMGMk2ClipIncendiary, 'WCT_CLIP_INC'],
153
- [WeaponComponentHash.HeavySniperMk2ClipIncendiary, 'WCT_CLIP_INC'],
154
- [WeaponComponentHash.SMGMk2ClipIncendiary, 'WCT_CLIP_INC'],
155
- [WeaponComponentHash.PistolMk2ClipTracer, 'WCT_CLIP_TR'],
156
- [WeaponComponentHash.AssaultRifleMk2ClipTracer, 'WCT_CLIP_TR'],
157
- [WeaponComponentHash.CarbineRifleMk2ClipTracer, 'WCT_CLIP_TR'],
158
- [WeaponComponentHash.CombatMGMk2ClipTracer, 'WCT_CLIP_TR'],
159
- [WeaponComponentHash.SMGMk2ClipTracer, 'WCT_CLIP_TR'],
160
- [WeaponComponentHash.HeavySniperMk2ClipExplosive, 'WCT_CLIP_EX'],
161
- [WeaponComponentHash.PistolMk2ClipHollowpoint, 'WCT_CLIP_HP'],
162
- [WeaponComponentHash.SMGMk2ClipHollowpoint, 'WCT_CLIP_HP'],
163
- [WeaponComponentHash.AssaultRifleMk2BarrelNormal, 'WCT_BARR'],
164
- [WeaponComponentHash.CarbineRifleMk2BarrelNormal, 'WCT_BARR'],
165
- [WeaponComponentHash.CombatMGMk2BarrelNormal, 'WCT_BARR'],
166
- [WeaponComponentHash.SMGMk2BarrelNormal, 'WCT_BARR'],
167
- [WeaponComponentHash.AssaultRifleMk2BarrelHeavy, 'WCT_BARR2'],
168
- [WeaponComponentHash.CarbineRifleMk2BarrelHeavy, 'WCT_BARR2'],
169
- [WeaponComponentHash.CombatMGMk2BarrelHeavy, 'WCT_BARR2'],
170
- [WeaponComponentHash.SMGMk2BarrelHeavy, 'WCT_BARR2'],
171
- [WeaponComponentHash.PistolMk2CamoDigital, 'WCT_CAMO_1'],
172
- [WeaponComponentHash.AssaultRifleMk2CamoDigital, 'WCT_CAMO_1'],
173
- [WeaponComponentHash.CarbineRifleMk2CamoDigital, 'WCT_CAMO_1'],
174
- [WeaponComponentHash.CombatMGMk2CamoDigital, 'WCT_CAMO_1'],
175
- [WeaponComponentHash.HeavySniperMk2CamoDigital, 'WCT_CAMO_1'],
176
- [WeaponComponentHash.SMGMk2CamoDigital, 'WCT_CAMO_1'],
177
- [WeaponComponentHash.PistolMk2CamoSlideDigital, 'WCT_CAMO_1'],
178
- [WeaponComponentHash.PistolMk2CamoBrushstroke, 'WCT_CAMO_2'],
179
- [WeaponComponentHash.AssaultRifleMk2CamoBrushstroke, 'WCT_CAMO_2'],
180
- [WeaponComponentHash.CarbineRifleMk2CamoBrushstroke, 'WCT_CAMO_2'],
181
- [WeaponComponentHash.CombatMGMk2CamoBrushstroke, 'WCT_CAMO_2'],
182
- [WeaponComponentHash.HeavySniperMk2CamoBrushstroke, 'WCT_CAMO_2'],
183
- [WeaponComponentHash.SMGMk2CamoBrushstroke, 'WCT_CAMO_2'],
184
- [WeaponComponentHash.PistolMk2CamoSlideBrushstroke, 'WCT_CAMO_2'],
185
- [WeaponComponentHash.PistolMk2CamoWoodland, 'WCT_CAMO_3'],
186
- [WeaponComponentHash.AssaultRifleMk2CamoWoodland, 'WCT_CAMO_3'],
187
- [WeaponComponentHash.CarbineRifleMk2CamoWoodland, 'WCT_CAMO_3'],
188
- [WeaponComponentHash.CombatMGMk2CamoWoodland, 'WCT_CAMO_3'],
189
- [WeaponComponentHash.HeavySniperMk2CamoWoodland, 'WCT_CAMO_3'],
190
- [WeaponComponentHash.SMGMk2CamoWoodland, 'WCT_CAMO_3'],
191
- [WeaponComponentHash.PistolMk2CamoSlideWoodland, 'WCT_CAMO_3'],
192
- [WeaponComponentHash.PistolMk2CamoSkull, 'WCT_CAMO_4'],
193
- [WeaponComponentHash.AssaultRifleMk2CamoSkull, 'WCT_CAMO_4'],
194
- [WeaponComponentHash.CarbineRifleMk2CamoSkull, 'WCT_CAMO_4'],
195
- [WeaponComponentHash.CombatMGMk2CamoSkull, 'WCT_CAMO_4'],
196
- [WeaponComponentHash.HeavySniperMk2CamoSkull, 'WCT_CAMO_4'],
197
- [WeaponComponentHash.SMGMk2CamoSkull, 'WCT_CAMO_4'],
198
- [WeaponComponentHash.PistolMk2CamoSlideSkull, 'WCT_CAMO_4'],
199
- [WeaponComponentHash.PistolMk2CamoSessanta, 'WCT_CAMO_5'],
200
- [WeaponComponentHash.AssaultRifleMk2CamoSessanta, 'WCT_CAMO_5'],
201
- [WeaponComponentHash.CarbineRifleMk2CamoSessanta, 'WCT_CAMO_5'],
202
- [WeaponComponentHash.CombatMGMk2CamoSessanta, 'WCT_CAMO_5'],
203
- [WeaponComponentHash.HeavySniperMk2CamoSessanta, 'WCT_CAMO_5'],
204
- [WeaponComponentHash.SMGMk2CamoSessanta, 'WCT_CAMO_5'],
205
- [WeaponComponentHash.PistolMk2CamoSlideSessanta, 'WCT_CAMO_5'],
206
- [WeaponComponentHash.PistolMk2CamoPerseus, 'WCT_CAMO_6'],
207
- [WeaponComponentHash.AssaultRifleMk2CamoPerseus, 'WCT_CAMO_6'],
208
- [WeaponComponentHash.CarbineRifleMk2CamoPerseus, 'WCT_CAMO_6'],
209
- [WeaponComponentHash.CombatMGMk2CamoPerseus, 'WCT_CAMO_6'],
210
- [WeaponComponentHash.HeavySniperMk2CamoPerseus, 'WCT_CAMO_6'],
211
- [WeaponComponentHash.SMGMk2CamoPerseus, 'WCT_CAMO_6'],
212
- [WeaponComponentHash.PistolMk2CamoSlidePerseus, 'WCT_CAMO_6'],
213
- [WeaponComponentHash.PistolMk2CamoLeopard, 'WCT_CAMO_7'],
214
- [WeaponComponentHash.AssaultRifleMk2CamoLeopard, 'WCT_CAMO_7'],
215
- [WeaponComponentHash.CarbineRifleMk2CamoLeopard, 'WCT_CAMO_7'],
216
- [WeaponComponentHash.CombatMGMk2CamoLeopard, 'WCT_CAMO_7'],
217
- [WeaponComponentHash.HeavySniperMk2CamoLeopard, 'WCT_CAMO_7'],
218
- [WeaponComponentHash.SMGMk2CamoLeopard, 'WCT_CAMO_7'],
219
- [WeaponComponentHash.PistolMk2CamoSlideLeopard, 'WCT_CAMO_7'],
220
- [WeaponComponentHash.PistolMk2CamoZebra, 'WCT_CAMO_8'],
221
- [WeaponComponentHash.AssaultRifleMk2CamoZebra, 'WCT_CAMO_8'],
222
- [WeaponComponentHash.CarbineRifleMk2CamoZebra, 'WCT_CAMO_8'],
223
- [WeaponComponentHash.CombatMGMk2CamoZebra, 'WCT_CAMO_8'],
224
- [WeaponComponentHash.HeavySniperMk2CamoZebra, 'WCT_CAMO_8'],
225
- [WeaponComponentHash.SMGMk2CamoZebra, 'WCT_CAMO_8'],
226
- [WeaponComponentHash.PistolMk2CamoSlideZebra, 'WCT_CAMO_8'],
227
- [WeaponComponentHash.PistolMk2CamoGeometric, 'WCT_CAMO_9'],
228
- [WeaponComponentHash.AssaultRifleMk2CamoGeometric, 'WCT_CAMO_9'],
229
- [WeaponComponentHash.CarbineRifleMk2CamoGeometric, 'WCT_CAMO_9'],
230
- [WeaponComponentHash.CombatMGMk2CamoGeometric, 'WCT_CAMO_9'],
231
- [WeaponComponentHash.HeavySniperMk2CamoGeometric, 'WCT_CAMO_9'],
232
- [WeaponComponentHash.SMGMk2CamoGeometric, 'WCT_CAMO_9'],
233
- [WeaponComponentHash.PistolMk2CamoSlideGeometric, 'WCT_CAMO_9'],
234
- [WeaponComponentHash.PistolMk2CamoBoom, 'WCT_CAMO_10'],
235
- [WeaponComponentHash.AssaultRifleMk2CamoBoom, 'WCT_CAMO_10'],
236
- [WeaponComponentHash.CarbineRifleMk2CamoBoom, 'WCT_CAMO_10'],
237
- [WeaponComponentHash.CombatMGMk2CamoBoom, 'WCT_CAMO_10'],
238
- [WeaponComponentHash.HeavySniperMk2CamoBoom, 'WCT_CAMO_10'],
239
- [WeaponComponentHash.SMGMk2CamoBoom, 'WCT_CAMO_10'],
240
- [WeaponComponentHash.PistolMk2CamoSlideBoom, 'WCT_CAMO_10'],
241
- [WeaponComponentHash.PistolMk2CamoPatriotic, 'WCT_CAMO_IND'],
242
- [WeaponComponentHash.AssaultRifleMk2CamoPatriotic, 'WCT_CAMO_IND'],
243
- [WeaponComponentHash.CarbineRifleMk2CamoPatriotic, 'WCT_CAMO_IND'],
244
- [WeaponComponentHash.CombatMGMk2CamoPatriotic, 'WCT_CAMO_IND'],
245
- [WeaponComponentHash.HeavySniperMk2CamoPatriotic, 'WCT_CAMO_IND'],
246
- [WeaponComponentHash.SMGMk2CamoPatriotic, 'WCT_CAMO_IND'],
247
- [WeaponComponentHash.PistolMk2CamoSlidePatriotic, 'WCT_CAMO_IND'],
248
- [WeaponComponentHash.AtSights, 'WCT_HOLO'],
249
- [WeaponComponentHash.AtScopeSmallMk2, 'WCT_SCOPE_SML2'],
250
- [WeaponComponentHash.AtScopeMacroMk2, 'WCT_SCOPE_MAC2'],
251
- [WeaponComponentHash.AtScopeMediumMk2, 'WCT_SCOPE_MED2'],
252
- [WeaponComponentHash.AtMuzzle1, 'WCT_MUZZ'],
253
- [WeaponComponentHash.AtMuzzle2, 'WCT_MUZZ'],
254
- [WeaponComponentHash.AtMuzzle3, 'WCT_MUZZ'],
255
- [WeaponComponentHash.AtMuzzle4, 'WCT_MUZZ'],
256
- [WeaponComponentHash.AtMuzzle5, 'WCT_MUZZ'],
257
- [WeaponComponentHash.AtMuzzle7, 'WCT_MUZZ'],
258
- [WeaponComponentHash.HeavySniperMk2Muzzle8, 'WCT_MUZZ'],
259
- [WeaponComponentHash.HeavySniperMk2Muzzle9, 'WCT_MUZZ'],
260
- [WeaponComponentHash.PistolMk2Scope, 'WCT_SCOPE_PI'],
261
- [WeaponComponentHash.PistolMk2Compensator, 'WCT_COMP'],
262
- [WeaponComponentHash.HeavySniperMk2ScopeLarge, 'WCT_SCOPE_LRG2'],
263
- ]);
264
- /**
265
- * Initialize with DlcWeaponComponentData, in case of any missing dlc data
266
- *
267
- */
268
- function initializeOnce() {
269
- let isInitialized = false;
270
- return function () {
271
- if (isInitialized) {
272
- return;
273
- }
274
- for (const [hash, data] of DlcWeaponComponentData) {
275
- ComponentDisplayNameByHash.set(hash, data.name);
276
- }
277
- isInitialized = true;
278
- };
279
- }
280
- initializeOnce()();
@@ -1,5 +0,0 @@
1
- export { DlcWeaponComponentData } from './DlcWeaponComponentData';
2
- export { WeaponComponentHudStats } from './WeaponComponentHudStats';
3
- export { ComponentAttachmentPoint } from './ComponentAttachmentPoint';
4
- export { WeaponComponentHash } from './WeaponComponentHash';
5
- export { InvalidWeaponComponent } from './InvalidWeaponComponent';
@@ -1,5 +0,0 @@
1
- export { DlcWeaponComponentData } from './DlcWeaponComponentData';
2
- export { WeaponComponentHudStats } from './WeaponComponentHudStats';
3
- export { ComponentAttachmentPoint } from './ComponentAttachmentPoint';
4
- export { WeaponComponentHash } from './WeaponComponentHash';
5
- export { InvalidWeaponComponent } from './InvalidWeaponComponent';
@@ -1,8 +0,0 @@
1
- export declare class Convar {
2
- buffer(): string;
3
- get(variable: string, defaultVar: string): string;
4
- getInt(variable: string, defaultVar: number): number;
5
- set(variable: string, value: string): void;
6
- setReplicated(variable: string, value: string): void;
7
- setServerInfo(variable: string, value: string): void;
8
- }
package/common/Convar.js DELETED
@@ -1,20 +0,0 @@
1
- export class Convar {
2
- buffer() {
3
- return GetConsoleBuffer();
4
- }
5
- get(variable, defaultVar) {
6
- return GetConvar(variable, defaultVar);
7
- }
8
- getInt(variable, defaultVar) {
9
- return GetConvarInt(variable, defaultVar);
10
- }
11
- set(variable, value) {
12
- SetConvar(variable, value);
13
- }
14
- setReplicated(variable, value) {
15
- SetConvarReplicated(variable, value);
16
- }
17
- setServerInfo(variable, value) {
18
- SetConvarServerInfo(variable, value);
19
- }
20
- }
package/common/Kvp.d.ts DELETED
@@ -1,91 +0,0 @@
1
- export declare class Kvp {
2
- /**
3
- * Sets the resource key to the specified value this is a blocking operation, if you're doing large write operations you should use [[setKvpAsync]] instead.
4
- * @param key the key string
5
- * @param value the value to set the key to
6
- */
7
- setKvp<T = number | string>(key: string, value: T): void;
8
- /**
9
- * Sets the resource key to the specified value, this doesn't immediately write to disk and needs [[flush]] called afterwards.
10
- * @param key the key string
11
- * @param value the value to set the key to
12
- */
13
- setKvpAsync<T = number | string>(key: string, value: T): void;
14
- /**
15
- * Sets the specified key to the specified json value
16
- * This can error if given an invalid object
17
- * @param key the key string
18
- * @param value the value to set the key to
19
- */
20
- setKvpJson(key: string, value: any): void;
21
- /**
22
- * Gets the specified value for key
23
- * @param key the key of the value to get
24
- * @returns a string, or null if there is no value
25
- */
26
- getKvpString(key: string): string | null;
27
- /**
28
- * Gets the specified value for key
29
- * @param key the key of the value to get
30
- * @returns the value stored, as a number, or 0 if there is no value
31
- */
32
- getKvpNumber(key: string): number;
33
- /**
34
- * Gets the specified value for key
35
- * @param key the key of the value to get
36
- * @returns the value stored as a float, or 0.0 if there is no value
37
- */
38
- getKvpFloat(key: string): number;
39
- getKvpJson<T>(key: string): T;
40
- /**
41
- * Deletes the specified value for key, this is a blocking operation, if you're deleting a bunch of keys you should use [[deleteAsync]]
42
- * @param key the key of the value to delete
43
- */
44
- delete(key: string): void;
45
- /**
46
- * Deletes the specified resource keys value, this doesn't immediately write to disk and needs [[flush]] called afterwards.
47
- * @param key the key to delete
48
- */
49
- deleteAsync(key: string): void;
50
- /**
51
- * Ensures that any previous async call is flushed to disk
52
- */
53
- flush(): void;
54
- private handleKvp;
55
- /**
56
- * enumerates over any kvp prefixed with the prefix
57
- *
58
- * ```typescript
59
- * for (const value of Kvp.getKvpsAsString("native:")) {
60
- * console.log(value);
61
- * }
62
- * ```
63
- *
64
- * @param prefix the prefix to search for
65
- */
66
- getKvpsAsString(prefix: string): IterableIterator<string>;
67
- /**
68
- * enumerates over any kvp prefixed with the prefix
69
- *
70
- * ```typescript
71
- * for (const value of Kvp.getKvpsAsNumber("native:")) {
72
- * console.log(value);
73
- * }
74
- * ```
75
- *
76
- * @param prefix the prefix to search for
77
- */
78
- getKvpsAsNumber(prefix: string): IterableIterator<number>;
79
- /**
80
- * enumerates over any kvp prefixed with the prefix
81
- *
82
- * ```typescript
83
- * for (const value of Kvp.getKvpsAsFloat("native:")) {
84
- * console.log(value);
85
- * }
86
- * ```
87
- *
88
- * @param prefix the prefix to search for
89
- */
90
- getKvpsAsFloat(prefix: string): IterableIterator<number>;
91
- }
package/common/Kvp.js DELETED
@@ -1,161 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-explicit-any */
2
- export class Kvp {
3
- // TODO: Find a way to do this without casting to any
4
- /**
5
- * Sets the resource key to the specified value this is a blocking operation, if you're doing large write operations you should use [[setKvpAsync]] instead.
6
- * @param key the key string
7
- * @param value the value to set the key to
8
- */
9
- setKvp(key, value) {
10
- const type = typeof value;
11
- if (type === 'string') {
12
- SetResourceKvp(key, value);
13
- }
14
- else {
15
- if (Number.isInteger(value)) {
16
- SetResourceKvpInt(key, value);
17
- }
18
- else {
19
- SetResourceKvpFloat(key, value);
20
- }
21
- }
22
- }
23
- /**
24
- * Sets the resource key to the specified value, this doesn't immediately write to disk and needs [[flush]] called afterwards.
25
- * @param key the key string
26
- * @param value the value to set the key to
27
- */
28
- setKvpAsync(key, value) {
29
- const type = typeof value;
30
- if (type === 'string') {
31
- SetResourceKvpNoSync(key, value);
32
- }
33
- else {
34
- if (Number.isInteger(value)) {
35
- SetResourceKvpIntNoSync(key, value);
36
- }
37
- else {
38
- SetResourceKvpFloatNoSync(key, value);
39
- }
40
- }
41
- }
42
- /**
43
- * Sets the specified key to the specified json value
44
- * This can error if given an invalid object
45
- * @param key the key string
46
- * @param value the value to set the key to
47
- */
48
- setKvpJson(key, value) {
49
- const stringified = JSON.stringify(value);
50
- this.setKvp(key, stringified);
51
- }
52
- /**
53
- * Gets the specified value for key
54
- * @param key the key of the value to get
55
- * @returns a string, or null if there is no value
56
- */
57
- getKvpString(key) {
58
- return GetResourceKvpString(key);
59
- }
60
- /**
61
- * Gets the specified value for key
62
- * @param key the key of the value to get
63
- * @returns the value stored, as a number, or 0 if there is no value
64
- */
65
- getKvpNumber(key) {
66
- return GetResourceKvpInt(key);
67
- }
68
- /**
69
- * Gets the specified value for key
70
- * @param key the key of the value to get
71
- * @returns the value stored as a float, or 0.0 if there is no value
72
- */
73
- getKvpFloat(key) {
74
- return GetResourceKvpFloat(key);
75
- }
76
- getKvpJson(key) {
77
- const kvp = this.getKvpString(key);
78
- return JSON.parse(kvp || '{}');
79
- }
80
- /**
81
- * Deletes the specified value for key, this is a blocking operation, if you're deleting a bunch of keys you should use [[deleteAsync]]
82
- * @param key the key of the value to delete
83
- */
84
- delete(key) {
85
- DeleteResourceKvp(key);
86
- }
87
- /**
88
- * Deletes the specified resource keys value, this doesn't immediately write to disk and needs [[flush]] called afterwards.
89
- * @param key the key to delete
90
- */
91
- deleteAsync(key) {
92
- DeleteResourceKvpNoSync(key);
93
- }
94
- /**
95
- * Ensures that any previous async call is flushed to disk
96
- */
97
- flush() {
98
- FlushResourceKvp();
99
- }
100
- *handleKvp(prefix, iterType) {
101
- const handle = StartFindKvp(prefix);
102
- if (handle === -1)
103
- return;
104
- let key;
105
- do {
106
- key = FindKvp(handle);
107
- if (iterType === 'string') {
108
- yield GetResourceKvpString(key);
109
- }
110
- else if (iterType === 'number') {
111
- yield GetResourceKvpInt(key);
112
- }
113
- else if (iterType === 'float') {
114
- yield GetResourceKvpFloat(key);
115
- }
116
- } while (key);
117
- EndFindKvp(handle);
118
- }
119
- /**
120
- * enumerates over any kvp prefixed with the prefix
121
- *
122
- * ```typescript
123
- * for (const value of Kvp.getKvpsAsString("native:")) {
124
- * console.log(value);
125
- * }
126
- * ```
127
- *
128
- * @param prefix the prefix to search for
129
- */
130
- getKvpsAsString(prefix) {
131
- return this.handleKvp(prefix, 'string');
132
- }
133
- /**
134
- * enumerates over any kvp prefixed with the prefix
135
- *
136
- * ```typescript
137
- * for (const value of Kvp.getKvpsAsNumber("native:")) {
138
- * console.log(value);
139
- * }
140
- * ```
141
- *
142
- * @param prefix the prefix to search for
143
- */
144
- getKvpsAsNumber(prefix) {
145
- return this.handleKvp(prefix, 'number');
146
- }
147
- /**
148
- * enumerates over any kvp prefixed with the prefix
149
- *
150
- * ```typescript
151
- * for (const value of Kvp.getKvpsAsFloat("native:")) {
152
- * console.log(value);
153
- * }
154
- * ```
155
- *
156
- * @param prefix the prefix to search for
157
- */
158
- getKvpsAsFloat(prefix) {
159
- return this.handleKvp(prefix, 'float');
160
- }
161
- }
@@ -1,14 +0,0 @@
1
- export declare class Resource {
2
- name: string;
3
- constructor(name: string);
4
- getMetadata(metadataKey: string, index: number): string;
5
- getPath(): string;
6
- loadFile(fileName: string): string;
7
- saveFile(fileName: string, data: string, length: number): boolean;
8
- scheduleTick(): void;
9
- start(): void;
10
- stop(): void;
11
- static startResource(name: string): void;
12
- static stopResource(name: string): void;
13
- static resourceCount(): number;
14
- }
@@ -1,35 +0,0 @@
1
- export class Resource {
2
- constructor(name) {
3
- this.name = name;
4
- }
5
- getMetadata(metadataKey, index) {
6
- return GetResourceMetadata(this.name, metadataKey, index);
7
- }
8
- getPath() {
9
- return GetResourcePath(this.name);
10
- }
11
- loadFile(fileName) {
12
- return LoadResourceFile(this.name, fileName);
13
- }
14
- saveFile(fileName, data, length) {
15
- return SaveResourceFile(this.name, fileName, data, length);
16
- }
17
- scheduleTick() {
18
- return ScheduleResourceTick(this.name);
19
- }
20
- start() {
21
- StartResource(this.name);
22
- }
23
- stop() {
24
- StopResource(this.name);
25
- }
26
- static startResource(name) {
27
- StartResource(name);
28
- }
29
- static stopResource(name) {
30
- StopResource(name);
31
- }
32
- static resourceCount() {
33
- return GetNumResources();
34
- }
35
- }
package/common/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export * from './utils';
2
- export * from './Convar';
3
- export * from './Kvp';
4
- export * from './Resource';
5
- export * from './utils/index';
package/common/index.js DELETED
@@ -1,5 +0,0 @@
1
- export * from './utils';
2
- export * from './Convar';
3
- export * from './Kvp';
4
- export * from './Resource';
5
- export * from './utils/index';
package/common/types.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import type { Buffer } from 'buffer';
2
- export type MsgpackBuffer = {
3
- buffer: Buffer;
4
- type: number;
5
- };
package/common/types.js DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
1
- export declare enum ClassTypes {
2
- Ped = 0,
3
- Prop = 1,
4
- Vehicle = 2,
5
- Entity = 3,
6
- Player = 4,
7
- Vector2 = 5,
8
- Vector3 = 6,
9
- Vector4 = 7,
10
- Quanterion = 8
11
- }