@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,283 @@
|
|
|
1
|
+
import { Blip, Vector3 } from '.';
|
|
2
|
+
import { Control, InputMode, Language, RadioStation } from './enums';
|
|
3
|
+
import { Ped, Player, Prop, Vehicle } from './models';
|
|
4
|
+
export declare abstract class Game {
|
|
5
|
+
static hashCache: Map<string, number>;
|
|
6
|
+
/**
|
|
7
|
+
* Calculate the Jenkins One At A Time (joaat) has from the given string.
|
|
8
|
+
*
|
|
9
|
+
* @param input The input string to calculate the hash
|
|
10
|
+
*/
|
|
11
|
+
static generateHash(input: string): number;
|
|
12
|
+
/**
|
|
13
|
+
* Gets the game language
|
|
14
|
+
*/
|
|
15
|
+
static get Language(): Language;
|
|
16
|
+
/**
|
|
17
|
+
* Gets how many milliseconds the game has been open this session
|
|
18
|
+
*/
|
|
19
|
+
static get GameTime(): number;
|
|
20
|
+
/**
|
|
21
|
+
* Sets the time scale of the Game.
|
|
22
|
+
*
|
|
23
|
+
* @param time The time scale, only accepts values between 0.0 and 1.0
|
|
24
|
+
*/
|
|
25
|
+
static set TimeScale(time: number);
|
|
26
|
+
/**
|
|
27
|
+
* Gets the total amount of frames rendered in this session
|
|
28
|
+
*/
|
|
29
|
+
static get FrameCount(): number;
|
|
30
|
+
/**
|
|
31
|
+
* Gets the current frame rate per second
|
|
32
|
+
*/
|
|
33
|
+
static get FPS(): number;
|
|
34
|
+
/**
|
|
35
|
+
* Gets the time it currently takes to render a frame, in seconds;
|
|
36
|
+
*/
|
|
37
|
+
static get LastFrameTime(): number;
|
|
38
|
+
/**
|
|
39
|
+
* Get the local player's Player object.
|
|
40
|
+
*/
|
|
41
|
+
static get Player(): Player;
|
|
42
|
+
/**
|
|
43
|
+
* Get the local player character's Ped object.
|
|
44
|
+
* @returns A local player's character.
|
|
45
|
+
*/
|
|
46
|
+
static get PlayerPed(): Ped;
|
|
47
|
+
/**
|
|
48
|
+
* Get an iterable list of players currently on server.
|
|
49
|
+
* @returns Iterable list of Player objects.
|
|
50
|
+
*/
|
|
51
|
+
static playerList(excludeLocalPlayer?: boolean): IterableIterator<Player>;
|
|
52
|
+
/**
|
|
53
|
+
* Get whether PvP is enabled.
|
|
54
|
+
* @returns True if enabled.
|
|
55
|
+
*/
|
|
56
|
+
static get PlayerVersusPlayer(): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Set whether PvP is enabled.
|
|
59
|
+
*/
|
|
60
|
+
static set PlayerVersusPlayer(value: boolean);
|
|
61
|
+
/**
|
|
62
|
+
* Get the maximum wanted level.
|
|
63
|
+
*/
|
|
64
|
+
static get MaxWantedLevel(): number;
|
|
65
|
+
/**
|
|
66
|
+
* Set the maximum wanted level the local client can get.
|
|
67
|
+
*/
|
|
68
|
+
static set MaxWantedLevel(value: number);
|
|
69
|
+
/**
|
|
70
|
+
* Set the multiplier of the wanted level.
|
|
71
|
+
*/
|
|
72
|
+
static set WantedMultiplier(value: number);
|
|
73
|
+
/**
|
|
74
|
+
* Set whether police blips should show on minimap.
|
|
75
|
+
*/
|
|
76
|
+
static set ShowPoliceBlipsOnRadar(toggle: boolean);
|
|
77
|
+
/**
|
|
78
|
+
* Get if nightvision is active.
|
|
79
|
+
*/
|
|
80
|
+
static get Nightvision(): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Toggle nightvision.
|
|
83
|
+
*/
|
|
84
|
+
static set Nightvision(toggle: boolean);
|
|
85
|
+
/**
|
|
86
|
+
* Get if thermal (heat) vision is active.
|
|
87
|
+
*/
|
|
88
|
+
static get ThermalVision(): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Toggle thermal (heat) vision.
|
|
91
|
+
*/
|
|
92
|
+
static set ThermalVision(toggle: boolean);
|
|
93
|
+
static get IsMissionActive(): boolean;
|
|
94
|
+
static set IsMissionActive(toggle: boolean);
|
|
95
|
+
static get IsRandomEventActive(): boolean;
|
|
96
|
+
static set IsRandomEventActive(toggle: boolean);
|
|
97
|
+
static get IsCutsceneActive(): boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Is a waypoint set on the map.
|
|
100
|
+
*/
|
|
101
|
+
static get IsWaypointActive(): boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Is the player in the pause menu (ESC).
|
|
104
|
+
*/
|
|
105
|
+
static get IsPaused(): boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Force enable pause menu.
|
|
108
|
+
*/
|
|
109
|
+
static set IsPaused(toggle: boolean);
|
|
110
|
+
/**
|
|
111
|
+
* Get if a loading screen is active.
|
|
112
|
+
*/
|
|
113
|
+
static get IsLoading(): boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Get current input mode.
|
|
116
|
+
* @returns InputMode: Mouse & Keyboard or GamePad.
|
|
117
|
+
*/
|
|
118
|
+
static get CurrentInputMode(): InputMode;
|
|
119
|
+
/**
|
|
120
|
+
* Gets the player's current radio station.
|
|
121
|
+
*
|
|
122
|
+
* @returns A radio station.
|
|
123
|
+
*/
|
|
124
|
+
static get RadioStation(): RadioStation;
|
|
125
|
+
/**
|
|
126
|
+
* Sets the player's radio station.
|
|
127
|
+
*
|
|
128
|
+
* @param station A radio station.
|
|
129
|
+
*/
|
|
130
|
+
static set RadioStation(station: RadioStation);
|
|
131
|
+
/**
|
|
132
|
+
* Check whether a control is currently pressed.
|
|
133
|
+
*
|
|
134
|
+
* @param inputMode InputMode
|
|
135
|
+
* @param control Control
|
|
136
|
+
* @returns True or False.
|
|
137
|
+
*/
|
|
138
|
+
static isControlPressed(inputMode: InputMode, control: Control): boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Check whether a disabled control is currently pressed.
|
|
141
|
+
*
|
|
142
|
+
* @param inputMode InputMode
|
|
143
|
+
* @param control Control
|
|
144
|
+
* @returns True or False.
|
|
145
|
+
*/
|
|
146
|
+
static isDisabledControlPressed(inputMode: InputMode, control: Control): boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Check whether a control has been pressed since last check.
|
|
149
|
+
*
|
|
150
|
+
* @param inputMode InputMode
|
|
151
|
+
* @param control Control
|
|
152
|
+
* @returns True or False.
|
|
153
|
+
*/
|
|
154
|
+
static isControlJustPressed(inputMode: InputMode, control: Control): boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Check whether a disabled control has been pressed since last check.
|
|
157
|
+
*
|
|
158
|
+
* @param inputMode InputMode
|
|
159
|
+
* @param control Control
|
|
160
|
+
* @returns True or False.
|
|
161
|
+
*/
|
|
162
|
+
static isDisabledControlJustPressed(inputMode: InputMode, control: Control): boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Check whether a control is being released.
|
|
165
|
+
*
|
|
166
|
+
* @param inputMode InputMode
|
|
167
|
+
* @param control Control
|
|
168
|
+
* @returns True or False.
|
|
169
|
+
*/
|
|
170
|
+
static isControlReleased(inputMode: InputMode, control: Control): boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Check whether a disabled control is being released.
|
|
173
|
+
*
|
|
174
|
+
* @param inputMode InputMode
|
|
175
|
+
* @param control Control
|
|
176
|
+
* @returns True or False.
|
|
177
|
+
*/
|
|
178
|
+
static isDisabledControlReleased(inputMode: InputMode, control: Control): boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Check whether a control has been released since last check.
|
|
181
|
+
*
|
|
182
|
+
* @param inputMode InputMode
|
|
183
|
+
* @param control Control
|
|
184
|
+
* @returns True or False.
|
|
185
|
+
*/
|
|
186
|
+
static isControlJustReleased(inputMode: InputMode, control: Control): boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Check whether a disabled control has been released since last check.
|
|
189
|
+
*
|
|
190
|
+
* @param inputMode InputMode
|
|
191
|
+
* @param control Control
|
|
192
|
+
* @returns True or False.
|
|
193
|
+
*/
|
|
194
|
+
static isDisabledControlJustReleased(inputMode: InputMode, control: Control): boolean;
|
|
195
|
+
/**
|
|
196
|
+
* Check whether a control is enabled this frame.
|
|
197
|
+
*
|
|
198
|
+
* @param inputMode InputMode
|
|
199
|
+
* @param control Control
|
|
200
|
+
* @returns True or False.
|
|
201
|
+
*/
|
|
202
|
+
static isControlEnabled(inputMode: InputMode, control: Control): boolean;
|
|
203
|
+
/**
|
|
204
|
+
* Makes the Game Engine respond to the given Control this frame
|
|
205
|
+
*
|
|
206
|
+
* @param inputMode InputMode
|
|
207
|
+
* @param control Control
|
|
208
|
+
*/
|
|
209
|
+
static enableControlThisFrame(inputMode: InputMode, control: Control): void;
|
|
210
|
+
/**
|
|
211
|
+
* Makes the Game Engine ignore the given Control this frame
|
|
212
|
+
*
|
|
213
|
+
* @param inputMode InputMode
|
|
214
|
+
* @param control Control
|
|
215
|
+
*/
|
|
216
|
+
static disableControlThisFrame(inputMode: InputMode, control: Control): void;
|
|
217
|
+
/**
|
|
218
|
+
* Disables all Controls this frame.
|
|
219
|
+
*
|
|
220
|
+
* @param inputMode InputMode
|
|
221
|
+
*/
|
|
222
|
+
static disableAllControlsThisFrame(inputMode: InputMode): void;
|
|
223
|
+
/**
|
|
224
|
+
* Enables all Controls this frame.
|
|
225
|
+
*
|
|
226
|
+
* @param inputMode InputMode
|
|
227
|
+
*/
|
|
228
|
+
static enableAllControlsThisFrame(inputMode: InputMode): void;
|
|
229
|
+
/**
|
|
230
|
+
* Get an entity object from an entity handle.
|
|
231
|
+
*
|
|
232
|
+
* @param handle Handle of entity
|
|
233
|
+
* @returns A Ped, Vehicle or Prop object. `undefined` if entity handle doesn't exist.
|
|
234
|
+
*/
|
|
235
|
+
static entityFromHandle(handle: number): Ped | Vehicle | Prop | null;
|
|
236
|
+
/**
|
|
237
|
+
* Play a sound. Same as Audio.playSound
|
|
238
|
+
*
|
|
239
|
+
* @param soundFile Name of sound
|
|
240
|
+
* @param soundSet The set where the sound is in
|
|
241
|
+
*/
|
|
242
|
+
static playSound(soundFile: string, soundSet: string): void;
|
|
243
|
+
/**
|
|
244
|
+
* Play music. Same as Audio.playSound
|
|
245
|
+
*
|
|
246
|
+
* @param musicFile Music file.
|
|
247
|
+
*/
|
|
248
|
+
static playMusic(musicFile: string): void;
|
|
249
|
+
/**
|
|
250
|
+
* Stop music. If `musicFile` is not given, last played music is stopped. Same as Audio.playSound
|
|
251
|
+
*
|
|
252
|
+
* @param musicFile (optional) Music file.
|
|
253
|
+
*/
|
|
254
|
+
static stopMusic(musicFile?: string): void;
|
|
255
|
+
/**
|
|
256
|
+
* Determines the game language files contain a entry for the specified GXT key
|
|
257
|
+
*
|
|
258
|
+
* @param entry - The GXT key.
|
|
259
|
+
* @returns true if GXT entry exists; otherwise, false
|
|
260
|
+
* @constructor
|
|
261
|
+
*/
|
|
262
|
+
static doesGXTEntryExist(entry: number | string): boolean;
|
|
263
|
+
/**
|
|
264
|
+
* Returns a localised string from the games language files with a specified GXT key
|
|
265
|
+
*
|
|
266
|
+
* @param entry - The GXT key.
|
|
267
|
+
* @returns The localised string if the key exists; otherwise, empty string
|
|
268
|
+
*/
|
|
269
|
+
static getGXTEntry(entry: number | string): string;
|
|
270
|
+
/**
|
|
271
|
+
* Sets the max boundry the local player can go to before they get killed
|
|
272
|
+
*
|
|
273
|
+
* @param vec - the max bounds for the local player
|
|
274
|
+
*/
|
|
275
|
+
set ExtendWorldBoundry(vec: Vector3);
|
|
276
|
+
get LastVehicle(): Vehicle | null;
|
|
277
|
+
static getWaypointBlip(): Blip | null;
|
|
278
|
+
static removeWaypoint(): void;
|
|
279
|
+
static get WaypointPosition(): Vector3;
|
|
280
|
+
static set WaypointPosition(position: Vector3);
|
|
281
|
+
static getGroundHeight(position: Vector3): number;
|
|
282
|
+
protected static cachedPlayer: Player;
|
|
283
|
+
}
|