@nativewrappers/fivem 0.0.1
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.
- package/LICENSE +21 -0
- package/README.md +33 -0
- package/lib/client/Audio.d.ts +17 -0
- package/lib/client/Audio.js +92 -0
- package/lib/client/Blip.d.ts +39 -0
- package/lib/client/Blip.js +104 -0
- package/lib/client/Camera.d.ts +46 -0
- package/lib/client/Camera.js +161 -0
- package/lib/client/Checkpoint.d.ts +18 -0
- package/lib/client/Checkpoint.js +42 -0
- package/lib/client/Events.d.ts +11 -0
- package/lib/client/Events.js +73 -0
- package/lib/client/Game.d.ts +283 -0
- package/lib/client/Game.js +451 -0
- package/lib/client/GameplayCamera.d.ts +102 -0
- package/lib/client/GameplayCamera.js +141 -0
- package/lib/client/Model.d.ts +134 -0
- package/lib/client/Model.js +198 -0
- package/lib/client/NetworkedScene.d.ts +10 -0
- package/lib/client/NetworkedScene.js +17 -0
- package/lib/client/ParticleEffect.d.ts +80 -0
- package/lib/client/ParticleEffect.js +120 -0
- package/lib/client/ParticleEffectAsset.d.ts +54 -0
- package/lib/client/ParticleEffectAsset.js +104 -0
- package/lib/client/Pickup.d.ts +9 -0
- package/lib/client/Pickup.js +18 -0
- package/lib/client/Raycast.d.ts +49 -0
- package/lib/client/Raycast.js +70 -0
- package/lib/client/RelationshipGroup.d.ts +49 -0
- package/lib/client/RelationshipGroup.js +63 -0
- package/lib/client/Rope.d.ts +99 -0
- package/lib/client/Rope.js +125 -0
- package/lib/client/TaskSequence.d.ts +15 -0
- package/lib/client/TaskSequence.js +43 -0
- package/lib/client/Tasks.d.ts +66 -0
- package/lib/client/Tasks.js +236 -0
- package/lib/client/World.d.ts +402 -0
- package/lib/client/World.js +726 -0
- package/lib/client/cfx/StateBagChangeHandler.d.ts +3 -0
- package/lib/client/cfx/StateBagChangeHandler.js +1 -0
- package/lib/client/cfx/index.d.ts +7 -0
- package/lib/client/cfx/index.js +1 -0
- package/lib/client/enums/Alignment.d.ts +5 -0
- package/lib/client/enums/Alignment.js +6 -0
- package/lib/client/enums/AnimationFlags.d.ts +9 -0
- package/lib/client/enums/AnimationFlags.js +10 -0
- package/lib/client/enums/AudioFlag.d.ts +37 -0
- package/lib/client/enums/AudioFlag.js +38 -0
- package/lib/client/enums/BadgeStyle.d.ts +182 -0
- package/lib/client/enums/BadgeStyle.js +183 -0
- package/lib/client/enums/Blip.d.ts +223 -0
- package/lib/client/enums/Blip.js +225 -0
- package/lib/client/enums/Bone.d.ts +101 -0
- package/lib/client/enums/Bone.js +103 -0
- package/lib/client/enums/CameraShake.d.ts +13 -0
- package/lib/client/enums/CameraShake.js +14 -0
- package/lib/client/enums/CameraTypes.d.ts +7 -0
- package/lib/client/enums/CameraTypes.js +8 -0
- package/lib/client/enums/CheckboxStyle.d.ts +4 -0
- package/lib/client/enums/CheckboxStyle.js +5 -0
- package/lib/client/enums/Checkpoint.d.ts +62 -0
- package/lib/client/enums/Checkpoint.js +67 -0
- package/lib/client/enums/ClassTypes.d.ts +11 -0
- package/lib/client/enums/ClassTypes.js +12 -0
- package/lib/client/enums/CloudHat.d.ts +26 -0
- package/lib/client/enums/CloudHat.js +27 -0
- package/lib/client/enums/Control.d.ts +360 -0
- package/lib/client/enums/Control.js +361 -0
- package/lib/client/enums/CursorSprite.d.ts +14 -0
- package/lib/client/enums/CursorSprite.js +15 -0
- package/lib/client/enums/Driving.d.ts +32 -0
- package/lib/client/enums/Driving.js +34 -0
- package/lib/client/enums/ExplosionType.d.ts +44 -0
- package/lib/client/enums/ExplosionType.js +45 -0
- package/lib/client/enums/FiringPattern.d.ts +19 -0
- package/lib/client/enums/FiringPattern.js +20 -0
- package/lib/client/enums/Font.d.ts +7 -0
- package/lib/client/enums/Font.js +8 -0
- package/lib/client/enums/ForceType.d.ts +8 -0
- package/lib/client/enums/ForceType.js +9 -0
- package/lib/client/enums/Gender.d.ts +4 -0
- package/lib/client/enums/Gender.js +5 -0
- package/lib/client/enums/HelmetType.d.ts +5 -0
- package/lib/client/enums/HelmetType.js +6 -0
- package/lib/client/enums/HudColor.d.ts +183 -0
- package/lib/client/enums/HudColor.js +184 -0
- package/lib/client/enums/HudComponent.d.ts +53 -0
- package/lib/client/enums/HudComponent.js +54 -0
- package/lib/client/enums/InputMode.d.ts +4 -0
- package/lib/client/enums/InputMode.js +5 -0
- package/lib/client/enums/IntersectOptions.d.ts +15 -0
- package/lib/client/enums/IntersectOptions.js +16 -0
- package/lib/client/enums/InvertAxis.d.ts +9 -0
- package/lib/client/enums/InvertAxis.js +7 -0
- package/lib/client/enums/Language.d.ts +14 -0
- package/lib/client/enums/Language.js +15 -0
- package/lib/client/enums/LeaveVehicleFlags.d.ts +10 -0
- package/lib/client/enums/LeaveVehicleFlags.js +11 -0
- package/lib/client/enums/LoadingSpinnerType.d.ts +7 -0
- package/lib/client/enums/LoadingSpinnerType.js +8 -0
- package/lib/client/enums/MarkerType.d.ts +49 -0
- package/lib/client/enums/MarkerType.js +50 -0
- package/lib/client/enums/MenuAlignment.d.ts +4 -0
- package/lib/client/enums/MenuAlignment.js +5 -0
- package/lib/client/enums/NotificationType.d.ts +10 -0
- package/lib/client/enums/NotificationType.js +11 -0
- package/lib/client/enums/Parachute.d.ts +13 -0
- package/lib/client/enums/Parachute.js +15 -0
- package/lib/client/enums/PickupType.d.ts +73 -0
- package/lib/client/enums/PickupType.js +74 -0
- package/lib/client/enums/RadioStation.d.ts +24 -0
- package/lib/client/enums/RadioStation.js +25 -0
- package/lib/client/enums/RagdollType.d.ts +6 -0
- package/lib/client/enums/RagdollType.js +7 -0
- package/lib/client/enums/Relationship.d.ts +9 -0
- package/lib/client/enums/Relationship.js +10 -0
- package/lib/client/enums/RopeType.d.ts +5 -0
- package/lib/client/enums/RopeType.js +6 -0
- package/lib/client/enums/ScreenEffect.d.ts +83 -0
- package/lib/client/enums/ScreenEffect.js +84 -0
- package/lib/client/enums/SpeechModifier.d.ts +39 -0
- package/lib/client/enums/SpeechModifier.js +40 -0
- package/lib/client/enums/Vehicle.d.ts +358 -0
- package/lib/client/enums/Vehicle.js +376 -0
- package/lib/client/enums/Weather.d.ts +21 -0
- package/lib/client/enums/Weather.js +22 -0
- package/lib/client/enums/ZoneID.d.ts +94 -0
- package/lib/client/enums/ZoneID.js +95 -0
- package/lib/client/enums/index.d.ts +42 -0
- package/lib/client/enums/index.js +42 -0
- package/lib/client/hashes/MaterialHash.d.ts +216 -0
- package/lib/client/hashes/MaterialHash.js +217 -0
- package/lib/client/hashes/PedHash.d.ts +724 -0
- package/lib/client/hashes/PedHash.js +725 -0
- package/lib/client/hashes/VehicleHash.d.ts +522 -0
- package/lib/client/hashes/VehicleHash.js +523 -0
- package/lib/client/hashes/WeaponHash.d.ts +147 -0
- package/lib/client/hashes/WeaponHash.js +161 -0
- package/lib/client/hashes/WeatherTypeHash.d.ts +21 -0
- package/lib/client/hashes/WeatherTypeHash.js +22 -0
- package/lib/client/hashes/index.d.ts +5 -0
- package/lib/client/hashes/index.js +5 -0
- package/lib/client/index.d.ts +24 -0
- package/lib/client/index.js +25 -0
- package/lib/client/interfaces/Dimensions.d.ts +5 -0
- package/lib/client/interfaces/Dimensions.js +1 -0
- package/lib/client/models/BaseEntity.d.ts +169 -0
- package/lib/client/models/BaseEntity.js +459 -0
- package/lib/client/models/Entity.d.ts +9 -0
- package/lib/client/models/Entity.js +24 -0
- package/lib/client/models/EntityBone.d.ts +12 -0
- package/lib/client/models/EntityBone.js +24 -0
- package/lib/client/models/EntityBoneCollection.d.ts +11 -0
- package/lib/client/models/EntityBoneCollection.js +16 -0
- package/lib/client/models/Ped.d.ts +199 -0
- package/lib/client/models/Ped.js +685 -0
- package/lib/client/models/PedBone.d.ts +6 -0
- package/lib/client/models/PedBone.js +9 -0
- package/lib/client/models/PedBoneCollection.d.ts +8 -0
- package/lib/client/models/PedBoneCollection.js +19 -0
- package/lib/client/models/Player.d.ts +63 -0
- package/lib/client/models/Player.js +174 -0
- package/lib/client/models/Prop.d.ts +11 -0
- package/lib/client/models/Prop.js +26 -0
- package/lib/client/models/Vehicle.d.ts +171 -0
- package/lib/client/models/Vehicle.js +551 -0
- package/lib/client/models/VehicleDoor.d.ts +19 -0
- package/lib/client/models/VehicleDoor.js +42 -0
- package/lib/client/models/VehicleDoorCollection.d.ts +14 -0
- package/lib/client/models/VehicleDoorCollection.js +61 -0
- package/lib/client/models/VehicleMod.d.ts +16 -0
- package/lib/client/models/VehicleMod.js +33 -0
- package/lib/client/models/VehicleModCollection.d.ts +61 -0
- package/lib/client/models/VehicleModCollection.js +227 -0
- package/lib/client/models/VehicleToggleMod.d.ts +14 -0
- package/lib/client/models/VehicleToggleMod.js +27 -0
- package/lib/client/models/VehicleWheel.d.ts +11 -0
- package/lib/client/models/VehicleWheel.js +21 -0
- package/lib/client/models/VehicleWheelCollection.d.ts +13 -0
- package/lib/client/models/VehicleWheelCollection.js +56 -0
- package/lib/client/models/VehicleWindow.d.ts +16 -0
- package/lib/client/models/VehicleWindow.js +33 -0
- package/lib/client/models/VehicleWindowCollection.d.ts +14 -0
- package/lib/client/models/VehicleWindowCollection.js +55 -0
- package/lib/client/models/index.d.ts +18 -0
- package/lib/client/models/index.js +18 -0
- package/lib/client/types/EntityType.d.ts +2 -0
- package/lib/client/types/EntityType.js +1 -0
- package/lib/client/ui/Container.d.ts +11 -0
- package/lib/client/ui/Container.js +28 -0
- package/lib/client/ui/Effects.d.ts +8 -0
- package/lib/client/ui/Effects.js +106 -0
- package/lib/client/ui/Fading.d.ts +41 -0
- package/lib/client/ui/Fading.js +69 -0
- package/lib/client/ui/Hud.d.ts +16 -0
- package/lib/client/ui/Hud.js +39 -0
- package/lib/client/ui/InstructionalButtons.d.ts +33 -0
- package/lib/client/ui/InstructionalButtons.js +53 -0
- package/lib/client/ui/LoadingPrompt.d.ts +27 -0
- package/lib/client/ui/LoadingPrompt.js +45 -0
- package/lib/client/ui/Notification.d.ts +5 -0
- package/lib/client/ui/Notification.js +8 -0
- package/lib/client/ui/Rectangle.d.ts +10 -0
- package/lib/client/ui/Rectangle.js +37 -0
- package/lib/client/ui/Scaleform.d.ts +106 -0
- package/lib/client/ui/Scaleform.js +234 -0
- package/lib/client/ui/Screen.d.ts +16 -0
- package/lib/client/ui/Screen.js +72 -0
- package/lib/client/ui/Sprite.d.ts +17 -0
- package/lib/client/ui/Sprite.js +53 -0
- package/lib/client/ui/Text.d.ts +31 -0
- package/lib/client/ui/Text.js +102 -0
- package/lib/client/ui/Timerbar.d.ts +44 -0
- package/lib/client/ui/Timerbar.js +241 -0
- package/lib/client/ui/index.d.ts +15 -0
- package/lib/client/ui/index.js +15 -0
- package/lib/client/ui/interfaces/IButton.d.ts +5 -0
- package/lib/client/ui/interfaces/IButton.js +1 -0
- package/lib/client/ui/interfaces/IDrawable.d.ts +7 -0
- package/lib/client/ui/interfaces/IDrawable.js +1 -0
- package/lib/client/ui/interfaces/index.d.ts +2 -0
- package/lib/client/ui/interfaces/index.js +1 -0
- package/lib/client/ui/menu/Menu.d.ts +108 -0
- package/lib/client/ui/menu/Menu.js +802 -0
- package/lib/client/ui/menu/MenuControl.d.ts +6 -0
- package/lib/client/ui/menu/MenuControl.js +11 -0
- package/lib/client/ui/menu/MenuControls.d.ts +9 -0
- package/lib/client/ui/menu/MenuControls.js +11 -0
- package/lib/client/ui/menu/MenuSettings.d.ts +20 -0
- package/lib/client/ui/menu/MenuSettings.js +51 -0
- package/lib/client/ui/menu/index.d.ts +6 -0
- package/lib/client/ui/menu/index.js +6 -0
- package/lib/client/ui/menu/items/UIMenuCheckboxItem.d.ts +20 -0
- package/lib/client/ui/menu/items/UIMenuCheckboxItem.js +57 -0
- package/lib/client/ui/menu/items/UIMenuItem.d.ts +78 -0
- package/lib/client/ui/menu/items/UIMenuItem.js +1090 -0
- package/lib/client/ui/menu/items/UIMenuListItem.d.ts +31 -0
- package/lib/client/ui/menu/items/UIMenuListItem.js +110 -0
- package/lib/client/ui/menu/items/UIMenuSeparatorItem.d.ts +11 -0
- package/lib/client/ui/menu/items/UIMenuSeparatorItem.js +29 -0
- package/lib/client/ui/menu/items/UIMenuSliderItem.d.ts +47 -0
- package/lib/client/ui/menu/items/UIMenuSliderItem.js +173 -0
- package/lib/client/ui/menu/items/index.d.ts +6 -0
- package/lib/client/ui/menu/items/index.js +6 -0
- package/lib/client/ui/menu/items/panels/AbstractUIMenuPanel.d.ts +17 -0
- package/lib/client/ui/menu/items/panels/AbstractUIMenuPanel.js +43 -0
- package/lib/client/ui/menu/items/panels/UIMenuColorPanel.d.ts +36 -0
- package/lib/client/ui/menu/items/panels/UIMenuColorPanel.js +211 -0
- package/lib/client/ui/menu/items/panels/UIMenuGridPanel.d.ts +40 -0
- package/lib/client/ui/menu/items/panels/UIMenuGridPanel.js +215 -0
- package/lib/client/ui/menu/items/panels/UIMenuPercentagePanel.d.ts +26 -0
- package/lib/client/ui/menu/items/panels/UIMenuPercentagePanel.js +115 -0
- package/lib/client/ui/menu/items/panels/UIMenuStatisticsPanel.d.ts +16 -0
- package/lib/client/ui/menu/items/panels/UIMenuStatisticsPanel.js +77 -0
- package/lib/client/ui/menu/items/panels/UIMenuStatisticsPanelItem.d.ts +13 -0
- package/lib/client/ui/menu/items/panels/UIMenuStatisticsPanelItem.js +32 -0
- package/lib/client/ui/menu/items/panels/index.d.ts +6 -0
- package/lib/client/ui/menu/items/panels/index.js +6 -0
- package/lib/client/ui/menu/modules/ListItem.d.ts +6 -0
- package/lib/client/ui/menu/modules/ListItem.js +8 -0
- package/lib/client/ui/menu/modules/index.d.ts +1 -0
- package/lib/client/ui/menu/modules/index.js +1 -0
- package/lib/client/utils/Animations.d.ts +19 -0
- package/lib/client/utils/Animations.js +55 -0
- package/lib/client/utils/Color.d.ts +15 -0
- package/lib/client/utils/Color.js +22 -0
- package/lib/client/utils/Crypto.d.ts +3 -0
- package/lib/client/utils/Crypto.js +25 -0
- package/lib/client/utils/LiteEvent.d.ts +13 -0
- package/lib/client/utils/LiteEvent.js +21 -0
- package/lib/client/utils/Maths.d.ts +4 -0
- package/lib/client/utils/Maths.js +10 -0
- package/lib/client/utils/Point.d.ts +9 -0
- package/lib/client/utils/Point.js +28 -0
- package/lib/client/utils/PointF.d.ts +12 -0
- package/lib/client/utils/PointF.js +11 -0
- package/lib/client/utils/Quaternion.d.ts +10 -0
- package/lib/client/utils/Quaternion.js +23 -0
- package/lib/client/utils/Size.d.ts +5 -0
- package/lib/client/utils/Size.js +6 -0
- package/lib/client/utils/String.d.ts +6 -0
- package/lib/client/utils/String.js +25 -0
- package/lib/client/utils/Vector2.d.ts +54 -0
- package/lib/client/utils/Vector2.js +106 -0
- package/lib/client/utils/Vector3.d.ts +69 -0
- package/lib/client/utils/Vector3.js +140 -0
- package/lib/client/utils/Vector4.d.ts +62 -0
- package/lib/client/utils/Vector4.js +124 -0
- package/lib/client/utils/enumValues.d.ts +12 -0
- package/lib/client/utils/enumValues.js +14 -0
- package/lib/client/utils/getStringFromUInt8Array.d.ts +8 -0
- package/lib/client/utils/getStringFromUInt8Array.js +10 -0
- package/lib/client/utils/getUInt32FromUint8Array.d.ts +8 -0
- package/lib/client/utils/getUInt32FromUint8Array.js +8 -0
- package/lib/client/utils/index.d.ts +10 -0
- package/lib/client/utils/index.js +10 -0
- package/lib/client/weapon/DlcWeaponData.d.ts +43 -0
- package/lib/client/weapon/DlcWeaponData.js +44 -0
- package/lib/client/weapon/Mk2WeaponHash.d.ts +18 -0
- package/lib/client/weapon/Mk2WeaponHash.js +25 -0
- package/lib/client/weapon/Weapon.d.ts +169 -0
- package/lib/client/weapon/Weapon.js +267 -0
- package/lib/client/weapon/WeaponAsset.d.ts +55 -0
- package/lib/client/weapon/WeaponAsset.js +83 -0
- package/lib/client/weapon/WeaponCollection.d.ts +90 -0
- package/lib/client/weapon/WeaponCollection.js +186 -0
- package/lib/client/weapon/WeaponDisplayNameByHash.d.ts +6 -0
- package/lib/client/weapon/WeaponDisplayNameByHash.js +75 -0
- package/lib/client/weapon/WeaponGroup.d.ts +18 -0
- package/lib/client/weapon/WeaponGroup.js +19 -0
- package/lib/client/weapon/WeaponHudStats.d.ts +27 -0
- package/lib/client/weapon/WeaponHudStats.js +38 -0
- package/lib/client/weapon/WeaponLivery.d.ts +13 -0
- package/lib/client/weapon/WeaponLivery.js +14 -0
- package/lib/client/weapon/WeaponLiveryColor.d.ts +34 -0
- package/lib/client/weapon/WeaponLiveryColor.js +35 -0
- package/lib/client/weapon/WeaponTint.d.ts +42 -0
- package/lib/client/weapon/WeaponTint.js +43 -0
- package/lib/client/weapon/index.d.ts +8 -0
- package/lib/client/weapon/index.js +8 -0
- package/lib/client/weaponComponent/ComponentAttachmentPoint.d.ts +18 -0
- package/lib/client/weaponComponent/ComponentAttachmentPoint.js +19 -0
- package/lib/client/weaponComponent/ComponentAttachmentPointByHash.d.ts +7 -0
- package/lib/client/weaponComponent/ComponentAttachmentPointByHash.js +309 -0
- package/lib/client/weaponComponent/ComponentDisplayNameByHash.d.ts +6 -0
- package/lib/client/weaponComponent/ComponentDisplayNameByHash.js +280 -0
- package/lib/client/weaponComponent/DlcWeaponComponentData.d.ts +40 -0
- package/lib/client/weaponComponent/DlcWeaponComponentData.js +44 -0
- package/lib/client/weaponComponent/InvalidWeaponComponent.d.ts +12 -0
- package/lib/client/weaponComponent/InvalidWeaponComponent.js +28 -0
- package/lib/client/weaponComponent/WeaponComponent.d.ts +81 -0
- package/lib/client/weaponComponent/WeaponComponent.js +119 -0
- package/lib/client/weaponComponent/WeaponComponentCollection.d.ts +108 -0
- package/lib/client/weaponComponent/WeaponComponentCollection.js +172 -0
- package/lib/client/weaponComponent/WeaponComponentHash.d.ts +671 -0
- package/lib/client/weaponComponent/WeaponComponentHash.js +887 -0
- package/lib/client/weaponComponent/WeaponComponentHashesByWeaponHash.d.ts +8 -0
- package/lib/client/weaponComponent/WeaponComponentHashesByWeaponHash.js +823 -0
- package/lib/client/weaponComponent/WeaponComponentHudStats.d.ts +27 -0
- package/lib/client/weaponComponent/WeaponComponentHudStats.js +34 -0
- package/lib/client/weaponComponent/index.d.ts +5 -0
- package/lib/client/weaponComponent/index.js +5 -0
- package/lib/common/Convar.d.ts +8 -0
- package/lib/common/Convar.js +20 -0
- package/lib/common/Kvp.d.ts +91 -0
- package/lib/common/Kvp.js +161 -0
- package/lib/common/Resource.d.ts +14 -0
- package/lib/common/Resource.js +35 -0
- package/lib/common/index.d.ts +5 -0
- package/lib/common/index.js +5 -0
- package/lib/common/types.d.ts +6 -0
- package/lib/common/types.js +1 -0
- package/lib/common/utils/Color.d.ts +10 -0
- package/lib/common/utils/Color.js +17 -0
- package/lib/common/utils/Maths.d.ts +4 -0
- package/lib/common/utils/Maths.js +10 -0
- package/lib/common/utils/PointF.d.ts +12 -0
- package/lib/common/utils/PointF.js +11 -0
- package/lib/common/utils/Quaternion.d.ts +10 -0
- package/lib/common/utils/Quaternion.js +23 -0
- package/lib/common/utils/Vector2.d.ts +58 -0
- package/lib/common/utils/Vector2.js +113 -0
- package/lib/common/utils/Vector3.d.ts +73 -0
- package/lib/common/utils/Vector3.js +147 -0
- package/lib/common/utils/Vector4.d.ts +66 -0
- package/lib/common/utils/Vector4.js +131 -0
- package/lib/common/utils/cleanPlayerName.d.ts +6 -0
- package/lib/common/utils/cleanPlayerName.js +27 -0
- package/lib/common/utils/enumValues.d.ts +12 -0
- package/lib/common/utils/enumValues.js +14 -0
- package/lib/common/utils/getStringFromUInt8Array.d.ts +8 -0
- package/lib/common/utils/getStringFromUInt8Array.js +10 -0
- package/lib/common/utils/getUInt32FromUint8Array.d.ts +8 -0
- package/lib/common/utils/getUInt32FromUint8Array.js +8 -0
- package/lib/common/utils/index.d.ts +12 -0
- package/lib/common/utils/index.js +12 -0
- package/lib/server/Anticheat.d.ts +0 -0
- package/lib/server/Anticheat.js +25 -0
- package/lib/server/Events.d.ts +35 -0
- package/lib/server/Events.js +102 -0
- package/lib/server/Game.d.ts +56 -0
- package/lib/server/Game.js +86 -0
- package/lib/server/cfx/StateBagChangeHandler.d.ts +9 -0
- package/lib/server/cfx/StateBagChangeHandler.js +4 -0
- package/lib/server/cfx/index.d.ts +7 -0
- package/lib/server/cfx/index.js +1 -0
- package/lib/server/entities/BaseEntity.d.ts +115 -0
- package/lib/server/entities/BaseEntity.js +161 -0
- package/lib/server/entities/Entity.d.ts +18 -0
- package/lib/server/entities/Entity.js +22 -0
- package/lib/server/entities/Ped.d.ts +87 -0
- package/lib/server/entities/Ped.js +122 -0
- package/lib/server/entities/Player.d.ts +163 -0
- package/lib/server/entities/Player.js +235 -0
- package/lib/server/entities/Prop.d.ts +32 -0
- package/lib/server/entities/Prop.js +42 -0
- package/lib/server/entities/Vehicle.d.ts +230 -0
- package/lib/server/entities/Vehicle.js +331 -0
- package/lib/server/entities/index.d.ts +5 -0
- package/lib/server/entities/index.js +5 -0
- package/lib/server/enum/ClassTypes.d.ts +11 -0
- package/lib/server/enum/ClassTypes.js +12 -0
- package/lib/server/enum/PopulationType.d.ts +13 -0
- package/lib/server/enum/PopulationType.js +14 -0
- package/lib/server/enum/VehicleLockStatus.d.ts +9 -0
- package/lib/server/enum/VehicleLockStatus.js +10 -0
- package/lib/server/enum/VehicleType.d.ts +10 -0
- package/lib/server/enum/VehicleType.js +11 -0
- package/lib/server/enum/eEntityType.d.ts +5 -0
- package/lib/server/enum/eEntityType.js +6 -0
- package/lib/server/enum/index.d.ts +5 -0
- package/lib/server/enum/index.js +5 -0
- package/lib/server/index.d.ts +7 -0
- package/lib/server/index.js +7 -0
- package/lib/server/type/Anticheat.d.ts +471 -0
- package/lib/server/type/Anticheat.js +160 -0
- package/lib/server/type/Hash.d.ts +3 -0
- package/lib/server/type/Hash.js +2 -0
- package/lib/server/utils/index.d.ts +1 -0
- package/lib/server/utils/index.js +1 -0
- package/package.json +54 -0
|
@@ -0,0 +1,309 @@
|
|
|
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
|
+
[WeaponComponentHash.AssaultRifleMk2ClipNormal, ComponentAttachmentPoint.Clip],
|
|
51
|
+
[WeaponComponentHash.AssaultRifleMk2ClipExtended, ComponentAttachmentPoint.Clip],
|
|
52
|
+
[WeaponComponentHash.AssaultRifleMk2ClipFMJ, ComponentAttachmentPoint.Clip],
|
|
53
|
+
[WeaponComponentHash.AssaultRifleMk2ClipArmorPiercing, ComponentAttachmentPoint.Clip],
|
|
54
|
+
[WeaponComponentHash.AssaultRifleMk2ClipIncendiary, ComponentAttachmentPoint.Clip],
|
|
55
|
+
[WeaponComponentHash.AssaultRifleMk2ClipTracer, ComponentAttachmentPoint.Clip],
|
|
56
|
+
[WeaponComponentHash.CarbineRifleMk2ClipNormal, ComponentAttachmentPoint.Clip],
|
|
57
|
+
[WeaponComponentHash.CarbineRifleMk2ClipExtended, ComponentAttachmentPoint.Clip],
|
|
58
|
+
[WeaponComponentHash.CarbineRifleMk2ClipFMJ, ComponentAttachmentPoint.Clip],
|
|
59
|
+
[WeaponComponentHash.CarbineRifleMk2ClipArmorPiercing, ComponentAttachmentPoint.Clip],
|
|
60
|
+
[WeaponComponentHash.CarbineRifleMk2ClipIncendiary, ComponentAttachmentPoint.Clip],
|
|
61
|
+
[WeaponComponentHash.CarbineRifleMk2ClipTracer, ComponentAttachmentPoint.Clip],
|
|
62
|
+
[WeaponComponentHash.CombatMGMk2ClipNormal, ComponentAttachmentPoint.Clip],
|
|
63
|
+
[WeaponComponentHash.CombatMGMk2ClipExtended, ComponentAttachmentPoint.Clip],
|
|
64
|
+
[WeaponComponentHash.CombatMGMk2ClipFMJ, ComponentAttachmentPoint.Clip],
|
|
65
|
+
[WeaponComponentHash.CombatMGMk2ClipArmorPiercing, ComponentAttachmentPoint.Clip],
|
|
66
|
+
[WeaponComponentHash.CombatMGMk2ClipIncendiary, ComponentAttachmentPoint.Clip],
|
|
67
|
+
[WeaponComponentHash.CombatMGMk2ClipTracer, ComponentAttachmentPoint.Clip],
|
|
68
|
+
[WeaponComponentHash.HeavySniperMk2ClipNormal, ComponentAttachmentPoint.Clip],
|
|
69
|
+
[WeaponComponentHash.HeavySniperMk2ClipExtended, ComponentAttachmentPoint.Clip],
|
|
70
|
+
[WeaponComponentHash.HeavySniperMk2ClipFMJ, ComponentAttachmentPoint.Clip],
|
|
71
|
+
[WeaponComponentHash.HeavySniperMk2ClipArmorPiercing, ComponentAttachmentPoint.Clip],
|
|
72
|
+
[WeaponComponentHash.HeavySniperMk2ClipIncendiary, ComponentAttachmentPoint.Clip],
|
|
73
|
+
[WeaponComponentHash.HeavySniperMk2ClipExplosive, ComponentAttachmentPoint.Clip],
|
|
74
|
+
[WeaponComponentHash.SMGMk2ClipNormal, ComponentAttachmentPoint.Clip],
|
|
75
|
+
[WeaponComponentHash.SMGMk2ClipExtended, ComponentAttachmentPoint.Clip],
|
|
76
|
+
[WeaponComponentHash.SMGMk2ClipFMJ, ComponentAttachmentPoint.Clip],
|
|
77
|
+
[WeaponComponentHash.SMGMk2ClipHollowpoint, ComponentAttachmentPoint.Clip],
|
|
78
|
+
[WeaponComponentHash.SMGMk2ClipIncendiary, ComponentAttachmentPoint.Clip],
|
|
79
|
+
[WeaponComponentHash.SMGMk2ClipTracer, ComponentAttachmentPoint.Clip],
|
|
80
|
+
[WeaponComponentHash.AtPiFlsh, ComponentAttachmentPoint.FlashLaser],
|
|
81
|
+
[WeaponComponentHash.AtPiFlsh, ComponentAttachmentPoint.FlashLaser],
|
|
82
|
+
[WeaponComponentHash.AtPiFlsh, ComponentAttachmentPoint.FlashLaser],
|
|
83
|
+
[WeaponComponentHash.AtPiFlsh, 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.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
|
|
92
|
+
[WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
|
|
93
|
+
[WeaponComponentHash.AtPiFlsh, ComponentAttachmentPoint.FlashLaser],
|
|
94
|
+
[WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
|
|
95
|
+
[WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
|
|
96
|
+
[WeaponComponentHash.AtArFlsh, ComponentAttachmentPoint.FlashLaser],
|
|
97
|
+
[WeaponComponentHash.PistolMk2Compensator, ComponentAttachmentPoint.Supp],
|
|
98
|
+
[WeaponComponentHash.AtPiSupp02, ComponentAttachmentPoint.Supp],
|
|
99
|
+
[WeaponComponentHash.AtPiSupp, ComponentAttachmentPoint.Supp],
|
|
100
|
+
[WeaponComponentHash.AtPiSupp, ComponentAttachmentPoint.Supp],
|
|
101
|
+
[WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp],
|
|
102
|
+
[WeaponComponentHash.AtPiSupp, ComponentAttachmentPoint.Supp],
|
|
103
|
+
[WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp],
|
|
104
|
+
[WeaponComponentHash.AtArSupp, ComponentAttachmentPoint.Supp],
|
|
105
|
+
[WeaponComponentHash.AtArSupp, ComponentAttachmentPoint.Supp],
|
|
106
|
+
[WeaponComponentHash.AtArSupp, ComponentAttachmentPoint.Supp],
|
|
107
|
+
[WeaponComponentHash.AtArSupp, ComponentAttachmentPoint.Supp],
|
|
108
|
+
[WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp],
|
|
109
|
+
[WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp],
|
|
110
|
+
[WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp],
|
|
111
|
+
[WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp],
|
|
112
|
+
[WeaponComponentHash.AtPiSupp02, ComponentAttachmentPoint.Supp],
|
|
113
|
+
[WeaponComponentHash.AtMuzzle1, ComponentAttachmentPoint.Supp],
|
|
114
|
+
[WeaponComponentHash.AtMuzzle2, ComponentAttachmentPoint.Supp],
|
|
115
|
+
[WeaponComponentHash.AtMuzzle3, ComponentAttachmentPoint.Supp],
|
|
116
|
+
[WeaponComponentHash.AtMuzzle4, ComponentAttachmentPoint.Supp],
|
|
117
|
+
[WeaponComponentHash.AtMuzzle5, ComponentAttachmentPoint.Supp],
|
|
118
|
+
[WeaponComponentHash.AtMuzzle6, ComponentAttachmentPoint.Supp],
|
|
119
|
+
[WeaponComponentHash.AtMuzzle7, ComponentAttachmentPoint.Supp],
|
|
120
|
+
[WeaponComponentHash.HeavySniperMk2Suppressor, ComponentAttachmentPoint.Supp],
|
|
121
|
+
[WeaponComponentHash.HeavySniperMk2Muzzle8, ComponentAttachmentPoint.Supp],
|
|
122
|
+
[WeaponComponentHash.HeavySniperMk2Muzzle9, ComponentAttachmentPoint.Supp],
|
|
123
|
+
[WeaponComponentHash.AtArSupp, ComponentAttachmentPoint.Supp2],
|
|
124
|
+
[WeaponComponentHash.AtMuzzle1, ComponentAttachmentPoint.Supp2],
|
|
125
|
+
[WeaponComponentHash.AtMuzzle2, ComponentAttachmentPoint.Supp2],
|
|
126
|
+
[WeaponComponentHash.AtMuzzle3, ComponentAttachmentPoint.Supp2],
|
|
127
|
+
[WeaponComponentHash.AtMuzzle4, ComponentAttachmentPoint.Supp2],
|
|
128
|
+
[WeaponComponentHash.AtMuzzle5, ComponentAttachmentPoint.Supp2],
|
|
129
|
+
[WeaponComponentHash.AtMuzzle6, ComponentAttachmentPoint.Supp2],
|
|
130
|
+
[WeaponComponentHash.AtMuzzle7, ComponentAttachmentPoint.Supp2],
|
|
131
|
+
[WeaponComponentHash.AtArSupp02, ComponentAttachmentPoint.Supp2],
|
|
132
|
+
[WeaponComponentHash.AtMuzzle1, ComponentAttachmentPoint.Supp2],
|
|
133
|
+
[WeaponComponentHash.AtMuzzle2, ComponentAttachmentPoint.Supp2],
|
|
134
|
+
[WeaponComponentHash.AtMuzzle3, ComponentAttachmentPoint.Supp2],
|
|
135
|
+
[WeaponComponentHash.AtMuzzle4, ComponentAttachmentPoint.Supp2],
|
|
136
|
+
[WeaponComponentHash.AtMuzzle5, ComponentAttachmentPoint.Supp2],
|
|
137
|
+
[WeaponComponentHash.AtMuzzle6, ComponentAttachmentPoint.Supp2],
|
|
138
|
+
[WeaponComponentHash.AtMuzzle7, ComponentAttachmentPoint.Supp2],
|
|
139
|
+
[WeaponComponentHash.AtPiSupp, ComponentAttachmentPoint.Supp2],
|
|
140
|
+
[WeaponComponentHash.AtMuzzle1, ComponentAttachmentPoint.Supp2],
|
|
141
|
+
[WeaponComponentHash.AtMuzzle2, ComponentAttachmentPoint.Supp2],
|
|
142
|
+
[WeaponComponentHash.AtMuzzle3, ComponentAttachmentPoint.Supp2],
|
|
143
|
+
[WeaponComponentHash.AtMuzzle4, ComponentAttachmentPoint.Supp2],
|
|
144
|
+
[WeaponComponentHash.AtMuzzle5, ComponentAttachmentPoint.Supp2],
|
|
145
|
+
[WeaponComponentHash.AtMuzzle6, ComponentAttachmentPoint.Supp2],
|
|
146
|
+
[WeaponComponentHash.AtMuzzle7, ComponentAttachmentPoint.Supp2],
|
|
147
|
+
[WeaponComponentHash.PistolVarmodLuxe, ComponentAttachmentPoint.GunRoot],
|
|
148
|
+
[WeaponComponentHash.CombatPistolVarmodLowrider, ComponentAttachmentPoint.GunRoot],
|
|
149
|
+
[WeaponComponentHash.APPistolVarmodLuxe, ComponentAttachmentPoint.GunRoot],
|
|
150
|
+
[WeaponComponentHash.MicroSMGVarmodLuxe, ComponentAttachmentPoint.GunRoot],
|
|
151
|
+
[WeaponComponentHash.SMGVarmodLuxe, ComponentAttachmentPoint.GunRoot],
|
|
152
|
+
[WeaponComponentHash.AssaultRifleVarmodLuxe, ComponentAttachmentPoint.GunRoot],
|
|
153
|
+
[WeaponComponentHash.CarbineRifleVarmodLuxe, ComponentAttachmentPoint.GunRoot],
|
|
154
|
+
[WeaponComponentHash.AdvancedRifleVarmodLuxe, ComponentAttachmentPoint.GunRoot],
|
|
155
|
+
[WeaponComponentHash.MGVarmodLowrider, ComponentAttachmentPoint.GunRoot],
|
|
156
|
+
[WeaponComponentHash.CombatMGVarmodLowrider, ComponentAttachmentPoint.GunRoot],
|
|
157
|
+
[WeaponComponentHash.PumpShotgunVarmodLowrider, ComponentAttachmentPoint.GunRoot],
|
|
158
|
+
[WeaponComponentHash.SniperRifleVarmodLuxe, ComponentAttachmentPoint.GunRoot],
|
|
159
|
+
[WeaponComponentHash.AssaultSMGVarmodLowrider, ComponentAttachmentPoint.GunRoot],
|
|
160
|
+
[WeaponComponentHash.Pistol50VarmodLuxe, ComponentAttachmentPoint.GunRoot],
|
|
161
|
+
[WeaponComponentHash.SawnoffShotgunVarmodLuxe, ComponentAttachmentPoint.GunRoot],
|
|
162
|
+
[WeaponComponentHash.PistolMk2CamoDigital, ComponentAttachmentPoint.GunRoot],
|
|
163
|
+
[WeaponComponentHash.PistolMk2CamoBrushstroke, ComponentAttachmentPoint.GunRoot],
|
|
164
|
+
[WeaponComponentHash.PistolMk2CamoWoodland, ComponentAttachmentPoint.GunRoot],
|
|
165
|
+
[WeaponComponentHash.PistolMk2CamoSkull, ComponentAttachmentPoint.GunRoot],
|
|
166
|
+
[WeaponComponentHash.PistolMk2CamoSessanta, ComponentAttachmentPoint.GunRoot],
|
|
167
|
+
[WeaponComponentHash.PistolMk2CamoPerseus, ComponentAttachmentPoint.GunRoot],
|
|
168
|
+
[WeaponComponentHash.PistolMk2CamoLeopard, ComponentAttachmentPoint.GunRoot],
|
|
169
|
+
[WeaponComponentHash.PistolMk2CamoZebra, ComponentAttachmentPoint.GunRoot],
|
|
170
|
+
[WeaponComponentHash.PistolMk2CamoGeometric, ComponentAttachmentPoint.GunRoot],
|
|
171
|
+
[WeaponComponentHash.PistolMk2CamoBoom, ComponentAttachmentPoint.GunRoot],
|
|
172
|
+
[WeaponComponentHash.PistolMk2CamoPatriotic, ComponentAttachmentPoint.GunRoot],
|
|
173
|
+
[WeaponComponentHash.AssaultRifleMk2CamoDigital, ComponentAttachmentPoint.GunRoot],
|
|
174
|
+
[WeaponComponentHash.AssaultRifleMk2CamoBrushstroke, ComponentAttachmentPoint.GunRoot],
|
|
175
|
+
[WeaponComponentHash.AssaultRifleMk2CamoWoodland, ComponentAttachmentPoint.GunRoot],
|
|
176
|
+
[WeaponComponentHash.AssaultRifleMk2CamoSkull, ComponentAttachmentPoint.GunRoot],
|
|
177
|
+
[WeaponComponentHash.AssaultRifleMk2CamoSessanta, ComponentAttachmentPoint.GunRoot],
|
|
178
|
+
[WeaponComponentHash.AssaultRifleMk2CamoPerseus, ComponentAttachmentPoint.GunRoot],
|
|
179
|
+
[WeaponComponentHash.AssaultRifleMk2CamoLeopard, ComponentAttachmentPoint.GunRoot],
|
|
180
|
+
[WeaponComponentHash.AssaultRifleMk2CamoZebra, ComponentAttachmentPoint.GunRoot],
|
|
181
|
+
[WeaponComponentHash.AssaultRifleMk2CamoGeometric, ComponentAttachmentPoint.GunRoot],
|
|
182
|
+
[WeaponComponentHash.AssaultRifleMk2CamoBoom, ComponentAttachmentPoint.GunRoot],
|
|
183
|
+
[WeaponComponentHash.AssaultRifleMk2CamoPatriotic, ComponentAttachmentPoint.GunRoot],
|
|
184
|
+
[WeaponComponentHash.CarbineRifleMk2CamoDigital, ComponentAttachmentPoint.GunRoot],
|
|
185
|
+
[WeaponComponentHash.CarbineRifleMk2CamoBrushstroke, ComponentAttachmentPoint.GunRoot],
|
|
186
|
+
[WeaponComponentHash.CarbineRifleMk2CamoWoodland, ComponentAttachmentPoint.GunRoot],
|
|
187
|
+
[WeaponComponentHash.CarbineRifleMk2CamoSkull, ComponentAttachmentPoint.GunRoot],
|
|
188
|
+
[WeaponComponentHash.CarbineRifleMk2CamoSessanta, ComponentAttachmentPoint.GunRoot],
|
|
189
|
+
[WeaponComponentHash.CarbineRifleMk2CamoPerseus, ComponentAttachmentPoint.GunRoot],
|
|
190
|
+
[WeaponComponentHash.CarbineRifleMk2CamoLeopard, ComponentAttachmentPoint.GunRoot],
|
|
191
|
+
[WeaponComponentHash.CarbineRifleMk2CamoZebra, ComponentAttachmentPoint.GunRoot],
|
|
192
|
+
[WeaponComponentHash.CarbineRifleMk2CamoGeometric, ComponentAttachmentPoint.GunRoot],
|
|
193
|
+
[WeaponComponentHash.CarbineRifleMk2CamoBoom, ComponentAttachmentPoint.GunRoot],
|
|
194
|
+
[WeaponComponentHash.CarbineRifleMk2CamoPatriotic, ComponentAttachmentPoint.GunRoot],
|
|
195
|
+
[WeaponComponentHash.CombatMGMk2CamoDigital, ComponentAttachmentPoint.GunRoot],
|
|
196
|
+
[WeaponComponentHash.CombatMGMk2CamoBrushstroke, ComponentAttachmentPoint.GunRoot],
|
|
197
|
+
[WeaponComponentHash.CombatMGMk2CamoWoodland, ComponentAttachmentPoint.GunRoot],
|
|
198
|
+
[WeaponComponentHash.CombatMGMk2CamoSkull, ComponentAttachmentPoint.GunRoot],
|
|
199
|
+
[WeaponComponentHash.CombatMGMk2CamoSessanta, ComponentAttachmentPoint.GunRoot],
|
|
200
|
+
[WeaponComponentHash.CombatMGMk2CamoPerseus, ComponentAttachmentPoint.GunRoot],
|
|
201
|
+
[WeaponComponentHash.CombatMGMk2CamoLeopard, ComponentAttachmentPoint.GunRoot],
|
|
202
|
+
[WeaponComponentHash.CombatMGMk2CamoZebra, ComponentAttachmentPoint.GunRoot],
|
|
203
|
+
[WeaponComponentHash.CombatMGMk2CamoGeometric, ComponentAttachmentPoint.GunRoot],
|
|
204
|
+
[WeaponComponentHash.CombatMGMk2CamoBoom, ComponentAttachmentPoint.GunRoot],
|
|
205
|
+
[WeaponComponentHash.CombatMGMk2CamoPatriotic, ComponentAttachmentPoint.GunRoot],
|
|
206
|
+
[WeaponComponentHash.HeavySniperMk2CamoDigital, ComponentAttachmentPoint.GunRoot],
|
|
207
|
+
[WeaponComponentHash.HeavySniperMk2CamoBrushstroke, ComponentAttachmentPoint.GunRoot],
|
|
208
|
+
[WeaponComponentHash.HeavySniperMk2CamoWoodland, ComponentAttachmentPoint.GunRoot],
|
|
209
|
+
[WeaponComponentHash.HeavySniperMk2CamoSkull, ComponentAttachmentPoint.GunRoot],
|
|
210
|
+
[WeaponComponentHash.HeavySniperMk2CamoSessanta, ComponentAttachmentPoint.GunRoot],
|
|
211
|
+
[WeaponComponentHash.HeavySniperMk2CamoPerseus, ComponentAttachmentPoint.GunRoot],
|
|
212
|
+
[WeaponComponentHash.HeavySniperMk2CamoLeopard, ComponentAttachmentPoint.GunRoot],
|
|
213
|
+
[WeaponComponentHash.HeavySniperMk2CamoZebra, ComponentAttachmentPoint.GunRoot],
|
|
214
|
+
[WeaponComponentHash.HeavySniperMk2CamoGeometric, ComponentAttachmentPoint.GunRoot],
|
|
215
|
+
[WeaponComponentHash.HeavySniperMk2CamoBoom, ComponentAttachmentPoint.GunRoot],
|
|
216
|
+
[WeaponComponentHash.HeavySniperMk2CamoPatriotic, ComponentAttachmentPoint.GunRoot],
|
|
217
|
+
[WeaponComponentHash.SMGMk2CamoDigital, ComponentAttachmentPoint.GunRoot],
|
|
218
|
+
[WeaponComponentHash.SMGMk2CamoBrushstroke, ComponentAttachmentPoint.GunRoot],
|
|
219
|
+
[WeaponComponentHash.SMGMk2CamoWoodland, ComponentAttachmentPoint.GunRoot],
|
|
220
|
+
[WeaponComponentHash.SMGMk2CamoSkull, ComponentAttachmentPoint.GunRoot],
|
|
221
|
+
[WeaponComponentHash.SMGMk2CamoSessanta, ComponentAttachmentPoint.GunRoot],
|
|
222
|
+
[WeaponComponentHash.SMGMk2CamoPerseus, ComponentAttachmentPoint.GunRoot],
|
|
223
|
+
[WeaponComponentHash.SMGMk2CamoLeopard, ComponentAttachmentPoint.GunRoot],
|
|
224
|
+
[WeaponComponentHash.SMGMk2CamoZebra, ComponentAttachmentPoint.GunRoot],
|
|
225
|
+
[WeaponComponentHash.SMGMk2CamoGeometric, ComponentAttachmentPoint.GunRoot],
|
|
226
|
+
[WeaponComponentHash.SMGMk2CamoBoom, ComponentAttachmentPoint.GunRoot],
|
|
227
|
+
[WeaponComponentHash.SMGMk2CamoPatriotic, ComponentAttachmentPoint.GunRoot],
|
|
228
|
+
[WeaponComponentHash.AtScopeMacro, ComponentAttachmentPoint.Scope],
|
|
229
|
+
[WeaponComponentHash.AtScopeMacro02, ComponentAttachmentPoint.Scope],
|
|
230
|
+
[WeaponComponentHash.AtScopeMacro, ComponentAttachmentPoint.Scope],
|
|
231
|
+
[WeaponComponentHash.AtScopeMedium, ComponentAttachmentPoint.Scope],
|
|
232
|
+
[WeaponComponentHash.AtScopeSmall, ComponentAttachmentPoint.Scope],
|
|
233
|
+
[WeaponComponentHash.AtScopeSmall02, ComponentAttachmentPoint.Scope],
|
|
234
|
+
[WeaponComponentHash.AtScopeMedium, ComponentAttachmentPoint.Scope],
|
|
235
|
+
[WeaponComponentHash.AtScopeLarge, ComponentAttachmentPoint.Scope],
|
|
236
|
+
[WeaponComponentHash.AtScopeMax, ComponentAttachmentPoint.Scope],
|
|
237
|
+
[WeaponComponentHash.AtScopeLarge, ComponentAttachmentPoint.Scope],
|
|
238
|
+
[WeaponComponentHash.AtScopeMax, ComponentAttachmentPoint.Scope],
|
|
239
|
+
[WeaponComponentHash.AtScopeSmall, ComponentAttachmentPoint.Scope],
|
|
240
|
+
[WeaponComponentHash.AtScopeMacro, ComponentAttachmentPoint.Scope],
|
|
241
|
+
[WeaponComponentHash.PistolMk2Scope, ComponentAttachmentPoint.Scope],
|
|
242
|
+
[WeaponComponentHash.PistolMk2Flash, ComponentAttachmentPoint.Scope],
|
|
243
|
+
[WeaponComponentHash.HeavySniperMk2ScopeLarge, ComponentAttachmentPoint.Scope],
|
|
244
|
+
[WeaponComponentHash.AtScopeMax, ComponentAttachmentPoint.Scope],
|
|
245
|
+
[WeaponComponentHash.HeavySniperMk2ScopeNightvision, ComponentAttachmentPoint.Scope],
|
|
246
|
+
[WeaponComponentHash.HeavySniperMk2ScopeThermal, ComponentAttachmentPoint.Scope],
|
|
247
|
+
[WeaponComponentHash.SMGMk2Sights, ComponentAttachmentPoint.Scope],
|
|
248
|
+
[WeaponComponentHash.SMGMk2ScopeMacro, ComponentAttachmentPoint.Scope],
|
|
249
|
+
[WeaponComponentHash.SMGMk2ScopeSmall, ComponentAttachmentPoint.Scope],
|
|
250
|
+
[WeaponComponentHash.PistolMk2CamoSlideDigital, ComponentAttachmentPoint.Scope2],
|
|
251
|
+
[WeaponComponentHash.PistolMk2CamoSlideBrushstroke, ComponentAttachmentPoint.Scope2],
|
|
252
|
+
[WeaponComponentHash.PistolMk2CamoSlideWoodland, ComponentAttachmentPoint.Scope2],
|
|
253
|
+
[WeaponComponentHash.PistolMk2CamoSlideSkull, ComponentAttachmentPoint.Scope2],
|
|
254
|
+
[WeaponComponentHash.PistolMk2CamoSlideSessanta, ComponentAttachmentPoint.Scope2],
|
|
255
|
+
[WeaponComponentHash.PistolMk2CamoSlidePerseus, ComponentAttachmentPoint.Scope2],
|
|
256
|
+
[WeaponComponentHash.PistolMk2CamoSlideLeopard, ComponentAttachmentPoint.Scope2],
|
|
257
|
+
[WeaponComponentHash.PistolMk2CamoSlideZebra, ComponentAttachmentPoint.Scope2],
|
|
258
|
+
[WeaponComponentHash.PistolMk2CamoSlideGeometric, ComponentAttachmentPoint.Scope2],
|
|
259
|
+
[WeaponComponentHash.PistolMk2CamoSlideBoom, ComponentAttachmentPoint.Scope2],
|
|
260
|
+
[WeaponComponentHash.PistolMk2CamoSlidePatriotic, ComponentAttachmentPoint.Scope2],
|
|
261
|
+
[WeaponComponentHash.AtSights, ComponentAttachmentPoint.Scope2],
|
|
262
|
+
[WeaponComponentHash.AtScopeMacroMk2, ComponentAttachmentPoint.Scope2],
|
|
263
|
+
[WeaponComponentHash.AtScopeMediumMk2, ComponentAttachmentPoint.Scope2],
|
|
264
|
+
[WeaponComponentHash.AtSights, ComponentAttachmentPoint.Scope2],
|
|
265
|
+
[WeaponComponentHash.AtScopeSmallMk2, ComponentAttachmentPoint.Scope2],
|
|
266
|
+
[WeaponComponentHash.AtScopeMediumMk2, ComponentAttachmentPoint.Scope2],
|
|
267
|
+
[WeaponComponentHash.AtSights, ComponentAttachmentPoint.Scope2],
|
|
268
|
+
[WeaponComponentHash.AtScopeMacroMk2, ComponentAttachmentPoint.Scope2],
|
|
269
|
+
[WeaponComponentHash.AtScopeMediumMk2, ComponentAttachmentPoint.Scope2],
|
|
270
|
+
[WeaponComponentHash.AtArAfGrip, ComponentAttachmentPoint.Grip2],
|
|
271
|
+
[WeaponComponentHash.AtArAfGrip, ComponentAttachmentPoint.Grip2],
|
|
272
|
+
[WeaponComponentHash.AtArAfGrip, ComponentAttachmentPoint.Grip2],
|
|
273
|
+
[WeaponComponentHash.AtArAfGrip, ComponentAttachmentPoint.Grip2],
|
|
274
|
+
[WeaponComponentHash.GrenadeLauncherClip01, ComponentAttachmentPoint.Grip2],
|
|
275
|
+
[WeaponComponentHash.AtArAfGrip, ComponentAttachmentPoint.Grip2],
|
|
276
|
+
[WeaponComponentHash.AtArAfGrip, ComponentAttachmentPoint.Grip2],
|
|
277
|
+
[WeaponComponentHash.AtArAfGrip2, ComponentAttachmentPoint.Grip2],
|
|
278
|
+
[WeaponComponentHash.AtArAfGrip2, ComponentAttachmentPoint.Grip2],
|
|
279
|
+
[WeaponComponentHash.AtArAfGrip2, ComponentAttachmentPoint.Grip2],
|
|
280
|
+
[WeaponComponentHash.AtArAfGrip2, ComponentAttachmentPoint.Grip2],
|
|
281
|
+
[WeaponComponentHash.AtRailCover01, ComponentAttachmentPoint.Rail],
|
|
282
|
+
[WeaponComponentHash.AssaultRifleMk2BarrelNormal, ComponentAttachmentPoint.Barrel],
|
|
283
|
+
[WeaponComponentHash.AssaultRifleMk2BarrelHeavy, ComponentAttachmentPoint.Barrel],
|
|
284
|
+
[WeaponComponentHash.CarbineRifleMk2BarrelNormal, ComponentAttachmentPoint.Barrel],
|
|
285
|
+
[WeaponComponentHash.CarbineRifleMk2BarrelHeavy, ComponentAttachmentPoint.Barrel],
|
|
286
|
+
[WeaponComponentHash.CombatMGMk2BarrelNormal, ComponentAttachmentPoint.Barrel],
|
|
287
|
+
[WeaponComponentHash.CombatMGMk2BarrelHeavy, ComponentAttachmentPoint.Barrel],
|
|
288
|
+
[WeaponComponentHash.HeavySniperMk2BarrelNormal, ComponentAttachmentPoint.Barrel],
|
|
289
|
+
[WeaponComponentHash.HeavySniperMk2BarrelHeavy, ComponentAttachmentPoint.Barrel],
|
|
290
|
+
[WeaponComponentHash.SMGMk2BarrelNormal, ComponentAttachmentPoint.Barrel],
|
|
291
|
+
[WeaponComponentHash.SMGMk2BarrelHeavy, ComponentAttachmentPoint.Barrel],
|
|
292
|
+
]);
|
|
293
|
+
/**
|
|
294
|
+
* Initialize with DlcWeaponComponentData, in case of any missing dlc data
|
|
295
|
+
*
|
|
296
|
+
*/
|
|
297
|
+
function initializeOnce() {
|
|
298
|
+
let isInitialized = false;
|
|
299
|
+
return function () {
|
|
300
|
+
if (isInitialized) {
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
for (const [hash, data] of DlcWeaponComponentData) {
|
|
304
|
+
ComponentAttachmentPointByHash.set(hash, data.attachBone);
|
|
305
|
+
}
|
|
306
|
+
isInitialized = true;
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
initializeOnce()();
|
|
@@ -0,0 +1,280 @@
|
|
|
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()();
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { WeaponComponentHash } from './WeaponComponentHash';
|
|
2
|
+
/**
|
|
3
|
+
* DlcWeaponComponentData
|
|
4
|
+
* refer1: https://github.com/citizenfx/fivem/blob/master/code/client/clrcore/External/DlcWeaponStructs.cs#L130
|
|
5
|
+
* refer2: https://docs.fivem.net/natives/?_0x6CF598A2957C2BF8
|
|
6
|
+
* p0 seems to be the weapon index
|
|
7
|
+
* p1 seems to be the weapon component index
|
|
8
|
+
* struct DlcComponentData{
|
|
9
|
+
* int attachBone;
|
|
10
|
+
* int padding1;
|
|
11
|
+
* int bActiveByDefault;
|
|
12
|
+
* int padding2;
|
|
13
|
+
* int unk;
|
|
14
|
+
* int padding3;
|
|
15
|
+
* int componentHash;
|
|
16
|
+
* int padding4;
|
|
17
|
+
* int unk2;
|
|
18
|
+
* int padding5;
|
|
19
|
+
* int componentCost;
|
|
20
|
+
* int padding6;
|
|
21
|
+
* char nameLabel[64];
|
|
22
|
+
* char descLabel[64];
|
|
23
|
+
* };
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export interface DlcWeaponComponentData {
|
|
27
|
+
attachBone: number;
|
|
28
|
+
bActiveByDefault: number;
|
|
29
|
+
unk: number;
|
|
30
|
+
componentHash: number;
|
|
31
|
+
unk2: number;
|
|
32
|
+
componentCost: number;
|
|
33
|
+
name: string;
|
|
34
|
+
desc: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* DlcWeaponComponentData
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
export declare const DlcWeaponComponentData: Map<WeaponComponentHash, DlcWeaponComponentData>;
|