@nativewrappers/redm-codegen 0.0.4 → 0.0.5

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 (317) hide show
  1. package/dist/classes/AnimScene.d.ts +96 -96
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +137 -137
  4. package/dist/classes/BaseModel.d.ts +19 -19
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +33 -33
  7. package/dist/classes/BaseTask.d.ts +33 -33
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +40 -40
  10. package/dist/classes/Cam.d.ts +85 -85
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +108 -108
  13. package/dist/classes/Entity.d.ts +288 -283
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +410 -401
  16. package/dist/classes/Interior.d.ts +27 -27
  17. package/dist/classes/Interior.d.ts.map +1 -1
  18. package/dist/classes/Interior.js +42 -42
  19. package/dist/classes/ItemSet.d.ts +2 -2
  20. package/dist/classes/ItemSet.d.ts.map +1 -1
  21. package/dist/classes/ItemSet.js +3 -3
  22. package/dist/classes/Ped.d.ts +286 -286
  23. package/dist/classes/Ped.d.ts.map +1 -1
  24. package/dist/classes/Ped.js +425 -425
  25. package/dist/classes/PedModel.d.ts +1 -1
  26. package/dist/classes/PedModel.d.ts.map +1 -1
  27. package/dist/classes/PedModel.js +2 -2
  28. package/dist/classes/PedTask.d.ts +729 -729
  29. package/dist/classes/PedTask.d.ts.map +1 -1
  30. package/dist/classes/PedTask.js +935 -935
  31. package/dist/classes/PersChar.d.ts +13 -13
  32. package/dist/classes/PersChar.d.ts.map +1 -1
  33. package/dist/classes/PersChar.js +19 -19
  34. package/dist/classes/Pickup.d.ts +6 -6
  35. package/dist/classes/Pickup.d.ts.map +1 -1
  36. package/dist/classes/Pickup.js +13 -13
  37. package/dist/classes/Player.d.ts +343 -339
  38. package/dist/classes/Player.d.ts.map +1 -1
  39. package/dist/classes/Player.js +495 -489
  40. package/dist/classes/Prop.d.ts +64 -64
  41. package/dist/classes/Prop.d.ts.map +1 -1
  42. package/dist/classes/Prop.js +94 -94
  43. package/dist/classes/PropSet.d.ts +18 -18
  44. package/dist/classes/PropSet.d.ts.map +1 -1
  45. package/dist/classes/PropSet.js +27 -27
  46. package/dist/classes/Vehicle.d.ts +122 -122
  47. package/dist/classes/Vehicle.d.ts.map +1 -1
  48. package/dist/classes/Vehicle.js +147 -147
  49. package/dist/classes/VehicleModel.d.ts +1 -1
  50. package/dist/classes/VehicleModel.d.ts.map +1 -1
  51. package/dist/classes/VehicleModel.js +2 -2
  52. package/dist/classes/VehicleTask.d.ts +24 -24
  53. package/dist/classes/VehicleTask.d.ts.map +1 -1
  54. package/dist/classes/VehicleTask.js +30 -30
  55. package/dist/classes/Volume.d.ts +44 -44
  56. package/dist/classes/Volume.d.ts.map +1 -1
  57. package/dist/classes/Volume.js +58 -58
  58. package/dist/classes/Weapon.d.ts +351 -351
  59. package/dist/classes/Weapon.d.ts.map +1 -1
  60. package/dist/classes/Weapon.js +486 -486
  61. package/dist/namespaces/Aicoverpoint.d.ts +23 -23
  62. package/dist/namespaces/Aicoverpoint.d.ts.map +1 -1
  63. package/dist/namespaces/Aicoverpoint.js +35 -35
  64. package/dist/namespaces/Aitransport.d.ts +78 -78
  65. package/dist/namespaces/Aitransport.d.ts.map +1 -1
  66. package/dist/namespaces/Aitransport.js +95 -95
  67. package/dist/namespaces/Animscene.d.ts +48 -48
  68. package/dist/namespaces/Animscene.d.ts.map +1 -1
  69. package/dist/namespaces/Animscene.js +65 -65
  70. package/dist/namespaces/Audio.d.ts +476 -476
  71. package/dist/namespaces/Audio.d.ts.map +1 -1
  72. package/dist/namespaces/Audio.js +692 -692
  73. package/dist/namespaces/Bounty.d.ts +57 -57
  74. package/dist/namespaces/Bounty.d.ts.map +1 -1
  75. package/dist/namespaces/Bounty.js +90 -90
  76. package/dist/namespaces/CamStatics.d.ts +432 -432
  77. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  78. package/dist/namespaces/CamStatics.js +606 -606
  79. package/dist/namespaces/Collection.d.ts +78 -78
  80. package/dist/namespaces/Collection.d.ts.map +1 -1
  81. package/dist/namespaces/Collection.js +111 -111
  82. package/dist/namespaces/Companion.d.ts +22 -22
  83. package/dist/namespaces/Companion.d.ts.map +1 -1
  84. package/dist/namespaces/Companion.js +30 -30
  85. package/dist/namespaces/Compapp.js +1 -1
  86. package/dist/namespaces/Compendium.d.ts +58 -58
  87. package/dist/namespaces/Compendium.d.ts.map +1 -1
  88. package/dist/namespaces/Compendium.js +83 -83
  89. package/dist/namespaces/Crashlog.d.ts +10 -10
  90. package/dist/namespaces/Crashlog.d.ts.map +1 -1
  91. package/dist/namespaces/Crashlog.js +21 -21
  92. package/dist/namespaces/Crew.js +4 -4
  93. package/dist/namespaces/Databinding.d.ts +154 -154
  94. package/dist/namespaces/Databinding.d.ts.map +1 -1
  95. package/dist/namespaces/Databinding.js +222 -222
  96. package/dist/namespaces/Datafile.js +4 -4
  97. package/dist/namespaces/Decorator.d.ts +19 -19
  98. package/dist/namespaces/Decorator.d.ts.map +1 -1
  99. package/dist/namespaces/Decorator.js +34 -34
  100. package/dist/namespaces/Dlc.d.ts +5 -5
  101. package/dist/namespaces/Dlc.d.ts.map +1 -1
  102. package/dist/namespaces/Dlc.js +9 -9
  103. package/dist/namespaces/EntityStatics.d.ts +80 -80
  104. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  105. package/dist/namespaces/EntityStatics.js +113 -113
  106. package/dist/namespaces/Event.js +4 -4
  107. package/dist/namespaces/Fire.d.ts +89 -89
  108. package/dist/namespaces/Fire.d.ts.map +1 -1
  109. package/dist/namespaces/Fire.js +115 -115
  110. package/dist/namespaces/Flock.js +2 -2
  111. package/dist/namespaces/Gang.js +2 -2
  112. package/dist/namespaces/GoogleAnalytics.js +2 -2
  113. package/dist/namespaces/Graphics.d.ts +781 -781
  114. package/dist/namespaces/Graphics.d.ts.map +1 -1
  115. package/dist/namespaces/Graphics.js +1207 -1207
  116. package/dist/namespaces/Hud.d.ts +483 -483
  117. package/dist/namespaces/Hud.d.ts.map +1 -1
  118. package/dist/namespaces/Hud.js +678 -678
  119. package/dist/namespaces/Ik.js +1 -1
  120. package/dist/namespaces/Interaction.js +3 -3
  121. package/dist/namespaces/InteriorStatics.d.ts +40 -40
  122. package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
  123. package/dist/namespaces/InteriorStatics.js +57 -57
  124. package/dist/namespaces/Inventory.d.ts +211 -211
  125. package/dist/namespaces/Inventory.d.ts.map +1 -1
  126. package/dist/namespaces/Inventory.js +291 -291
  127. package/dist/namespaces/Itemdatabase.js +3 -3
  128. package/dist/namespaces/Itemset.js +2 -2
  129. package/dist/namespaces/Law.d.ts +1 -1
  130. package/dist/namespaces/Law.d.ts.map +1 -1
  131. package/dist/namespaces/Law.js +19 -19
  132. package/dist/namespaces/Localization.js +1 -1
  133. package/dist/namespaces/Map.js +3 -3
  134. package/dist/namespaces/Minigame.d.ts +65 -65
  135. package/dist/namespaces/Minigame.d.ts.map +1 -1
  136. package/dist/namespaces/Minigame.js +105 -105
  137. package/dist/namespaces/Misc.d.ts +3 -3
  138. package/dist/namespaces/Misc.d.ts.map +1 -1
  139. package/dist/namespaces/Misc.js +35 -35
  140. package/dist/namespaces/Missiondata.d.ts +15 -15
  141. package/dist/namespaces/Missiondata.d.ts.map +1 -1
  142. package/dist/namespaces/Missiondata.js +24 -24
  143. package/dist/namespaces/Money.js +3 -3
  144. package/dist/namespaces/Netshopping.d.ts +58 -58
  145. package/dist/namespaces/Netshopping.d.ts.map +1 -1
  146. package/dist/namespaces/Netshopping.js +89 -89
  147. package/dist/namespaces/Network.d.ts +1067 -1067
  148. package/dist/namespaces/Network.d.ts.map +1 -1
  149. package/dist/namespaces/Network.js +1586 -1586
  150. package/dist/namespaces/Object.d.ts +231 -231
  151. package/dist/namespaces/Object.d.ts.map +1 -1
  152. package/dist/namespaces/Object.js +337 -337
  153. package/dist/namespaces/Pad.d.ts +42 -42
  154. package/dist/namespaces/Pad.d.ts.map +1 -1
  155. package/dist/namespaces/Pad.js +68 -68
  156. package/dist/namespaces/Pathfind.js +10 -10
  157. package/dist/namespaces/PedStatics.d.ts +2 -2
  158. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  159. package/dist/namespaces/PedStatics.js +10 -10
  160. package/dist/namespaces/Perschar.d.ts +54 -54
  161. package/dist/namespaces/Perschar.d.ts.map +1 -1
  162. package/dist/namespaces/Perschar.js +84 -84
  163. package/dist/namespaces/Physics.d.ts +121 -121
  164. package/dist/namespaces/Physics.d.ts.map +1 -1
  165. package/dist/namespaces/Physics.js +155 -155
  166. package/dist/namespaces/PlayerStatics.d.ts +97 -97
  167. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  168. package/dist/namespaces/PlayerStatics.js +142 -142
  169. package/dist/namespaces/Population.d.ts +11 -11
  170. package/dist/namespaces/Population.d.ts.map +1 -1
  171. package/dist/namespaces/Population.js +15 -15
  172. package/dist/namespaces/Posse.d.ts +33 -33
  173. package/dist/namespaces/Posse.d.ts.map +1 -1
  174. package/dist/namespaces/Posse.js +51 -51
  175. package/dist/namespaces/Propset.d.ts +59 -59
  176. package/dist/namespaces/Propset.d.ts.map +1 -1
  177. package/dist/namespaces/Propset.js +81 -81
  178. package/dist/namespaces/Replay.d.ts +1 -1
  179. package/dist/namespaces/Replay.d.ts.map +1 -1
  180. package/dist/namespaces/Replay.js +2 -2
  181. package/dist/namespaces/Scripts.d.ts +1 -1
  182. package/dist/namespaces/Scripts.d.ts.map +1 -1
  183. package/dist/namespaces/Scripts.js +12 -12
  184. package/dist/namespaces/Shapetest.d.ts +11 -11
  185. package/dist/namespaces/Shapetest.d.ts.map +1 -1
  186. package/dist/namespaces/Shapetest.js +13 -13
  187. package/dist/namespaces/Socialclub.js +8 -8
  188. package/dist/namespaces/Socialclubfeed.js +1 -1
  189. package/dist/namespaces/Spactionproxy.js +4 -4
  190. package/dist/namespaces/Stats.d.ts +191 -191
  191. package/dist/namespaces/Stats.d.ts.map +1 -1
  192. package/dist/namespaces/Stats.js +281 -281
  193. package/dist/namespaces/Streaming.d.ts +84 -84
  194. package/dist/namespaces/Streaming.d.ts.map +1 -1
  195. package/dist/namespaces/Streaming.js +137 -137
  196. package/dist/namespaces/Task.d.ts +347 -347
  197. package/dist/namespaces/Task.d.ts.map +1 -1
  198. package/dist/namespaces/Task.js +488 -488
  199. package/dist/namespaces/Telemetry.d.ts +151 -151
  200. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  201. package/dist/namespaces/Telemetry.js +206 -206
  202. package/dist/namespaces/Txd.js +1 -1
  203. package/dist/namespaces/Uiapps.d.ts +25 -25
  204. package/dist/namespaces/Uiapps.d.ts.map +1 -1
  205. package/dist/namespaces/Uiapps.js +36 -36
  206. package/dist/namespaces/Uievents.js +1 -1
  207. package/dist/namespaces/Uifeed.d.ts +15 -15
  208. package/dist/namespaces/Uifeed.d.ts.map +1 -1
  209. package/dist/namespaces/Uifeed.js +25 -25
  210. package/dist/namespaces/Uistickyfeed.d.ts +16 -16
  211. package/dist/namespaces/Uistickyfeed.d.ts.map +1 -1
  212. package/dist/namespaces/Uistickyfeed.js +21 -21
  213. package/dist/namespaces/Unlock.js +5 -5
  214. package/dist/namespaces/VehicleStatics.js +12 -12
  215. package/dist/namespaces/Voice.d.ts +38 -38
  216. package/dist/namespaces/Voice.d.ts.map +1 -1
  217. package/dist/namespaces/Voice.js +61 -61
  218. package/dist/namespaces/VolumeStatics.d.ts +99 -99
  219. package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
  220. package/dist/namespaces/VolumeStatics.js +137 -137
  221. package/dist/namespaces/WeaponStatics.d.ts +276 -276
  222. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  223. package/dist/namespaces/WeaponStatics.js +371 -371
  224. package/dist/types/NativeAliases.d.ts +3 -1
  225. package/dist/types/NativeAliases.d.ts.map +1 -1
  226. package/dist/types/NativeAliases.js +3 -1
  227. package/package.json +1 -1
  228. package/src/classes/AnimScene.ts +159 -159
  229. package/src/classes/BaseModel.ts +37 -37
  230. package/src/classes/BaseTask.ts +41 -41
  231. package/src/classes/Cam.ts +111 -111
  232. package/src/classes/Entity.ts +422 -411
  233. package/src/classes/Interior.ts +43 -43
  234. package/src/classes/ItemSet.ts +3 -3
  235. package/src/classes/Ped.ts +432 -432
  236. package/src/classes/PedModel.ts +2 -2
  237. package/src/classes/PedTask.ts +957 -957
  238. package/src/classes/PersChar.ts +22 -22
  239. package/src/classes/Pickup.ts +14 -14
  240. package/src/classes/Player.ts +994 -987
  241. package/src/classes/Prop.ts +106 -106
  242. package/src/classes/PropSet.ts +29 -29
  243. package/src/classes/Vehicle.ts +147 -147
  244. package/src/classes/VehicleModel.ts +2 -2
  245. package/src/classes/VehicleTask.ts +31 -31
  246. package/src/classes/Volume.ts +62 -62
  247. package/src/classes/Weapon.ts +511 -511
  248. package/src/namespaces/Aicoverpoint.ts +40 -40
  249. package/src/namespaces/Aitransport.ts +104 -104
  250. package/src/namespaces/Animscene.ts +71 -71
  251. package/src/namespaces/Audio.ts +725 -725
  252. package/src/namespaces/Bounty.ts +102 -102
  253. package/src/namespaces/CamStatics.ts +700 -700
  254. package/src/namespaces/Collection.ts +113 -113
  255. package/src/namespaces/Companion.ts +34 -34
  256. package/src/namespaces/Compapp.ts +1 -1
  257. package/src/namespaces/Compendium.ts +94 -94
  258. package/src/namespaces/Crashlog.ts +23 -23
  259. package/src/namespaces/Crew.ts +4 -4
  260. package/src/namespaces/Databinding.ts +237 -237
  261. package/src/namespaces/Datafile.ts +4 -4
  262. package/src/namespaces/Decorator.ts +37 -37
  263. package/src/namespaces/Dlc.ts +9 -9
  264. package/src/namespaces/EntityStatics.ts +117 -117
  265. package/src/namespaces/Event.ts +4 -4
  266. package/src/namespaces/Fire.ts +127 -127
  267. package/src/namespaces/Flock.ts +2 -2
  268. package/src/namespaces/Gang.ts +2 -2
  269. package/src/namespaces/GoogleAnalytics.ts +2 -2
  270. package/src/namespaces/Graphics.ts +1218 -1218
  271. package/src/namespaces/Hud.ts +696 -696
  272. package/src/namespaces/Ik.ts +1 -1
  273. package/src/namespaces/Interaction.ts +3 -3
  274. package/src/namespaces/InteriorStatics.ts +65 -65
  275. package/src/namespaces/Inventory.ts +294 -294
  276. package/src/namespaces/Itemdatabase.ts +3 -3
  277. package/src/namespaces/Itemset.ts +2 -2
  278. package/src/namespaces/Law.ts +20 -20
  279. package/src/namespaces/Localization.ts +1 -1
  280. package/src/namespaces/Map.ts +3 -3
  281. package/src/namespaces/Minigame.ts +109 -109
  282. package/src/namespaces/Misc.ts +38 -38
  283. package/src/namespaces/Missiondata.ts +28 -28
  284. package/src/namespaces/Money.ts +3 -3
  285. package/src/namespaces/Netshopping.ts +99 -99
  286. package/src/namespaces/Network.ts +1616 -1616
  287. package/src/namespaces/Object.ts +344 -344
  288. package/src/namespaces/Pad.ts +76 -76
  289. package/src/namespaces/Pathfind.ts +10 -10
  290. package/src/namespaces/PedStatics.ts +12 -12
  291. package/src/namespaces/Perschar.ts +86 -86
  292. package/src/namespaces/Physics.ts +171 -171
  293. package/src/namespaces/PlayerStatics.ts +162 -162
  294. package/src/namespaces/Population.ts +17 -17
  295. package/src/namespaces/Posse.ts +54 -54
  296. package/src/namespaces/Propset.ts +92 -92
  297. package/src/namespaces/Replay.ts +3 -3
  298. package/src/namespaces/Scripts.ts +13 -13
  299. package/src/namespaces/Shapetest.ts +14 -14
  300. package/src/namespaces/Socialclub.ts +8 -8
  301. package/src/namespaces/Socialclubfeed.ts +1 -1
  302. package/src/namespaces/Spactionproxy.ts +4 -4
  303. package/src/namespaces/Stats.ts +287 -287
  304. package/src/namespaces/Streaming.ts +159 -159
  305. package/src/namespaces/Task.ts +517 -517
  306. package/src/namespaces/Telemetry.ts +224 -224
  307. package/src/namespaces/Txd.ts +1 -1
  308. package/src/namespaces/Uiapps.ts +43 -43
  309. package/src/namespaces/Uievents.ts +1 -1
  310. package/src/namespaces/Uifeed.ts +28 -28
  311. package/src/namespaces/Uistickyfeed.ts +23 -23
  312. package/src/namespaces/Unlock.ts +5 -5
  313. package/src/namespaces/VehicleStatics.ts +12 -12
  314. package/src/namespaces/Voice.ts +70 -70
  315. package/src/namespaces/VolumeStatics.ts +143 -143
  316. package/src/namespaces/WeaponStatics.ts +383 -383
  317. package/src/types/NativeAliases.ts +6 -1
