@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
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { VehicleDoorIndex } from
|
|
2
|
-
import { VehicleDoor } from
|
|
1
|
+
import { VehicleDoorIndex } from "../enums";
|
|
2
|
+
import { VehicleDoor } from "./VehicleDoor";
|
|
3
3
|
export class VehicleDoorCollection {
|
|
4
|
+
_owner;
|
|
5
|
+
_vehicleDoors = new Map();
|
|
4
6
|
constructor(owner) {
|
|
5
|
-
this._vehicleDoors = new Map();
|
|
6
7
|
this._owner = owner;
|
|
7
8
|
}
|
|
8
9
|
getDoors(index) {
|
|
@@ -13,28 +14,28 @@ export class VehicleDoorCollection {
|
|
|
13
14
|
}
|
|
14
15
|
getAllDoors() {
|
|
15
16
|
return Object.keys(VehicleDoorIndex)
|
|
16
|
-
.filter(key => !isNaN(Number(key)))
|
|
17
|
-
.map(key => {
|
|
17
|
+
.filter((key) => !isNaN(Number(key)))
|
|
18
|
+
.map((key) => {
|
|
18
19
|
const index = Number(key);
|
|
19
20
|
if (this.hasDoor(index)) {
|
|
20
21
|
return this.getDoors(index);
|
|
21
22
|
}
|
|
22
23
|
return null;
|
|
23
24
|
})
|
|
24
|
-
.filter(d => d);
|
|
25
|
+
.filter((d) => d);
|
|
25
26
|
}
|
|
26
27
|
openAllDoors(loose, instantly) {
|
|
27
|
-
this.getAllDoors().forEach(door => {
|
|
28
|
+
this.getAllDoors().forEach((door) => {
|
|
28
29
|
door?.open(loose, instantly);
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
32
|
closeAllDoors(instantly) {
|
|
32
|
-
this.getAllDoors().forEach(door => {
|
|
33
|
+
this.getAllDoors().forEach((door) => {
|
|
33
34
|
door?.close(instantly);
|
|
34
35
|
});
|
|
35
36
|
}
|
|
36
37
|
breakAllDoors(stayInTheWorld) {
|
|
37
|
-
this.getAllDoors().forEach(door => {
|
|
38
|
+
this.getAllDoors().forEach((door) => {
|
|
38
39
|
door?.break(stayInTheWorld);
|
|
39
40
|
});
|
|
40
41
|
}
|
|
@@ -43,17 +44,17 @@ export class VehicleDoorCollection {
|
|
|
43
44
|
return false;
|
|
44
45
|
switch (index) {
|
|
45
46
|
case VehicleDoorIndex.FrontLeftDoor:
|
|
46
|
-
return this._owner.Bones.hasBone(
|
|
47
|
+
return this._owner.Bones.hasBone("door_dside_f");
|
|
47
48
|
case VehicleDoorIndex.FrontRightDoor:
|
|
48
|
-
return this._owner.Bones.hasBone(
|
|
49
|
+
return this._owner.Bones.hasBone("door_pside_f");
|
|
49
50
|
case VehicleDoorIndex.BackLeftDoor:
|
|
50
|
-
return this._owner.Bones.hasBone(
|
|
51
|
+
return this._owner.Bones.hasBone("door_dside_r");
|
|
51
52
|
case VehicleDoorIndex.BackRightDoor:
|
|
52
|
-
return this._owner.Bones.hasBone(
|
|
53
|
+
return this._owner.Bones.hasBone("door_pside_r");
|
|
53
54
|
case VehicleDoorIndex.Hood:
|
|
54
|
-
return this._owner.Bones.hasBone(
|
|
55
|
+
return this._owner.Bones.hasBone("bonnet");
|
|
55
56
|
case VehicleDoorIndex.Trunk:
|
|
56
|
-
return this._owner.Bones.hasBone(
|
|
57
|
+
return this._owner.Bones.hasBone("boot");
|
|
57
58
|
default:
|
|
58
59
|
return false;
|
|
59
60
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Vehicle } from
|
|
2
|
-
import { VehicleColor, VehicleModType, VehicleNeonLight, VehiclePaintType, VehicleToggleModType, VehicleWheelType, VehicleWindowTint, LicensePlateStyle, LicensePlateType } from
|
|
3
|
-
import { VehicleMod } from
|
|
4
|
-
import { Color } from
|
|
5
|
-
import { VehicleToggleMod } from
|
|
1
|
+
import { Vehicle } from "./Vehicle";
|
|
2
|
+
import { VehicleColor, VehicleModType, VehicleNeonLight, VehiclePaintType, VehicleToggleModType, VehicleWheelType, VehicleWindowTint, LicensePlateStyle, LicensePlateType } from "../enums";
|
|
3
|
+
import { VehicleMod } from "./VehicleMod";
|
|
4
|
+
import { Color } from "../utils";
|
|
5
|
+
import { VehicleToggleMod } from "./VehicleToggleMod";
|
|
6
6
|
export declare class VehicleModCollection {
|
|
7
7
|
private _owner;
|
|
8
8
|
private readonly _vehicleMods;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { VehicleModType, VehicleNeonLight, } from
|
|
2
|
-
import { VehicleMod } from
|
|
3
|
-
import { Color } from
|
|
4
|
-
import { VehicleToggleMod } from
|
|
1
|
+
import { VehicleModType, VehicleNeonLight, } from "../enums";
|
|
2
|
+
import { VehicleMod } from "./VehicleMod";
|
|
3
|
+
import { Color } from "../utils";
|
|
4
|
+
import { VehicleToggleMod } from "./VehicleToggleMod";
|
|
5
5
|
export class VehicleModCollection {
|
|
6
|
+
_owner;
|
|
7
|
+
_vehicleMods = new Map();
|
|
8
|
+
_vehicleToggleMods = new Map();
|
|
6
9
|
constructor(owner) {
|
|
7
|
-
this._vehicleMods = new Map();
|
|
8
|
-
this._vehicleToggleMods = new Map();
|
|
9
10
|
this._owner = owner;
|
|
10
11
|
}
|
|
11
12
|
hasVehicleMod(type) {
|
|
@@ -25,15 +26,15 @@ export class VehicleModCollection {
|
|
|
25
26
|
}
|
|
26
27
|
getAllMods() {
|
|
27
28
|
return Object.keys(VehicleModType)
|
|
28
|
-
.filter(key => !isNaN(Number(key)))
|
|
29
|
-
.map(key => {
|
|
29
|
+
.filter((key) => !isNaN(Number(key)))
|
|
30
|
+
.map((key) => {
|
|
30
31
|
const index = Number(key);
|
|
31
32
|
if (this.hasVehicleMod(index)) {
|
|
32
33
|
return this.getMod(index);
|
|
33
34
|
}
|
|
34
35
|
return null;
|
|
35
36
|
})
|
|
36
|
-
.filter(m => m);
|
|
37
|
+
.filter((m) => m);
|
|
37
38
|
}
|
|
38
39
|
get WheelType() {
|
|
39
40
|
return GetVehicleWheelType(this._owner.Handle);
|
|
@@ -145,8 +146,8 @@ export class VehicleModCollection {
|
|
|
145
146
|
}
|
|
146
147
|
let on = true;
|
|
147
148
|
Object.keys(VehicleNeonLight)
|
|
148
|
-
.filter(key => !isNaN(Number(key)))
|
|
149
|
-
.forEach(key => {
|
|
149
|
+
.filter((key) => !isNaN(Number(key)))
|
|
150
|
+
.forEach((key) => {
|
|
150
151
|
if (!on) {
|
|
151
152
|
return;
|
|
152
153
|
}
|
|
@@ -156,28 +157,28 @@ export class VehicleModCollection {
|
|
|
156
157
|
}
|
|
157
158
|
setAllNeonLightsOn(on) {
|
|
158
159
|
Object.keys(VehicleNeonLight)
|
|
159
|
-
.filter(key => !isNaN(Number(key)))
|
|
160
|
-
.forEach(key => {
|
|
160
|
+
.filter((key) => !isNaN(Number(key)))
|
|
161
|
+
.forEach((key) => {
|
|
161
162
|
this.setNeonLightsOn(Number(key), on);
|
|
162
163
|
});
|
|
163
164
|
}
|
|
164
165
|
get HasAllNeonLights() {
|
|
165
166
|
return (Object.keys(VehicleNeonLight)
|
|
166
|
-
.filter(key => !isNaN(Number(key)))
|
|
167
|
-
.findIndex(light => !this.hasNeonLight(Number(light))) === -1);
|
|
167
|
+
.filter((key) => !isNaN(Number(key)))
|
|
168
|
+
.findIndex((light) => !this.hasNeonLight(Number(light))) === -1);
|
|
168
169
|
}
|
|
169
170
|
hasNeonLight(light) {
|
|
170
171
|
if (this._owner.Bones === undefined)
|
|
171
172
|
return false;
|
|
172
173
|
switch (light) {
|
|
173
174
|
case VehicleNeonLight.Left:
|
|
174
|
-
return this._owner.Bones.hasBone(
|
|
175
|
+
return this._owner.Bones.hasBone("neon_l");
|
|
175
176
|
case VehicleNeonLight.Right:
|
|
176
|
-
return this._owner.Bones.hasBone(
|
|
177
|
+
return this._owner.Bones.hasBone("neon_r");
|
|
177
178
|
case VehicleNeonLight.Front:
|
|
178
|
-
return this._owner.Bones.hasBone(
|
|
179
|
+
return this._owner.Bones.hasBone("neon_f");
|
|
179
180
|
case VehicleNeonLight.Back:
|
|
180
|
-
return this._owner.Bones.hasBone(
|
|
181
|
+
return this._owner.Bones.hasBone("neon_b");
|
|
181
182
|
default:
|
|
182
183
|
return false;
|
|
183
184
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Vehicle } from
|
|
2
|
-
import { VehicleWheel } from
|
|
3
|
-
import { VehicleWheelIndex } from
|
|
1
|
+
import { Vehicle } from "./Vehicle";
|
|
2
|
+
import { VehicleWheel } from "./VehicleWheel";
|
|
3
|
+
import { VehicleWheelIndex } from "../enums";
|
|
4
4
|
export declare class VehicleWheelCollection {
|
|
5
5
|
private _owner;
|
|
6
6
|
private readonly _vehicleWheels;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { VehicleWheel } from
|
|
2
|
-
import { VehicleWheelIndex } from
|
|
1
|
+
import { VehicleWheel } from "./VehicleWheel";
|
|
2
|
+
import { VehicleWheelIndex } from "../enums";
|
|
3
3
|
export class VehicleWheelCollection {
|
|
4
|
+
_owner;
|
|
5
|
+
_vehicleWheels = new Map();
|
|
4
6
|
constructor(owner) {
|
|
5
|
-
this._vehicleWheels = new Map();
|
|
6
7
|
this._owner = owner;
|
|
7
8
|
}
|
|
8
9
|
getWheel(index) {
|
|
@@ -13,23 +14,23 @@ export class VehicleWheelCollection {
|
|
|
13
14
|
}
|
|
14
15
|
getAllWheels() {
|
|
15
16
|
return Object.keys(VehicleWheelIndex)
|
|
16
|
-
.filter(key => !isNaN(Number(key)))
|
|
17
|
-
.map(key => {
|
|
17
|
+
.filter((key) => !isNaN(Number(key)))
|
|
18
|
+
.map((key) => {
|
|
18
19
|
const index = Number(key);
|
|
19
20
|
if (this.hasWheel(index)) {
|
|
20
21
|
return this.getWheel(index);
|
|
21
22
|
}
|
|
22
23
|
return null;
|
|
23
24
|
})
|
|
24
|
-
.filter(w => w);
|
|
25
|
+
.filter((w) => w);
|
|
25
26
|
}
|
|
26
27
|
burstAllWheels() {
|
|
27
|
-
this.getAllWheels().forEach(wheel => {
|
|
28
|
+
this.getAllWheels().forEach((wheel) => {
|
|
28
29
|
wheel?.burst();
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
32
|
fixAllWheels() {
|
|
32
|
-
this.getAllWheels().forEach(wheel => {
|
|
33
|
+
this.getAllWheels().forEach((wheel) => {
|
|
33
34
|
wheel?.fix();
|
|
34
35
|
});
|
|
35
36
|
}
|
|
@@ -38,17 +39,17 @@ export class VehicleWheelCollection {
|
|
|
38
39
|
return false;
|
|
39
40
|
switch (wheel) {
|
|
40
41
|
case VehicleWheelIndex.FrontLeftWheel:
|
|
41
|
-
return this._owner.Bones.hasBone(
|
|
42
|
+
return this._owner.Bones.hasBone("wheel_lf");
|
|
42
43
|
case VehicleWheelIndex.FrontRightWheel:
|
|
43
|
-
return this._owner.Bones.hasBone(
|
|
44
|
+
return this._owner.Bones.hasBone("wheel_rf");
|
|
44
45
|
case VehicleWheelIndex.MidLeftWheel:
|
|
45
|
-
return this._owner.Bones.hasBone(
|
|
46
|
+
return this._owner.Bones.hasBone("wheel_lm");
|
|
46
47
|
case VehicleWheelIndex.MidRightWheel:
|
|
47
|
-
return this._owner.Bones.hasBone(
|
|
48
|
+
return this._owner.Bones.hasBone("wheel_rm");
|
|
48
49
|
case VehicleWheelIndex.RearLeftWheel:
|
|
49
|
-
return this._owner.Bones.hasBone(
|
|
50
|
+
return this._owner.Bones.hasBone("wheel_lr");
|
|
50
51
|
case VehicleWheelIndex.RearRightWheel:
|
|
51
|
-
return this._owner.Bones.hasBone(
|
|
52
|
+
return this._owner.Bones.hasBone("wheel_rr");
|
|
52
53
|
default:
|
|
53
54
|
return false;
|
|
54
55
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Vehicle } from
|
|
2
|
-
import { VehicleWindowIndex } from
|
|
3
|
-
import { VehicleWindow } from
|
|
1
|
+
import { Vehicle } from "./Vehicle";
|
|
2
|
+
import { VehicleWindowIndex } from "../enums";
|
|
3
|
+
import { VehicleWindow } from "./VehicleWindow";
|
|
4
4
|
export declare class VehicleWindowCollection {
|
|
5
5
|
private _owner;
|
|
6
6
|
private readonly _vehicleWindows;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { VehicleWindowIndex } from
|
|
2
|
-
import { VehicleWindow } from
|
|
1
|
+
import { VehicleWindowIndex } from "../enums";
|
|
2
|
+
import { VehicleWindow } from "./VehicleWindow";
|
|
3
3
|
export class VehicleWindowCollection {
|
|
4
|
+
_owner;
|
|
5
|
+
_vehicleWindows = new Map();
|
|
4
6
|
constructor(owner) {
|
|
5
|
-
this._vehicleWindows = new Map();
|
|
6
7
|
this._owner = owner;
|
|
7
8
|
}
|
|
8
9
|
getWindow(index) {
|
|
@@ -16,39 +17,39 @@ export class VehicleWindowCollection {
|
|
|
16
17
|
}
|
|
17
18
|
getAllWindows() {
|
|
18
19
|
return Object.keys(VehicleWindowIndex)
|
|
19
|
-
.filter(key => !isNaN(Number(key)))
|
|
20
|
-
.map(key => {
|
|
20
|
+
.filter((key) => !isNaN(Number(key)))
|
|
21
|
+
.map((key) => {
|
|
21
22
|
const index = Number(key);
|
|
22
23
|
if (this.hasWindow(index)) {
|
|
23
24
|
return this.getWindow(index);
|
|
24
25
|
}
|
|
25
26
|
return null;
|
|
26
27
|
})
|
|
27
|
-
.filter(w => w);
|
|
28
|
+
.filter((w) => w);
|
|
28
29
|
}
|
|
29
30
|
get AreAllWindowsIntact() {
|
|
30
31
|
return AreAllVehicleWindowsIntact(this._owner.Handle);
|
|
31
32
|
}
|
|
32
33
|
rollDownAllWindows() {
|
|
33
|
-
this.getAllWindows().forEach(window => {
|
|
34
|
+
this.getAllWindows().forEach((window) => {
|
|
34
35
|
window?.rollDown();
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
38
|
rollUpAllWindows() {
|
|
38
|
-
this.getAllWindows().forEach(window => {
|
|
39
|
+
this.getAllWindows().forEach((window) => {
|
|
39
40
|
window?.rollUp();
|
|
40
41
|
});
|
|
41
42
|
}
|
|
42
43
|
hasWindow(window) {
|
|
43
44
|
switch (window) {
|
|
44
45
|
case VehicleWindowIndex.FrontLeftWindow:
|
|
45
|
-
return this._owner.Bones.hasBone(
|
|
46
|
+
return this._owner.Bones.hasBone("window_lf");
|
|
46
47
|
case VehicleWindowIndex.FrontRightWindow:
|
|
47
|
-
return this._owner.Bones.hasBone(
|
|
48
|
+
return this._owner.Bones.hasBone("window_rf");
|
|
48
49
|
case VehicleWindowIndex.BackLeftWindow:
|
|
49
|
-
return this._owner.Bones.hasBone(
|
|
50
|
+
return this._owner.Bones.hasBone("window_lr");
|
|
50
51
|
case VehicleWindowIndex.BackRightWindow:
|
|
51
|
-
return this._owner.Bones.hasBone(
|
|
52
|
+
return this._owner.Bones.hasBone("window_rr");
|
|
52
53
|
default:
|
|
53
54
|
return false;
|
|
54
55
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { BaseEntity } from "./BaseEntity";
|
|
2
|
+
export { EntityBone } from "./EntityBone";
|
|
3
|
+
export { EntityBoneCollection } from "./EntityBoneCollection";
|
|
4
|
+
export { Ped } from "./Ped";
|
|
5
|
+
export { PedBone } from "./PedBone";
|
|
6
|
+
export { PedBoneCollection } from "./PedBoneCollection";
|
|
7
|
+
export { Player } from "./Player";
|
|
8
|
+
export { Prop } from "./Prop";
|
|
9
|
+
export { Vehicle } from "./Vehicle";
|
|
10
|
+
export { VehicleDoor } from "./VehicleDoor";
|
|
11
|
+
export { VehicleDoorCollection } from "./VehicleDoorCollection";
|
|
12
|
+
export { VehicleMod } from "./VehicleMod";
|
|
13
|
+
export { VehicleToggleMod } from "./VehicleToggleMod";
|
|
14
|
+
export { VehicleModCollection } from "./VehicleModCollection";
|
|
15
|
+
export { VehicleWheel } from "./VehicleWheel";
|
|
16
|
+
export { VehicleWheelCollection } from "./VehicleWheelCollection";
|
|
17
|
+
export { VehicleWindow } from "./VehicleWindow";
|
|
18
|
+
export { VehicleWindowCollection } from "./VehicleWindowCollection";
|
package/models/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { BaseEntity } from "./BaseEntity";
|
|
2
|
+
// export { Entity } from './Entity';
|
|
3
|
+
export { EntityBone } from "./EntityBone";
|
|
4
|
+
export { EntityBoneCollection } from "./EntityBoneCollection";
|
|
5
|
+
export { Ped } from "./Ped";
|
|
6
|
+
export { PedBone } from "./PedBone";
|
|
7
|
+
export { PedBoneCollection } from "./PedBoneCollection";
|
|
8
|
+
export { Player } from "./Player";
|
|
9
|
+
export { Prop } from "./Prop";
|
|
10
|
+
export { Vehicle } from "./Vehicle";
|
|
11
|
+
export { VehicleDoor } from "./VehicleDoor";
|
|
12
|
+
export { VehicleDoorCollection } from "./VehicleDoorCollection";
|
|
13
|
+
export { VehicleMod } from "./VehicleMod";
|
|
14
|
+
export { VehicleToggleMod } from "./VehicleToggleMod";
|
|
15
|
+
export { VehicleModCollection } from "./VehicleModCollection";
|
|
16
|
+
export { VehicleWheel } from "./VehicleWheel";
|
|
17
|
+
export { VehicleWheelCollection } from "./VehicleWheelCollection";
|
|
18
|
+
export { VehicleWindow } from "./VehicleWindow";
|
|
19
|
+
export { VehicleWindowCollection } from "./VehicleWindowCollection";
|
package/package.json
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nativewrappers/fivem",
|
|
3
|
-
"description": "
|
|
3
|
+
"description": "Native wrappers and utilities for use with FiveM.",
|
|
4
4
|
"author": "Remco Troost <d0p3t>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "0.0.
|
|
8
|
-
"publishConfig": {
|
|
9
|
-
"directory": "lib"
|
|
10
|
-
},
|
|
11
|
-
"exports": {
|
|
12
|
-
".": "./common/index.js",
|
|
13
|
-
"./server": "./server/index.js",
|
|
14
|
-
"./client": "./client/index.js"
|
|
15
|
-
},
|
|
7
|
+
"version": "0.0.44",
|
|
16
8
|
"repository": {
|
|
17
9
|
"type": "git",
|
|
18
10
|
"url": "https://github.com/nativewrappers/fivem.git"
|
|
@@ -32,26 +24,10 @@
|
|
|
32
24
|
"./**/*.js",
|
|
33
25
|
"./**/*.d.ts"
|
|
34
26
|
],
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"@citizenfx/server": "^2.0.7604-1",
|
|
38
|
-
"@types/node": "^16.18.103",
|
|
39
|
-
"buffer": "^6.0.3",
|
|
40
|
-
"prettier": "^3.3.3",
|
|
41
|
-
"prettier-linter-helpers": "^1.0.0",
|
|
42
|
-
"tsc-alias": "^1.8.10",
|
|
43
|
-
"typedoc": "^0.26.5",
|
|
44
|
-
"typedoc-fivemjs-theme": "^0.2.7",
|
|
45
|
-
"typedoc-plugin-markdown": "^4.2.1",
|
|
46
|
-
"typescript": "^5.5.3"
|
|
27
|
+
"exports": {
|
|
28
|
+
".": "./index.js"
|
|
47
29
|
},
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"build": "pnpm run delete && tsc --build && tsc-alias && pnpm run copy-data",
|
|
51
|
-
"copy-data": "cp package.json lib/package.json && cp README.md lib/README.md",
|
|
52
|
-
"watch": "tsc --watch",
|
|
53
|
-
"ci": "pnpm run prettier && pnpm run build && pnpm typedoc",
|
|
54
|
-
"prettier": "prettier */**/*.ts --check",
|
|
55
|
-
"prettier-fix": "prettier */**/*.ts --write"
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@nativewrappers/common": "0.0.44"
|
|
56
32
|
}
|
|
57
33
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Size } from
|
|
2
|
-
import { Screen } from
|
|
1
|
+
import { Size } from "../utils";
|
|
2
|
+
import { Screen } from "./";
|
|
3
3
|
export class Container {
|
|
4
|
+
pos;
|
|
5
|
+
size;
|
|
6
|
+
color;
|
|
7
|
+
items = [];
|
|
4
8
|
constructor(pos, size, color) {
|
|
5
|
-
this.items = [];
|
|
6
9
|
this.pos = pos;
|
|
7
10
|
this.size = size;
|
|
8
11
|
this.color = color;
|
package/ui/Effects.js
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export class Effects {
|
|
2
|
+
static start(effectName, duration = 0, looped = false) {
|
|
3
|
+
StartScreenEffect(this.effectToString(effectName), duration, looped);
|
|
4
|
+
}
|
|
5
|
+
static stop(screenEffect) {
|
|
6
|
+
if (typeof screenEffect === "undefined") {
|
|
7
|
+
StopAllScreenEffects();
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
StopScreenEffect(this.effectToString(screenEffect));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
static isActive(screenEffect) {
|
|
14
|
+
return GetScreenEffectIsActive(this.effectToString(screenEffect));
|
|
15
|
+
}
|
|
16
|
+
static effects = [
|
|
17
|
+
"SwitchHUDIn",
|
|
18
|
+
"SwitchHUDOut",
|
|
19
|
+
"FocusIn",
|
|
20
|
+
"FocusOut",
|
|
21
|
+
"MinigameEndNeutral",
|
|
22
|
+
"MinigameEndTrevor",
|
|
23
|
+
"MinigameEndFranklin",
|
|
24
|
+
"MinigameEndMichael",
|
|
25
|
+
"MinigameTransitionOut",
|
|
26
|
+
"MinigameTransitionIn",
|
|
27
|
+
"SwitchShortNeutralIn",
|
|
28
|
+
"SwitchShortFranklinIn",
|
|
29
|
+
"SwitchShortTrevorIn",
|
|
30
|
+
"SwitchShortMichaelIn",
|
|
31
|
+
"SwitchOpenMichaelIn",
|
|
32
|
+
"SwitchOpenFranklinIn",
|
|
33
|
+
"SwitchOpenTrevorIn",
|
|
34
|
+
"SwitchHUDMichaelOut",
|
|
35
|
+
"SwitchHUDFranklinOut",
|
|
36
|
+
"SwitchHUDTrevorOut",
|
|
37
|
+
"SwitchShortFranklinMid",
|
|
38
|
+
"SwitchShortMichaelMid",
|
|
39
|
+
"SwitchShortTrevorMid",
|
|
40
|
+
"DeathFailOut",
|
|
41
|
+
"CamPushInNeutral",
|
|
42
|
+
"CamPushInFranklin",
|
|
43
|
+
"CamPushInMichael",
|
|
44
|
+
"CamPushInTrevor",
|
|
45
|
+
"SwitchSceneFranklin",
|
|
46
|
+
"SwitchSceneTrevor",
|
|
47
|
+
"SwitchSceneMichael",
|
|
48
|
+
"SwitchSceneNeutral",
|
|
49
|
+
"MP_Celeb_Win",
|
|
50
|
+
"MP_Celeb_Win_Out",
|
|
51
|
+
"MP_Celeb_Lose",
|
|
52
|
+
"MP_Celeb_Lose_Out",
|
|
53
|
+
"DeathFailNeutralIn",
|
|
54
|
+
"DeathFailMPDark",
|
|
55
|
+
"DeathFailMPIn",
|
|
56
|
+
"MP_Celeb_Preload_Fade",
|
|
57
|
+
"PeyoteEndOut",
|
|
58
|
+
"PeyoteEndIn",
|
|
59
|
+
"PeyoteIn",
|
|
60
|
+
"PeyoteOut",
|
|
61
|
+
"MP_race_crash",
|
|
62
|
+
"SuccessFranklin",
|
|
63
|
+
"SuccessTrevor",
|
|
64
|
+
"SuccessMichael",
|
|
65
|
+
"DrugsMichaelAliensFightIn",
|
|
66
|
+
"DrugsMichaelAliensFight",
|
|
67
|
+
"DrugsMichaelAliensFightOut",
|
|
68
|
+
"DrugsTrevorClownsFightIn",
|
|
69
|
+
"DrugsTrevorClownsFight",
|
|
70
|
+
"DrugsTrevorClownsFightOut",
|
|
71
|
+
"HeistCelebPass",
|
|
72
|
+
"HeistCelebPassBW",
|
|
73
|
+
"HeistCelebEnd",
|
|
74
|
+
"HeistCelebToast",
|
|
75
|
+
"MenuMGHeistIn",
|
|
76
|
+
"MenuMGTournamentIn",
|
|
77
|
+
"MenuMGSelectionIn",
|
|
78
|
+
"ChopVision",
|
|
79
|
+
"DMT_flight_intro",
|
|
80
|
+
"DMT_flight",
|
|
81
|
+
"DrugsDrivingIn",
|
|
82
|
+
"DrugsDrivingOut",
|
|
83
|
+
"SwitchOpenNeutralFIB5",
|
|
84
|
+
"HeistLocate",
|
|
85
|
+
"MP_job_load",
|
|
86
|
+
"RaceTurbo",
|
|
87
|
+
"MP_intro_logo",
|
|
88
|
+
"HeistTripSkipFade",
|
|
89
|
+
"MenuMGHeistOut",
|
|
90
|
+
"MP_corona_switch",
|
|
91
|
+
"MenuMGSelectionTint",
|
|
92
|
+
"SuccessNeutral",
|
|
93
|
+
"ExplosionJosh3",
|
|
94
|
+
"SniperOverlay",
|
|
95
|
+
"RampageOut",
|
|
96
|
+
"Rampage",
|
|
97
|
+
"Dont_tazeme_bro",
|
|
98
|
+
];
|
|
99
|
+
static effectToString(screenEffect) {
|
|
100
|
+
const effect = Number(screenEffect);
|
|
101
|
+
if (effect >= 0 && effect <= this.effects.length) {
|
|
102
|
+
return this.effects[effect];
|
|
103
|
+
}
|
|
104
|
+
return "INVALID";
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -40,7 +40,7 @@ export class Fading {
|
|
|
40
40
|
* @param duration Time to fade in
|
|
41
41
|
*/
|
|
42
42
|
static fadeIn(duration) {
|
|
43
|
-
return new Promise(resolve => {
|
|
43
|
+
return new Promise((resolve) => {
|
|
44
44
|
DoScreenFadeIn(duration);
|
|
45
45
|
const interval = setInterval(() => {
|
|
46
46
|
if (this.IsFadedIn) {
|
|
@@ -56,7 +56,7 @@ export class Fading {
|
|
|
56
56
|
* @param duration Time to fade out
|
|
57
57
|
*/
|
|
58
58
|
static fadeOut(duration) {
|
|
59
|
-
return new Promise(resolve => {
|
|
59
|
+
return new Promise((resolve) => {
|
|
60
60
|
DoScreenFadeOut(duration);
|
|
61
61
|
const interval = setInterval(() => {
|
|
62
62
|
if (this.IsFadedOut) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CursorSprite, HudComponent } from
|
|
2
|
-
import { Point } from
|
|
1
|
+
import { CursorSprite, HudComponent } from "../enums";
|
|
2
|
+
import { Point } from "../utils";
|
|
3
3
|
export declare abstract class Hud {
|
|
4
4
|
static isComponentActive(component: HudComponent): boolean;
|
|
5
5
|
static showComponentThisFrame(component: HudComponent): void;
|
package/{client/ui → ui}/Hud.js
RENAMED