@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.
Files changed (243) hide show
  1. package/Audio.d.ts +2 -2
  2. package/Blip.d.ts +2 -2
  3. package/Camera.d.ts +1 -1
  4. package/Game.d.ts +1 -1
  5. package/GameplayCamera.d.ts +1 -1
  6. package/Model.d.ts +1 -1
  7. package/ParticleEffect.d.ts +2 -2
  8. package/ParticleEffectAsset.d.ts +1 -1
  9. package/README.md +45 -0
  10. package/Raycast.d.ts +2 -2
  11. package/RelationshipGroup.d.ts +1 -1
  12. package/Tasks.d.ts +3 -3
  13. package/World.d.ts +5 -13
  14. package/cfx/StateBagChangeHandler.d.ts +1 -3
  15. package/common/Command.d.ts +30 -0
  16. package/common/Convar.d.ts +13 -0
  17. package/common/GlobalData.d.ts +8 -0
  18. package/common/Kvp.d.ts +69 -0
  19. package/common/Resource.d.ts +14 -0
  20. package/common/decors/Events.d.ts +54 -0
  21. package/common/index.d.ts +8 -0
  22. package/common/net/NetworkedMap.d.ts +28 -0
  23. package/common/types.d.ts +5 -0
  24. package/common/utils/ClassTypes.d.ts +11 -0
  25. package/common/utils/Color.d.ts +14 -0
  26. package/common/utils/Maths.d.ts +4 -0
  27. package/common/utils/PointF.d.ts +7 -0
  28. package/common/utils/Quaternion.d.ts +10 -0
  29. package/common/utils/Vector.d.ts +429 -0
  30. package/common/utils/Vector2.d.ts +1 -0
  31. package/common/utils/Vector3.d.ts +1 -0
  32. package/common/utils/Vector4.d.ts +1 -0
  33. package/common/utils/cleanPlayerName.d.ts +6 -0
  34. package/common/utils/enumValues.d.ts +12 -0
  35. package/{utils/getStringFromUInt8Array.js → common/utils/getStringFromUInt8Array.d.ts} +1 -3
  36. package/{utils/getUInt32FromUint8Array.js → common/utils/getUInt32FromUint8Array.d.ts} +1 -1
  37. package/common/utils/index.d.ts +12 -0
  38. package/index.d.ts +1 -1
  39. package/index.js +18794 -26
  40. package/interfaces/Dimensions.d.ts +1 -1
  41. package/models/BaseEntity.d.ts +3 -3
  42. package/models/Ped.d.ts +4 -15
  43. package/models/PedBone.d.ts +1 -1
  44. package/models/PedBoneCollection.d.ts +1 -1
  45. package/models/Player.d.ts +1 -1
  46. package/models/Vehicle.d.ts +2 -2
  47. package/models/VehicleDoor.d.ts +2 -2
  48. package/models/VehicleDoorCollection.d.ts +1 -1
  49. package/models/VehicleMod.d.ts +2 -2
  50. package/models/VehicleModCollection.d.ts +2 -2
  51. package/models/VehicleToggleMod.d.ts +2 -2
  52. package/models/VehicleWheel.d.ts +1 -1
  53. package/models/VehicleWheelCollection.d.ts +1 -1
  54. package/models/VehicleWindow.d.ts +2 -2
  55. package/models/VehicleWindowCollection.d.ts +1 -1
  56. package/package.json +6 -4
  57. package/ui/Container.d.ts +2 -2
  58. package/ui/Effects.d.ts +1 -1
  59. package/ui/Hud.d.ts +2 -2
  60. package/ui/InstructionalButtons.d.ts +1 -1
  61. package/ui/Rectangle.d.ts +2 -2
  62. package/ui/Scaleform.d.ts +1 -1
  63. package/ui/Screen.d.ts +1 -1
  64. package/ui/Text.d.ts +1 -1
  65. package/ui/interfaces/IButton.d.ts +1 -1
  66. package/ui/interfaces/IDrawable.d.ts +1 -1
  67. package/ui/menu/items/UIMenuItem.d.ts +1 -1
  68. package/ui/menu/items/UIMenuListItem.d.ts +1 -1
  69. package/ui/menu/items/panels/AbstractUIMenuPanel.d.ts +2 -2
  70. package/ui/menu/items/panels/UIMenuStatisticsPanel.d.ts +1 -1
  71. package/utils/LiteEvent.d.ts +2 -8
  72. package/utils/PointF.d.ts +0 -5
  73. package/utils/String.d.ts +1 -1
  74. package/utils/index.d.ts +2 -2
  75. package/weapon/DlcWeaponData.d.ts +1 -1
  76. package/weapon/Weapon.d.ts +7 -7
  77. package/weapon/WeaponAsset.d.ts +1 -1
  78. package/weapon/WeaponCollection.d.ts +2 -2
  79. package/weaponComponent/DlcWeaponComponentData.d.ts +1 -1
  80. package/weaponComponent/InvalidWeaponComponent.d.ts +1 -1
  81. package/weaponComponent/WeaponComponent.d.ts +3 -3
  82. package/weaponComponent/WeaponComponentCollection.d.ts +3 -3
  83. package/Audio.js +0 -93
  84. package/Blip.js +0 -105
  85. package/Camera.js +0 -162
  86. package/Checkpoint.js +0 -43
  87. package/Events.js +0 -74
  88. package/Game.js +0 -474
  89. package/GameplayCamera.js +0 -141
  90. package/Model.js +0 -213
  91. package/NetworkedScene.js +0 -18
  92. package/ParticleEffect.js +0 -123
  93. package/ParticleEffectAsset.js +0 -105
  94. package/Pickup.js +0 -19
  95. package/Raycast.js +0 -123
  96. package/RelationshipGroup.js +0 -67
  97. package/Rope.js +0 -129
  98. package/TaskSequence.js +0 -48
  99. package/Tasks.js +0 -241
  100. package/World.js +0 -765
  101. package/cfx/StateBagChangeHandler.js +0 -1
  102. package/cfx/index.js +0 -1
  103. package/enums/Alignment.js +0 -6
  104. package/enums/AnimationFlags.js +0 -35
  105. package/enums/AudioFlag.js +0 -38
  106. package/enums/BadgeStyle.js +0 -183
  107. package/enums/Blip.js +0 -225
  108. package/enums/Bone.js +0 -103
  109. package/enums/CameraShake.js +0 -14
  110. package/enums/CameraTypes.js +0 -8
  111. package/enums/CheckboxStyle.js +0 -5
  112. package/enums/Checkpoint.js +0 -67
  113. package/enums/CloudHat.js +0 -27
  114. package/enums/Control.js +0 -361
  115. package/enums/CursorSprite.js +0 -15
  116. package/enums/Driving.js +0 -34
  117. package/enums/ExplosionType.js +0 -45
  118. package/enums/FiringPattern.js +0 -20
  119. package/enums/Font.js +0 -8
  120. package/enums/ForceType.js +0 -9
  121. package/enums/Gender.js +0 -5
  122. package/enums/HelmetType.js +0 -6
  123. package/enums/HudColor.js +0 -184
  124. package/enums/HudComponent.js +0 -54
  125. package/enums/InputMode.js +0 -5
  126. package/enums/InvertAxis.js +0 -7
  127. package/enums/Language.js +0 -15
  128. package/enums/LeaveVehicleFlags.js +0 -11
  129. package/enums/LoadingSpinnerType.js +0 -8
  130. package/enums/MarkerType.js +0 -50
  131. package/enums/MenuAlignment.js +0 -5
  132. package/enums/NotificationType.js +0 -11
  133. package/enums/Parachute.js +0 -15
  134. package/enums/PickupType.js +0 -74
  135. package/enums/RadioStation.js +0 -25
  136. package/enums/RagdollType.js +0 -7
  137. package/enums/RaycastEnums.js +0 -32
  138. package/enums/Relationship.js +0 -10
  139. package/enums/RopeType.js +0 -6
  140. package/enums/ScreenEffect.js +0 -84
  141. package/enums/SpeechModifier.js +0 -40
  142. package/enums/Vehicle.js +0 -376
  143. package/enums/Weather.js +0 -22
  144. package/enums/ZoneID.js +0 -95
  145. package/enums/index.js +0 -42
  146. package/hashes/MaterialHash.js +0 -217
  147. package/hashes/PedHash.js +0 -725
  148. package/hashes/VehicleHash.js +0 -523
  149. package/hashes/WeaponHash.js +0 -161
  150. package/hashes/WeatherTypeHash.js +0 -22
  151. package/hashes/index.js +0 -5
  152. package/interfaces/Dimensions.js +0 -1
  153. package/models/BaseEntity.js +0 -477
  154. package/models/Entity.js +0 -25
  155. package/models/EntityBone.js +0 -26
  156. package/models/EntityBoneCollection.js +0 -18
  157. package/models/Ped.js +0 -692
  158. package/models/PedBone.js +0 -9
  159. package/models/PedBoneCollection.js +0 -21
  160. package/models/Player.js +0 -186
  161. package/models/Prop.js +0 -26
  162. package/models/Vehicle.js +0 -576
  163. package/models/VehicleDoor.js +0 -44
  164. package/models/VehicleDoorCollection.js +0 -62
  165. package/models/VehicleMod.js +0 -35
  166. package/models/VehicleModCollection.js +0 -227
  167. package/models/VehicleToggleMod.js +0 -29
  168. package/models/VehicleWheel.js +0 -23
  169. package/models/VehicleWheelCollection.js +0 -57
  170. package/models/VehicleWindow.js +0 -35
  171. package/models/VehicleWindowCollection.js +0 -57
  172. package/models/index.js +0 -19
  173. package/ui/Container.js +0 -31
  174. package/ui/Effects.js +0 -106
  175. package/ui/Fading.js +0 -69
  176. package/ui/Hud.js +0 -39
  177. package/ui/InstructionalButtons.js +0 -54
  178. package/ui/LoadingPrompt.js +0 -45
  179. package/ui/Notification.js +0 -9
  180. package/ui/Rectangle.js +0 -40
  181. package/ui/Scaleform.js +0 -236
  182. package/ui/Screen.js +0 -72
  183. package/ui/Sprite.js +0 -60
  184. package/ui/Text.js +0 -115
  185. package/ui/Timerbar.js +0 -248
  186. package/ui/index.js +0 -15
  187. package/ui/interfaces/IButton.js +0 -1
  188. package/ui/interfaces/IDrawable.js +0 -1
  189. package/ui/interfaces/index.js +0 -1
  190. package/ui/menu/Menu.js +0 -831
  191. package/ui/menu/MenuControl.js +0 -12
  192. package/ui/menu/MenuControls.js +0 -9
  193. package/ui/menu/MenuSettings.js +0 -54
  194. package/ui/menu/index.js +0 -6
  195. package/ui/menu/items/UIMenuCheckboxItem.js +0 -59
  196. package/ui/menu/items/UIMenuItem.js +0 -1111
  197. package/ui/menu/items/UIMenuListItem.js +0 -119
  198. package/ui/menu/items/UIMenuSeparatorItem.js +0 -29
  199. package/ui/menu/items/UIMenuSliderItem.js +0 -191
  200. package/ui/menu/items/index.js +0 -6
  201. package/ui/menu/items/panels/AbstractUIMenuPanel.js +0 -44
  202. package/ui/menu/items/panels/UIMenuColorPanel.js +0 -217
  203. package/ui/menu/items/panels/UIMenuGridPanel.js +0 -261
  204. package/ui/menu/items/panels/UIMenuPercentagePanel.js +0 -124
  205. package/ui/menu/items/panels/UIMenuStatisticsPanel.js +0 -79
  206. package/ui/menu/items/panels/UIMenuStatisticsPanelItem.js +0 -35
  207. package/ui/menu/items/panels/index.js +0 -6
  208. package/ui/menu/modules/ListItem.js +0 -10
  209. package/ui/menu/modules/index.js +0 -1
  210. package/utils/Animations.js +0 -55
  211. package/utils/Crypto.js +0 -25
  212. package/utils/LiteEvent.js +0 -19
  213. package/utils/Maths.js +0 -10
  214. package/utils/Point.js +0 -30
  215. package/utils/PointF.js +0 -14
  216. package/utils/Quaternion.js +0 -27
  217. package/utils/Size.js +0 -8
  218. package/utils/String.js +0 -25
  219. package/utils/enumValues.js +0 -14
  220. package/utils/index.js +0 -9
  221. package/weapon/DlcWeaponData.js +0 -44
  222. package/weapon/Mk2WeaponHash.js +0 -25
  223. package/weapon/Weapon.js +0 -270
  224. package/weapon/WeaponAsset.js +0 -84
  225. package/weapon/WeaponCollection.js +0 -187
  226. package/weapon/WeaponDisplayNameByHash.js +0 -75
  227. package/weapon/WeaponGroup.js +0 -19
  228. package/weapon/WeaponHudStats.js +0 -38
  229. package/weapon/WeaponLivery.js +0 -14
  230. package/weapon/WeaponLiveryColor.js +0 -35
  231. package/weapon/WeaponTint.js +0 -43
  232. package/weapon/index.js +0 -8
  233. package/weaponComponent/ComponentAttachmentPoint.js +0 -19
  234. package/weaponComponent/ComponentAttachmentPointByHash.js +0 -573
  235. package/weaponComponent/ComponentDisplayNameByHash.js +0 -280
  236. package/weaponComponent/DlcWeaponComponentData.js +0 -44
  237. package/weaponComponent/InvalidWeaponComponent.js +0 -28
  238. package/weaponComponent/WeaponComponent.js +0 -123
  239. package/weaponComponent/WeaponComponentCollection.js +0 -174
  240. package/weaponComponent/WeaponComponentHash.js +0 -887
  241. package/weaponComponent/WeaponComponentHashesByWeaponHash.js +0 -829
  242. package/weaponComponent/WeaponComponentHudStats.js +0 -34
  243. package/weaponComponent/index.js +0 -5
