@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.
Files changed (438) hide show
  1. package/{client/Audio.d.ts → Audio.d.ts} +3 -3
  2. package/{client/Audio.js → Audio.js} +44 -43
  3. package/{client/Blip.d.ts → Blip.d.ts} +3 -3
  4. package/{client/Blip.js → Blip.js} +4 -3
  5. package/{client/Camera.d.ts → Camera.d.ts} +4 -4
  6. package/{client/Camera.js → Camera.js} +18 -17
  7. package/{client/Checkpoint.d.ts → Checkpoint.d.ts} +2 -2
  8. package/{client/Checkpoint.js → Checkpoint.js} +7 -6
  9. package/{client/Events.js → Events.js} +23 -23
  10. package/{client/Game.d.ts → Game.d.ts} +4 -3
  11. package/{client/Game.js → Game.js} +16 -10
  12. package/{client/GameplayCamera.d.ts → GameplayCamera.d.ts} +2 -2
  13. package/{client/GameplayCamera.js → GameplayCamera.js} +2 -2
  14. package/{client/Model.d.ts → Model.d.ts} +4 -2
  15. package/{client/Model.js → Model.js} +19 -5
  16. package/{client/NetworkedScene.d.ts → NetworkedScene.d.ts} +2 -2
  17. package/{client/NetworkedScene.js → NetworkedScene.js} +1 -0
  18. package/{client/ParticleEffect.d.ts → ParticleEffect.d.ts} +3 -3
  19. package/{client/ParticleEffect.js → ParticleEffect.js} +11 -8
  20. package/{client/ParticleEffectAsset.d.ts → ParticleEffectAsset.d.ts} +3 -3
  21. package/{client/ParticleEffectAsset.js → ParticleEffectAsset.js} +4 -3
  22. package/{client/Pickup.d.ts → Pickup.d.ts} +1 -1
  23. package/{client/Pickup.js → Pickup.js} +2 -1
  24. package/{client/Raycast.d.ts → Raycast.d.ts} +3 -3
  25. package/{client/Raycast.js → Raycast.js} +10 -3
  26. package/{client/RelationshipGroup.d.ts → RelationshipGroup.d.ts} +1 -1
  27. package/{client/RelationshipGroup.js → RelationshipGroup.js} +4 -0
  28. package/{client/Rope.d.ts → Rope.d.ts} +2 -2
  29. package/{client/Rope.js → Rope.js} +6 -2
  30. package/{client/TaskSequence.d.ts → TaskSequence.d.ts} +1 -1
  31. package/{client/TaskSequence.js → TaskSequence.js} +5 -2
  32. package/{client/Tasks.d.ts → Tasks.d.ts} +5 -5
  33. package/{client/Tasks.js → Tasks.js} +7 -6
  34. package/{client/World.d.ts → World.d.ts} +20 -12
  35. package/{client/World.js → World.js} +66 -62
  36. package/{client/cfx → cfx}/index.d.ts +1 -1
  37. package/{client/enums → enums}/RaycastEnums.js +3 -1
  38. package/enums/index.d.ts +42 -0
  39. package/enums/index.js +42 -0
  40. package/hashes/index.d.ts +5 -0
  41. package/hashes/index.js +5 -0
  42. package/index.d.ts +24 -0
  43. package/index.js +25 -0
  44. package/{client/interfaces → interfaces}/Dimensions.d.ts +1 -1
  45. package/{client/models → models}/BaseEntity.d.ts +26 -26
  46. package/{client/models → models}/BaseEntity.js +32 -30
  47. package/{client/models → models}/EntityBone.d.ts +2 -2
  48. package/{client/models → models}/EntityBone.js +4 -2
  49. package/{client/models → models}/EntityBoneCollection.d.ts +2 -2
  50. package/{client/models → models}/EntityBoneCollection.js +5 -2
  51. package/{client/models → models}/Ped.d.ts +20 -9
  52. package/{client/models → models}/Ped.js +66 -56
  53. package/{client/models → models}/PedBone.d.ts +2 -2
  54. package/{client/models → models}/PedBone.js +1 -1
  55. package/{client/models → models}/PedBoneCollection.d.ts +1 -1
  56. package/{client/models → models}/PedBoneCollection.js +4 -2
  57. package/{client/models → models}/Player.d.ts +3 -3
  58. package/{client/models → models}/Player.js +12 -9
  59. package/{client/models → models}/Prop.d.ts +2 -2
  60. package/{client/models → models}/Prop.js +4 -4
  61. package/{client/models → models}/Vehicle.d.ts +6 -6
  62. package/{client/models → models}/Vehicle.js +22 -16
  63. package/{client/models → models}/VehicleDoor.d.ts +2 -2
  64. package/{client/models → models}/VehicleDoor.js +2 -0
  65. package/{client/models → models}/VehicleDoorCollection.d.ts +3 -3
  66. package/{client/models → models}/VehicleDoorCollection.js +16 -15
  67. package/{client/models → models}/VehicleMod.d.ts +2 -2
  68. package/{client/models → models}/VehicleMod.js +2 -0
  69. package/{client/models → models}/VehicleModCollection.d.ts +5 -5
  70. package/{client/models → models}/VehicleModCollection.js +20 -19
  71. package/{client/models → models}/VehicleToggleMod.d.ts +2 -2
  72. package/{client/models → models}/VehicleToggleMod.js +2 -0
  73. package/{client/models → models}/VehicleWheel.d.ts +1 -1
  74. package/{client/models → models}/VehicleWheel.js +2 -0
  75. package/{client/models → models}/VehicleWheelCollection.d.ts +3 -3
  76. package/{client/models → models}/VehicleWheelCollection.js +15 -14
  77. package/{client/models → models}/VehicleWindow.d.ts +2 -2
  78. package/{client/models → models}/VehicleWindow.js +2 -0
  79. package/{client/models → models}/VehicleWindowCollection.d.ts +3 -3
  80. package/{client/models → models}/VehicleWindowCollection.js +13 -12
  81. package/models/index.d.ts +18 -0
  82. package/models/index.js +19 -0
  83. package/package.json +6 -30
  84. package/{client/ui → ui}/Container.d.ts +2 -2
  85. package/{client/ui → ui}/Container.js +6 -3
  86. package/{client/ui → ui}/Effects.d.ts +1 -1
  87. package/ui/Effects.js +106 -0
  88. package/{client/ui → ui}/Fading.js +2 -2
  89. package/{client/ui → ui}/Hud.d.ts +2 -2
  90. package/{client/ui → ui}/Hud.js +1 -1
  91. package/{client/ui → ui}/InstructionalButtons.d.ts +1 -1
  92. package/{client/ui → ui}/InstructionalButtons.js +8 -7
  93. package/{client/ui → ui}/LoadingPrompt.d.ts +1 -1
  94. package/{client/ui → ui}/LoadingPrompt.js +5 -5
  95. package/{client/ui → ui}/Notification.js +1 -0
  96. package/{client/ui → ui}/Rectangle.d.ts +2 -2
  97. package/{client/ui → ui}/Rectangle.js +5 -2
  98. package/{client/ui → ui}/Scaleform.d.ts +1 -1
  99. package/{client/ui → ui}/Scaleform.js +10 -8
  100. package/{client/ui → ui}/Screen.d.ts +3 -3
  101. package/{client/ui → ui}/Screen.js +13 -13
  102. package/{client/ui → ui}/Sprite.d.ts +1 -1
  103. package/{client/ui → ui}/Sprite.js +10 -3
  104. package/{client/ui → ui}/Text.d.ts +3 -3
  105. package/{client/ui → ui}/Text.js +19 -7
  106. package/{client/ui → ui}/Timerbar.d.ts +1 -1
  107. package/{client/ui → ui}/Timerbar.js +37 -30
  108. package/ui/index.d.ts +15 -0
  109. package/ui/index.js +15 -0
  110. package/{client/ui → ui}/interfaces/IButton.d.ts +1 -1
  111. package/{client/ui → ui}/interfaces/IDrawable.d.ts +1 -1
  112. package/ui/interfaces/index.d.ts +2 -0
  113. package/{client/ui → ui}/menu/Menu.d.ts +4 -4
  114. package/{client/ui → ui}/menu/Menu.js +96 -67
  115. package/{client/ui → ui}/menu/MenuControl.js +1 -0
  116. package/{client/ui → ui}/menu/MenuControls.d.ts +1 -1
  117. package/ui/menu/MenuControls.js +9 -0
  118. package/{client/ui → ui}/menu/MenuSettings.d.ts +1 -1
  119. package/ui/menu/MenuSettings.js +54 -0
  120. package/ui/menu/index.d.ts +6 -0
  121. package/ui/menu/index.js +6 -0
  122. package/{client/ui → ui}/menu/items/UIMenuCheckboxItem.d.ts +3 -3
  123. package/{client/ui → ui}/menu/items/UIMenuCheckboxItem.js +17 -15
  124. package/{client/ui → ui}/menu/items/UIMenuItem.d.ts +4 -4
  125. package/{client/ui → ui}/menu/items/UIMenuItem.js +276 -255
  126. package/{client/ui → ui}/menu/items/UIMenuListItem.d.ts +3 -3
  127. package/{client/ui → ui}/menu/items/UIMenuListItem.js +28 -19
  128. package/{client/ui → ui}/menu/items/UIMenuSeparatorItem.d.ts +1 -1
  129. package/{client/ui → ui}/menu/items/UIMenuSeparatorItem.js +10 -10
  130. package/{client/ui → ui}/menu/items/UIMenuSliderItem.d.ts +3 -3
  131. package/{client/ui → ui}/menu/items/UIMenuSliderItem.js +45 -27
  132. package/ui/menu/items/index.d.ts +6 -0
  133. package/ui/menu/items/index.js +6 -0
  134. package/{client/ui → ui}/menu/items/panels/AbstractUIMenuPanel.d.ts +3 -3
  135. package/{client/ui → ui}/menu/items/panels/AbstractUIMenuPanel.js +9 -8
  136. package/{client/ui → ui}/menu/items/panels/UIMenuColorPanel.d.ts +3 -3
  137. package/{client/ui → ui}/menu/items/panels/UIMenuColorPanel.js +29 -23
  138. package/{client/ui → ui}/menu/items/panels/UIMenuGridPanel.d.ts +3 -3
  139. package/{client/ui → ui}/menu/items/panels/UIMenuGridPanel.js +86 -40
  140. package/{client/ui → ui}/menu/items/panels/UIMenuPercentagePanel.d.ts +2 -2
  141. package/{client/ui → ui}/menu/items/panels/UIMenuPercentagePanel.js +27 -18
  142. package/{client/ui → ui}/menu/items/panels/UIMenuStatisticsPanel.d.ts +2 -2
  143. package/{client/ui → ui}/menu/items/panels/UIMenuStatisticsPanel.js +10 -8
  144. package/{client/ui → ui}/menu/items/panels/UIMenuStatisticsPanelItem.d.ts +1 -1
  145. package/{client/ui → ui}/menu/items/panels/UIMenuStatisticsPanelItem.js +10 -7
  146. package/ui/menu/items/panels/index.d.ts +6 -0
  147. package/ui/menu/items/panels/index.js +6 -0
  148. package/{client/ui → ui}/menu/modules/ListItem.js +4 -2
  149. package/ui/menu/modules/index.d.ts +1 -0
  150. package/ui/menu/modules/index.js +1 -0
  151. package/{client/utils → utils}/Animations.js +2 -2
  152. package/{client/utils → utils}/Crypto.js +5 -5
  153. package/{client/utils → utils}/LiteEvent.js +3 -5
  154. package/{client/utils → utils}/Point.js +5 -3
  155. package/{common/utils → utils}/PointF.js +3 -0
  156. package/{client/utils → utils}/Quaternion.d.ts +1 -1
  157. package/{client/utils → utils}/Quaternion.js +5 -1
  158. package/{client/utils → utils}/Size.js +2 -0
  159. package/{client/utils → utils}/String.d.ts +1 -1
  160. package/{client/utils → utils}/String.js +3 -3
  161. package/{client/utils → utils}/enumValues.js +2 -2
  162. package/{client/utils → utils}/getStringFromUInt8Array.js +1 -1
  163. package/utils/index.d.ts +9 -0
  164. package/utils/index.js +9 -0
  165. package/{client/weapon → weapon}/DlcWeaponData.d.ts +1 -1
  166. package/{client/weapon → weapon}/DlcWeaponData.js +3 -3
  167. package/{client/weapon → weapon}/Weapon.d.ts +10 -10
  168. package/{client/weapon → weapon}/Weapon.js +17 -14
  169. package/{client/weapon → weapon}/WeaponAsset.d.ts +1 -1
  170. package/{client/weapon → weapon}/WeaponAsset.js +4 -3
  171. package/{client/weapon → weapon}/WeaponCollection.d.ts +3 -3
  172. package/{client/weapon → weapon}/WeaponCollection.js +4 -3
  173. package/{client/weapon → weapon}/WeaponDisplayNameByHash.d.ts +1 -1
  174. package/weapon/WeaponDisplayNameByHash.js +75 -0
  175. package/{client/weapon → weapon}/WeaponHudStats.d.ts +1 -1
  176. package/{client/weapon → weapon}/WeaponHudStats.js +4 -4
  177. package/weapon/index.d.ts +8 -0
  178. package/weapon/index.js +8 -0
  179. package/{client/weaponComponent → weaponComponent}/ComponentAttachmentPointByHash.d.ts +2 -2
  180. package/{client/weaponComponent → weaponComponent}/ComponentAttachmentPointByHash.js +355 -91
  181. package/{client/weaponComponent → weaponComponent}/ComponentDisplayNameByHash.d.ts +1 -1
  182. package/weaponComponent/ComponentDisplayNameByHash.js +280 -0
  183. package/{client/weaponComponent → weaponComponent}/DlcWeaponComponentData.d.ts +1 -1
  184. package/{client/weaponComponent → weaponComponent}/DlcWeaponComponentData.js +2 -2
  185. package/{client/weaponComponent → weaponComponent}/InvalidWeaponComponent.d.ts +4 -4
  186. package/{client/weaponComponent → weaponComponent}/InvalidWeaponComponent.js +5 -5
  187. package/{client/weaponComponent → weaponComponent}/WeaponComponent.d.ts +6 -6
  188. package/{client/weaponComponent → weaponComponent}/WeaponComponent.js +15 -11
  189. package/{client/weaponComponent → weaponComponent}/WeaponComponentCollection.d.ts +4 -4
  190. package/{client/weaponComponent → weaponComponent}/WeaponComponentCollection.js +13 -11
  191. package/{client/weaponComponent → weaponComponent}/WeaponComponentHashesByWeaponHash.d.ts +2 -2
  192. package/{client/weaponComponent → weaponComponent}/WeaponComponentHashesByWeaponHash.js +13 -7
  193. package/{client/weaponComponent → weaponComponent}/WeaponComponentHudStats.d.ts +1 -1
  194. package/{client/weaponComponent → weaponComponent}/WeaponComponentHudStats.js +4 -4
  195. package/weaponComponent/index.d.ts +5 -0
  196. package/weaponComponent/index.js +5 -0
  197. package/README.md +0 -41
  198. package/client/enums/index.d.ts +0 -42
  199. package/client/enums/index.js +0 -42
  200. package/client/hashes/index.d.ts +0 -5
  201. package/client/hashes/index.js +0 -5
  202. package/client/index.d.ts +0 -24
  203. package/client/index.js +0 -25
  204. package/client/models/index.d.ts +0 -18
  205. package/client/models/index.js +0 -19
  206. package/client/ui/Effects.js +0 -106
  207. package/client/ui/index.d.ts +0 -15
  208. package/client/ui/index.js +0 -15
  209. package/client/ui/interfaces/index.d.ts +0 -2
  210. package/client/ui/menu/MenuControls.js +0 -11
  211. package/client/ui/menu/MenuSettings.js +0 -51
  212. package/client/ui/menu/index.d.ts +0 -6
  213. package/client/ui/menu/index.js +0 -6
  214. package/client/ui/menu/items/index.d.ts +0 -6
  215. package/client/ui/menu/items/index.js +0 -6
  216. package/client/ui/menu/items/panels/index.d.ts +0 -6
  217. package/client/ui/menu/items/panels/index.js +0 -6
  218. package/client/ui/menu/modules/index.d.ts +0 -1
  219. package/client/ui/menu/modules/index.js +0 -1
  220. package/client/utils/PointF.js +0 -11
  221. package/client/utils/index.d.ts +0 -9
  222. package/client/utils/index.js +0 -9
  223. package/client/weapon/WeaponDisplayNameByHash.js +0 -75
  224. package/client/weapon/index.d.ts +0 -8
  225. package/client/weapon/index.js +0 -8
  226. package/client/weaponComponent/ComponentDisplayNameByHash.js +0 -280
  227. package/client/weaponComponent/index.d.ts +0 -5
  228. package/client/weaponComponent/index.js +0 -5
  229. package/common/Convar.d.ts +0 -8
  230. package/common/Convar.js +0 -20
  231. package/common/Kvp.d.ts +0 -91
  232. package/common/Kvp.js +0 -161
  233. package/common/Resource.d.ts +0 -14
  234. package/common/Resource.js +0 -35
  235. package/common/index.d.ts +0 -5
  236. package/common/index.js +0 -5
  237. package/common/types.d.ts +0 -5
  238. package/common/types.js +0 -1
  239. package/common/utils/ClassTypes.d.ts +0 -11
  240. package/common/utils/ClassTypes.js +0 -12
  241. package/common/utils/Color.d.ts +0 -14
  242. package/common/utils/Color.js +0 -21
  243. package/common/utils/Maths.d.ts +0 -4
  244. package/common/utils/Maths.js +0 -10
  245. package/common/utils/PointF.d.ts +0 -12
  246. package/common/utils/Quaternion.d.ts +0 -10
  247. package/common/utils/Quaternion.js +0 -23
  248. package/common/utils/Vector.d.ts +0 -390
  249. package/common/utils/Vector.js +0 -546
  250. package/common/utils/Vector2.d.ts +0 -1
  251. package/common/utils/Vector2.js +0 -1
  252. package/common/utils/Vector3.d.ts +0 -1
  253. package/common/utils/Vector3.js +0 -1
  254. package/common/utils/Vector4.d.ts +0 -1
  255. package/common/utils/Vector4.js +0 -1
  256. package/common/utils/cleanPlayerName.d.ts +0 -6
  257. package/common/utils/cleanPlayerName.js +0 -27
  258. package/common/utils/enumValues.d.ts +0 -12
  259. package/common/utils/enumValues.js +0 -14
  260. package/common/utils/getStringFromUInt8Array.d.ts +0 -8
  261. package/common/utils/getStringFromUInt8Array.js +0 -10
  262. package/common/utils/getUInt32FromUint8Array.d.ts +0 -8
  263. package/common/utils/getUInt32FromUint8Array.js +0 -8
  264. package/common/utils/index.d.ts +0 -12
  265. package/common/utils/index.js +0 -12
  266. package/server/Events.d.ts +0 -16
  267. package/server/Events.js +0 -79
  268. package/server/Game.d.ts +0 -25
  269. package/server/Game.js +0 -55
  270. package/server/cfx/StateBagChangeHandler.d.ts +0 -3
  271. package/server/cfx/StateBagChangeHandler.js +0 -1
  272. package/server/cfx/index.d.ts +0 -6
  273. package/server/cfx/index.js +0 -1
  274. package/server/entities/BaseEntity.d.ts +0 -47
  275. package/server/entities/BaseEntity.js +0 -109
  276. package/server/entities/Entity.d.ts +0 -6
  277. package/server/entities/Entity.js +0 -12
  278. package/server/entities/Ped.d.ts +0 -32
  279. package/server/entities/Ped.js +0 -81
  280. package/server/entities/Player.d.ts +0 -63
  281. package/server/entities/Player.js +0 -135
  282. package/server/entities/Prop.d.ts +0 -14
  283. package/server/entities/Prop.js +0 -32
  284. package/server/entities/Vehicle.d.ts +0 -67
  285. package/server/entities/Vehicle.js +0 -175
  286. package/server/entities/index.d.ts +0 -5
  287. package/server/entities/index.js +0 -5
  288. package/server/enum/PopulationType.d.ts +0 -13
  289. package/server/enum/PopulationType.js +0 -14
  290. package/server/enum/VehicleLockStatus.d.ts +0 -9
  291. package/server/enum/VehicleLockStatus.js +0 -10
  292. package/server/enum/VehicleType.d.ts +0 -10
  293. package/server/enum/VehicleType.js +0 -11
  294. package/server/enum/eEntityType.d.ts +0 -5
  295. package/server/enum/eEntityType.js +0 -6
  296. package/server/enum/index.d.ts +0 -4
  297. package/server/enum/index.js +0 -4
  298. package/server/index.d.ts +0 -7
  299. package/server/index.js +0 -7
  300. package/server/type/Anticheat.d.ts +0 -153
  301. package/server/type/Anticheat.js +0 -1
  302. package/server/type/Hash.d.ts +0 -1
  303. package/server/type/Hash.js +0 -1
  304. package/server/utils/index.d.ts +0 -1
  305. package/server/utils/index.js +0 -1
  306. /package/{client/Events.d.ts → Events.d.ts} +0 -0
  307. /package/{client/cfx → cfx}/StateBagChangeHandler.d.ts +0 -0
  308. /package/{client/cfx → cfx}/StateBagChangeHandler.js +0 -0
  309. /package/{client/cfx → cfx}/index.js +0 -0
  310. /package/{client/enums → enums}/Alignment.d.ts +0 -0
  311. /package/{client/enums → enums}/Alignment.js +0 -0
  312. /package/{client/enums → enums}/AnimationFlags.d.ts +0 -0
  313. /package/{client/enums → enums}/AnimationFlags.js +0 -0
  314. /package/{client/enums → enums}/AudioFlag.d.ts +0 -0
  315. /package/{client/enums → enums}/AudioFlag.js +0 -0
  316. /package/{client/enums → enums}/BadgeStyle.d.ts +0 -0
  317. /package/{client/enums → enums}/BadgeStyle.js +0 -0
  318. /package/{client/enums → enums}/Blip.d.ts +0 -0
  319. /package/{client/enums → enums}/Blip.js +0 -0
  320. /package/{client/enums → enums}/Bone.d.ts +0 -0
  321. /package/{client/enums → enums}/Bone.js +0 -0
  322. /package/{client/enums → enums}/CameraShake.d.ts +0 -0
  323. /package/{client/enums → enums}/CameraShake.js +0 -0
  324. /package/{client/enums → enums}/CameraTypes.d.ts +0 -0
  325. /package/{client/enums → enums}/CameraTypes.js +0 -0
  326. /package/{client/enums → enums}/CheckboxStyle.d.ts +0 -0
  327. /package/{client/enums → enums}/CheckboxStyle.js +0 -0
  328. /package/{client/enums → enums}/Checkpoint.d.ts +0 -0
  329. /package/{client/enums → enums}/Checkpoint.js +0 -0
  330. /package/{client/enums → enums}/CloudHat.d.ts +0 -0
  331. /package/{client/enums → enums}/CloudHat.js +0 -0
  332. /package/{client/enums → enums}/Control.d.ts +0 -0
  333. /package/{client/enums → enums}/Control.js +0 -0
  334. /package/{client/enums → enums}/CursorSprite.d.ts +0 -0
  335. /package/{client/enums → enums}/CursorSprite.js +0 -0
  336. /package/{client/enums → enums}/Driving.d.ts +0 -0
  337. /package/{client/enums → enums}/Driving.js +0 -0
  338. /package/{client/enums → enums}/ExplosionType.d.ts +0 -0
  339. /package/{client/enums → enums}/ExplosionType.js +0 -0
  340. /package/{client/enums → enums}/FiringPattern.d.ts +0 -0
  341. /package/{client/enums → enums}/FiringPattern.js +0 -0
  342. /package/{client/enums → enums}/Font.d.ts +0 -0
  343. /package/{client/enums → enums}/Font.js +0 -0
  344. /package/{client/enums → enums}/ForceType.d.ts +0 -0
  345. /package/{client/enums → enums}/ForceType.js +0 -0
  346. /package/{client/enums → enums}/Gender.d.ts +0 -0
  347. /package/{client/enums → enums}/Gender.js +0 -0
  348. /package/{client/enums → enums}/HelmetType.d.ts +0 -0
  349. /package/{client/enums → enums}/HelmetType.js +0 -0
  350. /package/{client/enums → enums}/HudColor.d.ts +0 -0
  351. /package/{client/enums → enums}/HudColor.js +0 -0
  352. /package/{client/enums → enums}/HudComponent.d.ts +0 -0
  353. /package/{client/enums → enums}/HudComponent.js +0 -0
  354. /package/{client/enums → enums}/InputMode.d.ts +0 -0
  355. /package/{client/enums → enums}/InputMode.js +0 -0
  356. /package/{client/enums → enums}/InvertAxis.d.ts +0 -0
  357. /package/{client/enums → enums}/InvertAxis.js +0 -0
  358. /package/{client/enums → enums}/Language.d.ts +0 -0
  359. /package/{client/enums → enums}/Language.js +0 -0
  360. /package/{client/enums → enums}/LeaveVehicleFlags.d.ts +0 -0
  361. /package/{client/enums → enums}/LeaveVehicleFlags.js +0 -0
  362. /package/{client/enums → enums}/LoadingSpinnerType.d.ts +0 -0
  363. /package/{client/enums → enums}/LoadingSpinnerType.js +0 -0
  364. /package/{client/enums → enums}/MarkerType.d.ts +0 -0
  365. /package/{client/enums → enums}/MarkerType.js +0 -0
  366. /package/{client/enums → enums}/MenuAlignment.d.ts +0 -0
  367. /package/{client/enums → enums}/MenuAlignment.js +0 -0
  368. /package/{client/enums → enums}/NotificationType.d.ts +0 -0
  369. /package/{client/enums → enums}/NotificationType.js +0 -0
  370. /package/{client/enums → enums}/Parachute.d.ts +0 -0
  371. /package/{client/enums → enums}/Parachute.js +0 -0
  372. /package/{client/enums → enums}/PickupType.d.ts +0 -0
  373. /package/{client/enums → enums}/PickupType.js +0 -0
  374. /package/{client/enums → enums}/RadioStation.d.ts +0 -0
  375. /package/{client/enums → enums}/RadioStation.js +0 -0
  376. /package/{client/enums → enums}/RagdollType.d.ts +0 -0
  377. /package/{client/enums → enums}/RagdollType.js +0 -0
  378. /package/{client/enums → enums}/RaycastEnums.d.ts +0 -0
  379. /package/{client/enums → enums}/Relationship.d.ts +0 -0
  380. /package/{client/enums → enums}/Relationship.js +0 -0
  381. /package/{client/enums → enums}/RopeType.d.ts +0 -0
  382. /package/{client/enums → enums}/RopeType.js +0 -0
  383. /package/{client/enums → enums}/ScreenEffect.d.ts +0 -0
  384. /package/{client/enums → enums}/ScreenEffect.js +0 -0
  385. /package/{client/enums → enums}/SpeechModifier.d.ts +0 -0
  386. /package/{client/enums → enums}/SpeechModifier.js +0 -0
  387. /package/{client/enums → enums}/Vehicle.d.ts +0 -0
  388. /package/{client/enums → enums}/Vehicle.js +0 -0
  389. /package/{client/enums → enums}/Weather.d.ts +0 -0
  390. /package/{client/enums → enums}/Weather.js +0 -0
  391. /package/{client/enums → enums}/ZoneID.d.ts +0 -0
  392. /package/{client/enums → enums}/ZoneID.js +0 -0
  393. /package/{client/hashes → hashes}/MaterialHash.d.ts +0 -0
  394. /package/{client/hashes → hashes}/MaterialHash.js +0 -0
  395. /package/{client/hashes → hashes}/PedHash.d.ts +0 -0
  396. /package/{client/hashes → hashes}/PedHash.js +0 -0
  397. /package/{client/hashes → hashes}/VehicleHash.d.ts +0 -0
  398. /package/{client/hashes → hashes}/VehicleHash.js +0 -0
  399. /package/{client/hashes → hashes}/WeaponHash.d.ts +0 -0
  400. /package/{client/hashes → hashes}/WeaponHash.js +0 -0
  401. /package/{client/hashes → hashes}/WeatherTypeHash.d.ts +0 -0
  402. /package/{client/hashes → hashes}/WeatherTypeHash.js +0 -0
  403. /package/{client/interfaces → interfaces}/Dimensions.js +0 -0
  404. /package/{client/models → models}/Entity.d.ts +0 -0
  405. /package/{client/models → models}/Entity.js +0 -0
  406. /package/{client/ui → ui}/Fading.d.ts +0 -0
  407. /package/{client/ui → ui}/Notification.d.ts +0 -0
  408. /package/{client/ui → ui}/interfaces/IButton.js +0 -0
  409. /package/{client/ui → ui}/interfaces/IDrawable.js +0 -0
  410. /package/{client/ui → ui}/interfaces/index.js +0 -0
  411. /package/{client/ui → ui}/menu/MenuControl.d.ts +0 -0
  412. /package/{client/ui → ui}/menu/modules/ListItem.d.ts +0 -0
  413. /package/{client/utils → utils}/Animations.d.ts +0 -0
  414. /package/{client/utils → utils}/Crypto.d.ts +0 -0
  415. /package/{client/utils → utils}/LiteEvent.d.ts +0 -0
  416. /package/{client/utils → utils}/Maths.d.ts +0 -0
  417. /package/{client/utils → utils}/Maths.js +0 -0
  418. /package/{client/utils → utils}/Point.d.ts +0 -0
  419. /package/{client/utils → utils}/PointF.d.ts +0 -0
  420. /package/{client/utils → utils}/Size.d.ts +0 -0
  421. /package/{client/utils → utils}/enumValues.d.ts +0 -0
  422. /package/{client/utils → utils}/getStringFromUInt8Array.d.ts +0 -0
  423. /package/{client/utils → utils}/getUInt32FromUint8Array.d.ts +0 -0
  424. /package/{client/utils → utils}/getUInt32FromUint8Array.js +0 -0
  425. /package/{client/weapon → weapon}/Mk2WeaponHash.d.ts +0 -0
  426. /package/{client/weapon → weapon}/Mk2WeaponHash.js +0 -0
  427. /package/{client/weapon → weapon}/WeaponGroup.d.ts +0 -0
  428. /package/{client/weapon → weapon}/WeaponGroup.js +0 -0
  429. /package/{client/weapon → weapon}/WeaponLivery.d.ts +0 -0
  430. /package/{client/weapon → weapon}/WeaponLivery.js +0 -0
  431. /package/{client/weapon → weapon}/WeaponLiveryColor.d.ts +0 -0
  432. /package/{client/weapon → weapon}/WeaponLiveryColor.js +0 -0
  433. /package/{client/weapon → weapon}/WeaponTint.d.ts +0 -0
  434. /package/{client/weapon → weapon}/WeaponTint.js +0 -0
  435. /package/{client/weaponComponent → weaponComponent}/ComponentAttachmentPoint.d.ts +0 -0
  436. /package/{client/weaponComponent → weaponComponent}/ComponentAttachmentPoint.js +0 -0
  437. /package/{client/weaponComponent → weaponComponent}/WeaponComponentHash.d.ts +0 -0
  438. /package/{client/weaponComponent → weaponComponent}/WeaponComponentHash.js +0 -0
