@nativewrappers/fivem 0.0.41 → 0.0.44
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/{client/Audio.d.ts → Audio.d.ts} +3 -3
- package/{client/Audio.js → Audio.js} +44 -43
- package/{client/Blip.d.ts → Blip.d.ts} +3 -3
- package/{client/Blip.js → Blip.js} +4 -3
- package/{client/Camera.d.ts → Camera.d.ts} +4 -4
- package/{client/Camera.js → Camera.js} +18 -17
- package/{client/Checkpoint.d.ts → Checkpoint.d.ts} +2 -2
- package/{client/Checkpoint.js → Checkpoint.js} +7 -6
- package/{client/Events.js → Events.js} +23 -23
- package/{client/Game.d.ts → Game.d.ts} +4 -3
- package/{client/Game.js → Game.js} +16 -10
- package/{client/GameplayCamera.d.ts → GameplayCamera.d.ts} +2 -2
- package/{client/GameplayCamera.js → GameplayCamera.js} +2 -2
- package/{client/Model.d.ts → Model.d.ts} +5 -3
- package/{client/Model.js → Model.js} +21 -7
- package/{client/NetworkedScene.d.ts → NetworkedScene.d.ts} +2 -2
- package/{client/NetworkedScene.js → NetworkedScene.js} +1 -0
- package/{client/ParticleEffect.d.ts → ParticleEffect.d.ts} +3 -3
- package/{client/ParticleEffect.js → ParticleEffect.js} +11 -8
- package/{client/ParticleEffectAsset.d.ts → ParticleEffectAsset.d.ts} +3 -3
- package/{client/ParticleEffectAsset.js → ParticleEffectAsset.js} +4 -3
- package/{client/Pickup.d.ts → Pickup.d.ts} +1 -1
- package/{client/Pickup.js → Pickup.js} +2 -1
- package/{client/Raycast.d.ts → Raycast.d.ts} +3 -3
- package/{client/Raycast.js → Raycast.js} +10 -3
- package/{client/RelationshipGroup.d.ts → RelationshipGroup.d.ts} +1 -1
- package/{client/RelationshipGroup.js → RelationshipGroup.js} +4 -0
- package/{client/Rope.d.ts → Rope.d.ts} +2 -2
- package/{client/Rope.js → Rope.js} +6 -2
- package/{client/TaskSequence.d.ts → TaskSequence.d.ts} +1 -1
- package/{client/TaskSequence.js → TaskSequence.js} +5 -2
- package/{client/Tasks.d.ts → Tasks.d.ts} +5 -5
- package/{client/Tasks.js → Tasks.js} +7 -6
- package/{client/World.d.ts → World.d.ts} +20 -12
- package/{client/World.js → World.js} +66 -62
- package/{client/cfx → cfx}/index.d.ts +1 -1
- package/{client/enums → enums}/RaycastEnums.js +3 -1
- package/enums/index.d.ts +42 -0
- package/enums/index.js +42 -0
- package/hashes/index.d.ts +5 -0
- package/hashes/index.js +5 -0
- package/index.d.ts +24 -0
- package/index.js +25 -0
- package/{client/interfaces → interfaces}/Dimensions.d.ts +1 -1
- package/{client/models → models}/BaseEntity.d.ts +26 -26
- package/{client/models → models}/BaseEntity.js +32 -30
- package/{client/models → models}/EntityBone.d.ts +2 -2
- package/{client/models → models}/EntityBone.js +4 -2
- package/{client/models → models}/EntityBoneCollection.d.ts +2 -2
- package/{client/models → models}/EntityBoneCollection.js +5 -2
- package/{client/models → models}/Ped.d.ts +20 -9
- package/{client/models → models}/Ped.js +66 -56
- package/{client/models → models}/PedBone.d.ts +2 -2
- package/{client/models → models}/PedBone.js +1 -1
- package/{client/models → models}/PedBoneCollection.d.ts +1 -1
- package/{client/models → models}/PedBoneCollection.js +4 -2
- package/{client/models → models}/Player.d.ts +3 -3
- package/{client/models → models}/Player.js +12 -9
- package/{client/models → models}/Prop.d.ts +2 -2
- package/{client/models → models}/Prop.js +4 -4
- package/{client/models → models}/Vehicle.d.ts +6 -6
- package/{client/models → models}/Vehicle.js +22 -16
- package/{client/models → models}/VehicleDoor.d.ts +2 -2
- package/{client/models → models}/VehicleDoor.js +2 -0
- package/{client/models → models}/VehicleDoorCollection.d.ts +3 -3
- package/{client/models → models}/VehicleDoorCollection.js +16 -15
- package/{client/models → models}/VehicleMod.d.ts +2 -2
- package/{client/models → models}/VehicleMod.js +2 -0
- package/{client/models → models}/VehicleModCollection.d.ts +5 -5
- package/{client/models → models}/VehicleModCollection.js +20 -19
- package/{client/models → models}/VehicleToggleMod.d.ts +2 -2
- package/{client/models → models}/VehicleToggleMod.js +2 -0
- package/{client/models → models}/VehicleWheel.d.ts +1 -1
- package/{client/models → models}/VehicleWheel.js +2 -0
- package/{client/models → models}/VehicleWheelCollection.d.ts +3 -3
- package/{client/models → models}/VehicleWheelCollection.js +15 -14
- package/{client/models → models}/VehicleWindow.d.ts +2 -2
- package/{client/models → models}/VehicleWindow.js +2 -0
- package/{client/models → models}/VehicleWindowCollection.d.ts +3 -3
- package/{client/models → models}/VehicleWindowCollection.js +13 -12
- package/models/index.d.ts +18 -0
- package/models/index.js +19 -0
- package/package.json +6 -30
- package/{client/ui → ui}/Container.d.ts +2 -2
- package/{client/ui → ui}/Container.js +6 -3
- package/{client/ui → ui}/Effects.d.ts +1 -1
- package/ui/Effects.js +106 -0
- package/{client/ui → ui}/Fading.js +2 -2
- package/{client/ui → ui}/Hud.d.ts +2 -2
- package/{client/ui → ui}/Hud.js +1 -1
- package/{client/ui → ui}/InstructionalButtons.d.ts +1 -1
- package/{client/ui → ui}/InstructionalButtons.js +8 -7
- package/{client/ui → ui}/LoadingPrompt.d.ts +1 -1
- package/{client/ui → ui}/LoadingPrompt.js +5 -5
- package/{client/ui → ui}/Notification.js +1 -0
- package/{client/ui → ui}/Rectangle.d.ts +2 -2
- package/{client/ui → ui}/Rectangle.js +5 -2
- package/{client/ui → ui}/Scaleform.d.ts +1 -1
- package/{client/ui → ui}/Scaleform.js +10 -8
- package/{client/ui → ui}/Screen.d.ts +3 -3
- package/{client/ui → ui}/Screen.js +13 -13
- package/{client/ui → ui}/Sprite.d.ts +1 -1
- package/{client/ui → ui}/Sprite.js +10 -3
- package/{client/ui → ui}/Text.d.ts +3 -3
- package/{client/ui → ui}/Text.js +19 -7
- package/{client/ui → ui}/Timerbar.d.ts +1 -1
- package/{client/ui → ui}/Timerbar.js +37 -30
- package/ui/index.d.ts +15 -0
- package/ui/index.js +15 -0
- package/{client/ui → ui}/interfaces/IButton.d.ts +1 -1
- package/{client/ui → ui}/interfaces/IDrawable.d.ts +1 -1
- package/ui/interfaces/index.d.ts +2 -0
- package/{client/ui → ui}/menu/Menu.d.ts +4 -4
- package/{client/ui → ui}/menu/Menu.js +96 -67
- package/{client/ui → ui}/menu/MenuControl.js +1 -0
- package/{client/ui → ui}/menu/MenuControls.d.ts +1 -1
- package/ui/menu/MenuControls.js +9 -0
- package/{client/ui → ui}/menu/MenuSettings.d.ts +1 -1
- package/ui/menu/MenuSettings.js +54 -0
- package/ui/menu/index.d.ts +6 -0
- package/ui/menu/index.js +6 -0
- package/{client/ui → ui}/menu/items/UIMenuCheckboxItem.d.ts +3 -3
- package/{client/ui → ui}/menu/items/UIMenuCheckboxItem.js +17 -15
- package/{client/ui → ui}/menu/items/UIMenuItem.d.ts +4 -4
- package/{client/ui → ui}/menu/items/UIMenuItem.js +276 -255
- package/{client/ui → ui}/menu/items/UIMenuListItem.d.ts +3 -3
- package/{client/ui → ui}/menu/items/UIMenuListItem.js +28 -19
- package/{client/ui → ui}/menu/items/UIMenuSeparatorItem.d.ts +1 -1
- package/{client/ui → ui}/menu/items/UIMenuSeparatorItem.js +10 -10
- package/{client/ui → ui}/menu/items/UIMenuSliderItem.d.ts +3 -3
- package/{client/ui → ui}/menu/items/UIMenuSliderItem.js +45 -27
- package/ui/menu/items/index.d.ts +6 -0
- package/ui/menu/items/index.js +6 -0
- package/{client/ui → ui}/menu/items/panels/AbstractUIMenuPanel.d.ts +3 -3
- package/{client/ui → ui}/menu/items/panels/AbstractUIMenuPanel.js +9 -8
- package/{client/ui → ui}/menu/items/panels/UIMenuColorPanel.d.ts +3 -3
- package/{client/ui → ui}/menu/items/panels/UIMenuColorPanel.js +29 -23
- package/{client/ui → ui}/menu/items/panels/UIMenuGridPanel.d.ts +3 -3
- package/{client/ui → ui}/menu/items/panels/UIMenuGridPanel.js +86 -40
- package/{client/ui → ui}/menu/items/panels/UIMenuPercentagePanel.d.ts +2 -2
- package/{client/ui → ui}/menu/items/panels/UIMenuPercentagePanel.js +27 -18
- package/{client/ui → ui}/menu/items/panels/UIMenuStatisticsPanel.d.ts +2 -2
- package/{client/ui → ui}/menu/items/panels/UIMenuStatisticsPanel.js +10 -8
- package/{client/ui → ui}/menu/items/panels/UIMenuStatisticsPanelItem.d.ts +1 -1
- package/{client/ui → ui}/menu/items/panels/UIMenuStatisticsPanelItem.js +10 -7
- package/ui/menu/items/panels/index.d.ts +6 -0
- package/ui/menu/items/panels/index.js +6 -0
- package/{client/ui → ui}/menu/modules/ListItem.js +4 -2
- package/ui/menu/modules/index.d.ts +1 -0
- package/ui/menu/modules/index.js +1 -0
- package/{client/utils → utils}/Animations.js +2 -2
- package/{client/utils → utils}/Crypto.js +5 -5
- package/{client/utils → utils}/LiteEvent.js +3 -5
- package/{client/utils → utils}/Point.js +5 -3
- package/{common/utils → utils}/PointF.js +3 -0
- package/{client/utils → utils}/Quaternion.d.ts +1 -1
- package/{client/utils → utils}/Quaternion.js +5 -1
- package/{client/utils → utils}/Size.js +2 -0
- package/{client/utils → utils}/String.d.ts +1 -1
- package/{client/utils → utils}/String.js +3 -3
- package/{client/utils → utils}/enumValues.js +2 -2
- package/{client/utils → utils}/getStringFromUInt8Array.js +1 -1
- package/utils/index.d.ts +9 -0
- package/utils/index.js +9 -0
- package/{client/weapon → weapon}/DlcWeaponData.d.ts +1 -1
- package/{client/weapon → weapon}/DlcWeaponData.js +3 -3
- package/{client/weapon → weapon}/Weapon.d.ts +10 -10
- package/{client/weapon → weapon}/Weapon.js +17 -14
- package/{client/weapon → weapon}/WeaponAsset.d.ts +1 -1
- package/{client/weapon → weapon}/WeaponAsset.js +4 -3
- package/{client/weapon → weapon}/WeaponCollection.d.ts +3 -3
- package/{client/weapon → weapon}/WeaponCollection.js +4 -3
- package/{client/weapon → weapon}/WeaponDisplayNameByHash.d.ts +1 -1
- package/weapon/WeaponDisplayNameByHash.js +75 -0
- package/{client/weapon → weapon}/WeaponHudStats.d.ts +1 -1
- package/{client/weapon → weapon}/WeaponHudStats.js +4 -4
- package/weapon/index.d.ts +8 -0
- package/weapon/index.js +8 -0
- package/{client/weaponComponent → weaponComponent}/ComponentAttachmentPointByHash.d.ts +2 -2
- package/{client/weaponComponent → weaponComponent}/ComponentAttachmentPointByHash.js +355 -91
- package/{client/weaponComponent → weaponComponent}/ComponentDisplayNameByHash.d.ts +1 -1
- package/weaponComponent/ComponentDisplayNameByHash.js +280 -0
- package/{client/weaponComponent → weaponComponent}/DlcWeaponComponentData.d.ts +1 -1
- package/{client/weaponComponent → weaponComponent}/DlcWeaponComponentData.js +2 -2
- package/{client/weaponComponent → weaponComponent}/InvalidWeaponComponent.d.ts +4 -4
- package/{client/weaponComponent → weaponComponent}/InvalidWeaponComponent.js +5 -5
- package/{client/weaponComponent → weaponComponent}/WeaponComponent.d.ts +6 -6
- package/{client/weaponComponent → weaponComponent}/WeaponComponent.js +15 -11
- package/{client/weaponComponent → weaponComponent}/WeaponComponentCollection.d.ts +4 -4
- package/{client/weaponComponent → weaponComponent}/WeaponComponentCollection.js +13 -11
- package/{client/weaponComponent → weaponComponent}/WeaponComponentHashesByWeaponHash.d.ts +2 -2
- package/{client/weaponComponent → weaponComponent}/WeaponComponentHashesByWeaponHash.js +13 -7
- package/{client/weaponComponent → weaponComponent}/WeaponComponentHudStats.d.ts +1 -1
- package/{client/weaponComponent → weaponComponent}/WeaponComponentHudStats.js +4 -4
- package/weaponComponent/index.d.ts +5 -0
- package/weaponComponent/index.js +5 -0
- package/README.md +0 -41
- package/client/enums/index.d.ts +0 -42
- package/client/enums/index.js +0 -42
- package/client/hashes/index.d.ts +0 -5
- package/client/hashes/index.js +0 -5
- package/client/index.d.ts +0 -24
- package/client/index.js +0 -25
- package/client/models/index.d.ts +0 -18
- package/client/models/index.js +0 -19
- package/client/ui/Effects.js +0 -106
- package/client/ui/index.d.ts +0 -15
- package/client/ui/index.js +0 -15
- package/client/ui/interfaces/index.d.ts +0 -2
- package/client/ui/menu/MenuControls.js +0 -11
- package/client/ui/menu/MenuSettings.js +0 -51
- package/client/ui/menu/index.d.ts +0 -6
- package/client/ui/menu/index.js +0 -6
- package/client/ui/menu/items/index.d.ts +0 -6
- package/client/ui/menu/items/index.js +0 -6
- package/client/ui/menu/items/panels/index.d.ts +0 -6
- package/client/ui/menu/items/panels/index.js +0 -6
- package/client/ui/menu/modules/index.d.ts +0 -1
- package/client/ui/menu/modules/index.js +0 -1
- package/client/utils/PointF.js +0 -11
- package/client/utils/index.d.ts +0 -9
- package/client/utils/index.js +0 -9
- package/client/weapon/WeaponDisplayNameByHash.js +0 -75
- package/client/weapon/index.d.ts +0 -8
- package/client/weapon/index.js +0 -8
- package/client/weaponComponent/ComponentDisplayNameByHash.js +0 -280
- package/client/weaponComponent/index.d.ts +0 -5
- package/client/weaponComponent/index.js +0 -5
- package/common/Convar.d.ts +0 -8
- package/common/Convar.js +0 -20
- package/common/Kvp.d.ts +0 -91
- package/common/Kvp.js +0 -161
- package/common/Resource.d.ts +0 -14
- package/common/Resource.js +0 -35
- package/common/index.d.ts +0 -5
- package/common/index.js +0 -5
- package/common/types.d.ts +0 -5
- package/common/types.js +0 -1
- package/common/utils/ClassTypes.d.ts +0 -11
- package/common/utils/ClassTypes.js +0 -12
- package/common/utils/Color.d.ts +0 -14
- package/common/utils/Color.js +0 -21
- package/common/utils/Maths.d.ts +0 -4
- package/common/utils/Maths.js +0 -10
- package/common/utils/PointF.d.ts +0 -12
- package/common/utils/Quaternion.d.ts +0 -10
- package/common/utils/Quaternion.js +0 -23
- package/common/utils/Vector.d.ts +0 -390
- package/common/utils/Vector.js +0 -546
- package/common/utils/Vector2.d.ts +0 -1
- package/common/utils/Vector2.js +0 -1
- package/common/utils/Vector3.d.ts +0 -1
- package/common/utils/Vector3.js +0 -1
- package/common/utils/Vector4.d.ts +0 -1
- package/common/utils/Vector4.js +0 -1
- package/common/utils/cleanPlayerName.d.ts +0 -6
- package/common/utils/cleanPlayerName.js +0 -27
- package/common/utils/enumValues.d.ts +0 -12
- package/common/utils/enumValues.js +0 -14
- package/common/utils/getStringFromUInt8Array.d.ts +0 -8
- package/common/utils/getStringFromUInt8Array.js +0 -10
- package/common/utils/getUInt32FromUint8Array.d.ts +0 -8
- package/common/utils/getUInt32FromUint8Array.js +0 -8
- package/common/utils/index.d.ts +0 -12
- package/common/utils/index.js +0 -12
- package/server/Events.d.ts +0 -16
- package/server/Events.js +0 -79
- package/server/Game.d.ts +0 -25
- package/server/Game.js +0 -55
- package/server/cfx/StateBagChangeHandler.d.ts +0 -3
- package/server/cfx/StateBagChangeHandler.js +0 -1
- package/server/cfx/index.d.ts +0 -6
- package/server/cfx/index.js +0 -1
- package/server/entities/BaseEntity.d.ts +0 -47
- package/server/entities/BaseEntity.js +0 -109
- package/server/entities/Entity.d.ts +0 -6
- package/server/entities/Entity.js +0 -12
- package/server/entities/Ped.d.ts +0 -32
- package/server/entities/Ped.js +0 -81
- package/server/entities/Player.d.ts +0 -63
- package/server/entities/Player.js +0 -135
- package/server/entities/Prop.d.ts +0 -14
- package/server/entities/Prop.js +0 -32
- package/server/entities/Vehicle.d.ts +0 -67
- package/server/entities/Vehicle.js +0 -175
- package/server/entities/index.d.ts +0 -5
- package/server/entities/index.js +0 -5
- package/server/enum/PopulationType.d.ts +0 -13
- package/server/enum/PopulationType.js +0 -14
- package/server/enum/VehicleLockStatus.d.ts +0 -9
- package/server/enum/VehicleLockStatus.js +0 -10
- package/server/enum/VehicleType.d.ts +0 -10
- package/server/enum/VehicleType.js +0 -11
- package/server/enum/eEntityType.d.ts +0 -5
- package/server/enum/eEntityType.js +0 -6
- package/server/enum/index.d.ts +0 -4
- package/server/enum/index.js +0 -4
- package/server/index.d.ts +0 -7
- package/server/index.js +0 -7
- package/server/type/Anticheat.d.ts +0 -153
- package/server/type/Anticheat.js +0 -1
- package/server/type/Hash.d.ts +0 -1
- package/server/type/Hash.js +0 -1
- package/server/utils/index.d.ts +0 -1
- package/server/utils/index.js +0 -1
- /package/{client/Events.d.ts → Events.d.ts} +0 -0
- /package/{client/cfx → cfx}/StateBagChangeHandler.d.ts +0 -0
- /package/{client/cfx → cfx}/StateBagChangeHandler.js +0 -0
- /package/{client/cfx → cfx}/index.js +0 -0
- /package/{client/enums → enums}/Alignment.d.ts +0 -0
- /package/{client/enums → enums}/Alignment.js +0 -0
- /package/{client/enums → enums}/AnimationFlags.d.ts +0 -0
- /package/{client/enums → enums}/AnimationFlags.js +0 -0
- /package/{client/enums → enums}/AudioFlag.d.ts +0 -0
- /package/{client/enums → enums}/AudioFlag.js +0 -0
- /package/{client/enums → enums}/BadgeStyle.d.ts +0 -0
- /package/{client/enums → enums}/BadgeStyle.js +0 -0
- /package/{client/enums → enums}/Blip.d.ts +0 -0
- /package/{client/enums → enums}/Blip.js +0 -0
- /package/{client/enums → enums}/Bone.d.ts +0 -0
- /package/{client/enums → enums}/Bone.js +0 -0
- /package/{client/enums → enums}/CameraShake.d.ts +0 -0
- /package/{client/enums → enums}/CameraShake.js +0 -0
- /package/{client/enums → enums}/CameraTypes.d.ts +0 -0
- /package/{client/enums → enums}/CameraTypes.js +0 -0
- /package/{client/enums → enums}/CheckboxStyle.d.ts +0 -0
- /package/{client/enums → enums}/CheckboxStyle.js +0 -0
- /package/{client/enums → enums}/Checkpoint.d.ts +0 -0
- /package/{client/enums → enums}/Checkpoint.js +0 -0
- /package/{client/enums → enums}/CloudHat.d.ts +0 -0
- /package/{client/enums → enums}/CloudHat.js +0 -0
- /package/{client/enums → enums}/Control.d.ts +0 -0
- /package/{client/enums → enums}/Control.js +0 -0
- /package/{client/enums → enums}/CursorSprite.d.ts +0 -0
- /package/{client/enums → enums}/CursorSprite.js +0 -0
- /package/{client/enums → enums}/Driving.d.ts +0 -0
- /package/{client/enums → enums}/Driving.js +0 -0
- /package/{client/enums → enums}/ExplosionType.d.ts +0 -0
- /package/{client/enums → enums}/ExplosionType.js +0 -0
- /package/{client/enums → enums}/FiringPattern.d.ts +0 -0
- /package/{client/enums → enums}/FiringPattern.js +0 -0
- /package/{client/enums → enums}/Font.d.ts +0 -0
- /package/{client/enums → enums}/Font.js +0 -0
- /package/{client/enums → enums}/ForceType.d.ts +0 -0
- /package/{client/enums → enums}/ForceType.js +0 -0
- /package/{client/enums → enums}/Gender.d.ts +0 -0
- /package/{client/enums → enums}/Gender.js +0 -0
- /package/{client/enums → enums}/HelmetType.d.ts +0 -0
- /package/{client/enums → enums}/HelmetType.js +0 -0
- /package/{client/enums → enums}/HudColor.d.ts +0 -0
- /package/{client/enums → enums}/HudColor.js +0 -0
- /package/{client/enums → enums}/HudComponent.d.ts +0 -0
- /package/{client/enums → enums}/HudComponent.js +0 -0
- /package/{client/enums → enums}/InputMode.d.ts +0 -0
- /package/{client/enums → enums}/InputMode.js +0 -0
- /package/{client/enums → enums}/InvertAxis.d.ts +0 -0
- /package/{client/enums → enums}/InvertAxis.js +0 -0
- /package/{client/enums → enums}/Language.d.ts +0 -0
- /package/{client/enums → enums}/Language.js +0 -0
- /package/{client/enums → enums}/LeaveVehicleFlags.d.ts +0 -0
- /package/{client/enums → enums}/LeaveVehicleFlags.js +0 -0
- /package/{client/enums → enums}/LoadingSpinnerType.d.ts +0 -0
- /package/{client/enums → enums}/LoadingSpinnerType.js +0 -0
- /package/{client/enums → enums}/MarkerType.d.ts +0 -0
- /package/{client/enums → enums}/MarkerType.js +0 -0
- /package/{client/enums → enums}/MenuAlignment.d.ts +0 -0
- /package/{client/enums → enums}/MenuAlignment.js +0 -0
- /package/{client/enums → enums}/NotificationType.d.ts +0 -0
- /package/{client/enums → enums}/NotificationType.js +0 -0
- /package/{client/enums → enums}/Parachute.d.ts +0 -0
- /package/{client/enums → enums}/Parachute.js +0 -0
- /package/{client/enums → enums}/PickupType.d.ts +0 -0
- /package/{client/enums → enums}/PickupType.js +0 -0
- /package/{client/enums → enums}/RadioStation.d.ts +0 -0
- /package/{client/enums → enums}/RadioStation.js +0 -0
- /package/{client/enums → enums}/RagdollType.d.ts +0 -0
- /package/{client/enums → enums}/RagdollType.js +0 -0
- /package/{client/enums → enums}/RaycastEnums.d.ts +0 -0
- /package/{client/enums → enums}/Relationship.d.ts +0 -0
- /package/{client/enums → enums}/Relationship.js +0 -0
- /package/{client/enums → enums}/RopeType.d.ts +0 -0
- /package/{client/enums → enums}/RopeType.js +0 -0
- /package/{client/enums → enums}/ScreenEffect.d.ts +0 -0
- /package/{client/enums → enums}/ScreenEffect.js +0 -0
- /package/{client/enums → enums}/SpeechModifier.d.ts +0 -0
- /package/{client/enums → enums}/SpeechModifier.js +0 -0
- /package/{client/enums → enums}/Vehicle.d.ts +0 -0
- /package/{client/enums → enums}/Vehicle.js +0 -0
- /package/{client/enums → enums}/Weather.d.ts +0 -0
- /package/{client/enums → enums}/Weather.js +0 -0
- /package/{client/enums → enums}/ZoneID.d.ts +0 -0
- /package/{client/enums → enums}/ZoneID.js +0 -0
- /package/{client/hashes → hashes}/MaterialHash.d.ts +0 -0
- /package/{client/hashes → hashes}/MaterialHash.js +0 -0
- /package/{client/hashes → hashes}/PedHash.d.ts +0 -0
- /package/{client/hashes → hashes}/PedHash.js +0 -0
- /package/{client/hashes → hashes}/VehicleHash.d.ts +0 -0
- /package/{client/hashes → hashes}/VehicleHash.js +0 -0
- /package/{client/hashes → hashes}/WeaponHash.d.ts +0 -0
- /package/{client/hashes → hashes}/WeaponHash.js +0 -0
- /package/{client/hashes → hashes}/WeatherTypeHash.d.ts +0 -0
- /package/{client/hashes → hashes}/WeatherTypeHash.js +0 -0
- /package/{client/interfaces → interfaces}/Dimensions.js +0 -0
- /package/{client/models → models}/Entity.d.ts +0 -0
- /package/{client/models → models}/Entity.js +0 -0
- /package/{client/ui → ui}/Fading.d.ts +0 -0
- /package/{client/ui → ui}/Notification.d.ts +0 -0
- /package/{client/ui → ui}/interfaces/IButton.js +0 -0
- /package/{client/ui → ui}/interfaces/IDrawable.js +0 -0
- /package/{client/ui → ui}/interfaces/index.js +0 -0
- /package/{client/ui → ui}/menu/MenuControl.d.ts +0 -0
- /package/{client/ui → ui}/menu/modules/ListItem.d.ts +0 -0
- /package/{client/utils → utils}/Animations.d.ts +0 -0
- /package/{client/utils → utils}/Crypto.d.ts +0 -0
- /package/{client/utils → utils}/LiteEvent.d.ts +0 -0
- /package/{client/utils → utils}/Maths.d.ts +0 -0
- /package/{client/utils → utils}/Maths.js +0 -0
- /package/{client/utils → utils}/Point.d.ts +0 -0
- /package/{client/utils → utils}/PointF.d.ts +0 -0
- /package/{client/utils → utils}/Size.d.ts +0 -0
- /package/{client/utils → utils}/enumValues.d.ts +0 -0
- /package/{client/utils → utils}/getStringFromUInt8Array.d.ts +0 -0
- /package/{client/utils → utils}/getUInt32FromUint8Array.d.ts +0 -0
- /package/{client/utils → utils}/getUInt32FromUint8Array.js +0 -0
- /package/{client/weapon → weapon}/Mk2WeaponHash.d.ts +0 -0
- /package/{client/weapon → weapon}/Mk2WeaponHash.js +0 -0
- /package/{client/weapon → weapon}/WeaponGroup.d.ts +0 -0
- /package/{client/weapon → weapon}/WeaponGroup.js +0 -0
- /package/{client/weapon → weapon}/WeaponLivery.d.ts +0 -0
- /package/{client/weapon → weapon}/WeaponLivery.js +0 -0
- /package/{client/weapon → weapon}/WeaponLiveryColor.d.ts +0 -0
- /package/{client/weapon → weapon}/WeaponLiveryColor.js +0 -0
- /package/{client/weapon → weapon}/WeaponTint.d.ts +0 -0
- /package/{client/weapon → weapon}/WeaponTint.js +0 -0
- /package/{client/weaponComponent → weaponComponent}/ComponentAttachmentPoint.d.ts +0 -0
- /package/{client/weaponComponent → weaponComponent}/ComponentAttachmentPoint.js +0 -0
- /package/{client/weaponComponent → weaponComponent}/WeaponComponentHash.d.ts +0 -0
- /package/{client/weaponComponent → weaponComponent}/WeaponComponentHash.js +0 -0
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
* Class to create and manage a relationship group. Useful to manage behavior between Peds.
|
|
3
3
|
*/
|
|
4
4
|
export class RelationshipGroup {
|
|
5
|
+
/**
|
|
6
|
+
* The hash of the relationship group
|
|
7
|
+
*/
|
|
8
|
+
hash;
|
|
5
9
|
/**
|
|
6
10
|
* Create a relationship group. Optionally pass a group hash.
|
|
7
11
|
*
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { Vector3 } from
|
|
1
|
+
import { Vector3 } from "./utils";
|
|
2
2
|
/**
|
|
3
3
|
* Class to manage invisible ropes between entities.
|
|
4
4
|
*/
|
|
5
5
|
export class Rope {
|
|
6
|
+
/**
|
|
7
|
+
* Id of rope entity.
|
|
8
|
+
*/
|
|
9
|
+
handle;
|
|
6
10
|
/**
|
|
7
11
|
* Create a rope object based on an existing rope in the world.
|
|
8
12
|
*
|
|
@@ -71,7 +75,7 @@ export class Rope {
|
|
|
71
75
|
* @param length The desired length of the rope between the two entities.
|
|
72
76
|
*/
|
|
73
77
|
attachEntities(entityOne, positionOne, entityTwo, positionTwo, length) {
|
|
74
|
-
AttachEntitiesToRope(this.handle, entityOne.Handle, entityTwo.Handle, positionOne.x, positionOne.y, positionOne.z, positionTwo.x, positionTwo.y, positionTwo.z, length, false, false,
|
|
78
|
+
AttachEntitiesToRope(this.handle, entityOne.Handle, entityTwo.Handle, positionOne.x, positionOne.y, positionOne.z, positionTwo.x, positionTwo.y, positionTwo.z, length, false, false, "", "");
|
|
75
79
|
}
|
|
76
80
|
/**
|
|
77
81
|
* Detach the rope from an entity.
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Tasks } from
|
|
1
|
+
import { Tasks } from "./Tasks";
|
|
2
2
|
// TODO: Figure out why this uses 'null ped'
|
|
3
3
|
export class TaskSequence {
|
|
4
|
+
static nullTask;
|
|
5
|
+
handle = 0;
|
|
6
|
+
isClosed;
|
|
7
|
+
count;
|
|
4
8
|
constructor(handle) {
|
|
5
|
-
this.handle = 0;
|
|
6
9
|
handle === undefined ? this.create() : (this.handle = handle);
|
|
7
10
|
if (!TaskSequence.nullTask) {
|
|
8
11
|
TaskSequence.nullTask = new Tasks(null);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AnimationFlags, DrivingStyle, FiringPattern, LeaveVehicleFlags, VehicleSeat } from
|
|
2
|
-
import { Ped, Vehicle } from
|
|
3
|
-
import { BaseEntity } from
|
|
4
|
-
import { TaskSequence } from
|
|
5
|
-
import { Vector3 } from
|
|
1
|
+
import { AnimationFlags, DrivingStyle, FiringPattern, LeaveVehicleFlags, VehicleSeat } from "./enums";
|
|
2
|
+
import { Ped, Vehicle } from "./models";
|
|
3
|
+
import { BaseEntity } from "./models/BaseEntity";
|
|
4
|
+
import { TaskSequence } from "./TaskSequence";
|
|
5
|
+
import { Vector3 } from "./utils";
|
|
6
6
|
export declare class Tasks {
|
|
7
7
|
private ped;
|
|
8
8
|
constructor(ped: Ped | null);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { DrivingStyle, FiringPattern, VehicleSeat, } from
|
|
2
|
-
import { Ped } from
|
|
3
|
-
import { BaseEntity } from
|
|
4
|
-
import { Vector3 } from
|
|
5
|
-
import { LoadAnimDict } from
|
|
1
|
+
import { DrivingStyle, FiringPattern, VehicleSeat, } from "./enums";
|
|
2
|
+
import { Ped } from "./models";
|
|
3
|
+
import { BaseEntity } from "./models/BaseEntity";
|
|
4
|
+
import { Vector3 } from "./utils";
|
|
5
|
+
import { LoadAnimDict } from "./utils/Animations";
|
|
6
6
|
export class Tasks {
|
|
7
|
+
ped;
|
|
7
8
|
// we take null because sequences have a null ped, if you pass null to this
|
|
8
9
|
// you betterk now what you're doing.
|
|
9
10
|
constructor(ped) {
|
|
@@ -88,7 +89,7 @@ export class Tasks {
|
|
|
88
89
|
}
|
|
89
90
|
followPointRoute(points) {
|
|
90
91
|
TaskFlushRoute();
|
|
91
|
-
points.forEach(point => TaskExtendRoute(point.x, point.y, point.z));
|
|
92
|
+
points.forEach((point) => TaskExtendRoute(point.x, point.y, point.z));
|
|
92
93
|
TaskFollowPointRoute(this.ped.Handle, 1, 0);
|
|
93
94
|
}
|
|
94
95
|
followToOffsetFromEntity(target, offset, timeout, stoppingRange, movementSpeed = 1, persistFollowing = true) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Model, Prop } from
|
|
2
|
-
import { Blip } from
|
|
3
|
-
import { Camera } from
|
|
4
|
-
import { CameraTypes, CloudHat, IntersectFlags, MarkerType, PickupType, RopeType, Weather } from
|
|
5
|
-
import { Ped, Vehicle } from
|
|
6
|
-
import type { BaseEntity } from
|
|
7
|
-
import { Pickup } from
|
|
8
|
-
import { AsynchronousRaycastResult, SynchronousRaycastResult } from
|
|
9
|
-
import { Rope } from
|
|
10
|
-
import { Color, Vector3 } from
|
|
1
|
+
import { Model, Prop } from "./";
|
|
2
|
+
import { Blip } from "./Blip";
|
|
3
|
+
import { Camera } from "./Camera";
|
|
4
|
+
import { CameraTypes, CloudHat, IntersectFlags, MarkerType, PickupType, RopeType, Weather } from "./enums";
|
|
5
|
+
import { Ped, Vehicle } from "./models";
|
|
6
|
+
import type { BaseEntity } from "./models/BaseEntity";
|
|
7
|
+
import { Pickup } from "./Pickup";
|
|
8
|
+
import { AsynchronousRaycastResult, SynchronousRaycastResult } from "./Raycast";
|
|
9
|
+
import { Rope } from "./Rope";
|
|
10
|
+
import { Color, Vector3 } from "./utils";
|
|
11
11
|
/**
|
|
12
12
|
* Class with common world manipulations.
|
|
13
13
|
*
|
|
@@ -109,11 +109,19 @@ export declare abstract class World {
|
|
|
109
109
|
/**
|
|
110
110
|
* Doesn't work
|
|
111
111
|
*/
|
|
112
|
-
static get WeatherTransition(): [
|
|
112
|
+
static get WeatherTransition(): [
|
|
113
|
+
string | Weather,
|
|
114
|
+
string | Weather,
|
|
115
|
+
number
|
|
116
|
+
];
|
|
113
117
|
/**
|
|
114
118
|
* Doesn't work
|
|
115
119
|
*/
|
|
116
|
-
static set WeatherTransition(transition: [
|
|
120
|
+
static set WeatherTransition(transition: [
|
|
121
|
+
string | Weather,
|
|
122
|
+
string | Weather,
|
|
123
|
+
number
|
|
124
|
+
]);
|
|
117
125
|
/**
|
|
118
126
|
* Transition to different weather type within a certain time.
|
|
119
127
|
*
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Model, Prop } from
|
|
2
|
-
import { Blip } from
|
|
3
|
-
import { Camera } from
|
|
4
|
-
import { CameraTypes, CloudHat, IntersectFlags, SHAPE_TEST_DEFAULT, Weather, } from
|
|
5
|
-
import { GameplayCamera } from
|
|
6
|
-
import { VehicleHash } from
|
|
7
|
-
import { Ped, Vehicle } from
|
|
8
|
-
import { Pickup } from
|
|
9
|
-
import { AsynchronousRaycastResult, SynchronousRaycastResult } from
|
|
10
|
-
import { Rope } from
|
|
11
|
-
import { Maths, Vector3, Wait } from
|
|
1
|
+
import { Model, Prop } from "./";
|
|
2
|
+
import { Blip } from "./Blip";
|
|
3
|
+
import { Camera } from "./Camera";
|
|
4
|
+
import { CameraTypes, CloudHat, IntersectFlags, SHAPE_TEST_DEFAULT, Weather, } from "./enums";
|
|
5
|
+
import { GameplayCamera } from "./GameplayCamera";
|
|
6
|
+
import { VehicleHash } from "./hashes";
|
|
7
|
+
import { Ped, Vehicle } from "./models";
|
|
8
|
+
import { Pickup } from "./Pickup";
|
|
9
|
+
import { AsynchronousRaycastResult, SynchronousRaycastResult } from "./Raycast";
|
|
10
|
+
import { Rope } from "./Rope";
|
|
11
|
+
import { Maths, Vector3, Wait } from "./utils";
|
|
12
12
|
/**
|
|
13
13
|
* Class with common world manipulations.
|
|
14
14
|
*
|
|
@@ -106,7 +106,7 @@ export class World {
|
|
|
106
106
|
ClearCloudHat();
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
|
-
SetCloudHatTransition(this.cloudHatDict.get(this.currentCloudHat) ??
|
|
109
|
+
SetCloudHatTransition(this.cloudHatDict.get(this.currentCloudHat) ?? "", 3);
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
112
|
* Get the opacity of current cloud hat. Value is between 0-1.
|
|
@@ -234,7 +234,11 @@ export class World {
|
|
|
234
234
|
*/
|
|
235
235
|
static get WeatherTransition() {
|
|
236
236
|
const transition = GetWeatherTypeTransition();
|
|
237
|
-
return [
|
|
237
|
+
return [
|
|
238
|
+
this.weatherDict[transition[0]],
|
|
239
|
+
this.weatherDict[transition[1]],
|
|
240
|
+
transition[2],
|
|
241
|
+
];
|
|
238
242
|
}
|
|
239
243
|
/**
|
|
240
244
|
* Doesn't work
|
|
@@ -648,9 +652,9 @@ export class World {
|
|
|
648
652
|
* @returns Array of Props.
|
|
649
653
|
*/
|
|
650
654
|
static getAllProps() {
|
|
651
|
-
const handles = GetGamePool(
|
|
655
|
+
const handles = GetGamePool("CObject");
|
|
652
656
|
const props = [];
|
|
653
|
-
handles.forEach(handle => props.push(new Prop(handle)));
|
|
657
|
+
handles.forEach((handle) => props.push(new Prop(handle)));
|
|
654
658
|
return props;
|
|
655
659
|
}
|
|
656
660
|
/**
|
|
@@ -661,7 +665,7 @@ export class World {
|
|
|
661
665
|
static getAllRopes() {
|
|
662
666
|
const handles = GetAllRopes();
|
|
663
667
|
const props = [];
|
|
664
|
-
handles.forEach(handle => props.push(new Rope(handle)));
|
|
668
|
+
handles.forEach((handle) => props.push(new Rope(handle)));
|
|
665
669
|
return props;
|
|
666
670
|
}
|
|
667
671
|
/**
|
|
@@ -670,9 +674,9 @@ export class World {
|
|
|
670
674
|
* @returns Array of Peds.
|
|
671
675
|
*/
|
|
672
676
|
static getAllPeds() {
|
|
673
|
-
const handles = GetGamePool(
|
|
677
|
+
const handles = GetGamePool("CPed");
|
|
674
678
|
const peds = [];
|
|
675
|
-
handles.forEach(handle => peds.push(new Ped(handle)));
|
|
679
|
+
handles.forEach((handle) => peds.push(new Ped(handle)));
|
|
676
680
|
return peds;
|
|
677
681
|
}
|
|
678
682
|
/**
|
|
@@ -681,9 +685,9 @@ export class World {
|
|
|
681
685
|
* @returns Array of Vehicles.
|
|
682
686
|
*/
|
|
683
687
|
static getAllVehicles() {
|
|
684
|
-
const handles = GetGamePool(
|
|
688
|
+
const handles = GetGamePool("CVehicle");
|
|
685
689
|
const vehicles = [];
|
|
686
|
-
handles.forEach(handle => vehicles.push(new Vehicle(handle)));
|
|
690
|
+
handles.forEach((handle) => vehicles.push(new Vehicle(handle)));
|
|
687
691
|
return vehicles;
|
|
688
692
|
}
|
|
689
693
|
/**
|
|
@@ -713,49 +717,49 @@ export class World {
|
|
|
713
717
|
* @returns Array of Pickups.
|
|
714
718
|
*/
|
|
715
719
|
static getAllPickups() {
|
|
716
|
-
const handles = GetGamePool(
|
|
720
|
+
const handles = GetGamePool("CPickup");
|
|
717
721
|
const pickups = [];
|
|
718
|
-
handles.forEach(handle => pickups.push(new Pickup(handle)));
|
|
722
|
+
handles.forEach((handle) => pickups.push(new Pickup(handle)));
|
|
719
723
|
return pickups;
|
|
720
724
|
}
|
|
725
|
+
static currentCloudHat = CloudHat.Clear;
|
|
726
|
+
static cloudHatDict = new Map([
|
|
727
|
+
[CloudHat.Unknown, "Unknown"],
|
|
728
|
+
[CloudHat.Altostratus, "altostratus"],
|
|
729
|
+
[CloudHat.Cirrus, "Cirrus"],
|
|
730
|
+
[CloudHat.Cirrocumulus, "cirrocumulus"],
|
|
731
|
+
[CloudHat.Clear, "Clear 01"],
|
|
732
|
+
[CloudHat.Cloudy, "Cloudy 01"],
|
|
733
|
+
[CloudHat.Contrails, "Contrails"],
|
|
734
|
+
[CloudHat.Horizon, "Horizon"],
|
|
735
|
+
[CloudHat.HorizonBand1, "horizonband1"],
|
|
736
|
+
[CloudHat.HorizonBand2, "horizonband2"],
|
|
737
|
+
[CloudHat.HorizonBand3, "horizonband3"],
|
|
738
|
+
[CloudHat.Horsey, "horsey"],
|
|
739
|
+
[CloudHat.Nimbus, "Nimbus"],
|
|
740
|
+
[CloudHat.Puffs, "Puffs"],
|
|
741
|
+
[CloudHat.Rain, "RAIN"],
|
|
742
|
+
[CloudHat.Snowy, "Snowy 01"],
|
|
743
|
+
[CloudHat.Stormy, "Stormy 01"],
|
|
744
|
+
[CloudHat.Stratoscumulus, "stratoscumulus"],
|
|
745
|
+
[CloudHat.Stripey, "Stripey"],
|
|
746
|
+
[CloudHat.Shower, "shower"],
|
|
747
|
+
[CloudHat.Wispy, "Wispy"],
|
|
748
|
+
]);
|
|
749
|
+
static weatherDict = [
|
|
750
|
+
"EXTRASUNNY",
|
|
751
|
+
"CLEAR",
|
|
752
|
+
"CLOUDS",
|
|
753
|
+
"SMOG",
|
|
754
|
+
"FOGGY",
|
|
755
|
+
"OVERCAST",
|
|
756
|
+
"RAIN",
|
|
757
|
+
"THUNDER",
|
|
758
|
+
"CLEARING",
|
|
759
|
+
"NEUTRAL",
|
|
760
|
+
"SNOW",
|
|
761
|
+
"BLIZZARD",
|
|
762
|
+
"SNOWLIGHT",
|
|
763
|
+
"XMAS",
|
|
764
|
+
];
|
|
721
765
|
}
|
|
722
|
-
World.currentCloudHat = CloudHat.Clear;
|
|
723
|
-
World.cloudHatDict = new Map([
|
|
724
|
-
[CloudHat.Unknown, 'Unknown'],
|
|
725
|
-
[CloudHat.Altostratus, 'altostratus'],
|
|
726
|
-
[CloudHat.Cirrus, 'Cirrus'],
|
|
727
|
-
[CloudHat.Cirrocumulus, 'cirrocumulus'],
|
|
728
|
-
[CloudHat.Clear, 'Clear 01'],
|
|
729
|
-
[CloudHat.Cloudy, 'Cloudy 01'],
|
|
730
|
-
[CloudHat.Contrails, 'Contrails'],
|
|
731
|
-
[CloudHat.Horizon, 'Horizon'],
|
|
732
|
-
[CloudHat.HorizonBand1, 'horizonband1'],
|
|
733
|
-
[CloudHat.HorizonBand2, 'horizonband2'],
|
|
734
|
-
[CloudHat.HorizonBand3, 'horizonband3'],
|
|
735
|
-
[CloudHat.Horsey, 'horsey'],
|
|
736
|
-
[CloudHat.Nimbus, 'Nimbus'],
|
|
737
|
-
[CloudHat.Puffs, 'Puffs'],
|
|
738
|
-
[CloudHat.Rain, 'RAIN'],
|
|
739
|
-
[CloudHat.Snowy, 'Snowy 01'],
|
|
740
|
-
[CloudHat.Stormy, 'Stormy 01'],
|
|
741
|
-
[CloudHat.Stratoscumulus, 'stratoscumulus'],
|
|
742
|
-
[CloudHat.Stripey, 'Stripey'],
|
|
743
|
-
[CloudHat.Shower, 'shower'],
|
|
744
|
-
[CloudHat.Wispy, 'Wispy'],
|
|
745
|
-
]);
|
|
746
|
-
World.weatherDict = [
|
|
747
|
-
'EXTRASUNNY',
|
|
748
|
-
'CLEAR',
|
|
749
|
-
'CLOUDS',
|
|
750
|
-
'SMOG',
|
|
751
|
-
'FOGGY',
|
|
752
|
-
'OVERCAST',
|
|
753
|
-
'RAIN',
|
|
754
|
-
'THUNDER',
|
|
755
|
-
'CLEARING',
|
|
756
|
-
'NEUTRAL',
|
|
757
|
-
'SNOW',
|
|
758
|
-
'BLIZZARD',
|
|
759
|
-
'SNOWLIGHT',
|
|
760
|
-
'XMAS',
|
|
761
|
-
];
|
|
@@ -27,4 +27,6 @@ export var ShapeTestStatus;
|
|
|
27
27
|
ShapeTestStatus[ShapeTestStatus["NotReady"] = 1] = "NotReady";
|
|
28
28
|
ShapeTestStatus[ShapeTestStatus["Ready"] = 2] = "Ready";
|
|
29
29
|
})(ShapeTestStatus || (ShapeTestStatus = {}));
|
|
30
|
-
export const SHAPE_TEST_DEFAULT = ShapeTestOptions.IgnoreGlass |
|
|
30
|
+
export const SHAPE_TEST_DEFAULT = ShapeTestOptions.IgnoreGlass |
|
|
31
|
+
ShapeTestOptions.IgnoreSeeThrough |
|
|
32
|
+
ShapeTestOptions.IgnoreNoCollision;
|
package/enums/index.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export { Alignment } from "./Alignment";
|
|
2
|
+
export { AnimationFlags } from "./AnimationFlags";
|
|
3
|
+
export { AudioFlag } from "./AudioFlag";
|
|
4
|
+
export { BadgeStyle } from "./BadgeStyle";
|
|
5
|
+
export { BlipColor, BlipSprite } from "./Blip";
|
|
6
|
+
export { Bone } from "./Bone";
|
|
7
|
+
export { CameraShake } from "./CameraShake";
|
|
8
|
+
export { CheckboxStyle } from "./CheckboxStyle";
|
|
9
|
+
export { CheckpointCustomIconStyle, CheckpointIcon } from "./Checkpoint";
|
|
10
|
+
export { CloudHat } from "./CloudHat";
|
|
11
|
+
export { Control } from "./Control";
|
|
12
|
+
export { CursorSprite } from "./CursorSprite";
|
|
13
|
+
export { DrivingStyle, VehicleDrivingFlags } from "./Driving";
|
|
14
|
+
export { ExplosionType } from "./ExplosionType";
|
|
15
|
+
export { FiringPattern } from "./FiringPattern";
|
|
16
|
+
export { Font } from "./Font";
|
|
17
|
+
export { ForceType } from "./ForceType";
|
|
18
|
+
export { Gender } from "./Gender";
|
|
19
|
+
export { HelmetType } from "./HelmetType";
|
|
20
|
+
export { HudColor } from "./HudColor";
|
|
21
|
+
export { HudComponent } from "./HudComponent";
|
|
22
|
+
export { InputMode } from "./InputMode";
|
|
23
|
+
export { IntersectFlags, ShapeTestOptions, SHAPE_TEST_DEFAULT, } from "./RaycastEnums";
|
|
24
|
+
export { InvertAxis, InvertAxisFlags } from "./InvertAxis";
|
|
25
|
+
export { Language } from "./Language";
|
|
26
|
+
export { LeaveVehicleFlags } from "./LeaveVehicleFlags";
|
|
27
|
+
export { LoadingSpinnerType } from "./LoadingSpinnerType";
|
|
28
|
+
export { MarkerType } from "./MarkerType";
|
|
29
|
+
export { MenuAlignment } from "./MenuAlignment";
|
|
30
|
+
export { NotificationType } from "./NotificationType";
|
|
31
|
+
export { ParachuteLandingType, ParachuteState } from "./Parachute";
|
|
32
|
+
export { RadioStation } from "./RadioStation";
|
|
33
|
+
export { RagdollType } from "./RagdollType";
|
|
34
|
+
export { Relationship } from "./Relationship";
|
|
35
|
+
export { RopeType } from "./RopeType";
|
|
36
|
+
export { ScreenEffect } from "./ScreenEffect";
|
|
37
|
+
export { SpeechModifier } from "./SpeechModifier";
|
|
38
|
+
export * from "./Vehicle";
|
|
39
|
+
export { Weather } from "./Weather";
|
|
40
|
+
export { ZoneID } from "./ZoneID";
|
|
41
|
+
export { PickupType } from "./PickupType";
|
|
42
|
+
export { CameraTypes } from "./CameraTypes";
|
package/enums/index.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export { Alignment } from "./Alignment";
|
|
2
|
+
export { AnimationFlags } from "./AnimationFlags";
|
|
3
|
+
export { AudioFlag } from "./AudioFlag";
|
|
4
|
+
export { BadgeStyle } from "./BadgeStyle";
|
|
5
|
+
export { BlipColor, BlipSprite } from "./Blip";
|
|
6
|
+
export { Bone } from "./Bone";
|
|
7
|
+
export { CameraShake } from "./CameraShake";
|
|
8
|
+
export { CheckboxStyle } from "./CheckboxStyle";
|
|
9
|
+
export { CheckpointCustomIconStyle, CheckpointIcon } from "./Checkpoint";
|
|
10
|
+
export { CloudHat } from "./CloudHat";
|
|
11
|
+
export { Control } from "./Control";
|
|
12
|
+
export { CursorSprite } from "./CursorSprite";
|
|
13
|
+
export { DrivingStyle, VehicleDrivingFlags } from "./Driving";
|
|
14
|
+
export { ExplosionType } from "./ExplosionType";
|
|
15
|
+
export { FiringPattern } from "./FiringPattern";
|
|
16
|
+
export { Font } from "./Font";
|
|
17
|
+
export { ForceType } from "./ForceType";
|
|
18
|
+
export { Gender } from "./Gender";
|
|
19
|
+
export { HelmetType } from "./HelmetType";
|
|
20
|
+
export { HudColor } from "./HudColor";
|
|
21
|
+
export { HudComponent } from "./HudComponent";
|
|
22
|
+
export { InputMode } from "./InputMode";
|
|
23
|
+
export { IntersectFlags, ShapeTestOptions, SHAPE_TEST_DEFAULT, } from "./RaycastEnums";
|
|
24
|
+
export { InvertAxisFlags } from "./InvertAxis";
|
|
25
|
+
export { Language } from "./Language";
|
|
26
|
+
export { LeaveVehicleFlags } from "./LeaveVehicleFlags";
|
|
27
|
+
export { LoadingSpinnerType } from "./LoadingSpinnerType";
|
|
28
|
+
export { MarkerType } from "./MarkerType";
|
|
29
|
+
export { MenuAlignment } from "./MenuAlignment";
|
|
30
|
+
export { NotificationType } from "./NotificationType";
|
|
31
|
+
export { ParachuteLandingType, ParachuteState } from "./Parachute";
|
|
32
|
+
export { RadioStation } from "./RadioStation";
|
|
33
|
+
export { RagdollType } from "./RagdollType";
|
|
34
|
+
export { Relationship } from "./Relationship";
|
|
35
|
+
export { RopeType } from "./RopeType";
|
|
36
|
+
export { ScreenEffect } from "./ScreenEffect";
|
|
37
|
+
export { SpeechModifier } from "./SpeechModifier";
|
|
38
|
+
export * from "./Vehicle";
|
|
39
|
+
export { Weather } from "./Weather";
|
|
40
|
+
export { ZoneID } from "./ZoneID";
|
|
41
|
+
export { PickupType } from "./PickupType";
|
|
42
|
+
export { CameraTypes } from "./CameraTypes";
|
package/hashes/index.js
ADDED
package/index.d.ts
ADDED
|
@@ -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 { AsynchronousRaycastResult, SynchronousRaycastResult } 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";
|
package/index.js
ADDED
|
@@ -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 { AsynchronousRaycastResult, SynchronousRaycastResult } 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";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Blip } from
|
|
2
|
-
import { ForceType } from
|
|
3
|
-
import { MaterialHash, WeaponHash } from
|
|
4
|
-
import { Model } from
|
|
5
|
-
import { Quaternion, Vector3 } from
|
|
6
|
-
import { EntityBoneCollection } from
|
|
7
|
-
import { EntityBone } from
|
|
8
|
-
import { StateBagChangeHandler } from
|
|
9
|
-
import { ClassTypes } from
|
|
1
|
+
import { Blip } from "../Blip";
|
|
2
|
+
import { ForceType } from "../enums";
|
|
3
|
+
import { MaterialHash, WeaponHash } from "../hashes";
|
|
4
|
+
import { Model } from "../Model";
|
|
5
|
+
import { Quaternion, Vector3 } from "../utils";
|
|
6
|
+
import { EntityBoneCollection } from "./";
|
|
7
|
+
import { EntityBone } from "./EntityBone";
|
|
8
|
+
import { StateBagChangeHandler } from "../cfx";
|
|
9
|
+
import { ClassTypes } from "../../common/utils/ClassTypes";
|
|
10
10
|
export declare class BaseEntity {
|
|
11
11
|
static fromNetworkId(networkId: number): BaseEntity | null;
|
|
12
12
|
static fromStateBagName(stateBagName: string): BaseEntity | null;
|
|
@@ -138,29 +138,29 @@ export declare class BaseEntity {
|
|
|
138
138
|
*/
|
|
139
139
|
getOffsetInRelativeCoords(worldCoords: Vector3): Vector3;
|
|
140
140
|
/**
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
141
|
+
* @example
|
|
142
|
+
* ```typescript
|
|
143
|
+
* const ply = Game.PlayerPed;
|
|
144
|
+
* const plyPos = ply.Position;
|
|
145
|
+
* const bag = await World.createProp(new Model('ba_prop_battle_bag_01b'), plyPos, true, true, true);
|
|
146
|
+
* bag.attachToBone(
|
|
147
|
+
* ply.Bones.getBone(64113),
|
|
148
|
+
* new Vector3(0.12, -0.25, 0.0),
|
|
149
|
+
* new Vector3(105.0, 50.0, 190.0)
|
|
150
|
+
* )
|
|
151
|
+
* const offset = bag.getRelativePositionOffset(plyPos);
|
|
152
|
+
* ```
|
|
153
|
+
* @param worldCoords: the offset given the world coords
|
|
154
|
+
* @returns the offset position from the entity in relative coords
|
|
155
|
+
*/
|
|
156
156
|
getOffsetInWorldCoords(offset: Vector3): Vector3;
|
|
157
157
|
/**
|
|
158
158
|
* @deprecated use [[getOffsetInRelativeCoords]] instead
|
|
159
159
|
*/
|
|
160
160
|
getPositionOffset(worldCoords: Vector3): Vector3;
|
|
161
161
|
/**
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
* @deprecated use [[getOffsetInWorldCoords]]
|
|
163
|
+
*/
|
|
164
164
|
getOffsetPosition(offset: Vector3): Vector3;
|
|
165
165
|
attachTo(entity: BaseEntity, position: Vector3, rotation: Vector3, collisions?: boolean, unk9?: boolean, useSoftPinning?: boolean, rotationOrder?: number): void;
|
|
166
166
|
attachToBone(entityBone: EntityBone, position: Vector3, rotation: Vector3, collisions?: boolean, unk9?: boolean, useSoftPinning?: boolean, rotationOrder?: number): void;
|