@@ -1,161 +0,0 @@
1
- export var WeaponHash;
2
- (function (WeaponHash) {
3
- // melee
4
- WeaponHash[WeaponHash["Dagger"] = -1834847097] = "Dagger";
5
- WeaponHash[WeaponHash["Bat"] = -1786099057] = "Bat";
6
- WeaponHash[WeaponHash["Bottle"] = -102323637] = "Bottle";
7
- WeaponHash[WeaponHash["Crowbar"] = -2067956739] = "Crowbar";
8
- WeaponHash[WeaponHash["Unarmed"] = -1569615261] = "Unarmed";
9
- WeaponHash[WeaponHash["Flashlight"] = -1951375401] = "Flashlight";
10
- WeaponHash[WeaponHash["GolfClub"] = 1141786504] = "GolfClub";
11
- WeaponHash[WeaponHash["Hammer"] = 1317494643] = "Hammer";
12
- WeaponHash[WeaponHash["Hatchet"] = -102973651] = "Hatchet";
13
- WeaponHash[WeaponHash["KnuckleDuster"] = -656458692] = "KnuckleDuster";
14
- WeaponHash[WeaponHash["Knife"] = -1716189206] = "Knife";
15
- WeaponHash[WeaponHash["Machete"] = -581044007] = "Machete";
16
- WeaponHash[WeaponHash["SwitchBlade"] = -538741184] = "SwitchBlade";
17
- WeaponHash[WeaponHash["Nightstick"] = 1737195953] = "Nightstick";
18
- WeaponHash[WeaponHash["Wrench"] = 419712736] = "Wrench";
19
- WeaponHash[WeaponHash["BattleAxe"] = -853065399] = "BattleAxe";
20
- WeaponHash[WeaponHash["PoolCue"] = -1810795771] = "PoolCue";
21
- WeaponHash[WeaponHash["StoneHatchet"] = 940833800] = "StoneHatchet";
22
- // handguns
23
- WeaponHash[WeaponHash["Pistol"] = 453432689] = "Pistol";
24
- WeaponHash[WeaponHash["PistolMk2"] = 3219281620] = "PistolMk2";
25
- WeaponHash[WeaponHash["CombatPistol"] = 1593441988] = "CombatPistol";
26
- WeaponHash[WeaponHash["APPistol"] = 584646201] = "APPistol";
27
- WeaponHash[WeaponHash["StunGun"] = 911657153] = "StunGun";
28
- WeaponHash[WeaponHash["StunGunMp"] = 1171102963] = "StunGunMp";
29
- WeaponHash[WeaponHash["Pistol50"] = -1716589765] = "Pistol50";
30
- WeaponHash[WeaponHash["SNSPistol"] = -1076751822] = "SNSPistol";
31
- WeaponHash[WeaponHash["SNSPistolMk2"] = -2009644972] = "SNSPistolMk2";
32
- WeaponHash[WeaponHash["HeavyPistol"] = -771403250] = "HeavyPistol";
33
- WeaponHash[WeaponHash["VintagePistol"] = 137902532] = "VintagePistol";
34
- WeaponHash[WeaponHash["FlareGun"] = 1198879012] = "FlareGun";
35
- WeaponHash[WeaponHash["MarksmanPistol"] = -598887786] = "MarksmanPistol";
36
- WeaponHash[WeaponHash["Revolver"] = -1045183535] = "Revolver";
37
- WeaponHash[WeaponHash["RevolverMk2"] = -879347409] = "RevolverMk2";
38
- WeaponHash[WeaponHash["DoubleAction"] = -1746263880] = "DoubleAction";
39
- WeaponHash[WeaponHash["RayPistol"] = -1355376991] = "RayPistol";
40
- WeaponHash[WeaponHash["CeramicPistol"] = 727643628] = "CeramicPistol";
41
- WeaponHash[WeaponHash["NavyRevolver"] = -1853920116] = "NavyRevolver";
42
- WeaponHash[WeaponHash["GadgetPistol"] = 1470379660] = "GadgetPistol";
43
- // sub-machine guns
44
- WeaponHash[WeaponHash["MicroSMG"] = 324215364] = "MicroSMG";
45
- WeaponHash[WeaponHash["SMG"] = 736523883] = "SMG";
46
- WeaponHash[WeaponHash["SMGMk2"] = 2024373456] = "SMGMk2";
47
- WeaponHash[WeaponHash["AssaultSMG"] = -270015777] = "AssaultSMG";
48
- WeaponHash[WeaponHash["CombatPDW"] = 171789620] = "CombatPDW";
49
- WeaponHash[WeaponHash["MachinePistol"] = -619010992] = "MachinePistol";
50
- WeaponHash[WeaponHash["MiniSMG"] = -1121678507] = "MiniSMG";
51
- WeaponHash[WeaponHash["RayCarbine"] = 1198256469] = "RayCarbine";
52
- // Light Machine Guns
53
- WeaponHash[WeaponHash["MG"] = -1660422300] = "MG";
54
- WeaponHash[WeaponHash["CombatMG"] = 2144741730] = "CombatMG";
55
- WeaponHash[WeaponHash["CombatMGMk2"] = 3686625920] = "CombatMGMk2";
56
- WeaponHash[WeaponHash["Gusenberg"] = 1627465347] = "Gusenberg";
57
- // shotguns
58
- WeaponHash[WeaponHash["PumpShotgun"] = 487013001] = "PumpShotgun";
59
- WeaponHash[WeaponHash["PumpShotgunMk2"] = 1432025498] = "PumpShotgunMk2";
60
- WeaponHash[WeaponHash["SawnOffShotgun"] = 2017895192] = "SawnOffShotgun";
61
- WeaponHash[WeaponHash["AssaultShotgun"] = -494615257] = "AssaultShotgun";
62
- WeaponHash[WeaponHash["BullpupShotgun"] = -1654528753] = "BullpupShotgun";
63
- WeaponHash[WeaponHash["Musket"] = -1466123874] = "Musket";
64
- WeaponHash[WeaponHash["HeavyShotgun"] = 984333226] = "HeavyShotgun";
65
- WeaponHash[WeaponHash["DoubleBarrelShotgun"] = -275439685] = "DoubleBarrelShotgun";
66
- WeaponHash[WeaponHash["SweeperShotgun"] = 317205821] = "SweeperShotgun";
67
- WeaponHash[WeaponHash["CombatShotgun"] = 94989220] = "CombatShotgun";
68
- // Assault Rifles
69
- WeaponHash[WeaponHash["AssaultRifle"] = -1074790547] = "AssaultRifle";
70
- WeaponHash[WeaponHash["AssaultRifleMk2"] = 961495388] = "AssaultRifleMk2";
71
- WeaponHash[WeaponHash["CarbineRifle"] = -2084633992] = "CarbineRifle";
72
- WeaponHash[WeaponHash["CarbineRifleMk2"] = 4208062921] = "CarbineRifleMk2";
73
- WeaponHash[WeaponHash["AdvancedRifle"] = -1357824103] = "AdvancedRifle";
74
- WeaponHash[WeaponHash["SpecialCarbine"] = -1063057011] = "SpecialCarbine";
75
- WeaponHash[WeaponHash["SpecialCarbineMk2"] = -1768145561] = "SpecialCarbineMk2";
76
- WeaponHash[WeaponHash["BullpupRifle"] = 2132975508] = "BullpupRifle";
77
- WeaponHash[WeaponHash["BullpupRifleMk2"] = -2066285827] = "BullpupRifleMk2";
78
- WeaponHash[WeaponHash["CompactRifle"] = 1649403952] = "CompactRifle";
79
- WeaponHash[WeaponHash["MilitaryRifle"] = -1658906650] = "MilitaryRifle";
80
- WeaponHash[WeaponHash["HeavyRifle"] = -947031628] = "HeavyRifle";
81
- // Sniper Rifles
82
- WeaponHash[WeaponHash["SniperRifle"] = 100416529] = "SniperRifle";
83
- WeaponHash[WeaponHash["HeavySniper"] = 205991906] = "HeavySniper";
84
- WeaponHash[WeaponHash["HeavySniperMk2"] = 177293209] = "HeavySniperMk2";
85
- WeaponHash[WeaponHash["MarksmanRifle"] = -952879014] = "MarksmanRifle";
86
- WeaponHash[WeaponHash["MarksmanRifleMk2"] = 1785463520] = "MarksmanRifleMk2";
87
- // Heavy Weapons
88
- WeaponHash[WeaponHash["RPG"] = -1312131151] = "RPG";
89
- WeaponHash[WeaponHash["GrenadeLauncher"] = -1568386805] = "GrenadeLauncher";
90
- WeaponHash[WeaponHash["GrenadeLauncherSmoke"] = 1305664598] = "GrenadeLauncherSmoke";
91
- WeaponHash[WeaponHash["Minigun"] = 1119849093] = "Minigun";
92
- WeaponHash[WeaponHash["Firework"] = 2138347493] = "Firework";
93
- WeaponHash[WeaponHash["Railgun"] = 1834241177] = "Railgun";
94
- WeaponHash[WeaponHash["HomingLauncher"] = 1672152130] = "HomingLauncher";
95
- WeaponHash[WeaponHash["CompactGrenadeLauncher"] = 125959754] = "CompactGrenadeLauncher";
96
- WeaponHash[WeaponHash["RayMinigun"] = -1238556825] = "RayMinigun";
97
- WeaponHash[WeaponHash["EmpLauncher"] = -618237638] = "EmpLauncher";
98
- // Throwables
99
- WeaponHash[WeaponHash["Grenade"] = -1813897027] = "Grenade";
100
- WeaponHash[WeaponHash["BZGas"] = -1600701090] = "BZGas";
101
- WeaponHash[WeaponHash["Molotov"] = 615608432] = "Molotov";
102
- WeaponHash[WeaponHash["StickyBomb"] = 741814745] = "StickyBomb";
103
- WeaponHash[WeaponHash["ProximityMine"] = -1420407917] = "ProximityMine";
104
- WeaponHash[WeaponHash["Snowball"] = 126349499] = "Snowball";
105
- WeaponHash[WeaponHash["PipeBomb"] = -1169823560] = "PipeBomb";
106
- WeaponHash[WeaponHash["Ball"] = 600439132] = "Ball";
107
- WeaponHash[WeaponHash["SmokeGrenade"] = -37975472] = "SmokeGrenade";
108
- WeaponHash[WeaponHash["Flare"] = 1233104067] = "Flare";
109
- // Miscellaneous
110
- WeaponHash[WeaponHash["PetrolCan"] = 883325847] = "PetrolCan";
111
- WeaponHash[WeaponHash["Parachute"] = -72657034] = "Parachute";
112
- WeaponHash[WeaponHash["FireExtinguisher"] = 101631238] = "FireExtinguisher";
113
- WeaponHash[WeaponHash["HazardCan"] = -1168940174] = "HazardCan";
114
- WeaponHash[WeaponHash["FertilizerCan"] = 406929569] = "FertilizerCan";
115
- })(WeaponHash || (WeaponHash = {}));
116
- export var VehicleWeaponHash;
117
- (function (VehicleWeaponHash) {
118
- VehicleWeaponHash[VehicleWeaponHash["Invalid"] = -1] = "Invalid";
119
- VehicleWeaponHash[VehicleWeaponHash["Tank"] = 1945616459] = "Tank";
120
- VehicleWeaponHash[VehicleWeaponHash["SpaceRocket"] = -123497569] = "SpaceRocket";
121
- VehicleWeaponHash[VehicleWeaponHash["PlaneRocket"] = -821520672] = "PlaneRocket";
122
- VehicleWeaponHash[VehicleWeaponHash["PlayerLaser"] = -268631733] = "PlayerLaser";
123
- VehicleWeaponHash[VehicleWeaponHash["PlayerBullet"] = 1259576109] = "PlayerBullet";
124
- VehicleWeaponHash[VehicleWeaponHash["PlayerBuzzard"] = 1186503822] = "PlayerBuzzard";
125
- VehicleWeaponHash[VehicleWeaponHash["PlayerHunter"] = -1625648674] = "PlayerHunter";
126
- VehicleWeaponHash[VehicleWeaponHash["PlayerLazer"] = -494786007] = "PlayerLazer";
127
- VehicleWeaponHash[VehicleWeaponHash["EnemyLaser"] = 1566990507] = "EnemyLaser";
128
- VehicleWeaponHash[VehicleWeaponHash["SearchLight"] = -844344963] = "SearchLight";
129
- VehicleWeaponHash[VehicleWeaponHash["Radar"] = -764006018] = "Radar";
130
- })(VehicleWeaponHash || (VehicleWeaponHash = {}));
131
- // TODO: Convert this to uint instead of hash
132
- export var AmmoType;
133
- (function (AmmoType) {
134
- AmmoType[AmmoType["Melee"] = 0] = "Melee";
135
- AmmoType[AmmoType["FireExtinguisher"] = 1359393852] = "FireExtinguisher";
136
- AmmoType[AmmoType["Flare"] = 1808594799] = "Flare";
137
- AmmoType[AmmoType["FlareGun"] = 1173416293] = "FlareGun";
138
- AmmoType[AmmoType["PetrolCan"] = 3395492001] = "PetrolCan";
139
- AmmoType[AmmoType["Shotgun"] = 2416459067] = "Shotgun";
140
- AmmoType[AmmoType["Pistol"] = 1950175060] = "Pistol";
141
- AmmoType[AmmoType["Ball"] = 4287981158] = "Ball";
142
- AmmoType[AmmoType["Snowball"] = 2182627693] = "Snowball";
143
- AmmoType[AmmoType["Sniper"] = 1285032059] = "Sniper";
144
- AmmoType[AmmoType["AssaultRifle"] = 218444191] = "AssaultRifle";
145
- AmmoType[AmmoType["SMG"] = 1820140472] = "SMG";
146
- AmmoType[AmmoType["Molotov"] = 1446246869] = "Molotov";
147
- AmmoType[AmmoType["StunGun"] = 2955849184] = "StunGun";
148
- AmmoType[AmmoType["MG"] = 1788949567] = "MG";
149
- AmmoType[AmmoType["GrenadeLauncher"] = 1003267566] = "GrenadeLauncher";
150
- AmmoType[AmmoType["RPG"] = 1742569970] = "RPG";
151
- AmmoType[AmmoType["Minigun"] = 2680539266] = "Minigun";
152
- AmmoType[AmmoType["Firework"] = 2938367503] = "Firework";
153
- AmmoType[AmmoType["Railgun"] = 2034517757] = "Railgun";
154
- AmmoType[AmmoType["HomingLauncher"] = 2568293933] = "HomingLauncher";
155
- AmmoType[AmmoType["Grenade"] = 1003688881] = "Grenade";
156
- AmmoType[AmmoType["StickyBomb"] = 1411692055] = "StickyBomb";
157
- AmmoType[AmmoType["ProximityMine"] = 2938243239] = "ProximityMine";
158
- AmmoType[AmmoType["PipeBomb"] = 357983224] = "PipeBomb";
159
- AmmoType[AmmoType["SmokeGrenade"] = 3859679398] = "SmokeGrenade";
160
- AmmoType[AmmoType["BZGas"] = 2608103076] = "BZGas";
161
- })(AmmoType || (AmmoType = {}));
@@ -1,22 +0,0 @@
1
- /**
2
- * Same list as Weather enum, but as hashes.
3
- */
4
- export var WeatherTypeHash;
5
- (function (WeatherTypeHash) {
6
- WeatherTypeHash[WeatherTypeHash["Unknown"] = -1] = "Unknown";
7
- WeatherTypeHash[WeatherTypeHash["ExtraSunny"] = -1750463879] = "ExtraSunny";
8
- WeatherTypeHash[WeatherTypeHash["Clear"] = 916995460] = "Clear";
9
- WeatherTypeHash[WeatherTypeHash["Neutral"] = -1530260698] = "Neutral";
10
- WeatherTypeHash[WeatherTypeHash["Smog"] = 282916021] = "Smog";
11
- WeatherTypeHash[WeatherTypeHash["Foggy"] = -1368164796] = "Foggy";
12
- WeatherTypeHash[WeatherTypeHash["Clouds"] = 821931868] = "Clouds";
13
- WeatherTypeHash[WeatherTypeHash["Overcast"] = -1148613331] = "Overcast";
14
- WeatherTypeHash[WeatherTypeHash["Clearing"] = 1840358669] = "Clearing";
15
- WeatherTypeHash[WeatherTypeHash["Raining"] = 1420204096] = "Raining";
16
- WeatherTypeHash[WeatherTypeHash["ThunderStorm"] = -1233681761] = "ThunderStorm";
17
- WeatherTypeHash[WeatherTypeHash["Blizzard"] = 669657108] = "Blizzard";
18
- WeatherTypeHash[WeatherTypeHash["Snowing"] = -273223690] = "Snowing";
19
- WeatherTypeHash[WeatherTypeHash["Snowlight"] = 603685163] = "Snowlight";
20
- WeatherTypeHash[WeatherTypeHash["Christmas"] = -1429616491] = "Christmas";
21
- WeatherTypeHash[WeatherTypeHash["Halloween"] = -921030142] = "Halloween";
22
- })(WeatherTypeHash || (WeatherTypeHash = {}));
package/hashes/index.js DELETED
@@ -1,5 +0,0 @@
1
- export { MaterialHash } from "./MaterialHash";
2
- export { PedHash } from "./PedHash";
3
- export { VehicleHash } from "./VehicleHash";
4
- export { AmmoType, WeaponHash, VehicleWeaponHash } from "./WeaponHash";
5
- export { WeatherTypeHash } from "./WeatherTypeHash";
@@ -1 +0,0 @@
1
- export {};
@@ -1,477 +0,0 @@
1
- import { Blip } from "../Blip";
2
- import { ForceType } from "../enums";
3
- import { Model } from "../Model";
4
- import { Quaternion, Vector3 } from "../utils";
5
- import { EntityBoneCollection } from "./";
6
- import cfx from "../cfx";
7
- import { ClassTypes } from "../../common/utils/ClassTypes";
8
- export class BaseEntity {
9
- static fromNetworkId(networkId) {
10
- return new BaseEntity(NetworkGetEntityFromNetworkId(networkId));
11
- }
12
- static fromStateBagName(stateBagName) {
13
- const entity = GetEntityFromStateBagName(stateBagName);
14
- if (entity === 0)
15
- return null;
16
- return new BaseEntity(entity);
17
- }
18
- handle;
19
- bones;
20
- stateBagCookies = [];
21
- netId = null;
22
- type = ClassTypes.Entity;
23
- constructor(handle) {
24
- this.handle = handle;
25
- if (this.IsNetworked) {
26
- this.netId = this.NetworkId;
27
- }
28
- }
29
- get Handle() {
30
- return this.handle;
31
- }
32
- /**
33
- * @returns if the entity is a networked entity or local entity
34
- */
35
- get IsNetworked() {
36
- return NetworkGetEntityIsNetworked(this.handle);
37
- }
38
- set IsNetworked(networked) {
39
- if (networked) {
40
- NetworkRegisterEntityAsNetworked(this.handle);
41
- }
42
- else {
43
- NetworkUnregisterNetworkedEntity(this.handle);
44
- }
45
- }
46
- get NetworkId() {
47
- if (this.netId) {
48
- return this.netId;
49
- }
50
- return NetworkGetNetworkIdFromEntity(this.handle);
51
- }
52
- get IsNetworkConcealed() {
53
- return NetworkIsEntityConcealed(this.handle);
54
- }
55
- set IsNetworkConcealed(concealed) {
56
- NetworkConcealEntity(this.handle, concealed);
57
- }
58
- get State() {
59
- return cfx.Entity(this.handle).state;
60
- }
61
- AddStateBagChangeHandler(keyFilter, handler) {
62
- const stateBagName = this.IsNetworked
63
- ? `entity:${this.NetworkId}`
64
- : `localEntity:${this.handle}`;
65
- // keyFilter is casted to any because it can take a null value.
66
- /* eslint-disable @typescript-eslint/no-explicit-any */
67
- const cookie = AddStateBagChangeHandler(keyFilter, stateBagName, handler);
68
- this.stateBagCookies.push(cookie);
69
- return cookie;
70
- }
71
- /**
72
- * A short hand function for AddStateBagChangeHandler, this gets automatically cleaned up on entity deletion.
73
- * @param keyFilter the key to filter for or null
74
- * @param handler the function to handle the change
75
- * @returns a cookie to be used in RemoveStateBagChangeHandler
76
- */
77
- listenForStateChange(keyFilter, handler) {
78
- return this.AddStateBagChangeHandler(keyFilter, handler);
79
- }
80
- removeStateListener(tgtCookie) {
81
- this.stateBagCookies = this.stateBagCookies.filter((cookie) => {
82
- const isCookie = cookie == tgtCookie;
83
- if (isCookie)
84
- RemoveStateBagChangeHandler(cookie);
85
- return isCookie;
86
- });
87
- }
88
- get Owner() {
89
- return NetworkGetEntityOwner(this.handle);
90
- }
91
- // public isPlayerOwner(player: Player): boolean {
92
- // return this.Owner === player.Handle;
93
- // }
94
- get Speed() {
95
- return GetEntitySpeed(this.handle);
96
- }
97
- getSpeedVector(isRelative = false) {
98
- return Vector3.fromArray(GetEntitySpeedVector(this.handle, isRelative));
99
- }
100
- get ForwardVector() {
101
- return Vector3.fromArray(GetEntityForwardVector(this.handle));
102
- }
103
- get Matrix() {
104
- return Vector3.fromArrays(GetEntityMatrix(this.handle));
105
- }
106
- set Matrix(vectors) {
107
- if (vectors.length !== 4)
108
- throw Error(`Expected 4 Vectors, got ${vectors.length}`);
109
- const [forward, right, up, pos] = vectors;
110
- SetEntityMatrix(this.handle, forward.x, forward.y, forward.z, right.x, right.y, right.z, up.x, up.y, up.z, pos.x, pos.y, pos.z);
111
- }
112
- get Health() {
113
- return GetEntityHealth(this.handle);
114
- }
115
- set Health(amount) {
116
- SetEntityHealth(this.handle, amount);
117
- }
118
- get MaxHealth() {
119
- return GetEntityMaxHealth(this.handle);
120
- }
121
- set MaxHealth(amount) {
122
- SetEntityMaxHealth(this.handle, amount);
123
- }
124
- set IsDead(value) {
125
- if (value) {
126
- SetEntityHealth(this.handle, 0);
127
- }
128
- else {
129
- SetEntityHealth(this.handle, 200);
130
- }
131
- }
132
- get IsDead() {
133
- return IsEntityDead(this.handle);
134
- }
135
- get IsAlive() {
136
- return !IsEntityDead(this.handle);
137
- }
138
- /**
139
- * @deprecated use [[IsDead]] instead
140
- */
141
- isDead() {
142
- return IsEntityDead(this.handle);
143
- }
144
- /**
145
- * @deprecated use [[IsAlive]] instead
146
- */
147
- isAlive() {
148
- return !this.isDead();
149
- }
150
- get Model() {
151
- return new Model(GetEntityModel(this.handle));
152
- }
153
- /**
154
- * Returns if the entity is set as a mission entity and will not be cleaned up by the engine
155
- */
156
- get IsMissionEntity() {
157
- return IsEntityAMissionEntity(this.handle);
158
- }
159
- /**
160
- * Sets if the entity is a mission entity and will not be cleaned up by the engine
161
- */
162
- set IsMissionEntity(value) {
163
- if (value) {
164
- SetEntityAsMissionEntity(this.handle, false, false);
165
- }
166
- else {
167
- SetEntityAsNoLongerNeeded(this.handle);
168
- }
169
- }
170
- get Position() {
171
- return Vector3.fromArray(GetEntityCoords(this.handle, false));
172
- }
173
- set Position(position) {
174
- SetEntityCoords(this.handle, position.x, position.y, position.z, false, false, false, true);
175
- }
176
- set PositionNoOffset(position) {
177
- SetEntityCoordsNoOffset(this.handle, position.x, position.y, position.z, true, true, true);
178
- }
179
- get Rotation() {
180
- return Vector3.fromArray(GetEntityRotation(this.handle, 2));
181
- }
182
- set Rotation(rotation) {
183
- SetEntityRotation(this.handle, rotation.x, rotation.y, rotation.z, 2, true);
184
- }
185
- get Quaternion() {
186
- const quaternion = GetEntityQuaternion(this.handle);
187
- return new Quaternion(quaternion[0], quaternion[1], quaternion[2], quaternion[3]);
188
- }
189
- set Quaternion(quaternion) {
190
- SetEntityQuaternion(this.handle, quaternion.x, quaternion.y, quaternion.z, quaternion.w);
191
- }
192
- get Heading() {
193
- return GetEntityHeading(this.handle);
194
- }
195
- set Heading(heading) {
196
- SetEntityHeading(this.handle, heading);
197
- }
198
- get IsPositionFrozen() {
199
- return IsEntityPositionFrozen(this.handle);
200
- }
201
- set IsPositionFrozen(value) {
202
- FreezeEntityPosition(this.handle, value);
203
- }
204
- get Velocity() {
205
- return Vector3.fromArray(GetEntityVelocity(this.handle));
206
- }
207
- set Velocity(velocity) {
208
- SetEntityVelocity(this.handle, velocity.x, velocity.y, velocity.z);
209
- }
210
- get RotationVelocity() {
211
- return Vector3.fromArray(GetEntityRotationVelocity(this.handle));
212
- }
213
- set MaxSpeed(value) {
214
- SetEntityMaxSpeed(this.handle, value);
215
- }
216
- set HasGravity(value) {
217
- SetEntityHasGravity(this.handle, value);
218
- }
219
- get HeightAboveGround() {
220
- return GetEntityHeightAboveGround(this.handle);
221
- }
222
- get SubmersionLevel() {
223
- return GetEntitySubmergedLevel(this.handle);
224
- }
225
- get LodDistance() {
226
- return GetEntityLodDist(this.handle);
227
- }
228
- set LodDistance(value) {
229
- SetEntityLodDist(this.handle, value);
230
- }
231
- get IsVisible() {
232
- return IsEntityVisible(this.handle);
233
- }
234
- set IsVisible(value) {
235
- SetEntityVisible(this.handle, value, false);
236
- }
237
- get IsOccluded() {
238
- return IsEntityOccluded(this.handle);
239
- }
240
- get IsOnScreen() {
241
- return IsEntityOnScreen(this.handle);
242
- }
243
- get IsUpright() {
244
- return IsEntityUpright(this.handle, 0);
245
- }
246
- get IsUpsideDown() {
247
- return IsEntityUpsidedown(this.handle);
248
- }
249
- get IsInAir() {
250
- return IsEntityInAir(this.handle);
251
- }
252
- get IsInWater() {
253
- return IsEntityInWater(this.handle);
254
- }
255
- /**
256
- * @deprecated use [[IsMissionEntity]] instead as its more obvious as what it does
257
- */
258
- get IsPersistent() {
259
- return IsEntityAMissionEntity(this.handle);
260
- }
261
- /**
262
- * @deprecated use [[IsMissionEntity]] instead as its more obvious as what it does
263
- */
264
- set IsPersistent(value) {
265
- if (value) {
266
- SetEntityAsMissionEntity(this.handle, true, false);
267
- }
268
- else {
269
- SetEntityAsNoLongerNeeded(this.handle);
270
- }
271
- }
272
- get IsOnFire() {
273
- return IsEntityOnFire(this.handle);
274
- }
275
- set IsInvincible(value) {
276
- SetEntityInvincible(this.handle, value);
277
- }
278
- set IsOnlyDamagedByPlayer(value) {
279
- SetEntityOnlyDamagedByPlayer(this.handle, value);
280
- }
281
- get Opacity() {
282
- return GetEntityAlpha(this.handle);
283
- }
284
- /**
285
- * Sets how transparent an entity is, if you want to reset the alpha level use [[resetOpacity]] instead;
286
- */
287
- set Opacity(value) {
288
- SetEntityAlpha(this.handle, value, false);
289
- }
290
- resetOpacity() {
291
- ResetEntityAlpha(this.handle);
292
- }
293
- get HasCollided() {
294
- return HasEntityCollidedWithAnything(this.handle);
295
- }
296
- get MaterialCollidingWith() {
297
- return GetLastMaterialHitByEntity(this.handle);
298
- }
299
- get IsCollisionEnabled() {
300
- return !GetEntityCollisonDisabled(this.handle);
301
- }
302
- set IsCollisionEnabled(value) {
303
- SetEntityCollision(this.handle, value, false);
304
- }
305
- set IsRecordingCollisions(value) {
306
- SetEntityRecordsCollisions(this.handle, value);
307
- }
308
- get Bones() {
309
- if (!this.bones) {
310
- this.bones = new EntityBoneCollection(this);
311
- }
312
- return this.bones;
313
- }
314
- get AttachedBlip() {
315
- const handle = GetBlipFromEntity(this.handle);
316
- if (DoesBlipExist(handle)) {
317
- return new Blip(handle);
318
- }
319
- return null;
320
- }
321
- attachBlip() {
322
- return new Blip(AddBlipForEntity(this.handle));
323
- }
324
- setNoCollision(entity, toggle) {
325
- SetEntityNoCollisionEntity(this.handle, entity.Handle, toggle);
326
- }
327
- hasClearLosToEntity(entity, traceType = 17) {
328
- return HasEntityClearLosToEntity(this.handle, entity.Handle, traceType);
329
- }
330
- hasClearLosToEntityInFront(entity) {
331
- return HasEntityClearLosToEntityInFront(this.handle, entity.Handle);
332
- }
333
- hasBeenDamagedBy(entity) {
334
- return HasEntityBeenDamagedByEntity(this.handle, entity.Handle, true);
335
- }
336
- hasBeenDamagedByWeapon(weapon) {
337
- return HasEntityBeenDamagedByWeapon(this.handle, Number(weapon), 0);
338
- }
339
- hasBeenDamagedByAnyWeapon() {
340
- return HasEntityBeenDamagedByWeapon(this.handle, 0, 2);
341
- }
342
- hasBeenDamagedByAnyMeleeWeapon() {
343
- return HasEntityBeenDamagedByWeapon(this.handle, 0, 1);
344
- }
345
- clearLastWeaponDamage() {
346
- ClearEntityLastWeaponDamage(this.handle);
347
- }
348
- isInArea(minBounds, maxBounds) {
349
- return IsEntityInArea(this.handle, minBounds.x, minBounds.y, minBounds.z, maxBounds.x, maxBounds.y, maxBounds.z, false, false, 0);
350
- }
351
- isInAngledArea(origin, edge, angle) {
352
- return IsEntityInAngledArea(this.handle, origin.x, origin.y, origin.z, edge.x, edge.y, edge.z, angle, false, true, 0);
353
- }
354
- isInRangeOf(position, range) {
355
- const v = Vector3.subtract(this.Position, position);
356
- return v.dotProduct(v) < range * range;
357
- }
358
- isNearEntity(entity, bounds) {
359
- return IsEntityAtEntity(this.handle, entity.Handle, bounds.x, bounds.y, bounds.z, false, true, 0);
360
- }
361
- isTouching(entity) {
362
- return IsEntityTouchingEntity(this.handle, entity.Handle);
363
- }
364
- isTouchingModel(model) {
365
- return IsEntityTouchingModel(this.handle, model.Hash);
366
- }
367
- /**
368
- * @param offset: the amount to offset from the entity
369
- * @returns the offset position from the entity in world coords
370
- */
371
- getOffsetInRelativeCoords(worldCoords) {
372
- return Vector3.fromArray(GetOffsetFromEntityGivenWorldCoords(this.handle, worldCoords.x, worldCoords.y, worldCoords.z));
373
- }
374
- // TODO: Better example
375
- /**
376
- * @example
377
- * ```typescript
378
- * const ply = Game.PlayerPed;
379
- * const plyPos = ply.Position;
380
- * const bag = await World.createProp(new Model('ba_prop_battle_bag_01b'), plyPos, true, true, true);
381
- * bag.attachToBone(
382
- * ply.Bones.getBone(64113),
383
- * new Vector3(0.12, -0.25, 0.0),
384
- * new Vector3(105.0, 50.0, 190.0)
385
- * )
386
- * const offset = bag.getRelativePositionOffset(plyPos);
387
- * ```
388
- * @param worldCoords: the offset given the world coords
389
- * @returns the offset position from the entity in relative coords
390
- */
391
- getOffsetInWorldCoords(offset) {
392
- return Vector3.fromArray(GetOffsetFromEntityInWorldCoords(this.handle, offset.x, offset.y, offset.z));
393
- }
394
- /**
395
- * @deprecated use [[getOffsetInRelativeCoords]] instead
396
- */
397
- getPositionOffset(worldCoords) {
398
- return this.getOffsetInRelativeCoords(worldCoords);
399
- }
400
- /**
401
- * @deprecated use [[getOffsetInWorldCoords]]
402
- */
403
- getOffsetPosition(offset) {
404
- return this.getOffsetInWorldCoords(offset);
405
- }
406
- attachTo(entity, position, rotation, collisions = false, unk9 = true, useSoftPinning = true, rotationOrder = 1) {
407
- if (this.handle == entity.Handle) {
408
- throw new Error("You cannot attach an entity to the same entity this will result in a crash!");
409
- }
410
- AttachEntityToEntity(this.handle, entity.Handle, -1, position.x, position.y, position.z, rotation.x, rotation.y, rotation.z, unk9, useSoftPinning, collisions, IsEntityAPed(entity.Handle), rotationOrder, true);
411
- }
412
- /*
413
- * Attaches an entity to another entity via a bone
414
- * @example
415
- * ```typescript
416
- * const ply = Game.PlayerPed;
417
- * const bag = await World.createProp(new Model('ba_prop_battle_bag_01b'), ply.Position, true, true, true);
418
- * bag.attachToBone(
419
- * ply.Bones.getBone(64113),
420
- * new Vector3(0.12, -0.25, 0.0),
421
- * new Vector3(105.0, 50.0, 190.0)
422
- * )
423
- * ```
424
- */
425
- attachToBone(entityBone, position, rotation, collisions = false, unk9 = true, useSoftPinning = true, rotationOrder = 1) {
426
- if (this.handle == entityBone.Owner.Handle) {
427
- throw new Error("You cannot attach an entity to the same entity this will result in a crash!");
428
- }
429
- AttachEntityToEntity(this.handle, entityBone.Owner.Handle, entityBone.Index, position.x, position.y, position.z, rotation.x, rotation.y, rotation.z, unk9, useSoftPinning, collisions, IsEntityAPed(entityBone.Owner.Handle), rotationOrder, true);
430
- }
431
- detach() {
432
- DetachEntity(this.handle, true, true);
433
- }
434
- isAttached() {
435
- return IsEntityAttached(this.handle);
436
- }
437
- isAttachedTo(entity) {
438
- return IsEntityAttachedToEntity(this.handle, entity.Handle);
439
- }
440
- getEntityAttachedTo() {
441
- return new BaseEntity(GetEntityAttachedTo(this.handle));
442
- }
443
- applyForce(direction, rotation, forceType = ForceType.MaxForceRot2) {
444
- ApplyForceToEntity(this.handle, Number(forceType), direction.x, direction.y, direction.z, rotation.x, rotation.y, rotation.z, 0, false, true, true, false, true);
445
- }
446
- applyForceRelative(direction, rotation, forceType = ForceType.MaxForceRot2) {
447
- ApplyForceToEntity(this.handle, Number(forceType), direction.x, direction.y, direction.z, rotation.x, rotation.y, rotation.z, 0, true, true, true, false, true);
448
- }
449
- /**
450
- * Removes all particle effects from the entity
451
- */
452
- removePtfxEffects() {
453
- RemoveParticleFxFromEntity(this.handle);
454
- }
455
- /**
456
- * @deprecated use [[removePtfxEffects]]
457
- */
458
- removeAllParticleEffects() {
459
- this.removePtfxEffects();
460
- }
461
- exists() {
462
- return DoesEntityExist(this.handle);
463
- }
464
- delete() {
465
- this.IsMissionEntity = true;
466
- DeleteEntity(this.handle);
467
- for (const cookie of this.stateBagCookies) {
468
- RemoveStateBagChangeHandler(cookie);
469
- }
470
- }
471
- /**
472
- * @deprecated use [[IsMissionEntity]] setter as false instead.
473
- */
474
- markAsNoLongerNeeded() {
475
- SetEntityAsNoLongerNeeded(this.Handle);
476
- }
477
- }