@@ -1,8 +1,12 @@
1
- import { Vector3 } from './utils';
1
+ import { Vector3 } from "./utils";
2
2
  /**
3
3
  * Class to manage invisible ropes between entities.
4
4
  */
5
5
  export class Rope {
6
+ /**
7
+ * Id of rope entity.
8
+ */
9
+ handle;
6
10
  /**
7
11
  * Create a rope object based on an existing rope in the world.
8
12
  *
@@ -71,7 +75,7 @@ export class Rope {
71
75
  * @param length The desired length of the rope between the two entities.
72
76
  */
73
77
  attachEntities(entityOne, positionOne, entityTwo, positionTwo, length) {
74
- AttachEntitiesToRope(this.handle, entityOne.Handle, entityTwo.Handle, positionOne.x, positionOne.y, positionOne.z, positionTwo.x, positionTwo.y, positionTwo.z, length, false, false, '', '');
78
+ AttachEntitiesToRope(this.handle, entityOne.Handle, entityTwo.Handle, positionOne.x, positionOne.y, positionOne.z, positionTwo.x, positionTwo.y, positionTwo.z, length, false, false, "", "");
75
79
  }
76
80
  /**
77
81
  * Detach the rope from an entity.
@@ -1,4 +1,4 @@
1
- import { Tasks } from './Tasks';
1
+ import { Tasks } from "./Tasks";
2
2
  export declare class TaskSequence {
3
3
  private static nullTask;
4
4
  private handle;
@@ -1,8 +1,11 @@
1
- import { Tasks } from './Tasks';
1
+ import { Tasks } from "./Tasks";
2
2
  // TODO: Figure out why this uses 'null ped'
3
3
  export class TaskSequence {
4
+ static nullTask;
5
+ handle = 0;
6
+ isClosed;
7
+ count;
4
8
  constructor(handle) {
5
- this.handle = 0;
6
9
  handle === undefined ? this.create() : (this.handle = handle);
7
10
  if (!TaskSequence.nullTask) {
8
11
  TaskSequence.nullTask = new Tasks(null);
@@ -1,8 +1,8 @@
1
- import { AnimationFlags, DrivingStyle, FiringPattern, LeaveVehicleFlags, VehicleSeat } from './enums';
2
- import { Ped, Vehicle } from './models';
3
- import { BaseEntity } from './models/BaseEntity';
4
- import { TaskSequence } from './TaskSequence';
5
- import { Vector3 } from './utils';
1
+ import { AnimationFlags, DrivingStyle, FiringPattern, LeaveVehicleFlags, VehicleSeat } from "./enums";
2
+ import { Ped, Vehicle } from "./models";
3
+ import { BaseEntity } from "./models/BaseEntity";
4
+ import { TaskSequence } from "./TaskSequence";
5
+ import { Vector3 } from "./utils";
6
6
  export declare class Tasks {
7
7
  private ped;
8
8
  constructor(ped: Ped | null);
@@ -1,9 +1,10 @@
1
- import { DrivingStyle, FiringPattern, VehicleSeat, } from './enums';
2
- import { Ped } from './models';
3
- import { BaseEntity } from './models/BaseEntity';
4
- import { Vector3 } from './utils';
5
- import { LoadAnimDict } from './utils/Animations';
1
+ import { DrivingStyle, FiringPattern, VehicleSeat, } from "./enums";
2
+ import { Ped } from "./models";
3
+ import { BaseEntity } from "./models/BaseEntity";
4
+ import { Vector3 } from "./utils";
5
+ import { LoadAnimDict } from "./utils/Animations";
6
6
  export class Tasks {
7
+ ped;
7
8
  // we take null because sequences have a null ped, if you pass null to this
8
9
  // you betterk now what you're doing.
9
10
  constructor(ped) {
@@ -88,7 +89,7 @@ export class Tasks {
88
89
  }
89
90
  followPointRoute(points) {
90
91
  TaskFlushRoute();
91
- points.forEach(point => TaskExtendRoute(point.x, point.y, point.z));
92
+ points.forEach((point) => TaskExtendRoute(point.x, point.y, point.z));
92
93
  TaskFollowPointRoute(this.ped.Handle, 1, 0);
93
94
  }
94
95
  followToOffsetFromEntity(target, offset, timeout, stoppingRange, movementSpeed = 1, persistFollowing = true) {
@@ -1,13 +1,13 @@
1
- import { Model, Prop } from './';
2
- import { Blip } from './Blip';
3
- import { Camera } from './Camera';
4
- import { CameraTypes, CloudHat, IntersectFlags, MarkerType, PickupType, RopeType, Weather } from './enums';
5
- import { Ped, Vehicle } from './models';
6
- import type { BaseEntity } from './models/BaseEntity';
7
- import { Pickup } from './Pickup';
8
- import { AsynchronousRaycastResult, SynchronousRaycastResult } from './Raycast';
9
- import { Rope } from './Rope';
10
- import { Color, Vector3 } from './utils';
1
+ import { Model, Prop } from "./";
2
+ import { Blip } from "./Blip";
3
+ import { Camera } from "./Camera";
4
+ import { CameraTypes, CloudHat, IntersectFlags, MarkerType, PickupType, RopeType, Weather } from "./enums";
5
+ import { Ped, Vehicle } from "./models";
6
+ import type { BaseEntity } from "./models/BaseEntity";
7
+ import { Pickup } from "./Pickup";
8
+ import { AsynchronousRaycastResult, SynchronousRaycastResult } from "./Raycast";
9
+ import { Rope } from "./Rope";
10
+ import { Color, Vector3 } from "./utils";
11
11
  /**
12
12
  * Class with common world manipulations.
13
13
  *
@@ -109,11 +109,19 @@ export declare abstract class World {
109
109
  /**
110
110
  * Doesn't work
111
111
  */
112
- static get WeatherTransition(): [string | Weather, string | Weather, number];
112
+ static get WeatherTransition(): [
113
+ string | Weather,
114
+ string | Weather,
115
+ number
116
+ ];
113
117
  /**
114
118
  * Doesn't work
115
119
  */
116
- static set WeatherTransition(transition: [string | Weather, string | Weather, number]);
120
+ static set WeatherTransition(transition: [
121
+ string | Weather,
122
+ string | Weather,
123
+ number
124
+ ]);
117
125
  /**
118
126
  * Transition to different weather type within a certain time.
119
127
  *
@@ -1,14 +1,14 @@
1
- import { Model, Prop } from './';
2
- import { Blip } from './Blip';
3
- import { Camera } from './Camera';
4
- import { CameraTypes, CloudHat, IntersectFlags, SHAPE_TEST_DEFAULT, Weather, } from './enums';
5
- import { GameplayCamera } from './GameplayCamera';
6
- import { VehicleHash } from './hashes';
7
- import { Ped, Vehicle } from './models';
8
- import { Pickup } from './Pickup';
9
- import { AsynchronousRaycastResult, SynchronousRaycastResult } from './Raycast';
10
- import { Rope } from './Rope';
11
- import { Maths, Vector3, Wait } from './utils';
1
+ import { Model, Prop } from "./";
2
+ import { Blip } from "./Blip";
3
+ import { Camera } from "./Camera";
4
+ import { CameraTypes, CloudHat, IntersectFlags, SHAPE_TEST_DEFAULT, Weather, } from "./enums";
5
+ import { GameplayCamera } from "./GameplayCamera";
6
+ import { VehicleHash } from "./hashes";
7
+ import { Ped, Vehicle } from "./models";
8
+ import { Pickup } from "./Pickup";
9
+ import { AsynchronousRaycastResult, SynchronousRaycastResult } from "./Raycast";
10
+ import { Rope } from "./Rope";
11
+ import { Maths, Vector3, Wait } from "./utils";
12
12
  /**
13
13
  * Class with common world manipulations.
14
14
  *
@@ -106,7 +106,7 @@ export class World {
106
106
  ClearCloudHat();
107
107
  return;
108
108
  }
109
- SetCloudHatTransition(this.cloudHatDict.get(this.currentCloudHat) ?? '', 3);
109
+ SetCloudHatTransition(this.cloudHatDict.get(this.currentCloudHat) ?? "", 3);
110
110
  }
111
111
  /**
112
112
  * Get the opacity of current cloud hat. Value is between 0-1.
@@ -234,7 +234,11 @@ export class World {
234
234
  */
235
235
  static get WeatherTransition() {
236
236
  const transition = GetWeatherTypeTransition();
237
- return [this.weatherDict[transition[0]], this.weatherDict[transition[1]], transition[2]];
237
+ return [
238
+ this.weatherDict[transition[0]],
239
+ this.weatherDict[transition[1]],
240
+ transition[2],
241
+ ];
238
242
  }
239
243
  /**
240
244
  * Doesn't work
@@ -648,9 +652,9 @@ export class World {
648
652
  * @returns Array of Props.
649
653
  */
650
654
  static getAllProps() {
651
- const handles = GetGamePool('CObject');
655
+ const handles = GetGamePool("CObject");
652
656
  const props = [];
653
- handles.forEach(handle => props.push(new Prop(handle)));
657
+ handles.forEach((handle) => props.push(new Prop(handle)));
654
658
  return props;
655
659
  }
656
660
  /**
@@ -661,7 +665,7 @@ export class World {
661
665
  static getAllRopes() {
662
666
  const handles = GetAllRopes();
663
667
  const props = [];
664
- handles.forEach(handle => props.push(new Rope(handle)));
668
+ handles.forEach((handle) => props.push(new Rope(handle)));
665
669
  return props;
666
670
  }
667
671
  /**
@@ -670,9 +674,9 @@ export class World {
670
674
  * @returns Array of Peds.
671
675
  */
672
676
  static getAllPeds() {
673
- const handles = GetGamePool('CPed');
677
+ const handles = GetGamePool("CPed");
674
678
  const peds = [];
675
- handles.forEach(handle => peds.push(new Ped(handle)));
679
+ handles.forEach((handle) => peds.push(new Ped(handle)));
676
680
  return peds;
677
681
  }
678
682
  /**
@@ -681,9 +685,9 @@ export class World {
681
685
  * @returns Array of Vehicles.
682
686
  */
683
687
  static getAllVehicles() {
684
- const handles = GetGamePool('CVehicle');
688
+ const handles = GetGamePool("CVehicle");
685
689
  const vehicles = [];
686
- handles.forEach(handle => vehicles.push(new Vehicle(handle)));
690
+ handles.forEach((handle) => vehicles.push(new Vehicle(handle)));
687
691
  return vehicles;
688
692
  }
689
693
  /**
@@ -713,49 +717,49 @@ export class World {
713
717
  * @returns Array of Pickups.
714
718
  */
715
719
  static getAllPickups() {
716
- const handles = GetGamePool('CPickup');
720
+ const handles = GetGamePool("CPickup");
717
721
  const pickups = [];
718
- handles.forEach(handle => pickups.push(new Pickup(handle)));
722
+ handles.forEach((handle) => pickups.push(new Pickup(handle)));
719
723
  return pickups;
720
724
  }
725
+ static currentCloudHat = CloudHat.Clear;
726
+ static cloudHatDict = new Map([
727
+ [CloudHat.Unknown, "Unknown"],
728
+ [CloudHat.Altostratus, "altostratus"],
729
+ [CloudHat.Cirrus, "Cirrus"],
730
+ [CloudHat.Cirrocumulus, "cirrocumulus"],
731
+ [CloudHat.Clear, "Clear 01"],
732
+ [CloudHat.Cloudy, "Cloudy 01"],
733
+ [CloudHat.Contrails, "Contrails"],
734
+ [CloudHat.Horizon, "Horizon"],
735
+ [CloudHat.HorizonBand1, "horizonband1"],
736
+ [CloudHat.HorizonBand2, "horizonband2"],
737
+ [CloudHat.HorizonBand3, "horizonband3"],
738
+ [CloudHat.Horsey, "horsey"],
739
+ [CloudHat.Nimbus, "Nimbus"],
740
+ [CloudHat.Puffs, "Puffs"],
741
+ [CloudHat.Rain, "RAIN"],
742
+ [CloudHat.Snowy, "Snowy 01"],
743
+ [CloudHat.Stormy, "Stormy 01"],
744
+ [CloudHat.Stratoscumulus, "stratoscumulus"],
745
+ [CloudHat.Stripey, "Stripey"],
746
+ [CloudHat.Shower, "shower"],
747
+ [CloudHat.Wispy, "Wispy"],
748
+ ]);
749
+ static weatherDict = [
750
+ "EXTRASUNNY",
751
+ "CLEAR",
752
+ "CLOUDS",
753
+ "SMOG",
754
+ "FOGGY",
755
+ "OVERCAST",
756
+ "RAIN",
757
+ "THUNDER",
758
+ "CLEARING",
759
+ "NEUTRAL",
760
+ "SNOW",
761
+ "BLIZZARD",
762
+ "SNOWLIGHT",
763
+ "XMAS",
764
+ ];
721
765
  }
