@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,147 @@
|
|
|
1
|
+
export declare enum WeaponHash {
|
|
2
|
+
Dagger = -1834847097,
|
|
3
|
+
Bat = -1786099057,
|
|
4
|
+
Bottle = -102323637,
|
|
5
|
+
Crowbar = -2067956739,
|
|
6
|
+
Unarmed = -1569615261,
|
|
7
|
+
Flashlight = -1951375401,
|
|
8
|
+
GolfClub = 1141786504,
|
|
9
|
+
Hammer = 1317494643,
|
|
10
|
+
Hatchet = -102973651,
|
|
11
|
+
KnuckleDuster = -656458692,
|
|
12
|
+
Knife = -1716189206,
|
|
13
|
+
Machete = -581044007,
|
|
14
|
+
SwitchBlade = -538741184,
|
|
15
|
+
Nightstick = 1737195953,
|
|
16
|
+
Wrench = 419712736,
|
|
17
|
+
BattleAxe = -853065399,
|
|
18
|
+
PoolCue = -1810795771,
|
|
19
|
+
StoneHatchet = 940833800,
|
|
20
|
+
Pistol = 453432689,
|
|
21
|
+
PistolMk2 = 3219281620,
|
|
22
|
+
CombatPistol = 1593441988,
|
|
23
|
+
APPistol = 584646201,
|
|
24
|
+
StunGun = 911657153,
|
|
25
|
+
StunGunMp = 1171102963,
|
|
26
|
+
Pistol50 = -1716589765,
|
|
27
|
+
SNSPistol = -1076751822,
|
|
28
|
+
SNSPistolMk2 = -2009644972,
|
|
29
|
+
HeavyPistol = -771403250,
|
|
30
|
+
VintagePistol = 137902532,
|
|
31
|
+
FlareGun = 1198879012,
|
|
32
|
+
MarksmanPistol = -598887786,
|
|
33
|
+
Revolver = -1045183535,
|
|
34
|
+
RevolverMk2 = -879347409,
|
|
35
|
+
DoubleAction = -1746263880,
|
|
36
|
+
RayPistol = -1355376991,
|
|
37
|
+
CeramicPistol = 727643628,
|
|
38
|
+
NavyRevolver = -1853920116,
|
|
39
|
+
GadgetPistol = 1470379660,
|
|
40
|
+
MicroSMG = 324215364,
|
|
41
|
+
SMG = 736523883,
|
|
42
|
+
SMGMk2 = 2024373456,
|
|
43
|
+
AssaultSMG = -270015777,
|
|
44
|
+
CombatPDW = 171789620,
|
|
45
|
+
MachinePistol = -619010992,
|
|
46
|
+
MiniSMG = -1121678507,
|
|
47
|
+
RayCarbine = 1198256469,
|
|
48
|
+
MG = -1660422300,
|
|
49
|
+
CombatMG = 2144741730,
|
|
50
|
+
CombatMGMk2 = 3686625920,
|
|
51
|
+
Gusenberg = 1627465347,
|
|
52
|
+
PumpShotgun = 487013001,
|
|
53
|
+
PumpShotgunMk2 = 1432025498,
|
|
54
|
+
SawnOffShotgun = 2017895192,
|
|
55
|
+
AssaultShotgun = -494615257,
|
|
56
|
+
BullpupShotgun = -1654528753,
|
|
57
|
+
Musket = -1466123874,
|
|
58
|
+
HeavyShotgun = 984333226,
|
|
59
|
+
DoubleBarrelShotgun = -275439685,
|
|
60
|
+
SweeperShotgun = 317205821,
|
|
61
|
+
CombatShotgun = 94989220,
|
|
62
|
+
AssaultRifle = -1074790547,
|
|
63
|
+
AssaultRifleMk2 = 961495388,
|
|
64
|
+
CarbineRifle = -2084633992,
|
|
65
|
+
CarbineRifleMk2 = 4208062921,
|
|
66
|
+
AdvancedRifle = -1357824103,
|
|
67
|
+
SpecialCarbine = -1063057011,
|
|
68
|
+
SpecialCarbineMk2 = -1768145561,
|
|
69
|
+
BullpupRifle = 2132975508,
|
|
70
|
+
BullpupRifleMk2 = -2066285827,
|
|
71
|
+
CompactRifle = 1649403952,
|
|
72
|
+
MilitaryRifle = -1658906650,
|
|
73
|
+
HeavyRifle = -947031628,
|
|
74
|
+
SniperRifle = 100416529,
|
|
75
|
+
HeavySniper = 205991906,
|
|
76
|
+
HeavySniperMk2 = 177293209,
|
|
77
|
+
MarksmanRifle = -952879014,
|
|
78
|
+
MarksmanRifleMk2 = 1785463520,
|
|
79
|
+
RPG = -1312131151,
|
|
80
|
+
GrenadeLauncher = -1568386805,
|
|
81
|
+
GrenadeLauncherSmoke = 1305664598,
|
|
82
|
+
Minigun = 1119849093,
|
|
83
|
+
Firework = 2138347493,
|
|
84
|
+
Railgun = 1834241177,
|
|
85
|
+
HomingLauncher = 1672152130,
|
|
86
|
+
CompactGrenadeLauncher = 125959754,
|
|
87
|
+
RayMinigun = -1238556825,
|
|
88
|
+
EmpLauncher = -618237638,
|
|
89
|
+
Grenade = -1813897027,
|
|
90
|
+
BZGas = -1600701090,
|
|
91
|
+
Molotov = 615608432,
|
|
92
|
+
StickyBomb = 741814745,
|
|
93
|
+
ProximityMine = -1420407917,
|
|
94
|
+
Snowball = 126349499,
|
|
95
|
+
PipeBomb = -1169823560,
|
|
96
|
+
Ball = 600439132,
|
|
97
|
+
SmokeGrenade = -37975472,
|
|
98
|
+
Flare = 1233104067,
|
|
99
|
+
PetrolCan = 883325847,
|
|
100
|
+
Parachute = -72657034,
|
|
101
|
+
FireExtinguisher = 101631238,
|
|
102
|
+
HazardCan = -1168940174,
|
|
103
|
+
FertilizerCan = 406929569
|
|
104
|
+
}
|
|
105
|
+
export declare enum VehicleWeaponHash {
|
|
106
|
+
Invalid = -1,
|
|
107
|
+
Tank = 1945616459,
|
|
108
|
+
SpaceRocket = -123497569,
|
|
109
|
+
PlaneRocket = -821520672,
|
|
110
|
+
PlayerLaser = -268631733,
|
|
111
|
+
PlayerBullet = 1259576109,
|
|
112
|
+
PlayerBuzzard = 1186503822,
|
|
113
|
+
PlayerHunter = -1625648674,
|
|
114
|
+
PlayerLazer = -494786007,
|
|
115
|
+
EnemyLaser = 1566990507,
|
|
116
|
+
SearchLight = -844344963,
|
|
117
|
+
Radar = -764006018
|
|
118
|
+
}
|
|
119
|
+
export declare enum AmmoType {
|
|
120
|
+
Melee = 0,
|
|
121
|
+
FireExtinguisher = 1359393852,
|
|
122
|
+
Flare = 1808594799,
|
|
123
|
+
FlareGun = 1173416293,
|
|
124
|
+
PetrolCan = 3395492001,
|
|
125
|
+
Shotgun = 2416459067,
|
|
126
|
+
Pistol = 1950175060,
|
|
127
|
+
Ball = 4287981158,
|
|
128
|
+
Snowball = 2182627693,
|
|
129
|
+
Sniper = 1285032059,
|
|
130
|
+
AssaultRifle = 218444191,
|
|
131
|
+
SMG = 1820140472,
|
|
132
|
+
Molotov = 1446246869,
|
|
133
|
+
StunGun = 2955849184,
|
|
134
|
+
MG = 1788949567,
|
|
135
|
+
GrenadeLauncher = 1003267566,
|
|
136
|
+
RPG = 1742569970,
|
|
137
|
+
Minigun = 2680539266,
|
|
138
|
+
Firework = 2938367503,
|
|
139
|
+
Railgun = 2034517757,
|
|
140
|
+
HomingLauncher = 2568293933,
|
|
141
|
+
Grenade = 1003688881,
|
|
142
|
+
StickyBomb = 1411692055,
|
|
143
|
+
ProximityMine = 2938243239,
|
|
144
|
+
PipeBomb = 357983224,
|
|
145
|
+
SmokeGrenade = 3859679398,
|
|
146
|
+
BZGas = 2608103076
|
|
147
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
export var WeaponHash;
|
|
2
|
+
(function (WeaponHash) {
|
|
3
|
+
// melee
|
|
4
|
+
WeaponHash[WeaponHash["Dagger"] = -1834847097] = "Dagger";
|
|
5
|
+
WeaponHash[WeaponHash["Bat"] = -1786099057] = "Bat";
|
|
6
|
+
WeaponHash[WeaponHash["Bottle"] = -102323637] = "Bottle";
|
|
7
|
+
WeaponHash[WeaponHash["Crowbar"] = -2067956739] = "Crowbar";
|
|
8
|
+
WeaponHash[WeaponHash["Unarmed"] = -1569615261] = "Unarmed";
|
|
9
|
+
WeaponHash[WeaponHash["Flashlight"] = -1951375401] = "Flashlight";
|
|
10
|
+
WeaponHash[WeaponHash["GolfClub"] = 1141786504] = "GolfClub";
|
|
11
|
+
WeaponHash[WeaponHash["Hammer"] = 1317494643] = "Hammer";
|
|
12
|
+
WeaponHash[WeaponHash["Hatchet"] = -102973651] = "Hatchet";
|
|
13
|
+
WeaponHash[WeaponHash["KnuckleDuster"] = -656458692] = "KnuckleDuster";
|
|
14
|
+
WeaponHash[WeaponHash["Knife"] = -1716189206] = "Knife";
|
|
15
|
+
WeaponHash[WeaponHash["Machete"] = -581044007] = "Machete";
|
|
16
|
+
WeaponHash[WeaponHash["SwitchBlade"] = -538741184] = "SwitchBlade";
|
|
17
|
+
WeaponHash[WeaponHash["Nightstick"] = 1737195953] = "Nightstick";
|
|
18
|
+
WeaponHash[WeaponHash["Wrench"] = 419712736] = "Wrench";
|
|
19
|
+
WeaponHash[WeaponHash["BattleAxe"] = -853065399] = "BattleAxe";
|
|
20
|
+
WeaponHash[WeaponHash["PoolCue"] = -1810795771] = "PoolCue";
|
|
21
|
+
WeaponHash[WeaponHash["StoneHatchet"] = 940833800] = "StoneHatchet";
|
|
22
|
+
// handguns
|
|
23
|
+
WeaponHash[WeaponHash["Pistol"] = 453432689] = "Pistol";
|
|
24
|
+
WeaponHash[WeaponHash["PistolMk2"] = 3219281620] = "PistolMk2";
|
|
25
|
+
WeaponHash[WeaponHash["CombatPistol"] = 1593441988] = "CombatPistol";
|
|
26
|
+
WeaponHash[WeaponHash["APPistol"] = 584646201] = "APPistol";
|
|
27
|
+
WeaponHash[WeaponHash["StunGun"] = 911657153] = "StunGun";
|
|
28
|
+
WeaponHash[WeaponHash["StunGunMp"] = 1171102963] = "StunGunMp";
|
|
29
|
+
WeaponHash[WeaponHash["Pistol50"] = -1716589765] = "Pistol50";
|
|
30
|
+
WeaponHash[WeaponHash["SNSPistol"] = -1076751822] = "SNSPistol";
|
|
31
|
+
WeaponHash[WeaponHash["SNSPistolMk2"] = -2009644972] = "SNSPistolMk2";
|
|
32
|
+
WeaponHash[WeaponHash["HeavyPistol"] = -771403250] = "HeavyPistol";
|
|
33
|
+
WeaponHash[WeaponHash["VintagePistol"] = 137902532] = "VintagePistol";
|
|
34
|
+
WeaponHash[WeaponHash["FlareGun"] = 1198879012] = "FlareGun";
|
|
35
|
+
WeaponHash[WeaponHash["MarksmanPistol"] = -598887786] = "MarksmanPistol";
|
|
36
|
+
WeaponHash[WeaponHash["Revolver"] = -1045183535] = "Revolver";
|
|
37
|
+
WeaponHash[WeaponHash["RevolverMk2"] = -879347409] = "RevolverMk2";
|
|
38
|
+
WeaponHash[WeaponHash["DoubleAction"] = -1746263880] = "DoubleAction";
|
|
39
|
+
WeaponHash[WeaponHash["RayPistol"] = -1355376991] = "RayPistol";
|
|
40
|
+
WeaponHash[WeaponHash["CeramicPistol"] = 727643628] = "CeramicPistol";
|
|
41
|
+
WeaponHash[WeaponHash["NavyRevolver"] = -1853920116] = "NavyRevolver";
|
|
42
|
+
WeaponHash[WeaponHash["GadgetPistol"] = 1470379660] = "GadgetPistol";
|
|
43
|
+
// sub-machine guns
|
|
44
|
+
WeaponHash[WeaponHash["MicroSMG"] = 324215364] = "MicroSMG";
|
|
45
|
+
WeaponHash[WeaponHash["SMG"] = 736523883] = "SMG";
|
|
46
|
+
WeaponHash[WeaponHash["SMGMk2"] = 2024373456] = "SMGMk2";
|
|
47
|
+
WeaponHash[WeaponHash["AssaultSMG"] = -270015777] = "AssaultSMG";
|
|
48
|
+
WeaponHash[WeaponHash["CombatPDW"] = 171789620] = "CombatPDW";
|
|
49
|
+
WeaponHash[WeaponHash["MachinePistol"] = -619010992] = "MachinePistol";
|
|
50
|
+
WeaponHash[WeaponHash["MiniSMG"] = -1121678507] = "MiniSMG";
|
|
51
|
+
WeaponHash[WeaponHash["RayCarbine"] = 1198256469] = "RayCarbine";
|
|
52
|
+
// Light Machine Guns
|
|
53
|
+
WeaponHash[WeaponHash["MG"] = -1660422300] = "MG";
|
|
54
|
+
WeaponHash[WeaponHash["CombatMG"] = 2144741730] = "CombatMG";
|
|
55
|
+
WeaponHash[WeaponHash["CombatMGMk2"] = 3686625920] = "CombatMGMk2";
|
|
56
|
+
WeaponHash[WeaponHash["Gusenberg"] = 1627465347] = "Gusenberg";
|
|
57
|
+
// shotguns
|
|
58
|
+
WeaponHash[WeaponHash["PumpShotgun"] = 487013001] = "PumpShotgun";
|
|
59
|
+
WeaponHash[WeaponHash["PumpShotgunMk2"] = 1432025498] = "PumpShotgunMk2";
|
|
60
|
+
WeaponHash[WeaponHash["SawnOffShotgun"] = 2017895192] = "SawnOffShotgun";
|
|
61
|
+
WeaponHash[WeaponHash["AssaultShotgun"] = -494615257] = "AssaultShotgun";
|
|
62
|
+
WeaponHash[WeaponHash["BullpupShotgun"] = -1654528753] = "BullpupShotgun";
|
|
63
|
+
WeaponHash[WeaponHash["Musket"] = -1466123874] = "Musket";
|
|
64
|
+
WeaponHash[WeaponHash["HeavyShotgun"] = 984333226] = "HeavyShotgun";
|
|
65
|
+
WeaponHash[WeaponHash["DoubleBarrelShotgun"] = -275439685] = "DoubleBarrelShotgun";
|
|
66
|
+
WeaponHash[WeaponHash["SweeperShotgun"] = 317205821] = "SweeperShotgun";
|
|
67
|
+
WeaponHash[WeaponHash["CombatShotgun"] = 94989220] = "CombatShotgun";
|
|
68
|
+
// Assault Rifles
|
|
69
|
+
WeaponHash[WeaponHash["AssaultRifle"] = -1074790547] = "AssaultRifle";
|
|
70
|
+
WeaponHash[WeaponHash["AssaultRifleMk2"] = 961495388] = "AssaultRifleMk2";
|
|
71
|
+
WeaponHash[WeaponHash["CarbineRifle"] = -2084633992] = "CarbineRifle";
|
|
72
|
+
WeaponHash[WeaponHash["CarbineRifleMk2"] = 4208062921] = "CarbineRifleMk2";
|
|
73
|
+
WeaponHash[WeaponHash["AdvancedRifle"] = -1357824103] = "AdvancedRifle";
|
|
74
|
+
WeaponHash[WeaponHash["SpecialCarbine"] = -1063057011] = "SpecialCarbine";
|
|
75
|
+
WeaponHash[WeaponHash["SpecialCarbineMk2"] = -1768145561] = "SpecialCarbineMk2";
|
|
76
|
+
WeaponHash[WeaponHash["BullpupRifle"] = 2132975508] = "BullpupRifle";
|
|
77
|
+
WeaponHash[WeaponHash["BullpupRifleMk2"] = -2066285827] = "BullpupRifleMk2";
|
|
78
|
+
WeaponHash[WeaponHash["CompactRifle"] = 1649403952] = "CompactRifle";
|
|
79
|
+
WeaponHash[WeaponHash["MilitaryRifle"] = -1658906650] = "MilitaryRifle";
|
|
80
|
+
WeaponHash[WeaponHash["HeavyRifle"] = -947031628] = "HeavyRifle";
|
|
81
|
+
// Sniper Rifles
|
|
82
|
+
WeaponHash[WeaponHash["SniperRifle"] = 100416529] = "SniperRifle";
|
|
83
|
+
WeaponHash[WeaponHash["HeavySniper"] = 205991906] = "HeavySniper";
|
|
84
|
+
WeaponHash[WeaponHash["HeavySniperMk2"] = 177293209] = "HeavySniperMk2";
|
|
85
|
+
WeaponHash[WeaponHash["MarksmanRifle"] = -952879014] = "MarksmanRifle";
|
|
86
|
+
WeaponHash[WeaponHash["MarksmanRifleMk2"] = 1785463520] = "MarksmanRifleMk2";
|
|
87
|
+
// Heavy Weapons
|
|
88
|
+
WeaponHash[WeaponHash["RPG"] = -1312131151] = "RPG";
|
|
89
|
+
WeaponHash[WeaponHash["GrenadeLauncher"] = -1568386805] = "GrenadeLauncher";
|
|
90
|
+
WeaponHash[WeaponHash["GrenadeLauncherSmoke"] = 1305664598] = "GrenadeLauncherSmoke";
|
|
91
|
+
WeaponHash[WeaponHash["Minigun"] = 1119849093] = "Minigun";
|
|
92
|
+
WeaponHash[WeaponHash["Firework"] = 2138347493] = "Firework";
|
|
93
|
+
WeaponHash[WeaponHash["Railgun"] = 1834241177] = "Railgun";
|
|
94
|
+
WeaponHash[WeaponHash["HomingLauncher"] = 1672152130] = "HomingLauncher";
|
|
95
|
+
WeaponHash[WeaponHash["CompactGrenadeLauncher"] = 125959754] = "CompactGrenadeLauncher";
|
|
96
|
+
WeaponHash[WeaponHash["RayMinigun"] = -1238556825] = "RayMinigun";
|
|
97
|
+
WeaponHash[WeaponHash["EmpLauncher"] = -618237638] = "EmpLauncher";
|
|
98
|
+
// Throwables
|
|
99
|
+
WeaponHash[WeaponHash["Grenade"] = -1813897027] = "Grenade";
|
|
100
|
+
WeaponHash[WeaponHash["BZGas"] = -1600701090] = "BZGas";
|
|
101
|
+
WeaponHash[WeaponHash["Molotov"] = 615608432] = "Molotov";
|
|
102
|
+
WeaponHash[WeaponHash["StickyBomb"] = 741814745] = "StickyBomb";
|
|
103
|
+
WeaponHash[WeaponHash["ProximityMine"] = -1420407917] = "ProximityMine";
|
|
104
|
+
WeaponHash[WeaponHash["Snowball"] = 126349499] = "Snowball";
|
|
105
|
+
WeaponHash[WeaponHash["PipeBomb"] = -1169823560] = "PipeBomb";
|
|
106
|
+
WeaponHash[WeaponHash["Ball"] = 600439132] = "Ball";
|
|
107
|
+
WeaponHash[WeaponHash["SmokeGrenade"] = -37975472] = "SmokeGrenade";
|
|
108
|
+
WeaponHash[WeaponHash["Flare"] = 1233104067] = "Flare";
|
|
109
|
+
// Miscellaneous
|
|
110
|
+
WeaponHash[WeaponHash["PetrolCan"] = 883325847] = "PetrolCan";
|
|
111
|
+
WeaponHash[WeaponHash["Parachute"] = -72657034] = "Parachute";
|
|
112
|
+
WeaponHash[WeaponHash["FireExtinguisher"] = 101631238] = "FireExtinguisher";
|
|
113
|
+
WeaponHash[WeaponHash["HazardCan"] = -1168940174] = "HazardCan";
|
|
114
|
+
WeaponHash[WeaponHash["FertilizerCan"] = 406929569] = "FertilizerCan";
|
|
115
|
+
})(WeaponHash || (WeaponHash = {}));
|
|
116
|
+
export var VehicleWeaponHash;
|
|
117
|
+
(function (VehicleWeaponHash) {
|
|
118
|
+
VehicleWeaponHash[VehicleWeaponHash["Invalid"] = -1] = "Invalid";
|
|
119
|
+
VehicleWeaponHash[VehicleWeaponHash["Tank"] = 1945616459] = "Tank";
|
|
120
|
+
VehicleWeaponHash[VehicleWeaponHash["SpaceRocket"] = -123497569] = "SpaceRocket";
|
|
121
|
+
VehicleWeaponHash[VehicleWeaponHash["PlaneRocket"] = -821520672] = "PlaneRocket";
|
|
122
|
+
VehicleWeaponHash[VehicleWeaponHash["PlayerLaser"] = -268631733] = "PlayerLaser";
|
|
123
|
+
VehicleWeaponHash[VehicleWeaponHash["PlayerBullet"] = 1259576109] = "PlayerBullet";
|
|
124
|
+
VehicleWeaponHash[VehicleWeaponHash["PlayerBuzzard"] = 1186503822] = "PlayerBuzzard";
|
|
125
|
+
VehicleWeaponHash[VehicleWeaponHash["PlayerHunter"] = -1625648674] = "PlayerHunter";
|
|
126
|
+
VehicleWeaponHash[VehicleWeaponHash["PlayerLazer"] = -494786007] = "PlayerLazer";
|
|
127
|
+
VehicleWeaponHash[VehicleWeaponHash["EnemyLaser"] = 1566990507] = "EnemyLaser";
|
|
128
|
+
VehicleWeaponHash[VehicleWeaponHash["SearchLight"] = -844344963] = "SearchLight";
|
|
129
|
+
VehicleWeaponHash[VehicleWeaponHash["Radar"] = -764006018] = "Radar";
|
|
130
|
+
})(VehicleWeaponHash || (VehicleWeaponHash = {}));
|
|
131
|
+
// TODO: Convert this to uint instead of hash
|
|
132
|
+
export var AmmoType;
|
|
133
|
+
(function (AmmoType) {
|
|
134
|
+
AmmoType[AmmoType["Melee"] = 0] = "Melee";
|
|
135
|
+
AmmoType[AmmoType["FireExtinguisher"] = 1359393852] = "FireExtinguisher";
|
|
136
|
+
AmmoType[AmmoType["Flare"] = 1808594799] = "Flare";
|
|
137
|
+
AmmoType[AmmoType["FlareGun"] = 1173416293] = "FlareGun";
|
|
138
|
+
AmmoType[AmmoType["PetrolCan"] = 3395492001] = "PetrolCan";
|
|
139
|
+
AmmoType[AmmoType["Shotgun"] = 2416459067] = "Shotgun";
|
|
140
|
+
AmmoType[AmmoType["Pistol"] = 1950175060] = "Pistol";
|
|
141
|
+
AmmoType[AmmoType["Ball"] = 4287981158] = "Ball";
|
|
142
|
+
AmmoType[AmmoType["Snowball"] = 2182627693] = "Snowball";
|
|
143
|
+
AmmoType[AmmoType["Sniper"] = 1285032059] = "Sniper";
|
|
144
|
+
AmmoType[AmmoType["AssaultRifle"] = 218444191] = "AssaultRifle";
|
|
145
|
+
AmmoType[AmmoType["SMG"] = 1820140472] = "SMG";
|
|
146
|
+
AmmoType[AmmoType["Molotov"] = 1446246869] = "Molotov";
|
|
147
|
+
AmmoType[AmmoType["StunGun"] = 2955849184] = "StunGun";
|
|
148
|
+
AmmoType[AmmoType["MG"] = 1788949567] = "MG";
|
|
149
|
+
AmmoType[AmmoType["GrenadeLauncher"] = 1003267566] = "GrenadeLauncher";
|
|
150
|
+
AmmoType[AmmoType["RPG"] = 1742569970] = "RPG";
|
|
151
|
+
AmmoType[AmmoType["Minigun"] = 2680539266] = "Minigun";
|
|
152
|
+
AmmoType[AmmoType["Firework"] = 2938367503] = "Firework";
|
|
153
|
+
AmmoType[AmmoType["Railgun"] = 2034517757] = "Railgun";
|
|
154
|
+
AmmoType[AmmoType["HomingLauncher"] = 2568293933] = "HomingLauncher";
|
|
155
|
+
AmmoType[AmmoType["Grenade"] = 1003688881] = "Grenade";
|
|
156
|
+
AmmoType[AmmoType["StickyBomb"] = 1411692055] = "StickyBomb";
|
|
157
|
+
AmmoType[AmmoType["ProximityMine"] = 2938243239] = "ProximityMine";
|
|
158
|
+
AmmoType[AmmoType["PipeBomb"] = 357983224] = "PipeBomb";
|
|
159
|
+
AmmoType[AmmoType["SmokeGrenade"] = 3859679398] = "SmokeGrenade";
|
|
160
|
+
AmmoType[AmmoType["BZGas"] = 2608103076] = "BZGas";
|
|
161
|
+
})(AmmoType || (AmmoType = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Same list as Weather enum, but as hashes.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum WeatherTypeHash {
|
|
5
|
+
Unknown = -1,
|
|
6
|
+
ExtraSunny = -1750463879,
|
|
7
|
+
Clear = 916995460,
|
|
8
|
+
Neutral = -1530260698,
|
|
9
|
+
Smog = 282916021,
|
|
10
|
+
Foggy = -1368164796,
|
|
11
|
+
Clouds = 821931868,
|
|
12
|
+
Overcast = -1148613331,
|
|
13
|
+
Clearing = 1840358669,
|
|
14
|
+
Raining = 1420204096,
|
|
15
|
+
ThunderStorm = -1233681761,
|
|
16
|
+
Blizzard = 669657108,
|
|
17
|
+
Snowing = -273223690,
|
|
18
|
+
Snowlight = 603685163,
|
|
19
|
+
Christmas = -1429616491,
|
|
20
|
+
Halloween = -921030142
|
|
21
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Same list as Weather enum, but as hashes.
|
|
3
|
+
*/
|
|
4
|
+
export var WeatherTypeHash;
|
|
5
|
+
(function (WeatherTypeHash) {
|
|
6
|
+
WeatherTypeHash[WeatherTypeHash["Unknown"] = -1] = "Unknown";
|
|
7
|
+
WeatherTypeHash[WeatherTypeHash["ExtraSunny"] = -1750463879] = "ExtraSunny";
|
|
8
|
+
WeatherTypeHash[WeatherTypeHash["Clear"] = 916995460] = "Clear";
|
|
9
|
+
WeatherTypeHash[WeatherTypeHash["Neutral"] = -1530260698] = "Neutral";
|
|
10
|
+
WeatherTypeHash[WeatherTypeHash["Smog"] = 282916021] = "Smog";
|
|
11
|
+
WeatherTypeHash[WeatherTypeHash["Foggy"] = -1368164796] = "Foggy";
|
|
12
|
+
WeatherTypeHash[WeatherTypeHash["Clouds"] = 821931868] = "Clouds";
|
|
13
|
+
WeatherTypeHash[WeatherTypeHash["Overcast"] = -1148613331] = "Overcast";
|
|
14
|
+
WeatherTypeHash[WeatherTypeHash["Clearing"] = 1840358669] = "Clearing";
|
|
15
|
+
WeatherTypeHash[WeatherTypeHash["Raining"] = 1420204096] = "Raining";
|
|
16
|
+
WeatherTypeHash[WeatherTypeHash["ThunderStorm"] = -1233681761] = "ThunderStorm";
|
|
17
|
+
WeatherTypeHash[WeatherTypeHash["Blizzard"] = 669657108] = "Blizzard";
|
|
18
|
+
WeatherTypeHash[WeatherTypeHash["Snowing"] = -273223690] = "Snowing";
|
|
19
|
+
WeatherTypeHash[WeatherTypeHash["Snowlight"] = 603685163] = "Snowlight";
|
|
20
|
+
WeatherTypeHash[WeatherTypeHash["Christmas"] = -1429616491] = "Christmas";
|
|
21
|
+
WeatherTypeHash[WeatherTypeHash["Halloween"] = -921030142] = "Halloween";
|
|
22
|
+
})(WeatherTypeHash || (WeatherTypeHash = {}));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from './utils';
|
|
2
|
+
export { Game } from './Game';
|
|
3
|
+
export { World } from './World';
|
|
4
|
+
export { Model } from './Model';
|
|
5
|
+
export { Audio } from './Audio';
|
|
6
|
+
export { Blip } from './Blip';
|
|
7
|
+
export { Camera } from './Camera';
|
|
8
|
+
export { Checkpoint } from './Checkpoint';
|
|
9
|
+
export { GameplayCamera } from './GameplayCamera';
|
|
10
|
+
export { ParticleEffect } from './ParticleEffect';
|
|
11
|
+
export { ParticleEffectAsset } from './ParticleEffectAsset';
|
|
12
|
+
export { Pickup } from './Pickup';
|
|
13
|
+
export { RaycastResult } from './Raycast';
|
|
14
|
+
export { RelationshipGroup } from './RelationshipGroup';
|
|
15
|
+
export { Tasks } from './Tasks';
|
|
16
|
+
export { TaskSequence } from './TaskSequence';
|
|
17
|
+
export { NetworkedScene } from './NetworkedScene';
|
|
18
|
+
export { Rope } from './Rope';
|
|
19
|
+
export * from './models';
|
|
20
|
+
export * from './enums';
|
|
21
|
+
export * from './hashes';
|
|
22
|
+
export * from './ui';
|
|
23
|
+
export * from './weapon';
|
|
24
|
+
export * from './weaponComponent';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * from './utils';
|
|
2
|
+
export { Game } from './Game';
|
|
3
|
+
export { World } from './World';
|
|
4
|
+
export { Model } from './Model';
|
|
5
|
+
export { Audio } from './Audio';
|
|
6
|
+
export { Blip } from './Blip';
|
|
7
|
+
export { Camera } from './Camera';
|
|
8
|
+
export { Checkpoint } from './Checkpoint';
|
|
9
|
+
export { GameplayCamera } from './GameplayCamera';
|
|
10
|
+
export { ParticleEffect } from './ParticleEffect';
|
|
11
|
+
export { ParticleEffectAsset } from './ParticleEffectAsset';
|
|
12
|
+
export { Pickup } from './Pickup';
|
|
13
|
+
export { RaycastResult } from './Raycast';
|
|
14
|
+
export { RelationshipGroup } from './RelationshipGroup';
|
|
15
|
+
export { Tasks } from './Tasks';
|
|
16
|
+
export { TaskSequence } from './TaskSequence';
|
|
17
|
+
export { NetworkedScene } from './NetworkedScene';
|
|
18
|
+
export { Rope } from './Rope';
|
|
19
|
+
// Lets export all from folders
|
|
20
|
+
export * from './models';
|
|
21
|
+
export * from './enums';
|
|
22
|
+
export * from './hashes';
|
|
23
|
+
export * from './ui';
|
|
24
|
+
export * from './weapon';
|
|
25
|
+
export * from './weaponComponent';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/// <reference types="@citizenfx/client" />
|
|
2
|
+
import { Blip } from '../Blip';
|
|
3
|
+
import { ForceType } from '../enums';
|
|
4
|
+
import { MaterialHash, WeaponHash } from '../hashes';
|
|
5
|
+
import { Model } from '../Model';
|
|
6
|
+
import { Quaternion, Vector3 } from '../utils';
|
|
7
|
+
import { EntityBoneCollection, Ped, Prop, Vehicle } from './';
|
|
8
|
+
import { EntityBone } from './EntityBone';
|
|
9
|
+
import { StateBagChangeHandler } from '../cfx';
|
|
10
|
+
import { Entity, Player } from '..';
|
|
11
|
+
import { ClassTypes } from '../enums/ClassTypes';
|
|
12
|
+
export declare class BaseEntity {
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated you should use class specific fromHandle instead of this wrapper
|
|
15
|
+
*/
|
|
16
|
+
static fromHandle(handle: number): Ped | Vehicle | Prop | null;
|
|
17
|
+
static fromNetworkId(networkId: number): BaseEntity | null;
|
|
18
|
+
protected handle: number;
|
|
19
|
+
protected bones: EntityBoneCollection | undefined;
|
|
20
|
+
protected stateBagCookies: number[];
|
|
21
|
+
protected netId: number | null;
|
|
22
|
+
protected type: ClassTypes;
|
|
23
|
+
constructor(handle: number);
|
|
24
|
+
get Handle(): number;
|
|
25
|
+
/**
|
|
26
|
+
* @returns if the entity is a networked entity or local entity
|
|
27
|
+
*/
|
|
28
|
+
get IsNetworked(): boolean;
|
|
29
|
+
set IsNetworked(networked: boolean);
|
|
30
|
+
get NetworkId(): number;
|
|
31
|
+
get IsNetworkConcealed(): boolean;
|
|
32
|
+
set IsNetworkConcealed(concealed: boolean);
|
|
33
|
+
get State(): StateBagInterface;
|
|
34
|
+
AddStateBagChangeHandler(keyFilter: string | null, handler: StateBagChangeHandler): number;
|
|
35
|
+
/**
|
|
36
|
+
* A short hand function for AddStateBagChangeHandler, this gets automatically cleaned up on entity deletion.
|
|
37
|
+
* @param keyFilter the key to filter for or null
|
|
38
|
+
* @param handler the function to handle the change
|
|
39
|
+
* @returns a cookie to be used in RemoveStateBagChangeHandler
|
|
40
|
+
*/
|
|
41
|
+
listenForStateChange(keyFilter: string | null, handler: StateBagChangeHandler): number;
|
|
42
|
+
removeStateListener(tgtCookie: number): void;
|
|
43
|
+
get Owner(): number;
|
|
44
|
+
isPlayerOwner(player: Player): boolean;
|
|
45
|
+
get Speed(): number;
|
|
46
|
+
getSpeedVector(isRelative?: boolean): Vector3;
|
|
47
|
+
get ForwardVector(): Vector3;
|
|
48
|
+
get Matrix(): Vector3[];
|
|
49
|
+
set Matrix(vectors: Vector3[]);
|
|
50
|
+
get Health(): number;
|
|
51
|
+
set Health(amount: number);
|
|
52
|
+
get MaxHealth(): number;
|
|
53
|
+
set MaxHealth(amount: number);
|
|
54
|
+
set IsDead(value: boolean);
|
|
55
|
+
get IsDead(): boolean;
|
|
56
|
+
get IsAlive(): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated use [[IsDead]] instead
|
|
59
|
+
*/
|
|
60
|
+
isDead(): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* @deprecated use [[IsAlive]] instead
|
|
63
|
+
*/
|
|
64
|
+
isAlive(): boolean;
|
|
65
|
+
get Model(): Model;
|
|
66
|
+
/**
|
|
67
|
+
* Returns if the entity is set as a mission entity and will not be cleaned up by the engine
|
|
68
|
+
*/
|
|
69
|
+
get IsMissionEntity(): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Sets if the entity is a mission entity and will not be cleaned up by the engine
|
|
72
|
+
*/
|
|
73
|
+
set IsMissionEntity(value: boolean);
|
|
74
|
+
get Position(): Vector3;
|
|
75
|
+
set Position(position: Vector3);
|
|
76
|
+
set PositionNoOffset(position: Vector3);
|
|
77
|
+
get Rotation(): Vector3;
|
|
78
|
+
set Rotation(rotation: Vector3);
|
|
79
|
+
get Quaternion(): Quaternion;
|
|
80
|
+
set Quaternion(quaternion: Quaternion);
|
|
81
|
+
get Heading(): number;
|
|
82
|
+
set Heading(heading: number);
|
|
83
|
+
get IsPositionFrozen(): boolean;
|
|
84
|
+
set IsPositionFrozen(value: boolean);
|
|
85
|
+
get Velocity(): Vector3;
|
|
86
|
+
set Velocity(velocity: Vector3);
|
|
87
|
+
get RotationVelocity(): Vector3;
|
|
88
|
+
set MaxSpeed(value: number);
|
|
89
|
+
set HasGravity(value: boolean);
|
|
90
|
+
get HeightAboveGround(): number;
|
|
91
|
+
get SubmersionLevel(): number;
|
|
92
|
+
get LodDistance(): number;
|
|
93
|
+
set LodDistance(value: number);
|
|
94
|
+
get IsVisible(): boolean;
|
|
95
|
+
set IsVisible(value: boolean);
|
|
96
|
+
get IsOccluded(): boolean;
|
|
97
|
+
get IsOnScreen(): boolean;
|
|
98
|
+
get IsUpright(): boolean;
|
|
99
|
+
get IsUpsideDown(): boolean;
|
|
100
|
+
get IsInAir(): boolean;
|
|
101
|
+
get IsInWater(): boolean;
|
|
102
|
+
/**
|
|
103
|
+
* @deprecated use [[IsMissionEntity]] instead as its more obvious as what it does
|
|
104
|
+
*/
|
|
105
|
+
get IsPersistent(): boolean;
|
|
106
|
+
/**
|
|
107
|
+
* @deprecated use [[IsMissionEntity]] instead as its more obvious as what it does
|
|
108
|
+
*/
|
|
109
|
+
set IsPersistent(value: boolean);
|
|
110
|
+
get IsOnFire(): boolean;
|
|
111
|
+
set IsInvincible(value: boolean);
|
|
112
|
+
set IsOnlyDamagedByPlayer(value: boolean);
|
|
113
|
+
get Opacity(): number;
|
|
114
|
+
/**
|
|
115
|
+
* Sets how transparent an entity is, if you want to reset the alpha level use [[resetOpacity]] instead;
|
|
116
|
+
*/
|
|
117
|
+
set Opacity(value: number);
|
|
118
|
+
resetOpacity(): void;
|
|
119
|
+
get HasCollided(): boolean;
|
|
120
|
+
get MaterialCollidingWith(): MaterialHash;
|
|
121
|
+
get IsCollisionEnabled(): boolean;
|
|
122
|
+
set IsCollisionEnabled(value: boolean);
|
|
123
|
+
set IsRecordingCollisions(value: boolean);
|
|
124
|
+
get Bones(): EntityBoneCollection;
|
|
125
|
+
get AttachedBlip(): Blip | null;
|
|
126
|
+
attachBlip(): Blip;
|
|
127
|
+
setNoCollision(entity: Entity, toggle: boolean): void;
|
|
128
|
+
hasClearLosToEntity(entity: Entity, traceType?: number): boolean;
|
|
129
|
+
hasClearLosToEntityInFront(entity: Entity): boolean;
|
|
130
|
+
hasBeenDamagedBy(entity: Entity): boolean;
|
|
131
|
+
hasBeenDamagedByWeapon(weapon: WeaponHash): boolean;
|
|
132
|
+
hasBeenDamagedByAnyWeapon(): boolean;
|
|
133
|
+
hasBeenDamagedByAnyMeleeWeapon(): boolean;
|
|
134
|
+
clearLastWeaponDamage(): void;
|
|
135
|
+
isInArea(minBounds: Vector3, maxBounds: Vector3): boolean;
|
|
136
|
+
isInAngledArea(origin: Vector3, edge: Vector3, angle: number): boolean;
|
|
137
|
+
isInRangeOf(position: Vector3, range: number): boolean;
|
|
138
|
+
isNearEntity(entity: Entity, bounds: Vector3): boolean;
|
|
139
|
+
isTouching(entity: Entity): boolean;
|
|
140
|
+
isTouchingModel(model: Model): boolean;
|
|
141
|
+
/**
|
|
142
|
+
* @param offset: the amount to offset from the entity
|
|
143
|
+
* @returns the offset position from the entity in world coords
|
|
144
|
+
*/
|
|
145
|
+
getOffsetPosition(offset: Vector3): Vector3;
|
|
146
|
+
getPositionOffset(worldCoords: Vector3): Vector3;
|
|
147
|
+
attachTo(entity: Entity, position: Vector3, rotation: Vector3, collisions?: boolean, unk9?: boolean, useSoftPinning?: boolean, rotationOrder?: number): void;
|
|
148
|
+
attachToBone(entityBone: EntityBone, position: Vector3, rotation: Vector3, collisions?: boolean, unk9?: boolean, useSoftPinning?: boolean, rotationOrder?: number): void;
|
|
149
|
+
detach(): void;
|
|
150
|
+
isAttached(): boolean;
|
|
151
|
+
isAttachedTo(entity: Entity): boolean;
|
|
152
|
+
getEntityAttachedTo(): Ped | Vehicle | Prop | null;
|
|
153
|
+
applyForce(direction: Vector3, rotation: Vector3, forceType?: ForceType): void;
|
|
154
|
+
applyForceRelative(direction: Vector3, rotation: Vector3, forceType?: ForceType): void;
|
|
155
|
+
/**
|
|
156
|
+
* Removes all particle effects from the entity
|
|
157
|
+
*/
|
|
158
|
+
removePtfxEffects(): void;
|
|
159
|
+
/**
|
|
160
|
+
* @deprecated use [[removePtfxEffects]]
|
|
161
|
+
*/
|
|
162
|
+
removeAllParticleEffects(): void;
|
|
163
|
+
exists(): boolean;
|
|
164
|
+
delete(): void;
|
|
165
|
+
/**
|
|
166
|
+
* @deprecated use [[IsMissionEntity]] setter as false instead.
|
|
167
|
+
*/
|
|
168
|
+
markAsNoLongerNeeded(): void;
|
|
169
|
+
}
|