@nativewrappers/fivem 0.0.42 → 0.0.45
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} +4 -2
- package/{client/Model.js → Model.js} +19 -5
- 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,135 +0,0 @@
|
|
|
1
|
-
import cfx from '../cfx';
|
|
2
|
-
import { ClassTypes } from '../../common/utils/ClassTypes';
|
|
3
|
-
import { cleanPlayerName } from '../utils';
|
|
4
|
-
import { Vector3 } from '../utils';
|
|
5
|
-
import { Ped } from './Ped';
|
|
6
|
-
export class Player {
|
|
7
|
-
constructor(source) {
|
|
8
|
-
this.source = source;
|
|
9
|
-
this.type = ClassTypes.Player;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Get an interable list of players currently on the server
|
|
13
|
-
* @returns Iterable list of Players.
|
|
14
|
-
*/
|
|
15
|
-
static *AllPlayers() {
|
|
16
|
-
const num = GetNumPlayerIndices();
|
|
17
|
-
for (let i = 0; i < num; i++) {
|
|
18
|
-
yield new Player(parseInt(GetPlayerFromIndex(i)));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
get Exists() {
|
|
22
|
-
return this.source !== 0;
|
|
23
|
-
}
|
|
24
|
-
get Source() {
|
|
25
|
-
return this.source;
|
|
26
|
-
}
|
|
27
|
-
get State() {
|
|
28
|
-
return cfx.Player(this.source).state;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Returns the player source casted as a string
|
|
32
|
-
*/
|
|
33
|
-
get Src() {
|
|
34
|
-
return this.source;
|
|
35
|
-
}
|
|
36
|
-
get Ped() {
|
|
37
|
-
return new Ped(GetPlayerPed(this.Src));
|
|
38
|
-
}
|
|
39
|
-
get Tokens() {
|
|
40
|
-
return getPlayerTokens(this.source);
|
|
41
|
-
}
|
|
42
|
-
get Identifiers() {
|
|
43
|
-
return getPlayerIdentifiers(this.source);
|
|
44
|
-
}
|
|
45
|
-
get Endpoint() {
|
|
46
|
-
return GetPlayerEndpoint(this.Src);
|
|
47
|
-
}
|
|
48
|
-
get CamerRotation() {
|
|
49
|
-
return Vector3.fromArray(GetPlayerCameraRotation(this.Src));
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Returns the time since the last player UDP message
|
|
53
|
-
*/
|
|
54
|
-
get LastMessage() {
|
|
55
|
-
return GetPlayerLastMsg(this.Src);
|
|
56
|
-
}
|
|
57
|
-
get MaxArmour() {
|
|
58
|
-
return GetPlayerMaxArmour(this.Src);
|
|
59
|
-
}
|
|
60
|
-
get MaxHealth() {
|
|
61
|
-
return GetPlayerMaxHealth(this.Src);
|
|
62
|
-
}
|
|
63
|
-
get MeleeModifier() {
|
|
64
|
-
return GetPlayerMeleeWeaponDamageModifier(this.Src);
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* @returns the players name
|
|
68
|
-
*/
|
|
69
|
-
get Name() {
|
|
70
|
-
return GetPlayerName(this.Src);
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* @returns the players name with any color code unicode, etc removed, this can lead to there being no name at all
|
|
74
|
-
*/
|
|
75
|
-
filteredName() {
|
|
76
|
-
return cleanPlayerName(this.Name);
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* @returns the players round trip ping
|
|
80
|
-
*/
|
|
81
|
-
get Ping() {
|
|
82
|
-
return GetPlayerPing(this.Src);
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* @returns the current routhing bucket the player is in, default is 0
|
|
86
|
-
*/
|
|
87
|
-
get RoutingBucket() {
|
|
88
|
-
return GetPlayerRoutingBucket(this.Src);
|
|
89
|
-
}
|
|
90
|
-
get Team() {
|
|
91
|
-
return GetPlayerTeam(this.Src);
|
|
92
|
-
}
|
|
93
|
-
get WantedPosition() {
|
|
94
|
-
return Vector3.fromArray(GetPlayerWantedCentrePosition(this.Src));
|
|
95
|
-
}
|
|
96
|
-
get WantedLevel() {
|
|
97
|
-
return GetPlayerWantedLevel(this.Src);
|
|
98
|
-
}
|
|
99
|
-
get IsEvadingWanted() {
|
|
100
|
-
return IsPlayerEvadingWantedLevel(this.Src);
|
|
101
|
-
}
|
|
102
|
-
get WeaponDamageModifier() {
|
|
103
|
-
return GetPlayerWeaponDamageModifier(this.Src);
|
|
104
|
-
}
|
|
105
|
-
get WeaponDefenseModifier() {
|
|
106
|
-
return GetPlayerWeaponDefenseModifier(this.Src);
|
|
107
|
-
}
|
|
108
|
-
get WeaponDefenseModifier2() {
|
|
109
|
-
return GetPlayerWeaponDefenseModifier_2(this.Src);
|
|
110
|
-
}
|
|
111
|
-
get AirDragMultiplier() {
|
|
112
|
-
return GetAirDragMultiplierForPlayersVehicle(this.Src);
|
|
113
|
-
}
|
|
114
|
-
get IsUsingSuperJump() {
|
|
115
|
-
return IsPlayerUsingSuperJump(this.Src);
|
|
116
|
-
}
|
|
117
|
-
get IsMuted() {
|
|
118
|
-
return MumbleIsPlayerMuted(this.source);
|
|
119
|
-
}
|
|
120
|
-
set IsMuted(isMuted) {
|
|
121
|
-
MumbleSetPlayerMuted(this.source, isMuted);
|
|
122
|
-
}
|
|
123
|
-
isAceAllowed(object) {
|
|
124
|
-
return IsPlayerAceAllowed(this.Src, object);
|
|
125
|
-
}
|
|
126
|
-
timeInPersuit(lastPursuit = false) {
|
|
127
|
-
return GetPlayerTimeInPursuit(this.Src, lastPursuit);
|
|
128
|
-
}
|
|
129
|
-
drop(reason = 'No reason specified') {
|
|
130
|
-
DropPlayer(this.Src, reason);
|
|
131
|
-
}
|
|
132
|
-
emit(eventName, ...args) {
|
|
133
|
-
TriggerClientEvent(eventName, this.source, ...args);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ClassTypes } from '../../common/utils/ClassTypes';
|
|
2
|
-
import { BaseEntity } from './BaseEntity';
|
|
3
|
-
export declare class Prop extends BaseEntity {
|
|
4
|
-
protected type: ClassTypes;
|
|
5
|
-
constructor(handle: number);
|
|
6
|
-
/**
|
|
7
|
-
* Get an interable list of props currently on the server
|
|
8
|
-
* @returns Iterable list of Props.
|
|
9
|
-
*/
|
|
10
|
-
static AllProps(): IterableIterator<Prop>;
|
|
11
|
-
static fromNetworkId(networkId: number): Prop | null;
|
|
12
|
-
static fromStateBagName(stateBagName: string): Prop | null;
|
|
13
|
-
static fromHandle(handle: number): Prop;
|
|
14
|
-
}
|
package/server/entities/Prop.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ClassTypes } from '../../common/utils/ClassTypes';
|
|
2
|
-
import { BaseEntity } from './BaseEntity';
|
|
3
|
-
export class Prop extends BaseEntity {
|
|
4
|
-
constructor(handle) {
|
|
5
|
-
super(handle);
|
|
6
|
-
this.type = ClassTypes.Prop;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Get an interable list of props currently on the server
|
|
10
|
-
* @returns Iterable list of Props.
|
|
11
|
-
*/
|
|
12
|
-
static *AllProps() {
|
|
13
|
-
for (const prop of GetAllObjects()) {
|
|
14
|
-
yield new Prop(prop);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
static fromNetworkId(networkId) {
|
|
18
|
-
const ent = NetworkGetEntityFromNetworkId(networkId);
|
|
19
|
-
if (ent === 0)
|
|
20
|
-
return null;
|
|
21
|
-
return new Prop(ent);
|
|
22
|
-
}
|
|
23
|
-
static fromStateBagName(stateBagName) {
|
|
24
|
-
const ent = GetEntityFromStateBagName(stateBagName);
|
|
25
|
-
if (ent === 0)
|
|
26
|
-
return null;
|
|
27
|
-
return new Prop(ent);
|
|
28
|
-
}
|
|
29
|
-
static fromHandle(handle) {
|
|
30
|
-
return new Prop(handle);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { ClassTypes } from '../../common/utils/ClassTypes';
|
|
2
|
-
import { VehicleLockStatus } from '../enum/VehicleLockStatus';
|
|
3
|
-
import { VehicleType } from '../enum/VehicleType';
|
|
4
|
-
import { Hash } from '../type/Hash';
|
|
5
|
-
import { Color } from '../utils';
|
|
6
|
-
import { BaseEntity } from './BaseEntity';
|
|
7
|
-
export declare class Vehicle extends BaseEntity {
|
|
8
|
-
protected type: ClassTypes;
|
|
9
|
-
constructor(handle: number);
|
|
10
|
-
/**
|
|
11
|
-
* Get an interable list of vehicles currently on the server
|
|
12
|
-
* @returns Iterable list of Vehicles.
|
|
13
|
-
*/
|
|
14
|
-
static AllVehicles(): IterableIterator<Vehicle>;
|
|
15
|
-
static fromNetworkId(networkId: number): Vehicle | null;
|
|
16
|
-
static fromStateBagName(stateBageName: string): Vehicle | null;
|
|
17
|
-
get IsEngineRunning(): boolean;
|
|
18
|
-
get IsPrimaryColourCustom(): boolean;
|
|
19
|
-
get IsSecondaryColourCustom(): boolean;
|
|
20
|
-
get BodyHealth(): number;
|
|
21
|
-
get VehicleColours(): [number, number];
|
|
22
|
-
get CustomPrimaryColour(): Color;
|
|
23
|
-
get CustomSecondaryColour(): Color;
|
|
24
|
-
get DashboardColour(): number;
|
|
25
|
-
get DirtLevel(): number;
|
|
26
|
-
get LockStatus(): VehicleLockStatus;
|
|
27
|
-
get DoorStatus(): number;
|
|
28
|
-
get DoorsLockedForPlayer(): number;
|
|
29
|
-
get EngineHealth(): number;
|
|
30
|
-
get ExtraColours(): [number, number];
|
|
31
|
-
get FlightNozzlePosition(): number;
|
|
32
|
-
get Handbrake(): boolean;
|
|
33
|
-
get HeadlightsColour(): number;
|
|
34
|
-
get HomingLockonState(): number;
|
|
35
|
-
get InteriorColour(): number;
|
|
36
|
-
get LightsState(): [boolean, boolean];
|
|
37
|
-
get Livery(): number;
|
|
38
|
-
get LockOnTarget(): Vehicle;
|
|
39
|
-
get Plate(): string;
|
|
40
|
-
get PlateTrimmed(): string;
|
|
41
|
-
get PlateIndex(): number;
|
|
42
|
-
get PetrolTankHealth(): number;
|
|
43
|
-
get RadioStation(): number;
|
|
44
|
-
get RoofLivery(): number;
|
|
45
|
-
get SteeringAngle(): number;
|
|
46
|
-
get VehicleType(): VehicleType;
|
|
47
|
-
get TyreSmokeColour(): Color;
|
|
48
|
-
get WheelType(): number;
|
|
49
|
-
get WindowTint(): number;
|
|
50
|
-
get HasBeenOwnedByPlayer(): boolean;
|
|
51
|
-
get IsEngineStarting(): boolean;
|
|
52
|
-
get IsSirenOn(): boolean;
|
|
53
|
-
get MaxHealth(): number;
|
|
54
|
-
get ScriptTaskCommand(): Hash;
|
|
55
|
-
get ScriptTaskStage(): Hash;
|
|
56
|
-
get MainRotorHealth(): number;
|
|
57
|
-
get TailRotorHealth(): number;
|
|
58
|
-
/**
|
|
59
|
-
* This might supposed to be TrainEngineHealth?
|
|
60
|
-
*/
|
|
61
|
-
get TrainCarriageEngine(): number;
|
|
62
|
-
get TrainCarriageIndex(): number;
|
|
63
|
-
isTyreBurst(wheelId: number, completely: boolean): boolean;
|
|
64
|
-
isExtraTurnedOn(extraId: number): boolean;
|
|
65
|
-
getPedInSeat(seatIndex: number): number;
|
|
66
|
-
getLastPedInSeat(seatIndex: number): number;
|
|
67
|
-
}
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { ClassTypes } from '../../common/utils/ClassTypes';
|
|
2
|
-
import { Color } from '../utils';
|
|
3
|
-
import { BaseEntity } from './BaseEntity';
|
|
4
|
-
export class Vehicle extends BaseEntity {
|
|
5
|
-
constructor(handle) {
|
|
6
|
-
super(handle);
|
|
7
|
-
this.type = ClassTypes.Vehicle;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get an interable list of vehicles currently on the server
|
|
11
|
-
* @returns Iterable list of Vehicles.
|
|
12
|
-
*/
|
|
13
|
-
static *AllVehicles() {
|
|
14
|
-
for (const veh of GetAllVehicles()) {
|
|
15
|
-
yield new Vehicle(veh);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
static fromNetworkId(networkId) {
|
|
19
|
-
const ent = NetworkGetEntityFromNetworkId(networkId);
|
|
20
|
-
if (ent === 0)
|
|
21
|
-
return null;
|
|
22
|
-
return new Vehicle(ent);
|
|
23
|
-
}
|
|
24
|
-
static fromStateBagName(stateBageName) {
|
|
25
|
-
const ent = GetEntityFromStateBagName(stateBageName);
|
|
26
|
-
if (ent === 0)
|
|
27
|
-
return null;
|
|
28
|
-
return new Vehicle(ent);
|
|
29
|
-
}
|
|
30
|
-
get IsEngineRunning() {
|
|
31
|
-
return GetIsVehicleEngineRunning(this.handle);
|
|
32
|
-
}
|
|
33
|
-
get IsPrimaryColourCustom() {
|
|
34
|
-
return GetIsVehiclePrimaryColourCustom(this.handle);
|
|
35
|
-
}
|
|
36
|
-
get IsSecondaryColourCustom() {
|
|
37
|
-
return GetIsVehicleSecondaryColourCustom(this.handle);
|
|
38
|
-
}
|
|
39
|
-
get BodyHealth() {
|
|
40
|
-
return GetVehicleBodyHealth(this.handle);
|
|
41
|
-
}
|
|
42
|
-
get VehicleColours() {
|
|
43
|
-
return GetVehicleColours(this.handle);
|
|
44
|
-
}
|
|
45
|
-
get CustomPrimaryColour() {
|
|
46
|
-
return Color.fromArray(GetVehicleCustomPrimaryColour(this.handle));
|
|
47
|
-
}
|
|
48
|
-
get CustomSecondaryColour() {
|
|
49
|
-
return Color.fromArray(GetVehicleCustomSecondaryColour(this.handle));
|
|
50
|
-
}
|
|
51
|
-
get DashboardColour() {
|
|
52
|
-
return GetVehicleDashboardColour(this.handle);
|
|
53
|
-
}
|
|
54
|
-
get DirtLevel() {
|
|
55
|
-
return GetVehicleDirtLevel(this.handle);
|
|
56
|
-
}
|
|
57
|
-
get LockStatus() {
|
|
58
|
-
return GetVehicleDoorLockStatus(this.handle);
|
|
59
|
-
}
|
|
60
|
-
get DoorStatus() {
|
|
61
|
-
return GetVehicleDoorStatus(this.handle);
|
|
62
|
-
}
|
|
63
|
-
get DoorsLockedForPlayer() {
|
|
64
|
-
return GetVehicleDoorsLockedForPlayer(this.handle);
|
|
65
|
-
}
|
|
66
|
-
get EngineHealth() {
|
|
67
|
-
return GetVehicleEngineHealth(this.handle);
|
|
68
|
-
}
|
|
69
|
-
get ExtraColours() {
|
|
70
|
-
return GetVehicleExtraColours(this.handle);
|
|
71
|
-
}
|
|
72
|
-
get FlightNozzlePosition() {
|
|
73
|
-
return GetVehicleFlightNozzlePosition(this.handle);
|
|
74
|
-
}
|
|
75
|
-
get Handbrake() {
|
|
76
|
-
return GetVehicleHandbrake(this.handle);
|
|
77
|
-
}
|
|
78
|
-
get HeadlightsColour() {
|
|
79
|
-
return GetVehicleHeadlightsColour(this.handle);
|
|
80
|
-
}
|
|
81
|
-
get HomingLockonState() {
|
|
82
|
-
return GetVehicleHomingLockonState(this.handle);
|
|
83
|
-
}
|
|
84
|
-
get InteriorColour() {
|
|
85
|
-
return GetVehicleInteriorColour(this.handle);
|
|
86
|
-
}
|
|
87
|
-
get LightsState() {
|
|
88
|
-
const [_, lightsOn, highbeansOn] = GetVehicleLightsState(this.handle);
|
|
89
|
-
return [lightsOn, highbeansOn];
|
|
90
|
-
}
|
|
91
|
-
get Livery() {
|
|
92
|
-
return GetVehicleLivery(this.handle);
|
|
93
|
-
}
|
|
94
|
-
get LockOnTarget() {
|
|
95
|
-
return new Vehicle(GetVehicleLockOnTarget(this.handle));
|
|
96
|
-
}
|
|
97
|
-
get Plate() {
|
|
98
|
-
return GetVehicleNumberPlateText(this.handle);
|
|
99
|
-
}
|
|
100
|
-
get PlateTrimmed() {
|
|
101
|
-
return this.Plate.trim();
|
|
102
|
-
}
|
|
103
|
-
get PlateIndex() {
|
|
104
|
-
return GetVehicleNumberPlateTextIndex(this.handle);
|
|
105
|
-
}
|
|
106
|
-
get PetrolTankHealth() {
|
|
107
|
-
return GetVehiclePetrolTankHealth(this.handle);
|
|
108
|
-
}
|
|
109
|
-
get RadioStation() {
|
|
110
|
-
return GetVehicleRadioStationIndex(this.handle);
|
|
111
|
-
}
|
|
112
|
-
get RoofLivery() {
|
|
113
|
-
return GetVehicleRoofLivery(this.handle);
|
|
114
|
-
}
|
|
115
|
-
get SteeringAngle() {
|
|
116
|
-
return GetVehicleSteeringAngle(this.handle);
|
|
117
|
-
}
|
|
118
|
-
get VehicleType() {
|
|
119
|
-
return GetVehicleType(this.handle);
|
|
120
|
-
}
|
|
121
|
-
get TyreSmokeColour() {
|
|
122
|
-
return Color.fromArray(GetVehicleTyreSmokeColor(this.handle));
|
|
123
|
-
}
|
|
124
|
-
get WheelType() {
|
|
125
|
-
return GetVehicleWheelType(this.handle);
|
|
126
|
-
}
|
|
127
|
-
get WindowTint() {
|
|
128
|
-
return GetVehicleWindowTint(this.handle);
|
|
129
|
-
}
|
|
130
|
-
get HasBeenOwnedByPlayer() {
|
|
131
|
-
return HasVehicleBeenOwnedByPlayer(this.handle);
|
|
132
|
-
}
|
|
133
|
-
get IsEngineStarting() {
|
|
134
|
-
return IsVehicleEngineStarting(this.handle);
|
|
135
|
-
}
|
|
136
|
-
get IsSirenOn() {
|
|
137
|
-
return IsVehicleSirenOn(this.handle);
|
|
138
|
-
}
|
|
139
|
-
get MaxHealth() {
|
|
140
|
-
return GetEntityMaxHealth(this.handle);
|
|
141
|
-
}
|
|
142
|
-
get ScriptTaskCommand() {
|
|
143
|
-
return GetPedScriptTaskCommand(this.handle);
|
|
144
|
-
}
|
|
145
|
-
get ScriptTaskStage() {
|
|
146
|
-
return GetPedScriptTaskStage(this.handle);
|
|
147
|
-
}
|
|
148
|
-
get MainRotorHealth() {
|
|
149
|
-
return GetHeliMainRotorHealth(this.handle);
|
|
150
|
-
}
|
|
151
|
-
get TailRotorHealth() {
|
|
152
|
-
return GetHeliTailRotorHealth(this.handle);
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* This might supposed to be TrainEngineHealth?
|
|
156
|
-
*/
|
|
157
|
-
get TrainCarriageEngine() {
|
|
158
|
-
return GetTrainCarriageEngine(this.handle);
|
|
159
|
-
}
|
|
160
|
-
get TrainCarriageIndex() {
|
|
161
|
-
return GetTrainCarriageIndex(this.handle);
|
|
162
|
-
}
|
|
163
|
-
isTyreBurst(wheelId, completely) {
|
|
164
|
-
return IsVehicleTyreBurst(this.handle, wheelId, completely);
|
|
165
|
-
}
|
|
166
|
-
isExtraTurnedOn(extraId) {
|
|
167
|
-
return IsVehicleExtraTurnedOn(this.handle, extraId);
|
|
168
|
-
}
|
|
169
|
-
getPedInSeat(seatIndex) {
|
|
170
|
-
return GetPedInVehicleSeat(this.handle, seatIndex);
|
|
171
|
-
}
|
|
172
|
-
getLastPedInSeat(seatIndex) {
|
|
173
|
-
return GetLastPedInVehicleSeat(this.handle, seatIndex);
|
|
174
|
-
}
|
|
175
|
-
}
|
package/server/entities/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export var PopulationType;
|
|
2
|
-
(function (PopulationType) {
|
|
3
|
-
PopulationType[PopulationType["Unknown"] = 0] = "Unknown";
|
|
4
|
-
PopulationType[PopulationType["RandomPermanent"] = 1] = "RandomPermanent";
|
|
5
|
-
PopulationType[PopulationType["RandomParked"] = 2] = "RandomParked";
|
|
6
|
-
PopulationType[PopulationType["Randompatrol"] = 3] = "Randompatrol";
|
|
7
|
-
PopulationType[PopulationType["RandomScenario"] = 4] = "RandomScenario";
|
|
8
|
-
PopulationType[PopulationType["RandomAmbient"] = 5] = "RandomAmbient";
|
|
9
|
-
PopulationType[PopulationType["Permanent"] = 6] = "Permanent";
|
|
10
|
-
PopulationType[PopulationType["Mission"] = 7] = "Mission";
|
|
11
|
-
PopulationType[PopulationType["Replay"] = 8] = "Replay";
|
|
12
|
-
PopulationType[PopulationType["Cache"] = 9] = "Cache";
|
|
13
|
-
PopulationType[PopulationType["Tool"] = 10] = "Tool";
|
|
14
|
-
})(PopulationType || (PopulationType = {}));
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export var VehicleLockStatus;
|
|
2
|
-
(function (VehicleLockStatus) {
|
|
3
|
-
VehicleLockStatus[VehicleLockStatus["None"] = 0] = "None";
|
|
4
|
-
VehicleLockStatus[VehicleLockStatus["Locked"] = 2] = "Locked";
|
|
5
|
-
VehicleLockStatus[VehicleLockStatus["LockedForPlayer"] = 3] = "LockedForPlayer";
|
|
6
|
-
VehicleLockStatus[VehicleLockStatus["StickPlayerInside"] = 4] = "StickPlayerInside";
|
|
7
|
-
VehicleLockStatus[VehicleLockStatus["CanBeBrokenInto"] = 7] = "CanBeBrokenInto";
|
|
8
|
-
VehicleLockStatus[VehicleLockStatus["CanBeBrokenIntoPersist"] = 8] = "CanBeBrokenIntoPersist";
|
|
9
|
-
VehicleLockStatus[VehicleLockStatus["CannotBeTriedToEnter"] = 10] = "CannotBeTriedToEnter";
|
|
10
|
-
})(VehicleLockStatus || (VehicleLockStatus = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export var VehicleType;
|
|
2
|
-
(function (VehicleType) {
|
|
3
|
-
VehicleType["Automobile"] = "automobile";
|
|
4
|
-
VehicleType["Bike"] = "bike";
|
|
5
|
-
VehicleType["Boat"] = "boat";
|
|
6
|
-
VehicleType["Heli"] = "heli";
|
|
7
|
-
VehicleType["Plane"] = "plane";
|
|
8
|
-
VehicleType["Submarine"] = "submarine";
|
|
9
|
-
VehicleType["Trailer"] = "trailer";
|
|
10
|
-
VehicleType["Train"] = "train";
|
|
11
|
-
})(VehicleType || (VehicleType = {}));
|
package/server/enum/index.d.ts
DELETED
package/server/enum/index.js
DELETED
package/server/index.d.ts
DELETED
package/server/index.js
DELETED