722
- World.currentCloudHat = CloudHat.Clear;
723
- World.cloudHatDict = new Map([
724
- [CloudHat.Unknown, 'Unknown'],
725
- [CloudHat.Altostratus, 'altostratus'],
726
- [CloudHat.Cirrus, 'Cirrus'],
727
- [CloudHat.Cirrocumulus, 'cirrocumulus'],
728
- [CloudHat.Clear, 'Clear 01'],
729
- [CloudHat.Cloudy, 'Cloudy 01'],
730
- [CloudHat.Contrails, 'Contrails'],
731
- [CloudHat.Horizon, 'Horizon'],
732
- [CloudHat.HorizonBand1, 'horizonband1'],
733
- [CloudHat.HorizonBand2, 'horizonband2'],
734
- [CloudHat.HorizonBand3, 'horizonband3'],
735
- [CloudHat.Horsey, 'horsey'],
736
- [CloudHat.Nimbus, 'Nimbus'],
737
- [CloudHat.Puffs, 'Puffs'],
738
- [CloudHat.Rain, 'RAIN'],
739
- [CloudHat.Snowy, 'Snowy 01'],
740
- [CloudHat.Stormy, 'Stormy 01'],
741
- [CloudHat.Stratoscumulus, 'stratoscumulus'],
742
- [CloudHat.Stripey, 'Stripey'],
743
- [CloudHat.Shower, 'shower'],
744
- [CloudHat.Wispy, 'Wispy'],
745
- ]);
746
- World.weatherDict = [
747
- 'EXTRASUNNY',
748
- 'CLEAR',
749
- 'CLOUDS',
750
- 'SMOG',
751
- 'FOGGY',
752
- 'OVERCAST',
753
- 'RAIN',
754
- 'THUNDER',
755
- 'CLEARING',
756
- 'NEUTRAL',
757
- 'SNOW',
758
- 'BLIZZARD',
759
- 'SNOWLIGHT',
760
- 'XMAS',
761
- ];
@@ -1,4 +1,4 @@
1
- export { StateBagChangeHandler } from './StateBagChangeHandler';
1
+ export { StateBagChangeHandler } from "./StateBagChangeHandler";
2
2
  declare const _default: {
3
3
  Entity: typeof Entity;
4
4
  Player: typeof Player;
@@ -27,4 +27,6 @@ export var ShapeTestStatus;
27
27
  ShapeTestStatus[ShapeTestStatus["NotReady"] = 1] = "NotReady";
28
28
  ShapeTestStatus[ShapeTestStatus["Ready"] = 2] = "Ready";
29
29
  })(ShapeTestStatus || (ShapeTestStatus = {}));