@@ -16,7 +16,7 @@ export class Entity {
16
16
  /**
17
17
  * @returns
18
18
  */
19
- getIsBird() {
19
+ get IsBird() {
20
20
  return inv('0xC346A546612C49A9', this.handle);
21
21
  }
22
22
  /**
@@ -24,7 +24,7 @@ export class Entity {
24
24
  *
25
25
  * @returns
26
26
  */
27
- getForwardVectorYx() {
27
+ get ForwardVectorYx() {
28
28
  return Vector3.fromArray(inv('0x935A30AA88FB1014', this.handle, rav()));
29
29
  }
30
30
  /**
@@ -53,7 +53,7 @@ export class Entity {
53
53
  /**
54
54
  * @param toggle
55
55
  */
56
- setLoadCollisionFlag(toggle) {
56
+ set LoadCollisionFlag(toggle) {
57
57
  inv('0x9B9EE31AED48072E', this.handle, toggle);
58
58
  }
59
59
  /**
@@ -62,13 +62,13 @@ export class Entity {
62
62
  *
63
63
  * @param type
64
64
  */
65
- setCarcassType(type) {
65
+ set CarcassType(type) {
66
66
  inv('0x399657ED871B3A6C', this.handle, _h(type));
67
67
  }
68
68
  /**
69
69
  * @param toggle
70
70
  */
71
- setHasGravity(toggle) {
71
+ set HasGravity(toggle) {
72
72
  inv('0x0CEDB728A1083FA7', this.handle, toggle);
73
73
  }
74
74
  /**
@@ -85,24 +85,24 @@ export class Entity {
85
85
  * @returns
86
86
  */
87
87
  hasBeenDamagedByEntity(entity2, p2, p3) {
88
- return inv('0x7B6E7BEC1143AC86', this.handle, entity2.handle, p2, p3, rai());
88
+ return !!inv('0x7B6E7BEC1143AC86', this.handle, entity2.handle, p2, p3, rai());
89
89
  }
90
90
  /**
91
91
  * @returns
92
92
  */
93
- isFullyLooted() {
93
+ get IsFullyLooted() {
94
94
  return inv('0x8DE41E9902E85756', this.handle);
95
95
  }
96
96
  /**
97
97
  * @returns
98
98
  */
99
- isOccluded() {
100
- return inv('0x140188E884645624', this.handle, rai());
99
+ get IsOccluded() {
100
+ return !!inv('0x140188E884645624', this.handle, rai());
101
101
  }
102
102
  /**
103
103
  * @param toggle
104
104
  */
105
- setCanBeDamaged(toggle) {
105
+ set CanBeDamaged(toggle) {
106
106
  inv('0x0D06D522B90E861F', this.handle, toggle);
107
107
  }
108
108
  /**
@@ -122,8 +122,8 @@ export class Entity {
122
122
  /**
123
123
  * @returns
124
124
  */
125
- isDead() {
126
- return inv('0x7D5B1F88E7504BBA', this.handle, rai());
125
+ get IsDead() {
126
+ return !!inv('0x7D5B1F88E7504BBA', this.handle, rai());
127
127
  }
128
128
  /**
129
129
  * @param pos1
@@ -134,7 +134,7 @@ export class Entity {
134
134
  * @returns
135
135
  */
136
136
  isInArea(pos1, pos2, p7, p8, p9) {
137
- return inv('0x0C2634C40A16193E', this.handle, f(pos1.x), f(pos1.y), f(pos1.z), f(pos2.x), f(pos2.y), f(pos2.z), p7, p8, p9, rai());
137
+ return !!inv('0x0C2634C40A16193E', this.handle, f(pos1.x), f(pos1.y), f(pos1.z), f(pos2.x), f(pos2.y), f(pos2.z), p7, p8, p9, rai());
138
138
  }
139
139
  /**
140
140
  * Returns the coordinates of an entity-bone.
@@ -160,14 +160,14 @@ export class Entity {
160
160
  * @returns
161
161
  */
162
162
  playAnim(animName, animDict, p3, loop, stayInAnim, p6, delta, bitset) {
163
- return inv('0xDC6D22FAB76D4874', this.handle, animName, animDict, f(p3), loop, stayInAnim, p6, f(delta), bitset, rai());
163
+ return !!inv('0xDC6D22FAB76D4874', this.handle, animName, animDict, f(p3), loop, stayInAnim, p6, f(delta), bitset, rai());
164
164
  }
165
165
  /**
166
166
  * Returns false if entity is not a ped or object.
167
167
  *
168
168
  * @returns lootTable
169
169
  */
170
- getScriptOverrideLootTablePermanent() {
170
+ get ScriptOverrideLootTablePermanent() {
171
171
  const result = inv('0x1E804EA9B12030A4', this.handle, pvi());
172
172
  return [result[0], result[1]];
173
173
  }
@@ -178,7 +178,7 @@ export class Entity {
178
178
  * @returns
179
179
  */
180
180
  hasAnimFinished(animDict, animName, p3) {
181
- return inv('0xAEB40615337EF1E3', this.handle, animDict, animName, p3, rai());
181
+ return !!inv('0xAEB40615337EF1E3', this.handle, animDict, animName, p3, rai());
182
182
  }
183
183
  /**
184
184
  * @param bCanBeDamaged
@@ -190,7 +190,7 @@ export class Entity {
190
190
  /**
191
191
  * @returns
192
192
  */
193
- getUprightValue() {
193
+ get UprightValue() {
194
194
  return inv('0x56398BE65160C3BE', this.handle, raf());
195
195
  }
196
196
  /**
@@ -208,7 +208,7 @@ export class Entity {
208
208
  *
209
209
  * @returns
210
210
  */
211
- getCarryConfig() {
211
+ get CarryConfig() {
212
212
  return (inv('0x0FD25587BB306C86', this.handle, rai())) & 0xFFFFFFFF;
213
213
  }
214
214
  /**
@@ -225,7 +225,7 @@ export class Entity {
225
225
  *
226
226
  * @returns
227
227
  */
228
- getHeading() {
228
+ get Heading() {
229
229
  return inv('0xC230DD956E2F5507', this.handle, raf());
230
230
  }
231
231
  /**
@@ -233,33 +233,33 @@ export class Entity {
233
233
  *
234
234
  * @returns
235
235
  */
236
- getLodDist() {
236
+ get LodDist() {
237
237
  return inv('0xDF240D0C2A948683', this.handle, rai());
238
238
  }
239
239
  /**
240
240
  * @returns
241
241
  */
242
242
  doesHaveDrawable() {
243
- return inv('0x20487F0DA9AF164A', this.handle, rai());
243
+ return !!inv('0x20487F0DA9AF164A', this.handle, rai());
244
244
  }
245
245
  /**
246
246
  * @param xyzw
247
247
  */
248
- setQuaternion(xyzw) {
248
+ set Quaternion(xyzw) {
249
249
  inv('0x100E7007D13E3687', this.handle, f(xyzw.x), f(xyzw.y), f(xyzw.z), f(xyzw.w));
250
250
  }
251
251
  /**
252
252
  * @returns
253
253
  */
254
- isAttachedToAnyObject() {
255
- return inv('0x306C1F6178F01AB3', this.handle, rai());
254
+ get IsAttachedToAnyObject() {
255
+ return !!inv('0x306C1F6178F01AB3', this.handle, rai());
256
256
  }
257
257
  /**
258
258
  * Sets a ped or an object totally invincible. It doesn't take any kind of damage. Peds will not ragdoll on explosions.
259
259
  *
260
260
  * @param toggle
261
261
  */
262
- setInvincible(toggle) {
262
+ set Invincible(toggle) {
263
263
  inv('0xA5C38736C426FCB8', this.handle, toggle);
264
264
  }
265
265
  /**
@@ -289,7 +289,7 @@ export class Entity {
289
289
  /**
290
290
  * @returns
291
291
  */
292
- getIsAnimal() {
292
+ get IsAnimal() {
293
293
  return inv('0x9A100F1CF4546629', this.handle);
294
294
  }
295
295
  /**
@@ -311,7 +311,7 @@ export class Entity {
311
311
  *
312
312
  * @returns
313
313
  */
314
- getCanBeDamaged() {
314
+ get CanBeDamaged() {
315
315
  return inv('0x75DF9E73F2F005FD', this.handle);
316
316
  }
317
317
  /**
@@ -334,7 +334,7 @@ export class Entity {
334
334
  *
335
335
  * @returns
336
336
  */
337
- getForwardVector() {
337
+ get ForwardVector() {
338
338
  return Vector3.fromArray(inv('0x2412D9C05BB09B97', this.handle, rav()));
339
339
  }
340
340
  /**
@@ -342,7 +342,7 @@ export class Entity {
342
342
  * @returns
343
343
  */
344
344
  isTouchingModel(modelHash) {
345
- return inv('0x2AE3EBC8DEB9768B', this.handle, _h(modelHash), rai());
345
+ return !!inv('0x2AE3EBC8DEB9768B', this.handle, _h(modelHash), rai());
346
346
  }
347
347
  /**
348
348
  * Sets the entity's health. healthAmount sets the health value to that, and sets the maximum health core value. Setting healthAmount to 0 will kill the entity. entityKilledBy parameter can also be 0
@@ -356,20 +356,20 @@ export class Entity {
356
356
  /**
357
357
  * @param toggle
358
358
  */
359
- setRenderScorched(toggle) {
359
+ set RenderScorched(toggle) {
360
360
  inv('0x85B8A7534E44BC23', this.handle, toggle);
361
361
  }
362
362
  /**
363
363
  * @param heading
364
364
  */
365
- setHeading(heading) {
365
+ set Heading(heading) {
366
366
  inv('0xCF2B9C0645C4651B', this.handle, f(heading));
367
367
  }
368
368
  /**
369
369
  * @returns
370
370
  */
371
- getCollisionDisabled() {
372
- return inv('0xAA2FADD30F45A9DA', this.handle, rai());
371
+ get CollisionDisabled() {
372
+ return !!inv('0xAA2FADD30F45A9DA', this.handle, rai());
373
373
  }
374
374
  /**
375
375
  * Displays the current ROLL axis of the entity [-180.0000/180.0000+]
@@ -377,310 +377,302 @@ export class Entity {
377
377
  *
378
378
  * @returns
379
379
  */
380
- getRoll() {
380
+ get Roll() {
381
381
  return inv('0xBF966536FA8B6879', this.handle, raf());
382
382
  }
383
383
  /**
384
384
  * @returns
385
385
  */
386
- getNearestParticipantToEntity() {
386
+ get NearestParticipantToEntity() {
387
387
  return createFromHandle('Player', inv('0x6888A43C35A5F630', this.handle, rai()));
388
388
  }
389
389
  /**
390
- * @param p1
391
- */
392
- N_0xA48E4801DEBDF7E4(p1) {
393
- inv('0xA48E4801DEBDF7E4', this.handle, p1);
394
- }
395
- /**
396
- * @param toggle
397
- * @param keepPhysics
398
- */
399
- setCompletelyDisableCollision(toggle, keepPhysics) {
400
- inv('0xE0580EC84813875A', this.handle, toggle, keepPhysics);
401
- }
402
- /**
403
- * @param p1
390
+ * Returns entityType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityType
391
+ *
392
+ * @returns
404
393
  */
405
- N_0xCDB682BB47C02F0A(p1) {
406
- inv('0xCDB682BB47C02F0A', this.handle, _h(p1));
394
+ get Type() {
395
+ return inv('0x97F696ACA466B4E0', this.handle, rai());
407
396
  }
408
397
  /**
409
- * @param volume
410
- * @param p2
411
- * @param p3
412
398
  * @returns
413
399
  */
414
- isInVolume(volume, p2, p3) {
415
- return inv('0x5A5526BC09C06623', this.handle, volume, p2, p3, rai());
400
+ get IsOwnedByPersistenceSystem() {
401
+ return inv('0xA7E51B53309EAC97', this.handle);
416
402
  }
417
403
  /**
418
- * @returns rightVector; forwardVector; upVector; position
404
+ * @param animDict
405
+ * @param animName
406
+ * @param animType
407
+ * @returns
419
408
  */
420
- getMatrix() {
421
- const result = inv('0x3A9B1120AF13FBF2', this.handle, pvv(), pvv(), pvv(), pvv());
422
- return [Vector3.fromArray(result[0]), Vector3.fromArray(result[1]), Vector3.fromArray(result[2]), Vector3.fromArray(result[3])];
409
+ isPlayingAnim(animDict, animName, animType) {
410
+ return !!inv('0xDEE49D5CA6C49148', this.handle, animDict, animName, animType, rai());
423
411
  }
424
412
  /**
425
- * Called if entity is in water and submerged level is larger than 1f. If CARRYING_FLAG_FORCE_ALLOW_WARP_TO_SAFE_GROUND_LOCATION is true, it gets disabled as well.
413
+ * Marks the specified entity (ped, vehicle or object) as no longer needed, allowing the game engine to delete it whenever it sees fit.
426
414
  */
427
- N_0x371D179701D9C082() {
428
- inv('0x371D179701D9C082', this.handle);
415
+ setAsNoLongerNeeded() {
416
+ inv('0x4971D2F8162B9674', this.handle);
429
417
  }
430
418
  /**
431
- * @param p1
432
419
  * @returns
433
420
  */
434
- getMaxHealth(p1) {
435
- return inv('0x15D757606D170C3C', this.handle, p1, rai());
421
+ hasBeenDamagedByAnyVehicle() {
422
+ return !!inv('0x695D7C26DE65C423', this.handle, rai());
436
423
  }
437
424
  /**
438
425
  * @param animDict
439
426
  * @param animName
440
- * @param time
441
- */
442
- setAnimCurrentTime(animDict, animName, time) {
443
- inv('0x11CDABDC7783B2BC', this.handle, animDict, animName, f(time));
444
- }
445
- /**
446
- * Gets the current coordinates for a specified entity.
447
- * `entity` = The entity to get the coordinates from.
448
- * `alive` = Unused by the game, potentially used by debug builds in order to assert whether or not an entity was alive. If entity is a ped and it's in a vehicle or on a mount the coords of that entity are returned. Set 'realCoords' to true when you need the true ped coords.
449
- *
450
- * @param alive
451
- * @param realCoords
452
- * @returns
427
+ * @param speedMultiplier
453
428
  */
454
- getCoords(alive, realCoords) {
455
- return Vector3.fromArray(inv('0xA86D5F069399F44D', this.handle, alive, realCoords, rav()));
429
+ setAnimSpeed(animDict, animName, speedMultiplier) {
430
+ inv('0xEAA885BA3CEA4E4A', this.handle, animDict, animName, f(speedMultiplier));
456
431
  }
457
- /**
458
- * @returns
459
- */
460
- isAnObject() {
461
- return inv('0x0A27A546A375FDEF', this.handle, rai());
432
+ unpinMapEntity() {
433
+ inv('0xD2B9C78537ED5759', this.handle);
462
434
  }
463
435
  /**
436
+ * Get how much of the entity is submerged. 1.0f is whole entity.
437
+ *
464
438
  * @returns
465
439
  */
466
- isUpsidedown() {
467
- return inv('0x109DE3DA41AAD94A', this.handle, rai());
440
+ get SubmergedLevel() {
441
+ return inv('0x4A77C3F73FD9E831', this.handle, raf());
468
442
  }
469
443
  /**
470
- * @param p1
471
444
  * @returns
472
445
  */
473
- doesBelongToThisScript(p1) {
474
- return inv('0x622B1980CBE13332', this.handle, p1, rai());
446
+ get IsAttached() {
447
+ return !!inv('0xEE6AD63ABF59C0B7', this.handle, rai());
475
448
  }
476
449
  /**
477
- * Returns a hash of an entity's name. (Alternative Name: _GET_ENTITY_PROMPT_NAME_HASH)
450
+ * SET_ENTITY_A*
478
451
  *
479
- * @returns
452
+ * @param p1
480
453
  */
481
- getCarriableFromEntity() {
482
- return (inv('0x31FEF6A20F00B963', this.handle, rai())) & 0xFFFFFFFF;
454
+ N_0xC0EDEF16D90661EE(p1) {
455
+ inv('0xC0EDEF16D90661EE', this.handle, f(p1));
483
456
  }
484
457
  /**
485
- * @param toggle
486
- * @param keepPhysics
458
+ * @param looted
487
459
  */
488
- setCollision(toggle, keepPhysics) {
489
- inv('0xF66F820909453B8C', this.handle, toggle, keepPhysics);
460
+ set FullyLooted(looted) {
461
+ inv('0x6BCF5F3D8FFE988D', this.handle, looted);
490
462
  }
491
463
  /**
492
- * @param p1
493
464
  * @returns
494
465
  */
495
- placeOnGroundProperly(p1) {
496
- return inv('0x9587913B9E772D29', this.handle, p1);
466
+ get IsAttachedToAnyVehicle() {
467
+ return !!inv('0x12DF6E0D2E736749', this.handle, rai());
497
468
  }
498
469
  /**
470
+ * Used in Script Function DUELING_DID_PLAYER_DISARM_OPPONENT
471
+ *
472
+ * @param entity2
473
+ * @param p2
474
+ * @param p3
499
475
  * @returns
500
476
  */
501
- isInWater() {
502
- return inv('0xDDE5C125AC446723', this.handle, rai());
477
+ N_0x3EC28DA1FFAC9DDD(entity2, p2, p3) {
478
+ return !!inv('0x3EC28DA1FFAC9DDD', this.handle, entity2.handle, p2, p3, rai());
503
479
  }
504
480
  /**
505
- * @returns Returns `true` if the entity exists
481
+ * Must be called from a background script, otherwise it will do nothing.
506
482
  */
507
- doesExist() {
508
- return inv('0xD42BD6EB2E0F1677', this.handle, rai());
483
+ delete2() {
484
+ inv('0x5E94EA09E7207C16', this.handle);
509
485
  }
510
486
  /**
487
+ * @param p1
511
488
  * @returns
512
489
  */
513
- getAlpha() {
514
- return inv('0x1BB501624FAF2BEA', this.handle, rai());
490
+ isInAir(p1) {
491
+ return !!inv('0x886E37EC497200B6', this.handle, p1, rai());
515
492
  }
516
493
  /**
517
- * This native only works on `Ped` and `Object` entity types
518
- *
519
- * @param flagId Refer to [enum: eCarryingFlags]
520
494
  * @returns
521
495
  */
522
- getCarryingFlag(flagId) {
523
- return inv('0x808077647856DE62', this.handle, flagId, rai());
496
+ get IsAMissionEntity() {
497
+ return !!inv('0x138190F64DB4BBD1', this.handle, rai());
524
498
  }
525
499
  /**
526
- * @param p1
500
+ * @returns
527
501
  */
528
- forceAiAndAnimationUpdate(p1) {
529
- inv('0x4C9E96473D4F1A88', this.handle, p1);
502
+ get IsAttachedToAnyPed() {
503
+ return !!inv('0xC841153DED2CA89A', this.handle, rai());
530
504
  }
531
505
  /**
532
- * Axis - Invert Axis Flags
533
- *
534
- * @param pos
535
- * @param xAxis
536
- * @param yAxis
537
- * @param zAxis
506
+ * @param to
507
+ * @returns
538
508
  */
539
- setCoordsNoOffset(pos, xAxis, yAxis, zAxis) {
540
- inv('0x239A3351AC1DA385', this.handle, f(pos.x), f(pos.y), f(pos.z), xAxis, yAxis, zAxis);
509
+ isAttachedToEntity(to) {
510
+ return !!inv('0x154A3C529497053E', this.handle, to.handle, rai());
541
511
  }
542
512
  /**
543
- * Returns (CUR_HEALTH / MAX_HEALTH)
544
- *
545
513
  * @returns
546
514
  */
547
- getHealthFloat() {
548
- return inv('0x96C638784DB4C815', this.handle, raf());
515
+ hasBeenDamagedByAnyObject() {
516
+ return !!inv('0x73BB763880CD23A6', this.handle, rai());
549
517
  }
550
518
  /**
551
- * LOD distance can be 0 to 0xFFFF (higher values will result in 0xFFFF) as it is actually stored as a 16-bit value (aka uint16_t).
552
- *
553
- * @param value
519
+ * @param rotationOrder
520
+ * @returns
554
521
  */
555
- setLodDist(value) {
556
- inv('0x5FB407F0A7C877BF', this.handle, value);
522
+ getRotation(rotationOrder) {
523
+ return Vector3.fromArray(inv('0xE09CAF86C32CB48F', this.handle, rotationOrder, rav()));
557
524
  }
558
525
  /**
559
526
  * @param toggle
560
527
  */
561
- setDynamic(toggle) {
562
- inv('0xFBFC4473F66CE344', this.handle, toggle);
528
+ set MotionBlur(toggle) {
529
+ inv('0x516C6ABD18322B63', this.handle, toggle);
530
+ }
531
+ resetAlpha() {
532
+ inv('0x744B9EF44779D9AB', this.handle);
563
533
  }
564
534
  /**
565
- * @param radius
535
+ * Checks if entity is within x/y/zSize distance of x/y/z. Last three are unknown ints, almost always p7 = 0, p8 = 1, p9 = 0
536
+ *
537
+ * @param pos
538
+ * @param xSize
539
+ * @param ySize
540
+ * @param zSize
541
+ * @param p7
542
+ * @param p8
543
+ * @param p9
544
+ * @returns
566
545
  */
567
- setCustomPickupRadius(radius) {
568
- inv('0x482D17E45665DA44', this.handle, f(radius));
546
+ isAtCoord(pos, xSize, ySize, zSize, p7, p8, p9) {
547
+ return !!inv('0x5E58342602E94718', this.handle, f(pos.x), f(pos.y), f(pos.z), f(xSize), f(ySize), f(zSize), p7, p8, p9, rai());
569
548
  }
570
549
  /**
571
- * @returns
550
+ * @param entity2
551
+ * @param p2
552
+ * @param boneIndex
553
+ * @param offset
554
+ * @param p7
555
+ * @param p8
556
+ * @param p9
557
+ * @param p10
558
+ * @param p11
559
+ * @param p12
560
+ * @param p13
561
+ * @param p14
562
+ * @param p15
563
+ * @param p16
564
+ * @param p17
565
+ * @param p18
566
+ * @param p19
567
+ * @param p20
568
+ * @param p21
572
569
  */
573
- getPopulationType() {
574
- return inv('0xADE28862B6D7B85B', this.handle, rai());
570
+ attachToEntityPhysically(entity2, p2, boneIndex, offset, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21) {
571
+ inv('0xB629A43CA1643481', this.handle, entity2.handle, p2, boneIndex, f(offset.x), f(offset.y), f(offset.z), f(p7), f(p8), f(p9), f(p10), f(p11), f(p12), f(p13), p14, p15, p16, p17, p18, p19, f(p20), f(p21));
575
572
  }
576
573
  /**
577
574
  * @returns
578
575
  */
579
- isAVehicle() {
580
- return inv('0xC3D96AF45FCCEC4C', this.handle, rai());
576
+ get HeightAboveGround() {
577
+ return inv('0x0D3B5BAEA08F63E9', this.handle, raf());
581
578
  }
582
579
  /**
583
580
  * @param pos
584
- * @param atTop
585
- * @param inWorldCoords
586
- * @returns
581
+ * @param heading
582
+ * @param p5
583
+ * @param p6
587
584
  */
588
- getHeight(pos, atTop, inWorldCoords) {
589
- return inv('0x296DEBC84474B375', this.handle, f(pos.x), f(pos.y), f(pos.z), atTop, inWorldCoords, raf());
585
+ setCoordsAndHeadingNoOffset(pos, heading, p5, p6) {
586
+ inv('0x0918E3565C20F03C', this.handle, f(pos.x), f(pos.y), f(pos.z), f(heading), p5, p6);
590
587
  }
591
588
  /**
592
- * @param pos
589
+ * Creates a spherical cone at origin that extends to surface with the angle specified. Then returns true if the entity is inside the spherical cone Angle is measured in degrees.
590
+ *
591
+ * @param originX
592
+ * @param originY
593
+ * @param originZ
594
+ * @param edgeX
595
+ * @param edgeY
596
+ * @param edgeZ
597
+ * @param angle
598
+ * @param p8
599
+ * @param p9
600
+ * @param p10
593
601
  * @returns
594
602
  */
595
- getOffsetFromGivenWorldCoords(pos) {
596
- return Vector3.fromArray(inv('0x497C6B1A2C9AE69C', this.handle, f(pos.x), f(pos.y), f(pos.z), rav()));
603
+ isInAngledArea(originX, originY, originZ, edgeX, edgeY, edgeZ, angle, p8, p9, p10) {
604
+ return !!inv('0xD3151E53134595E5', this.handle, f(originX), f(originY), f(originZ), f(edgeX), f(edgeY), f(edgeZ), f(angle), p8, p9, p10, rai());
597
605
  }
598
- addTrackingTrails() {
599
- inv('0x1AD922AB5038DEF3', this.handle);
606
+ clearLastDamageEntity() {
607
+ inv('0xBB19AC7D4DCEFD0F', this.handle);
600
608
  }
601
609
  /**
602
610
  * @param toggle
603
611
  */
604
- setCanClimbOnEntity(toggle) {
605
- inv('0x24AED2A608F93C4C', this.handle, toggle);
612
+ set AlwaysPrerender(toggle) {
613
+ inv('0xACAD101E1FB66689', this.handle, toggle);
606
614
  }
607
615
  /**
608
- * @returns minimum; maximum
616
+ * Note that the third parameter(denoted as z) is "up and down" with positive numbers encouraging upwards movement.
617
+ *
618
+ * @param pos
609
619
  */
610
- getWorldPositionOfDimensions() {
611
- const result = inv('0xF3FDA9A617A15145', this.handle, pvv(), pvv());
612
- return [Vector3.fromArray(result[0]), Vector3.fromArray(result[1])];
620
+ set Velocity(pos) {
621
+ inv('0x1C99BB7B6E96D16F', this.handle, f(pos.x), f(pos.y), f(pos.z));
613
622
  }
614
623
  /**
624
+ * SET_ENTITY_LO*
625
+ *
615
626
  * @param p1
616
- * @returns
617
- */
618
- isUnderwater(p1) {
619
- return inv('0xD4E5C1E93C466127', this.handle, p1);
620
- }
621
- /**
622
- * @param animation
623
- * @param animGroup
627
+ * @param p2
624
628
  * @param p3
625
- * @returns
626
629
  */
627
- stopAnim(animation, animGroup, p3) {
628
- return inv('0x786591D986DE9159', this.handle, animation, animGroup, f(p3));
630
+ N_0xAF7F3099B9FEB535(p1, p2, p3) {
631
+ inv('0xAF7F3099B9FEB535', this.handle, f(p1), f(p2), f(p3));
629
632
  }
630
633
  /**
631
634
  * @returns
632
635
  */
633
- hasCollidedWithAnything() {
634
- return inv('0xDF18751EC74F90FF', this.handle, rai());
636
+ N_0xAF72EC7E1B54539B() {
637
+ return createFromHandle('Entity', inv('0xAF72EC7E1B54539B', this.handle, rai()));
635
638
  }
636
639
  /**
637
640
  * Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
638
641
  *
639
642
  * @returns
640
643
  */
641
- getVehicleIndexFromIndex() {
642
- return createFromHandle('Vehicle', inv('0xDF1E5AAC561AFC59', this.handle, rai()));
643
- }
644
- /**
645
- * @returns
646
- */
647
- isVisible() {
648
- return inv('0xFFC96ECB7FA404CA', this.handle, rai());
644
+ get ObjectIndexFromIndex() {
645
+ return createFromHandle('Prop', inv('0x280BBE5601EAA983', this.handle, rai()));
649
646
  }
650
647
  /**
651
- * SET_ENTITY_LO*
648
+ * Has the entity1 got a clear line of sight to the other entity2 from the direction entity1 is facing.
652
649
  *
653
- * @param toggle
650
+ * @param entity2
651
+ * @param traceType
652
+ * @returns
654
653
  */
655
- N_0xFF9965C47FA404DA(toggle) {
656
- inv('0xFF9965C47FA404DA', this.handle, toggle);
654
+ hasClearLosToEntityInFront(entity2, traceType) {
655
+ return !!inv('0xE88F19660651D566', this.handle, entity2.handle, traceType, rai());
657
656
  }
658
657
  /**
659
- * Valid indices: 0 - 3
660
- * Index 1 always returns a `hogtied` config, doesn't matter the entity.
661
- * It's for humans only and the ped must be resurrected first if it's dead.
662
- *
663
- * @param index
664
658
  * @returns
665
659
  */
666
- getOptimalCarryConfig(index) {
667
- return (inv('0x34F008A7E48C496B', this.handle, index, rai())) & 0xFFFFFFFF;
668
- }
669
- setFadeIn() {
670
- inv('0xA91E6CF94404E8C9', this.handle);
660
+ get IsOnTrainTrack() {
661
+ return inv('0x857ACB0AB4BD0D55', this.handle);
671
662
  }
672
663
  /**
664
+ * @param angle
673
665
  * @returns
674
666
  */
675
- hasBeenDamagedByAnyPed() {
676
- return inv('0x9934E9C42D52D87E', this.handle, rai());
667
+ isUpright(angle) {
668
+ return !!inv('0xF6F6AFD8D4FB2658', this.handle, f(angle), rai());
677
669
  }
678
670
  /**
679
671
  * @param targetEntity
680
672
  * @returns
681
673
  */
682
674
  isTouchingEntity(targetEntity) {
683
- return inv('0x9A2304A64C3C8423', this.handle, targetEntity.handle, rai());
675
+ return !!inv('0x9A2304A64C3C8423', this.handle, targetEntity.handle, rai());
684
676
  }
685
677
  deleteCarriable() {
686
678
  inv('0x0D0DB2B6AF19A987', this.handle);
@@ -707,19 +699,19 @@ export class Entity {
707
699
  *
708
700
  * @returns
709
701
  */
710
- getSpeed() {
702
+ get Speed() {
711
703
  return inv('0xFB6BA510A533DF81', this.handle, raf());
712
704
  }
713
705
  /**
714
706
  * @param bOnlyDamagedWhenRunningScript
715
707
  */
716
- setCanOnlyBeDamagedByScriptParticipants(bOnlyDamagedWhenRunningScript) {
708
+ set CanOnlyBeDamagedByScriptParticipants(bOnlyDamagedWhenRunningScript) {
717
709
  inv('0xFF83AF534156B399', this.handle, bOnlyDamagedWhenRunningScript);
718
710
  }
719
711
  /**
720
712
  * @returns
721
713
  */
722
- isTrackedVisible() {
714
+ get IsTrackedVisible() {
723
715
  return inv('0xC8CCDB712FBCBA92', this.handle);
724
716
  }
725
717
  /**
@@ -732,8 +724,8 @@ export class Entity {
732
724
  /**
733
725
  * @returns
734
726
  */
735
- isVisibleToScript() {
736
- return inv('0xF213C724E77F321A', this.handle, rai());
727
+ get IsVisibleToScript() {
728
+ return !!inv('0xF213C724E77F321A', this.handle, rai());
737
729
  }
738
730
  /**
739
731
  * @param entity2
@@ -741,7 +733,7 @@ export class Entity {
741
733
  * @returns
742
734
  */
743
735
  hasClearLosToEntity(entity2, traceType) {
744
- return inv('0xFCDFF7B72D23A1AC', this.handle, entity2.handle, traceType, rai());
736
+ return !!inv('0xFCDFF7B72D23A1AC', this.handle, entity2.handle, traceType, rai());
745
737
  }
746
738
  /**
747
739
  * Used in Script Function GENERIC_ITEM_HAS_ANIM_COMPLETED
@@ -767,7 +759,7 @@ export class Entity {
767
759
  *
768
760
  * @returns
769
761
  */
770
- getForwardY() {
762
+ get ForwardY() {
771
763
  return inv('0x9A5C073ECBDA7EE7', this.handle, raf());
772
764
  }
773
765
  /**
@@ -801,12 +793,12 @@ export class Entity {
801
793
  * @returns
802
794
  */
803
795
  hasCollisionLoadedAroundEntity() {
804
- return inv('0xBEB1600952B9CF5C', this.handle, rai());
796
+ return !!inv('0xBEB1600952B9CF5C', this.handle, rai());
805
797
  }
806
798
  /**
807
799
  * @returns
808
800
  */
809
- getIsCarriablePelt() {
801
+ get IsCarriablePelt() {
810
802
  return inv('0x255B6DB4E3AD3C3E', this.handle);
811
803
  }
812
804
  /**
@@ -819,7 +811,7 @@ export class Entity {
819
811
  /**
820
812
  * @param toggle
821
813
  */
822
- setCanAutoVaultOnEntity(toggle) {
814
+ set CanAutoVaultOnEntity(toggle) {
823
815
  inv('0x80646744FA88F9D7', this.handle, toggle);
824
816
  }
825
817
  /**
@@ -835,7 +827,7 @@ export class Entity {
835
827
  /**
836
828
  * @returns argStruct
837
829
  */
838
- getScript() {
830
+ get Script() {
839
831
  const result = inv('0x2A08A32B6D49906F', this.handle, pvi(), rai());
840
832
  return [result[0] & 0xFFFFFFFF, result[1]];
841
833
  }
@@ -844,7 +836,7 @@ export class Entity {
844
836
  * @returns
845
837
  */
846
838
  hasAnimEventFired(actionHash) {
847
- return inv('0x5851CC48405F4A07', this.handle, _h(actionHash), rai());
839
+ return !!inv('0x5851CC48405F4A07', this.handle, _h(actionHash), rai());
848
840
  }
849
841
  /**
850
842
  * @param p1
@@ -857,7 +849,7 @@ export class Entity {
857
849
  *
858
850
  * @returns
859
851
  */
860
- isFrozen() {
852
+ get IsFrozen() {
861
853
  return inv('0x083D497D57B7400F', this.handle);
862
854
  }
863
855
  /**
@@ -865,47 +857,47 @@ export class Entity {
865
857
  *
866
858
  * @returns
867
859
  */
868
- getLootingPed() {
860
+ get LootingPed() {
869
861
  return createFromHandle('Ped', inv('0xEF2D9ED7CE684F08', this.handle, rai()));
870
862
  }
871
863
  /**
872
864
  * @returns
873
865
  */
874
- isWaitingForWorldCollision() {
875
- return inv('0x5E1CC2E8DC3111DD', this.handle, rai());
866
+ get IsWaitingForWorldCollision() {
867
+ return !!inv('0x5E1CC2E8DC3111DD', this.handle, rai());
876
868
  }
877
869
  /**
878
870
  * Gets the X-component of the entity's forward vector.
879
871
  *
880
872
  * @returns
881
873
  */
882
- getForwardX() {
874
+ get ForwardX() {
883
875
  return inv('0xDB0954E9960F6457', this.handle, raf());
884
876
  }
885
877
  /**
886
878
  * @returns
887
879
  */
888
- isAPed() {
889
- return inv('0xCF8176912DDA4EA5', this.handle, rai());
880
+ get IsAPed() {
881
+ return !!inv('0xCF8176912DDA4EA5', this.handle, rai());
890
882
  }
891
883
  /**
892
884
  * @returns
893
885
  */
894
- getPitch() {
886
+ get Pitch() {
895
887
  return inv('0xEF355ABEFF7F5005', this.handle, raf());
896
888
  }
897
889
  /**
898
890
  * @returns
899
891
  */
900
- isStatic() {
901
- return inv('0x86468ADFA0F6B861', this.handle, rai());
892
+ get IsStatic() {
893
+ return !!inv('0x86468ADFA0F6B861', this.handle, rai());
902
894
  }
903
895
  /**
904
896
  * Returns the model hash from the entity
905
897
  *
906
898
  * @returns
907
899
  */
908
- getModel() {
900
+ get Model() {
909
901
  return (inv('0xDA76A9F39210D365', this.handle, rai())) & 0xFFFFFFFF;
910
902
  }
911
903
  /**
@@ -935,7 +927,7 @@ export class Entity {
935
927
  /**
936
928
  * @param toggle
937
929
  */
938
- setRequiresMoreExpensiveRiverCheck(toggle) {
930
+ set RequiresMoreExpensiveRiverCheck(toggle) {
939
931
  inv('0x850C940EE3E7B8B5', this.handle, toggle);
940
932
  }
941
933
  /**
@@ -953,7 +945,7 @@ export class Entity {
953
945
  *
954
946
  * @returns
955
947
  */
956
- getPedIndexFromIndex() {
948
+ get PedIndexFromIndex() {
957
949
  return createFromHandle('Ped', inv('0x0F16D042BD640EA3', this.handle, rai()));
958
950
  }
959
951
  /**
@@ -961,27 +953,27 @@ export class Entity {
961
953
  *
962
954
  * @param toggle
963
955
  */
964
- setCanBeTargetedWithoutLos(toggle) {
956
+ set CanBeTargetedWithoutLos(toggle) {
965
957
  inv('0x6D09F32E284D0FB7', this.handle, toggle);
966
958
  }
967
959
  /**
968
960
  * @returns
969
961
  */
970
- isOnScreen() {
971
- return inv('0x613C15D5D8DB781F', this.handle, rai());
962
+ get IsOnScreen() {
963
+ return !!inv('0x613C15D5D8DB781F', this.handle, rai());
972
964
  }
973
965
  /**
974
966
  * Old name: _SET_ENTITY_DECALS_DISABLED
975
967
  *
976
968
  * @param toggle
977
969
  */
978
- setNoweapondecals(toggle) {
970
+ set Noweapondecals(toggle) {
979
971
  inv('0xC64E597783BE9A1D', this.handle, toggle);
980
972
  }
981
973
  /**
982
974
  * @returns
983
975
  */
984
- getHealth() {
976
+ get Health() {
985
977
  return inv('0x82368787EA73C0F7', this.handle, rai());
986
978
  }
987
979
  /**
@@ -1000,7 +992,7 @@ export class Entity {
1000
992
  * @returns
1001
993
  */
1002
994
  doesHavePhysics() {
1003
- return inv('0xA512B3F1B2A0B51C', this.handle, rai());
995
+ return !!inv('0xA512B3F1B2A0B51C', this.handle, rai());
1004
996
  }
1005
997
  /**
1006
998
  * Returns true if calling script owns specified entity
@@ -1054,13 +1046,13 @@ export class Entity {
1054
1046
  /**
1055
1047
  * @returns
1056
1048
  */
1057
- getAttachedTo() {
1049
+ get AttachedTo() {
1058
1050
  return createFromHandle('Entity', inv('0x56D713888A566481', this.handle, rai()));
1059
1051
  }
1060
1052
  /**
1061
1053
  * @param toggle
1062
1054
  */
1063
- setOnlyDamagedByPlayer(toggle) {
1055
+ set OnlyDamagedByPlayer(toggle) {
1064
1056
  inv('0x473598683095D430', this.handle, toggle);
1065
1057
  }
1066
1058
  /**
@@ -1088,7 +1080,7 @@ export class Entity {
1088
1080
  /**
1089
1081
  * @returns
1090
1082
  */
1091
- getIsPredator() {
1083
+ get IsPredator() {
1092
1084
  return inv('0x5594AFE9DE0C01B7', this.handle);
1093
1085
  }
1094
1086
  /**
@@ -1111,13 +1103,13 @@ export class Entity {
1111
1103
  *
1112
1104
  * @returns
1113
1105
  */
1114
- getCarriableState() {
1106
+ get CarriableState() {
1115
1107
  return inv('0x61914209C36EFDDB', this.handle, rai());
1116
1108
  }
1117
1109
  /**
1118
1110
  * @param value
1119
1111
  */
1120
- setMaxHealth(value) {
1112
+ set MaxHealth(value) {
1121
1113
  inv('0x166E7CF68597D8B5', this.handle, value);
1122
1114
  }
1123
1115
  /**
@@ -1127,12 +1119,12 @@ export class Entity {
1127
1119
  * @returns
1128
1120
  */
1129
1121
  isPlayingAnyAnim(p1) {
1130
- return inv('0x0B7CB1300CBFE19C', this.handle, p1, rai());
1122
+ return !!inv('0x0B7CB1300CBFE19C', this.handle, p1, rai());
1131
1123
  }
1132
1124
  /**
1133
1125
  * @param enabled
1134
1126
  */
1135
- setLightsEnabled(enabled) {
1127
+ set LightsEnabled(enabled) {
1136
1128
  inv('0xEBDC12861D079ABA', this.handle, enabled);
1137
1129
  }
1138
1130
  /**
@@ -1159,12 +1151,12 @@ export class Entity {
1159
1151
  * @returns
1160
1152
  */
1161
1153
  isAtEntity(entity2, xSize, ySize, zSize, p5, p6, p7) {
1162
- return inv('0xC057F02B837A27F6', this.handle, entity2.handle, f(xSize), f(ySize), f(zSize), p5, p6, p7, rai());
1154
+ return !!inv('0xC057F02B837A27F6', this.handle, entity2.handle, f(xSize), f(ySize), f(zSize), p5, p6, p7, rai());
1163
1155
  }
1164
1156
  /**
1165
1157
  * @param toggle
1166
1158
  */
1167
- setVisible(toggle) {
1159
+ set Visible(toggle) {
1168
1160
  inv('0x1794B4FCC84D812F', this.handle, toggle);
1169
1161
  }
1170
1162
  /**
@@ -1172,7 +1164,7 @@ export class Entity {
1172
1164
  *
1173
1165
  * @param toggle
1174
1166
  */
1175
- setShouldFreezeWaitingOnCollision(toggle) {
1167
+ set ShouldFreezeWaitingOnCollision(toggle) {
1176
1168
  inv('0x740CB4F3F602C9F4', this.handle, toggle);
1177
1169
  }
1178
1170
  /**
@@ -1181,7 +1173,7 @@ export class Entity {
1181
1173
  *
1182
1174
  * @returns
1183
1175
  */
1184
- getProofs() {
1176
+ get Proofs() {
1185
1177
  return inv('0x6CF0DAD7FA1088EA', this.handle, rai());
1186
1178
  }
1187
1179
  /**
@@ -1191,295 +1183,312 @@ export class Entity {
1191
1183
  * @param alphaLevel
1192
1184
  * @param skin
1193
1185
  */
1194
- setAlpha(alphaLevel, skin) {
1195
- inv('0x0DF7692B1D9E7BA7', this.handle, alphaLevel, skin);
1186
+ setAlpha(alphaLevel, skin) {
1187
+ inv('0x0DF7692B1D9E7BA7', this.handle, alphaLevel, skin);
1188
+ }
1189
+ /**
1190
+ * @returns
1191
+ */
1192
+ get ThreatTier() {
1193
+ return inv('0xE12F56CB25D9CE23', this.handle, rai());
1194
+ }
1195
+ /**
1196
+ * @param p1
1197
+ */
1198
+ N_0xA48E4801DEBDF7E4(p1) {
1199
+ inv('0xA48E4801DEBDF7E4', this.handle, p1);
1200
+ }
1201
+ /**
1202
+ * @param toggle
1203
+ * @param keepPhysics
1204
+ */
1205
+ setCompletelyDisableCollision(toggle, keepPhysics) {
1206
+ inv('0xE0580EC84813875A', this.handle, toggle, keepPhysics);
1207
+ }
1208
+ /**
1209
+ * @param p1
1210
+ */
1211
+ N_0xCDB682BB47C02F0A(p1) {
1212
+ inv('0xCDB682BB47C02F0A', this.handle, _h(p1));
1196
1213
  }
1197
1214
  /**
1215
+ * @param volume
1216
+ * @param p2
1217
+ * @param p3
1198
1218
  * @returns
1199
1219
  */
1200
- getThreatTier() {
1201
- return inv('0xE12F56CB25D9CE23', this.handle, rai());
1220
+ isInVolume(volume, p2, p3) {
1221
+ return !!inv('0x5A5526BC09C06623', this.handle, volume, p2, p3, rai());
1202
1222
  }
1203
1223
  /**
1204
- * Returns entityType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityType
1205
- *
1206
- * @returns
1224
+ * @returns rightVector; forwardVector; upVector; position
1207
1225
  */
1208
- getType() {
1209
- return inv('0x97F696ACA466B4E0', this.handle, rai());
1226
+ get Matrix() {
1227
+ const result = inv('0x3A9B1120AF13FBF2', this.handle, pvv(), pvv(), pvv(), pvv());
1228
+ return [Vector3.fromArray(result[0]), Vector3.fromArray(result[1]), Vector3.fromArray(result[2]), Vector3.fromArray(result[3])];
1210
1229
  }
1211
1230
  /**
1212
- * @returns
1231
+ * Called if entity is in water and submerged level is larger than 1f. If CARRYING_FLAG_FORCE_ALLOW_WARP_TO_SAFE_GROUND_LOCATION is true, it gets disabled as well.
1213
1232
  */
1214
- isOwnedByPersistenceSystem() {
1215
- return inv('0xA7E51B53309EAC97', this.handle);
1233
+ N_0x371D179701D9C082() {
1234
+ inv('0x371D179701D9C082', this.handle);
1216
1235
  }
1217
1236
  /**
1218
- * @param animDict
1219
- * @param animName
1220
- * @param animType
1237
+ * @param p1
1221
1238
  * @returns
1222
1239
  */
1223
- isPlayingAnim(animDict, animName, animType) {
1224
- return inv('0xDEE49D5CA6C49148', this.handle, animDict, animName, animType, rai());
1240
+ getMaxHealth(p1) {
1241
+ return inv('0x15D757606D170C3C', this.handle, p1, rai());
1225
1242
  }
1226
1243
  /**
1227
- * Marks the specified entity (ped, vehicle or object) as no longer needed, allowing the game engine to delete it whenever it sees fit.
1244
+ * @param animDict
1245
+ * @param animName
1246
+ * @param time
1228
1247
  */
1229
- setAsNoLongerNeeded() {
1230
- inv('0x4971D2F8162B9674', this.handle);
1248
+ setAnimCurrentTime(animDict, animName, time) {
1249
+ inv('0x11CDABDC7783B2BC', this.handle, animDict, animName, f(time));
1231
1250
  }
1232
1251
  /**
1252
+ * Gets the current coordinates for a specified entity.
1253
+ * `entity` = The entity to get the coordinates from.
1254
+ * `alive` = Unused by the game, potentially used by debug builds in order to assert whether or not an entity was alive. If entity is a ped and it's in a vehicle or on a mount the coords of that entity are returned. Set 'realCoords' to true when you need the true ped coords.
1255
+ *
1256
+ * @param alive
1257
+ * @param realCoords
1233
1258
  * @returns
1234
1259
  */
1235
- hasBeenDamagedByAnyVehicle() {
1236
- return inv('0x695D7C26DE65C423', this.handle, rai());
1260
+ getCoords(alive, realCoords) {
1261
+ return Vector3.fromArray(inv('0xA86D5F069399F44D', this.handle, alive, realCoords, rav()));
1262
+ }
1263
+ get Coords() {
1264
+ return this.getCoords();
1237
1265
  }
1238
1266
  /**
1239
- * @param animDict
1240
- * @param animName
1241
- * @param speedMultiplier
1267
+ * @returns
1242
1268
  */
1243
- setAnimSpeed(animDict, animName, speedMultiplier) {
1244
- inv('0xEAA885BA3CEA4E4A', this.handle, animDict, animName, f(speedMultiplier));
1245
- }
1246
- unpinMapEntity() {
1247
- inv('0xD2B9C78537ED5759', this.handle);
1269
+ get IsAnObject() {
1270
+ return !!inv('0x0A27A546A375FDEF', this.handle, rai());
1248
1271
  }
1249
1272
  /**
1250
- * Get how much of the entity is submerged. 1.0f is whole entity.
1251
- *
1252
1273
  * @returns
1253
1274
  */
1254
- getSubmergedLevel() {
1255
- return inv('0x4A77C3F73FD9E831', this.handle, raf());
1275
+ get IsUpsidedown() {
1276
+ return !!inv('0x109DE3DA41AAD94A', this.handle, rai());
1256
1277
  }
1257
1278
  /**
1279
+ * @param p1
1258
1280
  * @returns
1259
1281
  */
1260
- isAttached() {
1261
- return inv('0xEE6AD63ABF59C0B7', this.handle, rai());
1282
+ doesBelongToThisScript(p1) {
1283
+ return !!inv('0x622B1980CBE13332', this.handle, p1, rai());
1262
1284
  }
1263
1285
  /**
1264
- * SET_ENTITY_A*
1286
+ * Returns a hash of an entity's name. (Alternative Name: _GET_ENTITY_PROMPT_NAME_HASH)
1265
1287
  *
1266
- * @param p1
1288
+ * @returns
1267
1289
  */
1268
- N_0xC0EDEF16D90661EE(p1) {
1269
- inv('0xC0EDEF16D90661EE', this.handle, f(p1));
1290
+ get CarriableFromEntity() {
1291
+ return (inv('0x31FEF6A20F00B963', this.handle, rai())) & 0xFFFFFFFF;
1270
1292
  }
1271
1293
  /**
1272
- * @param looted
1294
+ * @param toggle
1295
+ * @param keepPhysics
1273
1296
  */
1274
- setFullyLooted(looted) {
1275
- inv('0x6BCF5F3D8FFE988D', this.handle, looted);
1297
+ setCollision(toggle, keepPhysics) {
1298
+ inv('0xF66F820909453B8C', this.handle, toggle, keepPhysics);
1276
1299
  }
1277
1300
  /**
1301
+ * @param p1
1278
1302
  * @returns
1279
1303
  */
1280
- isAttachedToAnyVehicle() {
1281
- return inv('0x12DF6E0D2E736749', this.handle, rai());
1304
+ placeOnGroundProperly(p1) {
1305
+ return inv('0x9587913B9E772D29', this.handle, p1);
1282
1306
  }
1283
1307
  /**
1284
- * Used in Script Function DUELING_DID_PLAYER_DISARM_OPPONENT
1285
- *
1286
- * @param entity2
1287
- * @param p2
1288
- * @param p3
1289
1308
  * @returns
1290
1309
  */
1291
- N_0x3EC28DA1FFAC9DDD(entity2, p2, p3) {
1292
- return inv('0x3EC28DA1FFAC9DDD', this.handle, entity2.handle, p2, p3, rai());
1310
+ get IsInWater() {
1311
+ return !!inv('0xDDE5C125AC446723', this.handle, rai());
1293
1312
  }
1294
1313
  /**
1295
- * Must be called from a background script, otherwise it will do nothing.
1314
+ * @returns Returns `true` if the entity exists
1296
1315
  */
1297
- delete2() {
1298
- inv('0x5E94EA09E7207C16', this.handle);
1316
+ doesExist() {
1317
+ return !!inv('0xD42BD6EB2E0F1677', this.handle, rai());
1299
1318
  }
1300
1319
  /**
1301
- * @param p1
1302
1320
  * @returns
1303
1321
  */
1304
- isInAir(p1) {
1305
- return inv('0x886E37EC497200B6', this.handle, p1, rai());
1322
+ get Alpha() {
1323
+ return inv('0x1BB501624FAF2BEA', this.handle, rai());
1306
1324
  }
1307
1325
  /**
1326
+ * This native only works on `Ped` and `Object` entity types
1327
+ *
1328
+ * @param flagId Refer to [enum: eCarryingFlags]
1308
1329
  * @returns
1309
1330
  */
1310
- isAMissionEntity() {
1311
- return inv('0x138190F64DB4BBD1', this.handle, rai());
1331
+ getCarryingFlag(flagId) {
1332
+ return inv('0x808077647856DE62', this.handle, flagId, rai());
1312
1333
  }
1313
1334
  /**
1314
- * @returns
1335
+ * @param p1
1315
1336
  */
1316
- isAttachedToAnyPed() {
1317
- return inv('0xC841153DED2CA89A', this.handle, rai());
1337
+ forceAiAndAnimationUpdate(p1) {
1338
+ inv('0x4C9E96473D4F1A88', this.handle, p1);
1318
1339
  }
1319
1340
  /**
1320
- * @param to
1321
- * @returns
1341
+ * Axis - Invert Axis Flags
1342
+ *
1343
+ * @param pos
1344
+ * @param xAxis
1345
+ * @param yAxis
1346
+ * @param zAxis
1322
1347
  */
1323
- isAttachedToEntity(to) {
1324
- return inv('0x154A3C529497053E', this.handle, to.handle, rai());
1348
+ setCoordsNoOffset(pos, xAxis, yAxis, zAxis) {
1349
+ inv('0x239A3351AC1DA385', this.handle, f(pos.x), f(pos.y), f(pos.z), xAxis, yAxis, zAxis);
1325
1350
  }
1326
1351
  /**
1352
+ * Returns (CUR_HEALTH / MAX_HEALTH)
1353
+ *
1327
1354
  * @returns
1328
1355
  */
1329
- hasBeenDamagedByAnyObject() {
1330
- return inv('0x73BB763880CD23A6', this.handle, rai());
1356
+ get HealthFloat() {
1357
+ return inv('0x96C638784DB4C815', this.handle, raf());
1331
1358
  }
1332
1359
  /**
1333
- * @param rotationOrder
1334
- * @returns
1360
+ * LOD distance can be 0 to 0xFFFF (higher values will result in 0xFFFF) as it is actually stored as a 16-bit value (aka uint16_t).
1361
+ *
1362
+ * @param value
1335
1363
  */
1336
- getRotation(rotationOrder) {
1337
- return Vector3.fromArray(inv('0xE09CAF86C32CB48F', this.handle, rotationOrder, rav()));
1364
+ set LodDist(value) {
1365
+ inv('0x5FB407F0A7C877BF', this.handle, value);
1338
1366
  }
1339
1367
  /**
1340
1368
  * @param toggle
1341
1369
  */
1342
- setMotionBlur(toggle) {
1343
- inv('0x516C6ABD18322B63', this.handle, toggle);
1344
- }
1345
- resetAlpha() {
1346
- inv('0x744B9EF44779D9AB', this.handle);
1370
+ set Dynamic(toggle) {
1371
+ inv('0xFBFC4473F66CE344', this.handle, toggle);
1347
1372
  }
1348
1373
  /**
1349
- * Checks if entity is within x/y/zSize distance of x/y/z. Last three are unknown ints, almost always p7 = 0, p8 = 1, p9 = 0
1350
- *
1351
- * @param pos
1352
- * @param xSize
1353
- * @param ySize
1354
- * @param zSize
1355
- * @param p7
1356
- * @param p8
1357
- * @param p9
1358
- * @returns
1374
+ * @param radius
1359
1375
  */
1360
- isAtCoord(pos, xSize, ySize, zSize, p7, p8, p9) {
1361
- return inv('0x5E58342602E94718', this.handle, f(pos.x), f(pos.y), f(pos.z), f(xSize), f(ySize), f(zSize), p7, p8, p9, rai());
1376
+ set CustomPickupRadius(radius) {
1377
+ inv('0x482D17E45665DA44', this.handle, f(radius));
1362
1378
  }
1363
1379
  /**
1364
- * @param entity2
1365
- * @param p2
1366
- * @param boneIndex
1367
- * @param offset
1368
- * @param p7
1369
- * @param p8
1370
- * @param p9
1371
- * @param p10
1372
- * @param p11
1373
- * @param p12
1374
- * @param p13
1375
- * @param p14
1376
- * @param p15
1377
- * @param p16
1378
- * @param p17
1379
- * @param p18
1380
- * @param p19
1381
- * @param p20
1382
- * @param p21
1380
+ * @returns
1383
1381
  */
1384
- attachToEntityPhysically(entity2, p2, boneIndex, offset, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21) {
1385
- inv('0xB629A43CA1643481', this.handle, entity2.handle, p2, boneIndex, f(offset.x), f(offset.y), f(offset.z), f(p7), f(p8), f(p9), f(p10), f(p11), f(p12), f(p13), p14, p15, p16, p17, p18, p19, f(p20), f(p21));
1382
+ get PopulationType() {
1383
+ return inv('0xADE28862B6D7B85B', this.handle, rai());
1386
1384
  }
1387
1385
  /**
1388
1386
  * @returns
1389
1387
  */
1390
- getHeightAboveGround() {
1391
- return inv('0x0D3B5BAEA08F63E9', this.handle, raf());
1388
+ get IsAVehicle() {
1389
+ return !!inv('0xC3D96AF45FCCEC4C', this.handle, rai());
1392
1390
  }
1393
1391
  /**
1394
1392
  * @param pos
1395
- * @param heading
1396
- * @param p5
1397
- * @param p6
1393
+ * @param atTop
1394
+ * @param inWorldCoords
1395
+ * @returns
1398
1396
  */
1399
- setCoordsAndHeadingNoOffset(pos, heading, p5, p6) {
1400
- inv('0x0918E3565C20F03C', this.handle, f(pos.x), f(pos.y), f(pos.z), f(heading), p5, p6);
1397
+ getHeight(pos, atTop, inWorldCoords) {
1398
+ return inv('0x296DEBC84474B375', this.handle, f(pos.x), f(pos.y), f(pos.z), atTop, inWorldCoords, raf());
1401
1399
  }
1402
1400
  /**
1403
- * Creates a spherical cone at origin that extends to surface with the angle specified. Then returns true if the entity is inside the spherical cone Angle is measured in degrees.
1404
- *
1405
- * @param originX
1406
- * @param originY
1407
- * @param originZ
1408
- * @param edgeX
1409
- * @param edgeY
1410
- * @param edgeZ
1411
- * @param angle
1412
- * @param p8
1413
- * @param p9
1414
- * @param p10
1401
+ * @param pos
1415
1402
  * @returns
1416
1403
  */
1417
- isInAngledArea(originX, originY, originZ, edgeX, edgeY, edgeZ, angle, p8, p9, p10) {
1418
- return inv('0xD3151E53134595E5', this.handle, f(originX), f(originY), f(originZ), f(edgeX), f(edgeY), f(edgeZ), f(angle), p8, p9, p10, rai());
1404
+ getOffsetFromGivenWorldCoords(pos) {
1405
+ return Vector3.fromArray(inv('0x497C6B1A2C9AE69C', this.handle, f(pos.x), f(pos.y), f(pos.z), rav()));
1419
1406
  }
1420
- clearLastDamageEntity() {
1421
- inv('0xBB19AC7D4DCEFD0F', this.handle);
1407
+ addTrackingTrails() {
1408
+ inv('0x1AD922AB5038DEF3', this.handle);
1422
1409
  }
1423
1410
  /**
1424
1411
  * @param toggle
1425
1412
  */
1426
- setAlwaysPrerender(toggle) {
1427
- inv('0xACAD101E1FB66689', this.handle, toggle);
1413
+ set CanClimbOnEntity(toggle) {
1414
+ inv('0x24AED2A608F93C4C', this.handle, toggle);
1428
1415
  }
1429
1416
  /**
1430
- * Note that the third parameter(denoted as z) is "up and down" with positive numbers encouraging upwards movement.
1431
- *
1432
- * @param pos
1417
+ * @returns minimum; maximum
1433
1418
  */
1434
- setVelocity(pos) {
1435
- inv('0x1C99BB7B6E96D16F', this.handle, f(pos.x), f(pos.y), f(pos.z));
1419
+ get WorldPositionOfDimensions() {
1420
+ const result = inv('0xF3FDA9A617A15145', this.handle, pvv(), pvv());
1421
+ return [Vector3.fromArray(result[0]), Vector3.fromArray(result[1])];
1436
1422
  }
1437
1423
  /**
1438
- * SET_ENTITY_LO*
1439
- *
1440
1424
  * @param p1
1441
- * @param p2
1425
+ * @returns
1426
+ */
1427
+ isUnderwater(p1) {
1428
+ return inv('0xD4E5C1E93C466127', this.handle, p1);
1429
+ }
1430
+ /**
1431
+ * @param animation
1432
+ * @param animGroup
1442
1433
  * @param p3
1434
+ * @returns
1443
1435
  */
1444
- N_0xAF7F3099B9FEB535(p1, p2, p3) {
1445
- inv('0xAF7F3099B9FEB535', this.handle, f(p1), f(p2), f(p3));
1436
+ stopAnim(animation, animGroup, p3) {
1437
+ return inv('0x786591D986DE9159', this.handle, animation, animGroup, f(p3));
1446
1438
  }
1447
1439
  /**
1448
1440
  * @returns
1449
1441
  */
1450
- N_0xAF72EC7E1B54539B() {
1451
- return createFromHandle('Entity', inv('0xAF72EC7E1B54539B', this.handle, rai()));
1442
+ hasCollidedWithAnything() {
1443
+ return !!inv('0xDF18751EC74F90FF', this.handle, rai());
1452
1444
  }
1453
1445
  /**
1454
1446
  * Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
1455
1447
  *
1456
1448
  * @returns
1457
1449
  */
1458
- getObjectIndexFromIndex() {
1459
- return createFromHandle('Prop', inv('0x280BBE5601EAA983', this.handle, rai()));
1450
+ get VehicleIndexFromIndex() {
1451
+ return createFromHandle('Vehicle', inv('0xDF1E5AAC561AFC59', this.handle, rai()));
1460
1452
  }
1461
1453
  /**
1462
- * Has the entity1 got a clear line of sight to the other entity2 from the direction entity1 is facing.
1463
- *
1464
- * @param entity2
1465
- * @param traceType
1466
1454
  * @returns
1467
1455
  */
1468
- hasClearLosToEntityInFront(entity2, traceType) {
1469
- return inv('0xE88F19660651D566', this.handle, entity2.handle, traceType, rai());
1456
+ get IsVisible() {
1457
+ return !!inv('0xFFC96ECB7FA404CA', this.handle, rai());
1458
+ }
1459
+ /**
1460
+ * SET_ENTITY_LO*
1461
+ *
1462
+ * @param toggle
1463
+ */
1464
+ N_0xFF9965C47FA404DA(toggle) {
1465
+ inv('0xFF9965C47FA404DA', this.handle, toggle);
1470
1466
  }
1471
1467
  /**
1468
+ * Valid indices: 0 - 3
1469
+ * Index 1 always returns a `hogtied` config, doesn't matter the entity.
1470
+ * It's for humans only and the ped must be resurrected first if it's dead.
1471
+ *
1472
+ * @param index
1472
1473
  * @returns
1473
1474
  */
1474
- isOnTrainTrack() {
1475
- return inv('0x857ACB0AB4BD0D55', this.handle);
1475
+ getOptimalCarryConfig(index) {
1476
+ return (inv('0x34F008A7E48C496B', this.handle, index, rai())) & 0xFFFFFFFF;
1477
+ }
1478
+ setFadeIn() {
1479
+ inv('0xA91E6CF94404E8C9', this.handle);
1476
1480
  }
1477
1481
  /**
1478
- * @param angle
1479
1482
  * @returns
1480
1483
  */
1481
- isUpright(angle) {
1482
- return inv('0xF6F6AFD8D4FB2658', this.handle, f(angle), rai());
1484
+ hasBeenDamagedByAnyPed() {
1485
+ return !!inv('0x9934E9C42D52D87E', this.handle, rai());
1486
+ }
1487
+ /**
1488
+ * Gets the network ID of this entity for network synchronization.
1489
+ */
1490
+ get NetworkId() {
1491
+ return inv('0xF260AF6F43953316', this.handle, rai());
1483
1492
  }
1484
1493
  }
1485
1494
  registerHandle('Entity', Entity);