@nativewrappers/fivem 0.0.65 → 0.0.73
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/Audio.d.ts +2 -2
- package/Blip.d.ts +2 -2
- package/Camera.d.ts +1 -1
- package/Game.d.ts +1 -1
- package/GameplayCamera.d.ts +1 -1
- package/Model.d.ts +1 -1
- package/ParticleEffect.d.ts +2 -2
- package/ParticleEffectAsset.d.ts +1 -1
- package/README.md +45 -0
- package/Raycast.d.ts +2 -2
- package/RelationshipGroup.d.ts +1 -1
- package/Tasks.d.ts +3 -3
- package/World.d.ts +5 -13
- package/cfx/StateBagChangeHandler.d.ts +1 -3
- package/common/Command.d.ts +30 -0
- package/common/Convar.d.ts +13 -0
- package/common/GlobalData.d.ts +8 -0
- package/common/Kvp.d.ts +69 -0
- package/common/Resource.d.ts +14 -0
- package/common/decors/Events.d.ts +54 -0
- package/common/index.d.ts +8 -0
- package/common/net/NetworkedMap.d.ts +28 -0
- package/common/types.d.ts +5 -0
- package/common/utils/ClassTypes.d.ts +11 -0
- package/common/utils/Color.d.ts +14 -0
- package/common/utils/Maths.d.ts +4 -0
- package/common/utils/PointF.d.ts +7 -0
- package/common/utils/Quaternion.d.ts +10 -0
- package/common/utils/Vector.d.ts +429 -0
- package/common/utils/Vector2.d.ts +1 -0
- package/common/utils/Vector3.d.ts +1 -0
- package/common/utils/Vector4.d.ts +1 -0
- package/common/utils/cleanPlayerName.d.ts +6 -0
- package/common/utils/enumValues.d.ts +12 -0
- package/{utils/getStringFromUInt8Array.js → common/utils/getStringFromUInt8Array.d.ts} +1 -3
- package/{utils/getUInt32FromUint8Array.js → common/utils/getUInt32FromUint8Array.d.ts} +1 -1
- package/common/utils/index.d.ts +12 -0
- package/index.d.ts +1 -1
- package/index.js +18794 -26
- package/interfaces/Dimensions.d.ts +1 -1
- package/models/BaseEntity.d.ts +3 -3
- package/models/Ped.d.ts +4 -15
- package/models/PedBone.d.ts +1 -1
- package/models/PedBoneCollection.d.ts +1 -1
- package/models/Player.d.ts +1 -1
- package/models/Vehicle.d.ts +2 -2
- package/models/VehicleDoor.d.ts +2 -2
- package/models/VehicleDoorCollection.d.ts +1 -1
- package/models/VehicleMod.d.ts +2 -2
- package/models/VehicleModCollection.d.ts +2 -2
- package/models/VehicleToggleMod.d.ts +2 -2
- package/models/VehicleWheel.d.ts +1 -1
- package/models/VehicleWheelCollection.d.ts +1 -1
- package/models/VehicleWindow.d.ts +2 -2
- package/models/VehicleWindowCollection.d.ts +1 -1
- package/package.json +6 -4
- package/ui/Container.d.ts +2 -2
- package/ui/Effects.d.ts +1 -1
- package/ui/Hud.d.ts +2 -2
- package/ui/InstructionalButtons.d.ts +1 -1
- package/ui/Rectangle.d.ts +2 -2
- package/ui/Scaleform.d.ts +1 -1
- package/ui/Screen.d.ts +1 -1
- package/ui/Text.d.ts +1 -1
- package/ui/interfaces/IButton.d.ts +1 -1
- package/ui/interfaces/IDrawable.d.ts +1 -1
- package/ui/menu/items/UIMenuItem.d.ts +1 -1
- package/ui/menu/items/UIMenuListItem.d.ts +1 -1
- package/ui/menu/items/panels/AbstractUIMenuPanel.d.ts +2 -2
- package/ui/menu/items/panels/UIMenuStatisticsPanel.d.ts +1 -1
- package/utils/LiteEvent.d.ts +2 -8
- package/utils/PointF.d.ts +0 -5
- package/utils/String.d.ts +1 -1
- package/utils/index.d.ts +2 -2
- package/weapon/DlcWeaponData.d.ts +1 -1
- package/weapon/Weapon.d.ts +7 -7
- package/weapon/WeaponAsset.d.ts +1 -1
- package/weapon/WeaponCollection.d.ts +2 -2
- package/weaponComponent/DlcWeaponComponentData.d.ts +1 -1
- package/weaponComponent/InvalidWeaponComponent.d.ts +1 -1
- package/weaponComponent/WeaponComponent.d.ts +3 -3
- package/weaponComponent/WeaponComponentCollection.d.ts +3 -3
- package/Audio.js +0 -93
- package/Blip.js +0 -105
- package/Camera.js +0 -162
- package/Checkpoint.js +0 -43
- package/Events.js +0 -74
- package/Game.js +0 -474
- package/GameplayCamera.js +0 -141
- package/Model.js +0 -213
- package/NetworkedScene.js +0 -18
- package/ParticleEffect.js +0 -123
- package/ParticleEffectAsset.js +0 -105
- package/Pickup.js +0 -19
- package/Raycast.js +0 -123
- package/RelationshipGroup.js +0 -67
- package/Rope.js +0 -129
- package/TaskSequence.js +0 -48
- package/Tasks.js +0 -241
- package/World.js +0 -765
- package/cfx/StateBagChangeHandler.js +0 -1
- package/cfx/index.js +0 -1
- package/enums/Alignment.js +0 -6
- package/enums/AnimationFlags.js +0 -35
- package/enums/AudioFlag.js +0 -38
- package/enums/BadgeStyle.js +0 -183
- package/enums/Blip.js +0 -225
- package/enums/Bone.js +0 -103
- package/enums/CameraShake.js +0 -14
- package/enums/CameraTypes.js +0 -8
- package/enums/CheckboxStyle.js +0 -5
- package/enums/Checkpoint.js +0 -67
- package/enums/CloudHat.js +0 -27
- package/enums/Control.js +0 -361
- package/enums/CursorSprite.js +0 -15
- package/enums/Driving.js +0 -34
- package/enums/ExplosionType.js +0 -45
- package/enums/FiringPattern.js +0 -20
- package/enums/Font.js +0 -8
- package/enums/ForceType.js +0 -9
- package/enums/Gender.js +0 -5
- package/enums/HelmetType.js +0 -6
- package/enums/HudColor.js +0 -184
- package/enums/HudComponent.js +0 -54
- package/enums/InputMode.js +0 -5
- package/enums/InvertAxis.js +0 -7
- package/enums/Language.js +0 -15
- package/enums/LeaveVehicleFlags.js +0 -11
- package/enums/LoadingSpinnerType.js +0 -8
- package/enums/MarkerType.js +0 -50
- package/enums/MenuAlignment.js +0 -5
- package/enums/NotificationType.js +0 -11
- package/enums/Parachute.js +0 -15
- package/enums/PickupType.js +0 -74
- package/enums/RadioStation.js +0 -25
- package/enums/RagdollType.js +0 -7
- package/enums/RaycastEnums.js +0 -32
- package/enums/Relationship.js +0 -10
- package/enums/RopeType.js +0 -6
- package/enums/ScreenEffect.js +0 -84
- package/enums/SpeechModifier.js +0 -40
- package/enums/Vehicle.js +0 -376
- package/enums/Weather.js +0 -22
- package/enums/ZoneID.js +0 -95
- package/enums/index.js +0 -42
- package/hashes/MaterialHash.js +0 -217
- package/hashes/PedHash.js +0 -725
- package/hashes/VehicleHash.js +0 -523
- package/hashes/WeaponHash.js +0 -161
- package/hashes/WeatherTypeHash.js +0 -22
- package/hashes/index.js +0 -5
- package/interfaces/Dimensions.js +0 -1
- package/models/BaseEntity.js +0 -477
- package/models/Entity.js +0 -25
- package/models/EntityBone.js +0 -26
- package/models/EntityBoneCollection.js +0 -18
- package/models/Ped.js +0 -692
- package/models/PedBone.js +0 -9
- package/models/PedBoneCollection.js +0 -21
- package/models/Player.js +0 -186
- package/models/Prop.js +0 -26
- package/models/Vehicle.js +0 -576
- package/models/VehicleDoor.js +0 -44
- package/models/VehicleDoorCollection.js +0 -62
- package/models/VehicleMod.js +0 -35
- package/models/VehicleModCollection.js +0 -227
- package/models/VehicleToggleMod.js +0 -29
- package/models/VehicleWheel.js +0 -23
- package/models/VehicleWheelCollection.js +0 -57
- package/models/VehicleWindow.js +0 -35
- package/models/VehicleWindowCollection.js +0 -57
- package/models/index.js +0 -19
- package/ui/Container.js +0 -31
- package/ui/Effects.js +0 -106
- package/ui/Fading.js +0 -69
- package/ui/Hud.js +0 -39
- package/ui/InstructionalButtons.js +0 -54
- package/ui/LoadingPrompt.js +0 -45
- package/ui/Notification.js +0 -9
- package/ui/Rectangle.js +0 -40
- package/ui/Scaleform.js +0 -236
- package/ui/Screen.js +0 -72
- package/ui/Sprite.js +0 -60
- package/ui/Text.js +0 -115
- package/ui/Timerbar.js +0 -248
- package/ui/index.js +0 -15
- package/ui/interfaces/IButton.js +0 -1
- package/ui/interfaces/IDrawable.js +0 -1
- package/ui/interfaces/index.js +0 -1
- package/ui/menu/Menu.js +0 -831
- package/ui/menu/MenuControl.js +0 -12
- package/ui/menu/MenuControls.js +0 -9
- package/ui/menu/MenuSettings.js +0 -54
- package/ui/menu/index.js +0 -6
- package/ui/menu/items/UIMenuCheckboxItem.js +0 -59
- package/ui/menu/items/UIMenuItem.js +0 -1111
- package/ui/menu/items/UIMenuListItem.js +0 -119
- package/ui/menu/items/UIMenuSeparatorItem.js +0 -29
- package/ui/menu/items/UIMenuSliderItem.js +0 -191
- package/ui/menu/items/index.js +0 -6
- package/ui/menu/items/panels/AbstractUIMenuPanel.js +0 -44
- package/ui/menu/items/panels/UIMenuColorPanel.js +0 -217
- package/ui/menu/items/panels/UIMenuGridPanel.js +0 -261
- package/ui/menu/items/panels/UIMenuPercentagePanel.js +0 -124
- package/ui/menu/items/panels/UIMenuStatisticsPanel.js +0 -79
- package/ui/menu/items/panels/UIMenuStatisticsPanelItem.js +0 -35
- package/ui/menu/items/panels/index.js +0 -6
- package/ui/menu/modules/ListItem.js +0 -10
- package/ui/menu/modules/index.js +0 -1
- package/utils/Animations.js +0 -55
- package/utils/Crypto.js +0 -25
- package/utils/LiteEvent.js +0 -19
- package/utils/Maths.js +0 -10
- package/utils/Point.js +0 -30
- package/utils/PointF.js +0 -14
- package/utils/Quaternion.js +0 -27
- package/utils/Size.js +0 -8
- package/utils/String.js +0 -25
- package/utils/enumValues.js +0 -14
- package/utils/index.js +0 -9
- package/weapon/DlcWeaponData.js +0 -44
- package/weapon/Mk2WeaponHash.js +0 -25
- package/weapon/Weapon.js +0 -270
- package/weapon/WeaponAsset.js +0 -84
- package/weapon/WeaponCollection.js +0 -187
- package/weapon/WeaponDisplayNameByHash.js +0 -75
- package/weapon/WeaponGroup.js +0 -19
- package/weapon/WeaponHudStats.js +0 -38
- package/weapon/WeaponLivery.js +0 -14
- package/weapon/WeaponLiveryColor.js +0 -35
- package/weapon/WeaponTint.js +0 -43
- package/weapon/index.js +0 -8
- package/weaponComponent/ComponentAttachmentPoint.js +0 -19
- package/weaponComponent/ComponentAttachmentPointByHash.js +0 -573
- package/weaponComponent/ComponentDisplayNameByHash.js +0 -280
- package/weaponComponent/DlcWeaponComponentData.js +0 -44
- package/weaponComponent/InvalidWeaponComponent.js +0 -28
- package/weaponComponent/WeaponComponent.js +0 -123
- package/weaponComponent/WeaponComponentCollection.js +0 -174
- package/weaponComponent/WeaponComponentHash.js +0 -887
- package/weaponComponent/WeaponComponentHashesByWeaponHash.js +0 -829
- package/weaponComponent/WeaponComponentHudStats.js +0 -34
- package/weaponComponent/index.js +0 -5
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
import { VehicleModType, VehicleNeonLight, } from "../enums";
|
|
2
|
-
import { VehicleMod } from "./VehicleMod";
|
|
3
|
-
import { Color } from "../utils";
|
|
4
|
-
import { VehicleToggleMod } from "./VehicleToggleMod";
|
|
5
|
-
export class VehicleModCollection {
|
|
6
|
-
_owner;
|
|
7
|
-
_vehicleMods = new Map();
|
|
8
|
-
_vehicleToggleMods = new Map();
|
|
9
|
-
constructor(owner) {
|
|
10
|
-
this._owner = owner;
|
|
11
|
-
}
|
|
12
|
-
hasVehicleMod(type) {
|
|
13
|
-
return GetNumVehicleMods(this._owner.Handle, type) > 0;
|
|
14
|
-
}
|
|
15
|
-
getMod(modType) {
|
|
16
|
-
if (!this._vehicleMods.has(modType)) {
|
|
17
|
-
this._vehicleMods.set(modType, new VehicleMod(this._owner, modType));
|
|
18
|
-
}
|
|
19
|
-
return this._vehicleMods.get(modType);
|
|
20
|
-
}
|
|
21
|
-
getToggleMod(modType) {
|
|
22
|
-
if (!this._vehicleToggleMods.has(modType)) {
|
|
23
|
-
this._vehicleToggleMods.set(modType, new VehicleToggleMod(this._owner, modType));
|
|
24
|
-
}
|
|
25
|
-
return this._vehicleToggleMods.get(modType);
|
|
26
|
-
}
|
|
27
|
-
getAllMods() {
|
|
28
|
-
return Object.keys(VehicleModType)
|
|
29
|
-
.filter((key) => !isNaN(Number(key)))
|
|
30
|
-
.map((key) => {
|
|
31
|
-
const index = Number(key);
|
|
32
|
-
if (this.hasVehicleMod(index)) {
|
|
33
|
-
return this.getMod(index);
|
|
34
|
-
}
|
|
35
|
-
return null;
|
|
36
|
-
})
|
|
37
|
-
.filter((m) => m);
|
|
38
|
-
}
|
|
39
|
-
get WheelType() {
|
|
40
|
-
return GetVehicleWheelType(this._owner.Handle);
|
|
41
|
-
}
|
|
42
|
-
set WheelType(type) {
|
|
43
|
-
SetVehicleWheelType(this._owner.Handle, type);
|
|
44
|
-
}
|
|
45
|
-
installModKit() {
|
|
46
|
-
SetVehicleModKit(this._owner.Handle, 0);
|
|
47
|
-
}
|
|
48
|
-
// TODO: This should return always return a number
|
|
49
|
-
get Livery() {
|
|
50
|
-
const modCount = this.getMod(VehicleModType.Livery)?.ModCount;
|
|
51
|
-
if (modCount !== undefined && modCount > 0) {
|
|
52
|
-
return this.getMod(VehicleModType.Livery)?.Index;
|
|
53
|
-
}
|
|
54
|
-
return GetVehicleLivery(this._owner.Handle);
|
|
55
|
-
}
|
|
56
|
-
set Livery(value) {
|
|
57
|
-
const mod = this.getMod(VehicleModType.Livery);
|
|
58
|
-
if (mod !== undefined && mod.ModCount > 0) {
|
|
59
|
-
mod.Index = value;
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
SetVehicleLivery(this._owner.Handle, value);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
get LiveryCount() {
|
|
66
|
-
const modCount = this.getMod(VehicleModType.Livery)?.ModCount;
|
|
67
|
-
if (modCount !== undefined && modCount > 0) {
|
|
68
|
-
return modCount;
|
|
69
|
-
}
|
|
70
|
-
return GetVehicleLiveryCount(this._owner.Handle);
|
|
71
|
-
}
|
|
72
|
-
get WindowTint() {
|
|
73
|
-
return GetVehicleWindowTint(this._owner.Handle);
|
|
74
|
-
}
|
|
75
|
-
set WindowTint(tint) {
|
|
76
|
-
SetVehicleWindowTint(this._owner.Handle, tint);
|
|
77
|
-
}
|
|
78
|
-
get PrimaryColor() {
|
|
79
|
-
return GetVehicleColours(this._owner.Handle)[0];
|
|
80
|
-
}
|
|
81
|
-
set PrimaryColor(color) {
|
|
82
|
-
SetVehicleColours(this._owner.Handle, color, this.SecondaryColor);
|
|
83
|
-
}
|
|
84
|
-
get SecondaryColor() {
|
|
85
|
-
return GetVehicleColours(this._owner.Handle)[1];
|
|
86
|
-
}
|
|
87
|
-
set SecondaryColor(color) {
|
|
88
|
-
SetVehicleColours(this._owner.Handle, this.PrimaryColor, color);
|
|
89
|
-
}
|
|
90
|
-
get RimColor() {
|
|
91
|
-
return GetVehicleExtraColours(this._owner.Handle)[1];
|
|
92
|
-
}
|
|
93
|
-
set RimColor(color) {
|
|
94
|
-
SetVehicleExtraColours(this._owner.Handle, this.PearlescentColor, color);
|
|
95
|
-
}
|
|
96
|
-
get PearlescentColor() {
|
|
97
|
-
return GetVehicleExtraColours(this._owner.Handle)[0];
|
|
98
|
-
}
|
|
99
|
-
set PearlescentColor(color) {
|
|
100
|
-
SetVehicleExtraColours(this._owner.Handle, color, this.RimColor);
|
|
101
|
-
}
|
|
102
|
-
set TrimColor(color) {
|
|
103
|
-
SetVehicleInteriorColour(this._owner.Handle, color);
|
|
104
|
-
}
|
|
105
|
-
set DashboardColor(color) {
|
|
106
|
-
SetVehicleDashboardColour(this._owner.Handle, color);
|
|
107
|
-
}
|
|
108
|
-
setModColor1(paintType, color) {
|
|
109
|
-
SetVehicleModColor_1(this._owner.Handle, paintType, color, 0);
|
|
110
|
-
}
|
|
111
|
-
setModColor2(paintType, color) {
|
|
112
|
-
SetVehicleModColor_2(this._owner.Handle, paintType, color);
|
|
113
|
-
}
|
|
114
|
-
get ColorCombination() {
|
|
115
|
-
return GetVehicleColourCombination(this._owner.Handle);
|
|
116
|
-
}
|
|
117
|
-
set ColorCombination(value) {
|
|
118
|
-
SetVehicleColourCombination(this._owner.Handle, value);
|
|
119
|
-
}
|
|
120
|
-
get ColorCombinationCount() {
|
|
121
|
-
return GetNumberOfVehicleColours(this._owner.Handle);
|
|
122
|
-
}
|
|
123
|
-
get TireSmokeColor() {
|
|
124
|
-
const color = GetVehicleTyreSmokeColor(this._owner.Handle);
|
|
125
|
-
return Color.fromRgb(color[0], color[1], color[2]);
|
|
126
|
-
}
|
|
127
|
-
set TireSmokeColor(color) {
|
|
128
|
-
SetVehicleTyreSmokeColor(this._owner.Handle, color.r, color.g, color.b);
|
|
129
|
-
}
|
|
130
|
-
get NeonLightsColor() {
|
|
131
|
-
const color = GetVehicleNeonLightsColour(this._owner.Handle);
|
|
132
|
-
return Color.fromRgb(color[0], color[1], color[2]);
|
|
133
|
-
}
|
|
134
|
-
set NeonLightsColor(color) {
|
|
135
|
-
SetVehicleNeonLightsColour(this._owner.Handle, color.r, color.g, color.b);
|
|
136
|
-
}
|
|
137
|
-
isNeonLightsOn(light) {
|
|
138
|
-
return IsVehicleNeonLightEnabled(this._owner.Handle, light);
|
|
139
|
-
}
|
|
140
|
-
setNeonLightsOn(light, on) {
|
|
141
|
-
SetVehicleNeonLightEnabled(this._owner.Handle, light, on);
|
|
142
|
-
}
|
|
143
|
-
areAllNeonLightsOn() {
|
|
144
|
-
if (!this.HasAllNeonLights) {
|
|
145
|
-
return false;
|
|
146
|
-
}
|
|
147
|
-
let on = true;
|
|
148
|
-
Object.keys(VehicleNeonLight)
|
|
149
|
-
.filter((key) => !isNaN(Number(key)))
|
|
150
|
-
.forEach((key) => {
|
|
151
|
-
if (!on) {
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
|
-
on = this.isNeonLightsOn(Number(key));
|
|
155
|
-
});
|
|
156
|
-
return on;
|
|
157
|
-
}
|
|
158
|
-
setAllNeonLightsOn(on) {
|
|
159
|
-
Object.keys(VehicleNeonLight)
|
|
160
|
-
.filter((key) => !isNaN(Number(key)))
|
|
161
|
-
.forEach((key) => {
|
|
162
|
-
this.setNeonLightsOn(Number(key), on);
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
get HasAllNeonLights() {
|
|
166
|
-
return (Object.keys(VehicleNeonLight)
|
|
167
|
-
.filter((key) => !isNaN(Number(key)))
|
|
168
|
-
.findIndex((light) => !this.hasNeonLight(Number(light))) === -1);
|
|
169
|
-
}
|
|
170
|
-
hasNeonLight(light) {
|
|
171
|
-
if (this._owner.Bones === undefined)
|
|
172
|
-
return false;
|
|
173
|
-
switch (light) {
|
|
174
|
-
case VehicleNeonLight.Left:
|
|
175
|
-
return this._owner.Bones.hasBone("neon_l");
|
|
176
|
-
case VehicleNeonLight.Right:
|
|
177
|
-
return this._owner.Bones.hasBone("neon_r");
|
|
178
|
-
case VehicleNeonLight.Front:
|
|
179
|
-
return this._owner.Bones.hasBone("neon_f");
|
|
180
|
-
case VehicleNeonLight.Back:
|
|
181
|
-
return this._owner.Bones.hasBone("neon_b");
|
|
182
|
-
default:
|
|
183
|
-
return false;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
get CustomPrimaryColor() {
|
|
187
|
-
const color = GetVehicleCustomPrimaryColour(this._owner.Handle);
|
|
188
|
-
return Color.fromRgb(color[0], color[1], color[2]);
|
|
189
|
-
}
|
|
190
|
-
set CustomPrimaryColor(color) {
|
|
191
|
-
SetVehicleCustomPrimaryColour(this._owner.Handle, color.r, color.g, color.b);
|
|
192
|
-
}
|
|
193
|
-
get CustomSecondaryColor() {
|
|
194
|
-
const color = GetVehicleCustomSecondaryColour(this._owner.Handle);
|
|
195
|
-
return Color.fromRgb(color[0], color[1], color[2]);
|
|
196
|
-
}
|
|
197
|
-
set CustomSecondaryColor(color) {
|
|
198
|
-
SetVehicleCustomSecondaryColour(this._owner.Handle, color.r, color.g, color.b);
|
|
199
|
-
}
|
|
200
|
-
get IsPrimaryColorCustom() {
|
|
201
|
-
return GetIsVehiclePrimaryColourCustom(this._owner.Handle);
|
|
202
|
-
}
|
|
203
|
-
get IsSecondaryColorCustom() {
|
|
204
|
-
return GetIsVehicleSecondaryColourCustom(this._owner.Handle);
|
|
205
|
-
}
|
|
206
|
-
clearCustomPrimaryColor() {
|
|
207
|
-
ClearVehicleCustomPrimaryColour(this._owner.Handle);
|
|
208
|
-
}
|
|
209
|
-
clearCustomSecondaryColor() {
|
|
210
|
-
ClearVehicleCustomSecondaryColour(this._owner.Handle);
|
|
211
|
-
}
|
|
212
|
-
get LicensePlateStyle() {
|
|
213
|
-
return GetVehicleNumberPlateTextIndex(this._owner.Handle);
|
|
214
|
-
}
|
|
215
|
-
set LicensePlateStyle(style) {
|
|
216
|
-
SetVehicleNumberPlateTextIndex(this._owner.Handle, style);
|
|
217
|
-
}
|
|
218
|
-
get LicensePlateType() {
|
|
219
|
-
return GetVehiclePlateType(this._owner.Handle);
|
|
220
|
-
}
|
|
221
|
-
get LicensePlate() {
|
|
222
|
-
return GetVehicleNumberPlateText(this._owner.Handle);
|
|
223
|
-
}
|
|
224
|
-
set LicensePlate(text) {
|
|
225
|
-
SetVehicleNumberPlateText(this._owner.Handle, text);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export class VehicleToggleMod {
|
|
2
|
-
_owner;
|
|
3
|
-
_modType;
|
|
4
|
-
constructor(owner, modType) {
|
|
5
|
-
this._owner = owner;
|
|
6
|
-
this._modType = modType;
|
|
7
|
-
}
|
|
8
|
-
get ModType() {
|
|
9
|
-
return this._modType;
|
|
10
|
-
}
|
|
11
|
-
set ModType(modType) {
|
|
12
|
-
this._modType = modType;
|
|
13
|
-
}
|
|
14
|
-
get IsInstalled() {
|
|
15
|
-
return IsToggleModOn(this._owner.Handle, this.ModType);
|
|
16
|
-
}
|
|
17
|
-
set IsInstalled(value) {
|
|
18
|
-
ToggleVehicleMod(this._owner.Handle, this.ModType, value);
|
|
19
|
-
}
|
|
20
|
-
get LocalizedModTypeName() {
|
|
21
|
-
return GetModSlotName(this._owner.Handle, this.ModType);
|
|
22
|
-
}
|
|
23
|
-
get Vehicle() {
|
|
24
|
-
return this._owner;
|
|
25
|
-
}
|
|
26
|
-
remove() {
|
|
27
|
-
RemoveVehicleMod(this._owner.Handle, this.ModType);
|
|
28
|
-
}
|
|
29
|
-
}
|
package/models/VehicleWheel.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export class VehicleWheel {
|
|
2
|
-
_owner;
|
|
3
|
-
_index;
|
|
4
|
-
constructor(owner, index) {
|
|
5
|
-
this._owner = owner;
|
|
6
|
-
this._index = index;
|
|
7
|
-
}
|
|
8
|
-
get Index() {
|
|
9
|
-
return this._index;
|
|
10
|
-
}
|
|
11
|
-
set Index(index) {
|
|
12
|
-
this._index = index;
|
|
13
|
-
}
|
|
14
|
-
get Vehicle() {
|
|
15
|
-
return this._owner;
|
|
16
|
-
}
|
|
17
|
-
burst() {
|
|
18
|
-
SetVehicleTyreBurst(this._owner.Handle, this.Index, true, 1000);
|
|
19
|
-
}
|
|
20
|
-
fix() {
|
|
21
|
-
SetVehicleTyreFixed(this._owner.Handle, this.Index);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { VehicleWheel } from "./VehicleWheel";
|
|
2
|
-
import { VehicleWheelIndex } from "../enums";
|
|
3
|
-
export class VehicleWheelCollection {
|
|
4
|
-
_owner;
|
|
5
|
-
_vehicleWheels = new Map();
|
|
6
|
-
constructor(owner) {
|
|
7
|
-
this._owner = owner;
|
|
8
|
-
}
|
|
9
|
-
getWheel(index) {
|
|
10
|
-
if (!this._vehicleWheels.has(index)) {
|
|
11
|
-
this._vehicleWheels.set(index, new VehicleWheel(this._owner, index));
|
|
12
|
-
}
|
|
13
|
-
return this._vehicleWheels.get(index);
|
|
14
|
-
}
|
|
15
|
-
getAllWheels() {
|
|
16
|
-
return Object.keys(VehicleWheelIndex)
|
|
17
|
-
.filter((key) => !isNaN(Number(key)))
|
|
18
|
-
.map((key) => {
|
|
19
|
-
const index = Number(key);
|
|
20
|
-
if (this.hasWheel(index)) {
|
|
21
|
-
return this.getWheel(index);
|
|
22
|
-
}
|
|
23
|
-
return null;
|
|
24
|
-
})
|
|
25
|
-
.filter((w) => w);
|
|
26
|
-
}
|
|
27
|
-
burstAllWheels() {
|
|
28
|
-
this.getAllWheels().forEach((wheel) => {
|
|
29
|
-
wheel?.burst();
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
fixAllWheels() {
|
|
33
|
-
this.getAllWheels().forEach((wheel) => {
|
|
34
|
-
wheel?.fix();
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
hasWheel(wheel) {
|
|
38
|
-
if (this._owner.Bones === undefined)
|
|
39
|
-
return false;
|
|
40
|
-
switch (wheel) {
|
|
41
|
-
case VehicleWheelIndex.FrontLeftWheel:
|
|
42
|
-
return this._owner.Bones.hasBone("wheel_lf");
|
|
43
|
-
case VehicleWheelIndex.FrontRightWheel:
|
|
44
|
-
return this._owner.Bones.hasBone("wheel_rf");
|
|
45
|
-
case VehicleWheelIndex.MidLeftWheel:
|
|
46
|
-
return this._owner.Bones.hasBone("wheel_lm");
|
|
47
|
-
case VehicleWheelIndex.MidRightWheel:
|
|
48
|
-
return this._owner.Bones.hasBone("wheel_rm");
|
|
49
|
-
case VehicleWheelIndex.RearLeftWheel:
|
|
50
|
-
return this._owner.Bones.hasBone("wheel_lr");
|
|
51
|
-
case VehicleWheelIndex.RearRightWheel:
|
|
52
|
-
return this._owner.Bones.hasBone("wheel_rr");
|
|
53
|
-
default:
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
package/models/VehicleWindow.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export class VehicleWindow {
|
|
2
|
-
_owner;
|
|
3
|
-
_index;
|
|
4
|
-
constructor(owner, index) {
|
|
5
|
-
this._owner = owner;
|
|
6
|
-
this._index = index;
|
|
7
|
-
}
|
|
8
|
-
get Index() {
|
|
9
|
-
return this._index;
|
|
10
|
-
}
|
|
11
|
-
set Index(index) {
|
|
12
|
-
this._index = index;
|
|
13
|
-
}
|
|
14
|
-
get IsIntact() {
|
|
15
|
-
return IsVehicleWindowIntact(this._owner.Handle, this.Index);
|
|
16
|
-
}
|
|
17
|
-
get Vehicle() {
|
|
18
|
-
return this._owner;
|
|
19
|
-
}
|
|
20
|
-
repair() {
|
|
21
|
-
FixVehicleWindow(this._owner.Handle, this.Index);
|
|
22
|
-
}
|
|
23
|
-
smash() {
|
|
24
|
-
SmashVehicleWindow(this._owner.Handle, this.Index);
|
|
25
|
-
}
|
|
26
|
-
rollUp() {
|
|
27
|
-
RollUpWindow(this._owner.Handle, this.Index);
|
|
28
|
-
}
|
|
29
|
-
rollDown() {
|
|
30
|
-
RollDownWindow(this._owner.Handle, this.Index);
|
|
31
|
-
}
|
|
32
|
-
remove() {
|
|
33
|
-
RemoveVehicleWindow(this._owner.Handle, this.Index);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { VehicleWindowIndex } from "../enums";
|
|
2
|
-
import { VehicleWindow } from "./VehicleWindow";
|
|
3
|
-
export class VehicleWindowCollection {
|
|
4
|
-
_owner;
|
|
5
|
-
_vehicleWindows = new Map();
|
|
6
|
-
constructor(owner) {
|
|
7
|
-
this._owner = owner;
|
|
8
|
-
}
|
|
9
|
-
getWindow(index) {
|
|
10
|
-
let window = this._vehicleWindows.get(index);
|
|
11
|
-
if (!window) {
|
|
12
|
-
const vehicleWindow = new VehicleWindow(this._owner, index);
|
|
13
|
-
this._vehicleWindows.set(index, vehicleWindow);
|
|
14
|
-
return vehicleWindow;
|
|
15
|
-
}
|
|
16
|
-
return window;
|
|
17
|
-
}
|
|
18
|
-
getAllWindows() {
|
|
19
|
-
return Object.keys(VehicleWindowIndex)
|
|
20
|
-
.filter((key) => !isNaN(Number(key)))
|
|
21
|
-
.map((key) => {
|
|
22
|
-
const index = Number(key);
|
|
23
|
-
if (this.hasWindow(index)) {
|
|
24
|
-
return this.getWindow(index);
|
|
25
|
-
}
|
|
26
|
-
return null;
|
|
27
|
-
})
|
|
28
|
-
.filter((w) => w);
|
|
29
|
-
}
|
|
30
|
-
get AreAllWindowsIntact() {
|
|
31
|
-
return AreAllVehicleWindowsIntact(this._owner.Handle);
|
|
32
|
-
}
|
|
33
|
-
rollDownAllWindows() {
|
|
34
|
-
this.getAllWindows().forEach((window) => {
|
|
35
|
-
window?.rollDown();
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
rollUpAllWindows() {
|
|
39
|
-
this.getAllWindows().forEach((window) => {
|
|
40
|
-
window?.rollUp();
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
hasWindow(window) {
|
|
44
|
-
switch (window) {
|
|
45
|
-
case VehicleWindowIndex.FrontLeftWindow:
|
|
46
|
-
return this._owner.Bones.hasBone("window_lf");
|
|
47
|
-
case VehicleWindowIndex.FrontRightWindow:
|
|
48
|
-
return this._owner.Bones.hasBone("window_rf");
|
|
49
|
-
case VehicleWindowIndex.BackLeftWindow:
|
|
50
|
-
return this._owner.Bones.hasBone("window_lr");
|
|
51
|
-
case VehicleWindowIndex.BackRightWindow:
|
|
52
|
-
return this._owner.Bones.hasBone("window_rr");
|
|
53
|
-
default:
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
package/models/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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/ui/Container.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Size } from "../utils";
|
|
2
|
-
import { Screen } from "./";
|
|
3
|
-
export class Container {
|
|
4
|
-
pos;
|
|
5
|
-
size;
|
|
6
|
-
color;
|
|
7
|
-
items = [];
|
|
8
|
-
constructor(pos, size, color) {
|
|
9
|
-
this.pos = pos;
|
|
10
|
-
this.size = size;
|
|
11
|
-
this.color = color;
|
|
12
|
-
}
|
|
13
|
-
addItem(items) {
|
|
14
|
-
if (!Array.isArray(items)) {
|
|
15
|
-
items = [items];
|
|
16
|
-
}
|
|
17
|
-
this.items.push(...items);
|
|
18
|
-
}
|
|
19
|
-
draw(offset, resolution) {
|
|
20
|
-
resolution = resolution || new Size(Screen.ScaledWidth, Screen.Height);
|
|
21
|
-
offset = offset || new Size();
|
|
22
|
-
const w = this.size.width / resolution.width;
|
|
23
|
-
const h = this.size.height / resolution.height;
|
|
24
|
-
const x = (this.pos.X + offset.width) / resolution.width + w * 0.5;
|
|
25
|
-
const y = (this.pos.Y + offset.height) / resolution.height + h * 0.5;
|
|
26
|
-
DrawRect(x, y, w, h, this.color.r, this.color.g, this.color.b, this.color.a);
|
|
27
|
-
for (const item of this.items) {
|
|
28
|
-
item.draw(new Size(this.pos.X + offset.width, this.pos.Y + offset.height), resolution);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
package/ui/Effects.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
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
|
-
}
|
package/ui/Fading.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Static class for screen fading
|
|
3
|
-
*/
|
|
4
|
-
export class Fading {
|
|
5
|
-
/**
|
|
6
|
-
* Gets whether the screen is faded in
|
|
7
|
-
*
|
|
8
|
-
* @returns True or false
|
|
9
|
-
*/
|
|
10
|
-
static get IsFadedIn() {
|
|
11
|
-
return IsScreenFadedIn();
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Gets whether the screen is faded out
|
|
15
|
-
*
|
|
16
|
-
* @returns True or false
|
|
17
|
-
*/
|
|
18
|
-
static get IsFadedOut() {
|
|
19
|
-
return IsScreenFadedOut();
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Gets whether the screen is currently fading in
|
|
23
|
-
*
|
|
24
|
-
* @returns True or false
|
|
25
|
-
*/
|
|
26
|
-
static get IsFadingIn() {
|
|
27
|
-
return IsScreenFadingIn();
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Gets whether the screen is currently fading out
|
|
31
|
-
*
|
|
32
|
-
* @returns True or false
|
|
33
|
-
*/
|
|
34
|
-
static get IsFadingOut() {
|
|
35
|
-
return IsScreenFadingOut();
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Fade in the screen for a certain duration.
|
|
39
|
-
*
|
|
40
|
-
* @param duration Time to fade in
|
|
41
|
-
*/
|
|
42
|
-
static fadeIn(duration) {
|
|
43
|
-
return new Promise((resolve) => {
|
|
44
|
-
DoScreenFadeIn(duration);
|
|
45
|
-
const interval = setInterval(() => {
|
|
46
|
-
if (this.IsFadedIn) {
|
|
47
|
-
clearInterval(interval);
|
|
48
|
-
resolve();
|
|
49
|
-
}
|
|
50
|
-
}, 0);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Fade out the screen for a certain duration.
|
|
55
|
-
*
|
|
56
|
-
* @param duration Time to fade out
|
|
57
|
-
*/
|
|
58
|
-
static fadeOut(duration) {
|
|
59
|
-
return new Promise((resolve) => {
|
|
60
|
-
DoScreenFadeOut(duration);
|
|
61
|
-
const interval = setInterval(() => {
|
|
62
|
-
if (this.IsFadedOut) {
|
|
63
|
-
clearInterval(interval);
|
|
64
|
-
resolve();
|
|
65
|
-
}
|
|
66
|
-
}, 0);
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
}
|
package/ui/Hud.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { CursorSprite } from "../enums";
|
|
2
|
-
export class Hud {
|
|
3
|
-
static isComponentActive(component) {
|
|
4
|
-
return IsHudComponentActive(Number(component));
|
|
5
|
-
}
|
|
6
|
-
static showComponentThisFrame(component) {
|
|
7
|
-
ShowHudComponentThisFrame(Number(component));
|
|
8
|
-
}
|
|
9
|
-
static hideComponentThisFrame(component) {
|
|
10
|
-
HideHudComponentThisFrame(Number(component));
|
|
11
|
-
}
|
|
12
|
-
static showCursorThisFrame() {
|
|
13
|
-
ShowCursorThisFrame();
|
|
14
|
-
}
|
|
15
|
-
static set CursorPosition(position) {
|
|
16
|
-
SetCursorLocation(position.X, position.Y);
|
|
17
|
-
}
|
|
18
|
-
static get CursorSprite() {
|
|
19
|
-
return CursorSprite.DownArrow;
|
|
20
|
-
}
|
|
21
|
-
static set CursorSprite(sprite) {
|
|
22
|
-
SetCursorSprite(Number(sprite));
|
|
23
|
-
}
|
|
24
|
-
static get IsVisible() {
|
|
25
|
-
return !(IsHudHidden() || !IsHudPreferenceSwitchedOn());
|
|
26
|
-
}
|
|
27
|
-
static set IsVisible(toggle) {
|
|
28
|
-
DisplayHud(toggle);
|
|
29
|
-
}
|
|
30
|
-
static get IsRadarVisible() {
|
|
31
|
-
return !(IsRadarHidden() || IsRadarPreferenceSwitchedOn());
|
|
32
|
-
}
|
|
33
|
-
static set IsRadarVisible(toggle) {
|
|
34
|
-
DisplayRadar(toggle);
|
|
35
|
-
}
|
|
36
|
-
static set RadarZoom(zoomLevel) {
|
|
37
|
-
SetRadarZoom(zoomLevel);
|
|
38
|
-
}
|
|
39
|
-
}
|