30
- export const SHAPE_TEST_DEFAULT = ShapeTestOptions.IgnoreGlass | ShapeTestOptions.IgnoreSeeThrough | ShapeTestOptions.IgnoreNoCollision;
30
+ export const SHAPE_TEST_DEFAULT = ShapeTestOptions.IgnoreGlass |
31
+ ShapeTestOptions.IgnoreSeeThrough |
32
+ ShapeTestOptions.IgnoreNoCollision;
@@ -0,0 +1,42 @@
1
+ export { Alignment } from "./Alignment";
2
+ export { AnimationFlags } from "./AnimationFlags";
3
+ export { AudioFlag } from "./AudioFlag";
4
+ export { BadgeStyle } from "./BadgeStyle";
5
+ export { BlipColor, BlipSprite } from "./Blip";
6
+ export { Bone } from "./Bone";
7
+ export { CameraShake } from "./CameraShake";
8
+ export { CheckboxStyle } from "./CheckboxStyle";
9
+ export { CheckpointCustomIconStyle, CheckpointIcon } from "./Checkpoint";
10
+ export { CloudHat } from "./CloudHat";
11
+ export { Control } from "./Control";
12
+ export { CursorSprite } from "./CursorSprite";
13
+ export { DrivingStyle, VehicleDrivingFlags } from "./Driving";
14
+ export { ExplosionType } from "./ExplosionType";
15
+ export { FiringPattern } from "./FiringPattern";
16
+ export { Font } from "./Font";
17
+ export { ForceType } from "./ForceType";
18
+ export { Gender } from "./Gender";
19
+ export { HelmetType } from "./HelmetType";
20
+ export { HudColor } from "./HudColor";
21
+ export { HudComponent } from "./HudComponent";
22
+ export { InputMode } from "./InputMode";
23
+ export { IntersectFlags, ShapeTestOptions, SHAPE_TEST_DEFAULT, } from "./RaycastEnums";
24
+ export { InvertAxis, InvertAxisFlags } from "./InvertAxis";
25
+ export { Language } from "./Language";
26
+ export { LeaveVehicleFlags } from "./LeaveVehicleFlags";
27
+ export { LoadingSpinnerType } from "./LoadingSpinnerType";
28
+ export { MarkerType } from "./MarkerType";
29
+ export { MenuAlignment } from "./MenuAlignment";
30
+ export { NotificationType } from "./NotificationType";
31
+ export { ParachuteLandingType, ParachuteState } from "./Parachute";
32
+ export { RadioStation } from "./RadioStation";
33
+ export { RagdollType } from "./RagdollType";
34
+ export { Relationship } from "./Relationship";
35
+ export { RopeType } from "./RopeType";
36
+ export { ScreenEffect } from "./ScreenEffect";
37
+ export { SpeechModifier } from "./SpeechModifier";
38
+ export * from "./Vehicle";
39
+ export { Weather } from "./Weather";
40
+ export { ZoneID } from "./ZoneID";
41
+ export { PickupType } from "./PickupType";
42
+ export { CameraTypes } from "./CameraTypes";
package/enums/index.js ADDED
@@ -0,0 +1,42 @@
1
+ export { Alignment } from "./Alignment";
2
+ export { AnimationFlags } from "./AnimationFlags";
3
+ export { AudioFlag } from "./AudioFlag";
4
+ export { BadgeStyle } from "./BadgeStyle";
5
+ export { BlipColor, BlipSprite } from "./Blip";
6
+ export { Bone } from "./Bone";
7
+ export { CameraShake } from "./CameraShake";
8
+ export { CheckboxStyle } from "./CheckboxStyle";
9
+ export { CheckpointCustomIconStyle, CheckpointIcon } from "./Checkpoint";
10
+ export { CloudHat } from "./CloudHat";
11
+ export { Control } from "./Control";
12
+ export { CursorSprite } from "./CursorSprite";
13
+ export { DrivingStyle, VehicleDrivingFlags } from "./Driving";
14
+ export { ExplosionType } from "./ExplosionType";
15
+ export { FiringPattern } from "./FiringPattern";
16
+ export { Font } from "./Font";
17
+ export { ForceType } from "./ForceType";
18
+ export { Gender } from "./Gender";
19
+ export { HelmetType } from "./HelmetType";
20
+ export { HudColor } from "./HudColor";
21
+ export { HudComponent } from "./HudComponent";
22
+ export { InputMode } from "./InputMode";
23
+ export { IntersectFlags, ShapeTestOptions, SHAPE_TEST_DEFAULT, } from "./RaycastEnums";
24
+ export { InvertAxisFlags } from "./InvertAxis";
25
+ export { Language } from "./Language";
26
+ export { LeaveVehicleFlags } from "./LeaveVehicleFlags";
27
+ export { LoadingSpinnerType } from "./LoadingSpinnerType";
28
+ export { MarkerType } from "./MarkerType";
29
+ export { MenuAlignment } from "./MenuAlignment";
30
+ export { NotificationType } from "./NotificationType";
31
+ export { ParachuteLandingType, ParachuteState } from "./Parachute";
32
+ export { RadioStation } from "./RadioStation";
33
+ export { RagdollType } from "./RagdollType";
34
+ export { Relationship } from "./Relationship";
35
+ export { RopeType } from "./RopeType";
36
+ export { ScreenEffect } from "./ScreenEffect";
37
+ export { SpeechModifier } from "./SpeechModifier";
38
+ export * from "./Vehicle";
39
+ export { Weather } from "./Weather";
40
+ export { ZoneID } from "./ZoneID";
41
+ export { PickupType } from "./PickupType";
42
+ export { CameraTypes } from "./CameraTypes";
@@ -0,0 +1,5 @@
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";
@@ -0,0 +1,5 @@
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";
package/index.d.ts ADDED
@@ -0,0 +1,24 @@
1
+ export * from "./utils";
2
+ export { Game } from "./Game";
3
+ export { World } from "./World";
4
+ export { Model } from "./Model";
5
+ export { Audio } from "./Audio";
6
+ export { Blip } from "./Blip";
7
+ export { Camera } from "./Camera";
8
+ export { Checkpoint } from "./Checkpoint";
9
+ export { GameplayCamera } from "./GameplayCamera";
10
+ export { ParticleEffect } from "./ParticleEffect";
11
+ export { ParticleEffectAsset } from "./ParticleEffectAsset";
12
+ export { Pickup } from "./Pickup";
13
+ export { AsynchronousRaycastResult, SynchronousRaycastResult } from "./Raycast";
14
+ export { RelationshipGroup } from "./RelationshipGroup";
15
+ export { Tasks } from "./Tasks";
16
+ export { TaskSequence } from "./TaskSequence";
17
+ export { NetworkedScene } from "./NetworkedScene";
18
+ export { Rope } from "./Rope";
19
+ export * from "./models";
20
+ export * from "./enums";
21
+ export * from "./hashes";
22
+ export * from "./ui";
23
+ export * from "./weapon";
24
+ export * from "./weaponComponent";
package/index.js ADDED
@@ -0,0 +1,25 @@
1
+ export * from "./utils";
2
+ export { Game } from "./Game";
3
+ export { World } from "./World";
4
+ export { Model } from "./Model";
5
+ export { Audio } from "./Audio";
6
+ export { Blip } from "./Blip";
7
+ export { Camera } from "./Camera";
8
+ export { Checkpoint } from "./Checkpoint";
9
+ export { GameplayCamera } from "./GameplayCamera";
10
+ export { ParticleEffect } from "./ParticleEffect";
11
+ export { ParticleEffectAsset } from "./ParticleEffectAsset";
12
+ export { Pickup } from "./Pickup";
13
+ export { AsynchronousRaycastResult, SynchronousRaycastResult } from "./Raycast";
14
+ export { RelationshipGroup } from "./RelationshipGroup";
15
+ export { Tasks } from "./Tasks";
16
+ export { TaskSequence } from "./TaskSequence";
17
+ export { NetworkedScene } from "./NetworkedScene";
18
+ export { Rope } from "./Rope";
19
+ // Lets export all from folders
20
+ export * from "./models";
21
+ export * from "./enums";
22
+ export * from "./hashes";
23
+ export * from "./ui";
24
+ export * from "./weapon";
25
+ export * from "./weaponComponent";
@@ -1,4 +1,4 @@
1
- import { Vector3 } from '../utils';
1
+ import { Vector3 } from "../utils";
2
2
  export interface Dimensions {
3
3
  min: Vector3;
4
4
  max: Vector3;
@@ -1,12 +1,12 @@
1
- import { Blip } from '../Blip';
2
- import { ForceType } from '../enums';
3
- import { MaterialHash, WeaponHash } from '../hashes';
4
- import { Model } from '../Model';
5
- import { Quaternion, Vector3 } from '../utils';
6
- import { EntityBoneCollection } from './';
7
- import { EntityBone } from './EntityBone';
8
- import { StateBagChangeHandler } from '../cfx';
9
- import { ClassTypes } from '../../common/utils/ClassTypes';
1
+ import { Blip } from "../Blip";
2
+ import { ForceType } from "../enums";
3
+ import { MaterialHash, WeaponHash } from "../hashes";
4
+ import { Model } from "../Model";
5
+ import { Quaternion, Vector3 } from "../utils";
6
+ import { EntityBoneCollection } from "./";
7
+ import { EntityBone } from "./EntityBone";
8
+ import { StateBagChangeHandler } from "../cfx";
9
+ import { ClassTypes } from "../../common/utils/ClassTypes";
10
10
  export declare class BaseEntity {
11
11
  static fromNetworkId(networkId: number): BaseEntity | null;
12
12
  static fromStateBagName(stateBagName: string): BaseEntity | null;
@@ -138,29 +138,29 @@ export declare class BaseEntity {
138
138
  */
139
139
  getOffsetInRelativeCoords(worldCoords: Vector3): Vector3;
140
140
  /**
141
- * @example
142
- * ```typescript
143
- * const ply = Game.PlayerPed;
144
- * const plyPos = ply.Position;
145
- * const bag = await World.createProp(new Model('ba_prop_battle_bag_01b'), plyPos, true, true, true);
146
- * bag.attachToBone(
147
- * ply.Bones.getBone(64113),
148
- * new Vector3(0.12, -0.25, 0.0),
149
- * new Vector3(105.0, 50.0, 190.0)
150
- * )
151
- * const offset = bag.getRelativePositionOffset(plyPos);
152
- * ```
153
- * @param worldCoords: the offset given the world coords
154
- * @returns the offset position from the entity in relative coords
155
- */
141
+ * @example
142
+ * ```typescript
143
+ * const ply = Game.PlayerPed;
144
+ * const plyPos = ply.Position;
145
+ * const bag = await World.createProp(new Model('ba_prop_battle_bag_01b'), plyPos, true, true, true);
146
+ * bag.attachToBone(
147
+ * ply.Bones.getBone(64113),
148
+ * new Vector3(0.12, -0.25, 0.0),
149
+ * new Vector3(105.0, 50.0, 190.0)
150
+ * )
151
+ * const offset = bag.getRelativePositionOffset(plyPos);
152
+ * ```
153
+ * @param worldCoords: the offset given the world coords
154
+ * @returns the offset position from the entity in relative coords
155
+ */
156
156
  getOffsetInWorldCoords(offset: Vector3): Vector3;
157
157
  /**
158
158
  * @deprecated use [[getOffsetInRelativeCoords]] instead
159
159
  */
160
160
  getPositionOffset(worldCoords: Vector3): Vector3;
161
161
  /**
162
- * @deprecated use [[getOffsetInWorldCoords]]
163
- */
162
+ * @deprecated use [[getOffsetInWorldCoords]]
163
+ */
164
164
  getOffsetPosition(offset: Vector3): Vector3;
165
165
  attachTo(entity: BaseEntity, position: Vector3, rotation: Vector3, collisions?: boolean, unk9?: boolean, useSoftPinning?: boolean, rotationOrder?: number): void;
166
166
  attachToBone(entityBone: EntityBone, position: Vector3, rotation: Vector3, collisions?: boolean, unk9?: boolean, useSoftPinning?: boolean, rotationOrder?: number): void;