@nativewrappers/redm-codegen 0.0.3 → 0.0.4

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 (205) hide show
  1. package/dist/classes/AnimScene.d.ts +82 -82
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +124 -124
  4. package/dist/classes/BaseModel.d.ts +29 -29
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +43 -43
  7. package/dist/classes/BaseTask.d.ts +43 -43
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +53 -53
  10. package/dist/classes/Cam.d.ts +82 -82
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +115 -115
  13. package/dist/classes/Entity.d.ts +250 -250
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +350 -350
  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/Ped.d.ts +55 -55
  20. package/dist/classes/Ped.d.ts.map +1 -1
  21. package/dist/classes/Ped.js +76 -76
  22. package/dist/classes/PedTask.d.ts +797 -797
  23. package/dist/classes/PedTask.d.ts.map +1 -1
  24. package/dist/classes/PedTask.js +1023 -1023
  25. package/dist/classes/PersChar.d.ts +13 -13
  26. package/dist/classes/PersChar.d.ts.map +1 -1
  27. package/dist/classes/PersChar.js +27 -27
  28. package/dist/classes/Pickup.d.ts +8 -8
  29. package/dist/classes/Pickup.d.ts.map +1 -1
  30. package/dist/classes/Pickup.js +15 -15
  31. package/dist/classes/Player.d.ts +185 -185
  32. package/dist/classes/Player.d.ts.map +1 -1
  33. package/dist/classes/Player.js +251 -251
  34. package/dist/classes/Prop.d.ts +130 -130
  35. package/dist/classes/Prop.d.ts.map +1 -1
  36. package/dist/classes/Prop.js +188 -188
  37. package/dist/classes/PropSet.d.ts +17 -17
  38. package/dist/classes/PropSet.d.ts.map +1 -1
  39. package/dist/classes/PropSet.js +25 -25
  40. package/dist/classes/VehicleTask.d.ts +23 -23
  41. package/dist/classes/VehicleTask.d.ts.map +1 -1
  42. package/dist/classes/VehicleTask.js +30 -30
  43. package/dist/classes/Volume.d.ts +39 -39
  44. package/dist/classes/Volume.d.ts.map +1 -1
  45. package/dist/classes/Volume.js +54 -54
  46. package/dist/classes/Weapon.d.ts +291 -291
  47. package/dist/classes/Weapon.d.ts.map +1 -1
  48. package/dist/classes/Weapon.js +414 -414
  49. package/dist/namespaces/Animscene.d.ts +63 -63
  50. package/dist/namespaces/Animscene.d.ts.map +1 -1
  51. package/dist/namespaces/Animscene.js +83 -83
  52. package/dist/namespaces/Audio.d.ts +464 -464
  53. package/dist/namespaces/Audio.d.ts.map +1 -1
  54. package/dist/namespaces/Audio.js +650 -650
  55. package/dist/namespaces/Bounty.d.ts +57 -57
  56. package/dist/namespaces/Bounty.d.ts.map +1 -1
  57. package/dist/namespaces/Bounty.js +90 -90
  58. package/dist/namespaces/CamStatics.d.ts +426 -426
  59. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  60. package/dist/namespaces/CamStatics.js +609 -609
  61. package/dist/namespaces/Collection.d.ts +81 -81
  62. package/dist/namespaces/Collection.d.ts.map +1 -1
  63. package/dist/namespaces/Collection.js +113 -113
  64. package/dist/namespaces/Compendium.d.ts +38 -38
  65. package/dist/namespaces/Compendium.d.ts.map +1 -1
  66. package/dist/namespaces/Compendium.js +52 -52
  67. package/dist/namespaces/Crashlog.d.ts +10 -10
  68. package/dist/namespaces/Crashlog.d.ts.map +1 -1
  69. package/dist/namespaces/Crashlog.js +14 -14
  70. package/dist/namespaces/Databinding.d.ts +174 -174
  71. package/dist/namespaces/Databinding.d.ts.map +1 -1
  72. package/dist/namespaces/Databinding.js +266 -266
  73. package/dist/namespaces/EntityStatics.d.ts +110 -110
  74. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  75. package/dist/namespaces/EntityStatics.js +146 -146
  76. package/dist/namespaces/Graphics.d.ts +547 -547
  77. package/dist/namespaces/Graphics.d.ts.map +1 -1
  78. package/dist/namespaces/Graphics.js +731 -731
  79. package/dist/namespaces/Hud.d.ts +395 -395
  80. package/dist/namespaces/Hud.d.ts.map +1 -1
  81. package/dist/namespaces/Hud.js +564 -564
  82. package/dist/namespaces/InteriorStatics.d.ts +40 -40
  83. package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
  84. package/dist/namespaces/InteriorStatics.js +56 -56
  85. package/dist/namespaces/Inventory.d.ts +107 -107
  86. package/dist/namespaces/Inventory.d.ts.map +1 -1
  87. package/dist/namespaces/Inventory.js +149 -149
  88. package/dist/namespaces/Itemdatabase.d.ts +5 -5
  89. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  90. package/dist/namespaces/Itemdatabase.js +7 -7
  91. package/dist/namespaces/Map.d.ts +173 -173
  92. package/dist/namespaces/Map.d.ts.map +1 -1
  93. package/dist/namespaces/Map.js +240 -240
  94. package/dist/namespaces/Minigame.d.ts +56 -56
  95. package/dist/namespaces/Minigame.d.ts.map +1 -1
  96. package/dist/namespaces/Minigame.js +80 -80
  97. package/dist/namespaces/Network.d.ts +964 -964
  98. package/dist/namespaces/Network.d.ts.map +1 -1
  99. package/dist/namespaces/Network.js +1333 -1333
  100. package/dist/namespaces/Object.d.ts +240 -240
  101. package/dist/namespaces/Object.d.ts.map +1 -1
  102. package/dist/namespaces/Object.js +337 -337
  103. package/dist/namespaces/Pad.d.ts +95 -95
  104. package/dist/namespaces/Pad.d.ts.map +1 -1
  105. package/dist/namespaces/Pad.js +127 -127
  106. package/dist/namespaces/PedStatics.d.ts +18 -18
  107. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  108. package/dist/namespaces/PedStatics.js +26 -26
  109. package/dist/namespaces/Perschar.d.ts +46 -46
  110. package/dist/namespaces/Perschar.d.ts.map +1 -1
  111. package/dist/namespaces/Perschar.js +66 -66
  112. package/dist/namespaces/Physics.d.ts +207 -207
  113. package/dist/namespaces/Physics.d.ts.map +1 -1
  114. package/dist/namespaces/Physics.js +315 -315
  115. package/dist/namespaces/PlayerStatics.d.ts +68 -68
  116. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  117. package/dist/namespaces/PlayerStatics.js +95 -95
  118. package/dist/namespaces/Population.d.ts +86 -86
  119. package/dist/namespaces/Population.d.ts.map +1 -1
  120. package/dist/namespaces/Population.js +116 -116
  121. package/dist/namespaces/Posse.d.ts +43 -43
  122. package/dist/namespaces/Posse.d.ts.map +1 -1
  123. package/dist/namespaces/Posse.js +67 -67
  124. package/dist/namespaces/Propset.d.ts +59 -59
  125. package/dist/namespaces/Propset.d.ts.map +1 -1
  126. package/dist/namespaces/Propset.js +81 -81
  127. package/dist/namespaces/Shapetest.d.ts +11 -11
  128. package/dist/namespaces/Shapetest.d.ts.map +1 -1
  129. package/dist/namespaces/Shapetest.js +13 -13
  130. package/dist/namespaces/Stats.d.ts +90 -90
  131. package/dist/namespaces/Stats.d.ts.map +1 -1
  132. package/dist/namespaces/Stats.js +127 -127
  133. package/dist/namespaces/Streaming.d.ts +127 -127
  134. package/dist/namespaces/Streaming.d.ts.map +1 -1
  135. package/dist/namespaces/Streaming.js +193 -193
  136. package/dist/namespaces/Task.d.ts +346 -346
  137. package/dist/namespaces/Task.d.ts.map +1 -1
  138. package/dist/namespaces/Task.js +525 -525
  139. package/dist/namespaces/Telemetry.d.ts +176 -176
  140. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  141. package/dist/namespaces/Telemetry.js +255 -255
  142. package/dist/namespaces/VolumeStatics.d.ts +64 -64
  143. package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
  144. package/dist/namespaces/VolumeStatics.js +85 -85
  145. package/dist/namespaces/Water.d.ts +27 -27
  146. package/dist/namespaces/Water.d.ts.map +1 -1
  147. package/dist/namespaces/Water.js +41 -41
  148. package/dist/namespaces/WeaponStatics.d.ts +234 -234
  149. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  150. package/dist/namespaces/WeaponStatics.js +320 -320
  151. package/dist/namespaces/Zone.d.ts +7 -7
  152. package/dist/namespaces/Zone.d.ts.map +1 -1
  153. package/dist/namespaces/Zone.js +9 -9
  154. package/package.json +1 -1
  155. package/src/classes/AnimScene.ts +133 -133
  156. package/src/classes/BaseModel.ts +50 -50
  157. package/src/classes/BaseTask.ts +55 -55
  158. package/src/classes/Cam.ts +126 -126
  159. package/src/classes/Entity.ts +365 -365
  160. package/src/classes/Interior.ts +43 -43
  161. package/src/classes/Ped.ts +86 -86
  162. package/src/classes/PedTask.ts +2067 -2067
  163. package/src/classes/PersChar.ts +34 -34
  164. package/src/classes/Pickup.ts +16 -16
  165. package/src/classes/Player.ts +296 -296
  166. package/src/classes/Prop.ts +203 -203
  167. package/src/classes/PropSet.ts +29 -29
  168. package/src/classes/VehicleTask.ts +32 -32
  169. package/src/classes/Volume.ts +61 -61
  170. package/src/classes/Weapon.ts +427 -427
  171. package/src/namespaces/Animscene.ts +86 -86
  172. package/src/namespaces/Audio.ts +760 -760
  173. package/src/namespaces/Bounty.ts +102 -102
  174. package/src/namespaces/CamStatics.ts +631 -631
  175. package/src/namespaces/Collection.ts +114 -114
  176. package/src/namespaces/Compendium.ts +59 -59
  177. package/src/namespaces/Crashlog.ts +16 -16
  178. package/src/namespaces/Databinding.ts +282 -282
  179. package/src/namespaces/EntityStatics.ts +158 -158
  180. package/src/namespaces/Graphics.ts +1140 -1140
  181. package/src/namespaces/Hud.ts +592 -592
  182. package/src/namespaces/InteriorStatics.ts +64 -64
  183. package/src/namespaces/Inventory.ts +165 -165
  184. package/src/namespaces/Itemdatabase.ts +8 -8
  185. package/src/namespaces/Map.ts +256 -256
  186. package/src/namespaces/Minigame.ts +92 -92
  187. package/src/namespaces/Network.ts +1392 -1392
  188. package/src/namespaces/Object.ts +350 -350
  189. package/src/namespaces/Pad.ts +127 -127
  190. package/src/namespaces/PedStatics.ts +30 -30
  191. package/src/namespaces/Perschar.ts +76 -76
  192. package/src/namespaces/Physics.ts +327 -327
  193. package/src/namespaces/PlayerStatics.ts +103 -103
  194. package/src/namespaces/Population.ts +131 -131
  195. package/src/namespaces/Posse.ts +67 -67
  196. package/src/namespaces/Propset.ts +92 -92
  197. package/src/namespaces/Shapetest.ts +14 -14
  198. package/src/namespaces/Stats.ts +143 -143
  199. package/src/namespaces/Streaming.ts +226 -226
  200. package/src/namespaces/Task.ts +498 -498
  201. package/src/namespaces/Telemetry.ts +261 -261
  202. package/src/namespaces/VolumeStatics.ts +87 -87
  203. package/src/namespaces/Water.ts +47 -47
  204. package/src/namespaces/WeaponStatics.ts +325 -325
  205. package/src/namespaces/Zone.ts +10 -10
@@ -126,173 +126,107 @@ export class Entity {
126
126
  return inv('0x7D5B1F88E7504BBA', this.handle, rai());
127
127
  }
128
128
  /**
129
- * @param playerPedToIgnore
130
- * @param flags
129
+ * @param pos1
130
+ * @param pos2
131
+ * @param p7
132
+ * @param p8
133
+ * @param p9
131
134
  * @returns
132
135
  */
133
- getNearestPlayerToEntity(playerPedToIgnore, flags) {
134
- return createFromHandle('Player', inv('0x990E294FC387FB88', this.handle, playerPedToIgnore.handle, flags, rai()));
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());
135
138
  }
136
139
  /**
137
- * Gets the Y-component of the entity's forward vector.
140
+ * Returns the coordinates of an entity-bone.
141
+ * https://github.com/femga/rdr3_discoveries/tree/master/boneNames
138
142
  *
143
+ * @param boneIndex
139
144
  * @returns
140
145
  */
141
- getForwardY() {
142
- return inv('0x9A5C073ECBDA7EE7', this.handle, raf());
143
- }
144
- /**
145
- * @param pitch
146
- * @param roll
147
- * @param yaw
148
- * @param rotationOrder
149
- * @param p5
150
- */
151
- setRotation(pitch, roll, yaw, rotationOrder, p5) {
152
- inv('0x9CC8314DFEDE441E', this.handle, f(pitch), f(roll), f(yaw), rotationOrder, p5);
153
- }
154
- /**
155
- * @param p1
156
- * @param relationshipGroup
157
- */
158
- setOnlyDamagedByRelationshipGroup(p1, relationshipGroup) {
159
- inv('0x6C1F6AA2F0ADD104', this.handle, p1, _h(relationshipGroup));
146
+ getWorldPositionOfBone(boneIndex) {
147
+ return Vector3.fromArray(inv('0x82CFA50E34681CA5', this.handle, boneIndex, rav()));
160
148
  }
161
149
  /**
162
- * https://github.com/femga/rdr3_discoveries/tree/master/AI/ENTITY_PROOFS
163
- * BOOL p2: handles an additional special proofs flag, so it simply indicates whether it should be enabled or disabled, not sure what exactly it proofs the entity from though
150
+ * https://github.com/femga/rdr3_discoveries/tree/master/animations
164
151
  *
165
- * @param proofsBitset
166
- * @param specialFlag
167
- */
168
- setProofs(proofsBitset, specialFlag) {
169
- inv('0xFAEE099C6F890BB8', this.handle, proofsBitset, specialFlag);
170
- }
171
- /**
172
- * @returns
173
- */
174
- hasCollisionLoadedAroundEntity() {
175
- return inv('0xBEB1600952B9CF5C', this.handle, rai());
176
- }
177
- /**
178
- * @returns
179
- */
180
- getIsCarriablePelt() {
181
- return inv('0x255B6DB4E3AD3C3E', this.handle);
182
- }
183
- /**
184
- * @param p1
152
+ * @param animName
153
+ * @param animDict
154
+ * @param p3
155
+ * @param loop
156
+ * @param stayInAnim
157
+ * @param p6
158
+ * @param delta
159
+ * @param bitset
185
160
  * @returns
186
161
  */
187
- getVelocity(p1) {
188
- return Vector3.fromArray(inv('0x4805D2B1D8CF94A9', this.handle, p1, rav()));
189
- }
190
- /**
191
- * @param toggle
192
- */
193
- setCanAutoVaultOnEntity(toggle) {
194
- inv('0x80646744FA88F9D7', this.handle, toggle);
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());
195
164
  }
196
165
  /**
197
- * Sets the loot table an entity will carry. Returns true if loot table has been successfully set. Returns false if entity is not a ped or object.
198
- * https://github.com/femga/rdr3_discoveries/blob/master/AI/EVENTS/loot_rewards.lua
166
+ * Returns false if entity is not a ped or object.
199
167
  *
200
- * @param lootTable
201
- * @returns
202
- */
203
- scriptOverrideLootTablePermanent(lootTable) {
204
- return inv('0x8C03CD6B5E0E85E8', this.handle, _h(lootTable));
205
- }
206
- /**
207
- * @returns argStruct
168
+ * @returns lootTable
208
169
  */
209
- getScript() {
210
- const result = inv('0x2A08A32B6D49906F', this.handle, pvi(), rai());
211
- return [result[0] & 0xFFFFFFFF, result[1]];
170
+ getScriptOverrideLootTablePermanent() {
171
+ const result = inv('0x1E804EA9B12030A4', this.handle, pvi());
172
+ return [result[0], result[1]];
212
173
  }
213
174
  /**
214
- * @param actionHash
175
+ * @param animDict
176
+ * @param animName
177
+ * @param p3
215
178
  * @returns
216
179
  */
217
- hasAnimEventFired(actionHash) {
218
- return inv('0x5851CC48405F4A07', this.handle, _h(actionHash), rai());
219
- }
220
- /**
221
- * @param p1
222
- */
223
- N_0xEF259AA1E097E0AD(p1) {
224
- inv('0xEF259AA1E097E0AD', this.handle, p1);
180
+ hasAnimFinished(animDict, animName, p3) {
181
+ return inv('0xAEB40615337EF1E3', this.handle, animDict, animName, p3, rai());
225
182
  }
226
183
  /**
227
- * Getter for FREEZE_ENTITY_POSITION
228
- *
229
- * @returns
184
+ * @param bCanBeDamaged
185
+ * @param relGroup
230
186
  */
231
- isFrozen() {
232
- return inv('0x083D497D57B7400F', this.handle);
187
+ setCanBeDamagedByRelationshipGroup(bCanBeDamaged, relGroup) {
188
+ inv('0x0EF1AFB18649E015', this.handle, bCanBeDamaged, _h(relGroup));
233
189
  }
234
190
  /**
235
- * Returns the entity that is looting a ped but only while the looting is active
236
- *
237
191
  * @returns
238
192
  */
239
- getLootingPed() {
240
- return createFromHandle('Ped', inv('0xEF2D9ED7CE684F08', this.handle, rai()));
193
+ getUprightValue() {
194
+ return inv('0x56398BE65160C3BE', this.handle, raf());
241
195
  }
242
196
  /**
243
- * @returns
197
+ * @param pos
198
+ * @param heading
199
+ * @param xAxis
200
+ * @param yAxis
201
+ * @param zAxis
244
202
  */
245
- isWaitingForWorldCollision() {
246
- return inv('0x5E1CC2E8DC3111DD', this.handle, rai());
203
+ setCoordsAndHeading(pos, heading, xAxis, yAxis, zAxis) {
204
+ inv('0x203BEFFDBE12E96A', this.handle, f(pos.x), f(pos.y), f(pos.z), f(heading), xAxis, yAxis, zAxis);
247
205
  }
248
206
  /**
249
- * Gets the X-component of the entity's forward vector.
207
+ * Returns zero if the entity is not a carriable
250
208
  *
251
209
  * @returns
252
210
  */
253
- getForwardX() {
254
- return inv('0xDB0954E9960F6457', this.handle, raf());
255
- }
256
- /**
257
- * @returns
258
- */
259
- isAPed() {
260
- return inv('0xCF8176912DDA4EA5', this.handle, rai());
261
- }
262
- /**
263
- * @returns
264
- */
265
- getPitch() {
266
- return inv('0xEF355ABEFF7F5005', this.handle, raf());
267
- }
268
- /**
269
- * @returns
270
- */
271
- isStatic() {
272
- return inv('0x86468ADFA0F6B861', this.handle, rai());
211
+ getCarryConfig() {
212
+ return (inv('0x0FD25587BB306C86', this.handle, rai())) & 0xFFFFFFFF;
273
213
  }
274
214
  /**
275
- * Returns the model hash from the entity
215
+ * tier: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityThreatTier
276
216
  *
277
- * @returns
278
- */
279
- getModel() {
280
- return (inv('0xDA76A9F39210D365', this.handle, rai())) & 0xFFFFFFFF;
281
- }
282
- /**
283
- * Deletes the specified entity, then sets the handle pointed to by the pointer to NULL.
217
+ * @param tier
218
+ * @param p2
284
219
  */
285
- deleteEntity() {
286
- inv('0x4CD38C78BD19A497', this.handle);
220
+ setThreatTier(tier, p2) {
221
+ inv('0x4B436BAC8CBE9B07', this.handle, tier, p2);
287
222
  }
288
223
  /**
289
- * @param team
290
- * @param playerPedToIgnore
291
- * @param flags
224
+ * Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
225
+ *
292
226
  * @returns
293
227
  */
294
- getNearestPlayerToOnTeam(team, playerPedToIgnore, flags) {
295
- return createFromHandle('Player', inv('0xB2C30C3B4AFF718C', this.handle, team, playerPedToIgnore.handle, flags, rai()));
228
+ getHeading() {
229
+ return inv('0xC230DD956E2F5507', this.handle, raf());
296
230
  }
297
231
  /**
298
232
  * Returns the LOD distance of an entity.
@@ -453,158 +387,165 @@ export class Entity {
453
387
  return createFromHandle('Player', inv('0x6888A43C35A5F630', this.handle, rai()));
454
388
  }
455
389
  /**
456
- * Returns entityType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityType
457
- *
458
- * @returns
390
+ * @param p1
459
391
  */
460
- getType() {
461
- return inv('0x97F696ACA466B4E0', this.handle, rai());
392
+ N_0xA48E4801DEBDF7E4(p1) {
393
+ inv('0xA48E4801DEBDF7E4', this.handle, p1);
462
394
  }
463
395
  /**
464
- * @returns
396
+ * @param toggle
397
+ * @param keepPhysics
465
398
  */
466
- isOwnedByPersistenceSystem() {
467
- return inv('0xA7E51B53309EAC97', this.handle);
399
+ setCompletelyDisableCollision(toggle, keepPhysics) {
400
+ inv('0xE0580EC84813875A', this.handle, toggle, keepPhysics);
468
401
  }
469
402
  /**
470
- * @param animDict
471
- * @param animName
472
- * @param animType
403
+ * @param p1
404
+ */
405
+ N_0xCDB682BB47C02F0A(p1) {
406
+ inv('0xCDB682BB47C02F0A', this.handle, _h(p1));
407
+ }
408
+ /**
409
+ * @param volume
410
+ * @param p2
411
+ * @param p3
473
412
  * @returns
474
413
  */
475
- isPlayingAnim(animDict, animName, animType) {
476
- return inv('0xDEE49D5CA6C49148', this.handle, animDict, animName, animType, rai());
414
+ isInVolume(volume, p2, p3) {
415
+ return inv('0x5A5526BC09C06623', this.handle, volume, p2, p3, rai());
477
416
  }
478
417
  /**
479
- * Marks the specified entity (ped, vehicle or object) as no longer needed, allowing the game engine to delete it whenever it sees fit.
418
+ * @returns rightVector; forwardVector; upVector; position
480
419
  */
481
- setAsNoLongerNeeded() {
482
- inv('0x4971D2F8162B9674', this.handle);
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])];
423
+ }
424
+ /**
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.
426
+ */
427
+ N_0x371D179701D9C082() {
428
+ inv('0x371D179701D9C082', this.handle);
483
429
  }
484
430
  /**
431
+ * @param p1
485
432
  * @returns
486
433
  */
487
- hasBeenDamagedByAnyVehicle() {
488
- return inv('0x695D7C26DE65C423', this.handle, rai());
434
+ getMaxHealth(p1) {
435
+ return inv('0x15D757606D170C3C', this.handle, p1, rai());
489
436
  }
490
437
  /**
491
438
  * @param animDict
492
439
  * @param animName
493
- * @param speedMultiplier
440
+ * @param time
494
441
  */
495
- setAnimSpeed(animDict, animName, speedMultiplier) {
496
- inv('0xEAA885BA3CEA4E4A', this.handle, animDict, animName, f(speedMultiplier));
497
- }
498
- unpinMapEntity() {
499
- inv('0xD2B9C78537ED5759', this.handle);
442
+ setAnimCurrentTime(animDict, animName, time) {
443
+ inv('0x11CDABDC7783B2BC', this.handle, animDict, animName, f(time));
500
444
  }
501
445
  /**
502
- * Get how much of the entity is submerged. 1.0f is whole entity.
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.
503
449
  *
450
+ * @param alive
451
+ * @param realCoords
504
452
  * @returns
505
453
  */
506
- getSubmergedLevel() {
507
- return inv('0x4A77C3F73FD9E831', this.handle, raf());
454
+ getCoords(alive, realCoords) {
455
+ return Vector3.fromArray(inv('0xA86D5F069399F44D', this.handle, alive, realCoords, rav()));
508
456
  }
509
457
  /**
510
458
  * @returns
511
459
  */
512
- isAttached() {
513
- return inv('0xEE6AD63ABF59C0B7', this.handle, rai());
514
- }
515
- /**
516
- * SET_ENTITY_A*
517
- *
518
- * @param p1
519
- */
520
- N_0xC0EDEF16D90661EE(p1) {
521
- inv('0xC0EDEF16D90661EE', this.handle, f(p1));
460
+ isAnObject() {
461
+ return inv('0x0A27A546A375FDEF', this.handle, rai());
522
462
  }
523
463
  /**
524
- * @param looted
464
+ * @returns
525
465
  */
526
- setFullyLooted(looted) {
527
- inv('0x6BCF5F3D8FFE988D', this.handle, looted);
466
+ isUpsidedown() {
467
+ return inv('0x109DE3DA41AAD94A', this.handle, rai());
528
468
  }
529
469
  /**
470
+ * @param p1
530
471
  * @returns
531
472
  */
532
- isAttachedToAnyVehicle() {
533
- return inv('0x12DF6E0D2E736749', this.handle, rai());
473
+ doesBelongToThisScript(p1) {
474
+ return inv('0x622B1980CBE13332', this.handle, p1, rai());
534
475
  }
535
476
  /**
536
- * @param p1
477
+ * Returns a hash of an entity's name. (Alternative Name: _GET_ENTITY_PROMPT_NAME_HASH)
478
+ *
479
+ * @returns
537
480
  */
538
- N_0xA48E4801DEBDF7E4(p1) {
539
- inv('0xA48E4801DEBDF7E4', this.handle, p1);
481
+ getCarriableFromEntity() {
482
+ return (inv('0x31FEF6A20F00B963', this.handle, rai())) & 0xFFFFFFFF;
540
483
  }
541
484
  /**
542
485
  * @param toggle
543
486
  * @param keepPhysics
544
487
  */
545
- setCompletelyDisableCollision(toggle, keepPhysics) {
546
- inv('0xE0580EC84813875A', this.handle, toggle, keepPhysics);
488
+ setCollision(toggle, keepPhysics) {
489
+ inv('0xF66F820909453B8C', this.handle, toggle, keepPhysics);
547
490
  }
548
491
  /**
549
492
  * @param p1
493
+ * @returns
550
494
  */
551
- N_0xCDB682BB47C02F0A(p1) {
552
- inv('0xCDB682BB47C02F0A', this.handle, _h(p1));
495
+ placeOnGroundProperly(p1) {
496
+ return inv('0x9587913B9E772D29', this.handle, p1);
553
497
  }
554
498
  /**
555
- * @param volume
556
- * @param p2
557
- * @param p3
558
499
  * @returns
559
500
  */
560
- isInVolume(volume, p2, p3) {
561
- return inv('0x5A5526BC09C06623', this.handle, volume, p2, p3, rai());
501
+ isInWater() {
502
+ return inv('0xDDE5C125AC446723', this.handle, rai());
562
503
  }
563
504
  /**
564
- * @returns rightVector; forwardVector; upVector; position
505
+ * @returns Returns `true` if the entity exists
565
506
  */
566
- getMatrix() {
567
- const result = inv('0x3A9B1120AF13FBF2', this.handle, pvv(), pvv(), pvv(), pvv());
568
- return [Vector3.fromArray(result[0]), Vector3.fromArray(result[1]), Vector3.fromArray(result[2]), Vector3.fromArray(result[3])];
507
+ doesExist() {
508
+ return inv('0xD42BD6EB2E0F1677', this.handle, rai());
569
509
  }
570
510
  /**
571
- * 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.
511
+ * @returns
572
512
  */
573
- N_0x371D179701D9C082() {
574
- inv('0x371D179701D9C082', this.handle);
513
+ getAlpha() {
514
+ return inv('0x1BB501624FAF2BEA', this.handle, rai());
575
515
  }
576
516
  /**
577
- * @param p1
517
+ * This native only works on `Ped` and `Object` entity types
518
+ *
519
+ * @param flagId Refer to [enum: eCarryingFlags]
578
520
  * @returns
579
521
  */
580
- getMaxHealth(p1) {
581
- return inv('0x15D757606D170C3C', this.handle, p1, rai());
522
+ getCarryingFlag(flagId) {
523
+ return inv('0x808077647856DE62', this.handle, flagId, rai());
582
524
  }
583
525
  /**
584
- * @param animDict
585
- * @param animName
586
- * @param time
526
+ * @param p1
587
527
  */
588
- setAnimCurrentTime(animDict, animName, time) {
589
- inv('0x11CDABDC7783B2BC', this.handle, animDict, animName, f(time));
528
+ forceAiAndAnimationUpdate(p1) {
529
+ inv('0x4C9E96473D4F1A88', this.handle, p1);
590
530
  }
591
531
  /**
592
- * Gets the current coordinates for a specified entity.
593
- * `entity` = The entity to get the coordinates from.
594
- * `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.
532
+ * Axis - Invert Axis Flags
595
533
  *
596
- * @param alive
597
- * @param realCoords
598
- * @returns
534
+ * @param pos
535
+ * @param xAxis
536
+ * @param yAxis
537
+ * @param zAxis
599
538
  */
600
- getCoords(alive, realCoords) {
601
- return Vector3.fromArray(inv('0xA86D5F069399F44D', this.handle, alive, realCoords, rav()));
539
+ setCoordsNoOffset(pos, xAxis, yAxis, zAxis) {
540
+ inv('0x239A3351AC1DA385', this.handle, f(pos.x), f(pos.y), f(pos.z), xAxis, yAxis, zAxis);
602
541
  }
603
542
  /**
543
+ * Returns (CUR_HEALTH / MAX_HEALTH)
544
+ *
604
545
  * @returns
605
546
  */
606
- isAnObject() {
607
- return inv('0x0A27A546A375FDEF', this.handle, rai());
547
+ getHealthFloat() {
548
+ return inv('0x96C638784DB4C815', this.handle, raf());
608
549
  }
609
550
  /**
610
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).
@@ -814,107 +755,173 @@ export class Entity {
814
755
  return inv('0x8E46E18AA828334F', this.handle, animDict, animClip, raf());
815
756
  }
816
757
  /**
817
- * @param pos1
818
- * @param pos2
819
- * @param p7
820
- * @param p8
821
- * @param p9
758
+ * @param playerPedToIgnore
759
+ * @param flags
760
+ * @returns
761
+ */
762
+ getNearestPlayerToEntity(playerPedToIgnore, flags) {
763
+ return createFromHandle('Player', inv('0x990E294FC387FB88', this.handle, playerPedToIgnore.handle, flags, rai()));
764
+ }
765
+ /**
766
+ * Gets the Y-component of the entity's forward vector.
767
+ *
822
768
  * @returns
823
769
  */
824
- isInArea(pos1, pos2, p7, p8, p9) {
825
- 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());
770
+ getForwardY() {
771
+ return inv('0x9A5C073ECBDA7EE7', this.handle, raf());
772
+ }
773
+ /**
774
+ * @param pitch
775
+ * @param roll
776
+ * @param yaw
777
+ * @param rotationOrder
778
+ * @param p5
779
+ */
780
+ setRotation(pitch, roll, yaw, rotationOrder, p5) {
781
+ inv('0x9CC8314DFEDE441E', this.handle, f(pitch), f(roll), f(yaw), rotationOrder, p5);
782
+ }
783
+ /**
784
+ * @param p1
785
+ * @param relationshipGroup
786
+ */
787
+ setOnlyDamagedByRelationshipGroup(p1, relationshipGroup) {
788
+ inv('0x6C1F6AA2F0ADD104', this.handle, p1, _h(relationshipGroup));
789
+ }
790
+ /**
791
+ * https://github.com/femga/rdr3_discoveries/tree/master/AI/ENTITY_PROOFS
792
+ * BOOL p2: handles an additional special proofs flag, so it simply indicates whether it should be enabled or disabled, not sure what exactly it proofs the entity from though
793
+ *
794
+ * @param proofsBitset
795
+ * @param specialFlag
796
+ */
797
+ setProofs(proofsBitset, specialFlag) {
798
+ inv('0xFAEE099C6F890BB8', this.handle, proofsBitset, specialFlag);
799
+ }
800
+ /**
801
+ * @returns
802
+ */
803
+ hasCollisionLoadedAroundEntity() {
804
+ return inv('0xBEB1600952B9CF5C', this.handle, rai());
805
+ }
806
+ /**
807
+ * @returns
808
+ */
809
+ getIsCarriablePelt() {
810
+ return inv('0x255B6DB4E3AD3C3E', this.handle);
811
+ }
812
+ /**
813
+ * @param p1
814
+ * @returns
815
+ */
816
+ getVelocity(p1) {
817
+ return Vector3.fromArray(inv('0x4805D2B1D8CF94A9', this.handle, p1, rav()));
818
+ }
819
+ /**
820
+ * @param toggle
821
+ */
822
+ setCanAutoVaultOnEntity(toggle) {
823
+ inv('0x80646744FA88F9D7', this.handle, toggle);
824
+ }
825
+ /**
826
+ * Sets the loot table an entity will carry. Returns true if loot table has been successfully set. Returns false if entity is not a ped or object.
827
+ * https://github.com/femga/rdr3_discoveries/blob/master/AI/EVENTS/loot_rewards.lua
828
+ *
829
+ * @param lootTable
830
+ * @returns
831
+ */
832
+ scriptOverrideLootTablePermanent(lootTable) {
833
+ return inv('0x8C03CD6B5E0E85E8', this.handle, _h(lootTable));
834
+ }
835
+ /**
836
+ * @returns argStruct
837
+ */
838
+ getScript() {
839
+ const result = inv('0x2A08A32B6D49906F', this.handle, pvi(), rai());
840
+ return [result[0] & 0xFFFFFFFF, result[1]];
841
+ }
842
+ /**
843
+ * @param actionHash
844
+ * @returns
845
+ */
846
+ hasAnimEventFired(actionHash) {
847
+ return inv('0x5851CC48405F4A07', this.handle, _h(actionHash), rai());
848
+ }
849
+ /**
850
+ * @param p1
851
+ */
852
+ N_0xEF259AA1E097E0AD(p1) {
853
+ inv('0xEF259AA1E097E0AD', this.handle, p1);
826
854
  }
827
855
  /**
828
- * Returns the coordinates of an entity-bone.
829
- * https://github.com/femga/rdr3_discoveries/tree/master/boneNames
856
+ * Getter for FREEZE_ENTITY_POSITION
830
857
  *
831
- * @param boneIndex
832
858
  * @returns
833
859
  */
834
- getWorldPositionOfBone(boneIndex) {
835
- return Vector3.fromArray(inv('0x82CFA50E34681CA5', this.handle, boneIndex, rav()));
860
+ isFrozen() {
861
+ return inv('0x083D497D57B7400F', this.handle);
836
862
  }
837
863
  /**
838
- * https://github.com/femga/rdr3_discoveries/tree/master/animations
864
+ * Returns the entity that is looting a ped but only while the looting is active
839
865
  *
840
- * @param animName
841
- * @param animDict
842
- * @param p3
843
- * @param loop
844
- * @param stayInAnim
845
- * @param p6
846
- * @param delta
847
- * @param bitset
848
866
  * @returns
849
867
  */
850
- playAnim(animName, animDict, p3, loop, stayInAnim, p6, delta, bitset) {
851
- return inv('0xDC6D22FAB76D4874', this.handle, animName, animDict, f(p3), loop, stayInAnim, p6, f(delta), bitset, rai());
868
+ getLootingPed() {
869
+ return createFromHandle('Ped', inv('0xEF2D9ED7CE684F08', this.handle, rai()));
852
870
  }
853
871
  /**
854
- * Returns false if entity is not a ped or object.
855
- *
856
- * @returns lootTable
872
+ * @returns
857
873
  */
858
- getScriptOverrideLootTablePermanent() {
859
- const result = inv('0x1E804EA9B12030A4', this.handle, pvi());
860
- return [result[0], result[1]];
874
+ isWaitingForWorldCollision() {
875
+ return inv('0x5E1CC2E8DC3111DD', this.handle, rai());
861
876
  }
862
877
  /**
863
- * @param animDict
864
- * @param animName
865
- * @param p3
878
+ * Gets the X-component of the entity's forward vector.
879
+ *
866
880
  * @returns
867
881
  */
868
- hasAnimFinished(animDict, animName, p3) {
869
- return inv('0xAEB40615337EF1E3', this.handle, animDict, animName, p3, rai());
882
+ getForwardX() {
883
+ return inv('0xDB0954E9960F6457', this.handle, raf());
870
884
  }
871
885
  /**
872
- * @param bCanBeDamaged
873
- * @param relGroup
886
+ * @returns
874
887
  */
875
- setCanBeDamagedByRelationshipGroup(bCanBeDamaged, relGroup) {
876
- inv('0x0EF1AFB18649E015', this.handle, bCanBeDamaged, _h(relGroup));
888
+ isAPed() {
889
+ return inv('0xCF8176912DDA4EA5', this.handle, rai());
877
890
  }
878
891
  /**
879
892
  * @returns
880
893
  */
881
- getUprightValue() {
882
- return inv('0x56398BE65160C3BE', this.handle, raf());
894
+ getPitch() {
895
+ return inv('0xEF355ABEFF7F5005', this.handle, raf());
883
896
  }
884
897
  /**
885
- * @param pos
886
- * @param heading
887
- * @param xAxis
888
- * @param yAxis
889
- * @param zAxis
898
+ * @returns
890
899
  */
891
- setCoordsAndHeading(pos, heading, xAxis, yAxis, zAxis) {
892
- inv('0x203BEFFDBE12E96A', this.handle, f(pos.x), f(pos.y), f(pos.z), f(heading), xAxis, yAxis, zAxis);
900
+ isStatic() {
901
+ return inv('0x86468ADFA0F6B861', this.handle, rai());
893
902
  }
894
903
  /**
895
- * Returns zero if the entity is not a carriable
904
+ * Returns the model hash from the entity
896
905
  *
897
906
  * @returns
898
907
  */
899
- getCarryConfig() {
900
- return (inv('0x0FD25587BB306C86', this.handle, rai())) & 0xFFFFFFFF;
908
+ getModel() {
909
+ return (inv('0xDA76A9F39210D365', this.handle, rai())) & 0xFFFFFFFF;
901
910
  }
902
911
  /**
903
- * tier: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityThreatTier
904
- *
905
- * @param tier
906
- * @param p2
912
+ * Deletes the specified entity, then sets the handle pointed to by the pointer to NULL.
907
913
  */
908
- setThreatTier(tier, p2) {
909
- inv('0x4B436BAC8CBE9B07', this.handle, tier, p2);
914
+ deleteEntity() {
915
+ inv('0x4CD38C78BD19A497', this.handle);
910
916
  }
911
917
  /**
912
- * Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
913
- *
918
+ * @param team
919
+ * @param playerPedToIgnore
920
+ * @param flags
914
921
  * @returns
915
922
  */
916
- getHeading() {
917
- return inv('0xC230DD956E2F5507', this.handle, raf());
923
+ getNearestPlayerToOnTeam(team, playerPedToIgnore, flags) {
924
+ return createFromHandle('Player', inv('0xB2C30C3B4AFF718C', this.handle, team, playerPedToIgnore.handle, flags, rai()));
918
925
  }
919
926
  /**
920
927
  * Seems to return true if entity is burned / scorched
@@ -1194,171 +1201,164 @@ export class Entity {
1194
1201
  return inv('0xE12F56CB25D9CE23', this.handle, rai());
1195
1202
  }
1196
1203
  /**
1197
- * Used in Script Function DUELING_DID_PLAYER_DISARM_OPPONENT
1204
+ * Returns entityType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityType
1198
1205
  *
1199
- * @param entity2
1200
- * @param p2
1201
- * @param p3
1202
1206
  * @returns
1203
1207
  */
1204
- N_0x3EC28DA1FFAC9DDD(entity2, p2, p3) {
1205
- return inv('0x3EC28DA1FFAC9DDD', this.handle, entity2.handle, p2, p3, rai());
1206
- }
1207
- /**
1208
- * Must be called from a background script, otherwise it will do nothing.
1209
- */
1210
- delete2() {
1211
- inv('0x5E94EA09E7207C16', this.handle);
1208
+ getType() {
1209
+ return inv('0x97F696ACA466B4E0', this.handle, rai());
1212
1210
  }
1213
1211
  /**
1214
- * @param p1
1215
1212
  * @returns
1216
1213
  */
1217
- isInAir(p1) {
1218
- return inv('0x886E37EC497200B6', this.handle, p1, rai());
1214
+ isOwnedByPersistenceSystem() {
1215
+ return inv('0xA7E51B53309EAC97', this.handle);
1219
1216
  }
1220
1217
  /**
1218
+ * @param animDict
1219
+ * @param animName
1220
+ * @param animType
1221
1221
  * @returns
1222
1222
  */
1223
- isAMissionEntity() {
1224
- return inv('0x138190F64DB4BBD1', this.handle, rai());
1223
+ isPlayingAnim(animDict, animName, animType) {
1224
+ return inv('0xDEE49D5CA6C49148', this.handle, animDict, animName, animType, rai());
1225
1225
  }
1226
1226
  /**
1227
- * @returns
1227
+ * Marks the specified entity (ped, vehicle or object) as no longer needed, allowing the game engine to delete it whenever it sees fit.
1228
1228
  */
1229
- isAttachedToAnyPed() {
1230
- return inv('0xC841153DED2CA89A', this.handle, rai());
1229
+ setAsNoLongerNeeded() {
1230
+ inv('0x4971D2F8162B9674', this.handle);
1231
1231
  }
1232
1232
  /**
1233
- * @param to
1234
1233
  * @returns
1235
1234
  */
1236
- isAttachedToEntity(to) {
1237
- return inv('0x154A3C529497053E', this.handle, to.handle, rai());
1235
+ hasBeenDamagedByAnyVehicle() {
1236
+ return inv('0x695D7C26DE65C423', this.handle, rai());
1238
1237
  }
1239
1238
  /**
1240
- * @returns
1239
+ * @param animDict
1240
+ * @param animName
1241
+ * @param speedMultiplier
1241
1242
  */
1242
- hasBeenDamagedByAnyObject() {
1243
- return inv('0x73BB763880CD23A6', this.handle, rai());
1243
+ setAnimSpeed(animDict, animName, speedMultiplier) {
1244
+ inv('0xEAA885BA3CEA4E4A', this.handle, animDict, animName, f(speedMultiplier));
1245
+ }
1246
+ unpinMapEntity() {
1247
+ inv('0xD2B9C78537ED5759', this.handle);
1244
1248
  }
1245
1249
  /**
1246
- * @param rotationOrder
1250
+ * Get how much of the entity is submerged. 1.0f is whole entity.
1251
+ *
1247
1252
  * @returns
1248
1253
  */
1249
- getRotation(rotationOrder) {
1250
- return Vector3.fromArray(inv('0xE09CAF86C32CB48F', this.handle, rotationOrder, rav()));
1254
+ getSubmergedLevel() {
1255
+ return inv('0x4A77C3F73FD9E831', this.handle, raf());
1251
1256
  }
1252
1257
  /**
1253
- * @param toggle
1258
+ * @returns
1254
1259
  */
1255
- setMotionBlur(toggle) {
1256
- inv('0x516C6ABD18322B63', this.handle, toggle);
1257
- }
1258
- resetAlpha() {
1259
- inv('0x744B9EF44779D9AB', this.handle);
1260
+ isAttached() {
1261
+ return inv('0xEE6AD63ABF59C0B7', this.handle, rai());
1260
1262
  }
1261
1263
  /**
1262
- * 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
1264
+ * SET_ENTITY_A*
1263
1265
  *
1264
- * @param pos
1265
- * @param xSize
1266
- * @param ySize
1267
- * @param zSize
1268
- * @param p7
1269
- * @param p8
1270
- * @param p9
1271
- * @returns
1266
+ * @param p1
1272
1267
  */
1273
- isAtCoord(pos, xSize, ySize, zSize, p7, p8, p9) {
1274
- return inv('0x5E58342602E94718', this.handle, f(pos.x), f(pos.y), f(pos.z), f(xSize), f(ySize), f(zSize), p7, p8, p9, rai());
1268
+ N_0xC0EDEF16D90661EE(p1) {
1269
+ inv('0xC0EDEF16D90661EE', this.handle, f(p1));
1275
1270
  }
1276
1271
  /**
1277
- * @returns
1272
+ * @param looted
1278
1273
  */
1279
- isUpsidedown() {
1280
- return inv('0x109DE3DA41AAD94A', this.handle, rai());
1274
+ setFullyLooted(looted) {
1275
+ inv('0x6BCF5F3D8FFE988D', this.handle, looted);
1281
1276
  }
1282
1277
  /**
1283
- * @param p1
1284
1278
  * @returns
1285
1279
  */
1286
- doesBelongToThisScript(p1) {
1287
- return inv('0x622B1980CBE13332', this.handle, p1, rai());
1280
+ isAttachedToAnyVehicle() {
1281
+ return inv('0x12DF6E0D2E736749', this.handle, rai());
1288
1282
  }
1289
1283
  /**
1290
- * Returns a hash of an entity's name. (Alternative Name: _GET_ENTITY_PROMPT_NAME_HASH)
1284
+ * Used in Script Function DUELING_DID_PLAYER_DISARM_OPPONENT
1291
1285
  *
1286
+ * @param entity2
1287
+ * @param p2
1288
+ * @param p3
1292
1289
  * @returns
1293
1290
  */
1294
- getCarriableFromEntity() {
1295
- return (inv('0x31FEF6A20F00B963', this.handle, rai())) & 0xFFFFFFFF;
1291
+ N_0x3EC28DA1FFAC9DDD(entity2, p2, p3) {
1292
+ return inv('0x3EC28DA1FFAC9DDD', this.handle, entity2.handle, p2, p3, rai());
1296
1293
  }
1297
1294
  /**
1298
- * @param toggle
1299
- * @param keepPhysics
1295
+ * Must be called from a background script, otherwise it will do nothing.
1300
1296
  */
1301
- setCollision(toggle, keepPhysics) {
1302
- inv('0xF66F820909453B8C', this.handle, toggle, keepPhysics);
1297
+ delete2() {
1298
+ inv('0x5E94EA09E7207C16', this.handle);
1303
1299
  }
1304
1300
  /**
1305
1301
  * @param p1
1306
1302
  * @returns
1307
1303
  */
1308
- placeOnGroundProperly(p1) {
1309
- return inv('0x9587913B9E772D29', this.handle, p1);
1304
+ isInAir(p1) {
1305
+ return inv('0x886E37EC497200B6', this.handle, p1, rai());
1310
1306
  }
1311
1307
  /**
1312
1308
  * @returns
1313
1309
  */
1314
- isInWater() {
1315
- return inv('0xDDE5C125AC446723', this.handle, rai());
1310
+ isAMissionEntity() {
1311
+ return inv('0x138190F64DB4BBD1', this.handle, rai());
1316
1312
  }
1317
1313
  /**
1318
- * @returns Returns `true` if the entity exists
1314
+ * @returns
1319
1315
  */
1320
- doesExist() {
1321
- return inv('0xD42BD6EB2E0F1677', this.handle, rai());
1316
+ isAttachedToAnyPed() {
1317
+ return inv('0xC841153DED2CA89A', this.handle, rai());
1322
1318
  }
1323
1319
  /**
1320
+ * @param to
1324
1321
  * @returns
1325
1322
  */
1326
- getAlpha() {
1327
- return inv('0x1BB501624FAF2BEA', this.handle, rai());
1323
+ isAttachedToEntity(to) {
1324
+ return inv('0x154A3C529497053E', this.handle, to.handle, rai());
1328
1325
  }
1329
1326
  /**
1330
- * This native only works on `Ped` and `Object` entity types
1331
- *
1332
- * @param flagId Refer to [enum: eCarryingFlags]
1333
1327
  * @returns
1334
1328
  */
1335
- getCarryingFlag(flagId) {
1336
- return inv('0x808077647856DE62', this.handle, flagId, rai());
1329
+ hasBeenDamagedByAnyObject() {
1330
+ return inv('0x73BB763880CD23A6', this.handle, rai());
1337
1331
  }
1338
1332
  /**
1339
- * @param p1
1333
+ * @param rotationOrder
1334
+ * @returns
1340
1335
  */
1341
- forceAiAndAnimationUpdate(p1) {
1342
- inv('0x4C9E96473D4F1A88', this.handle, p1);
1336
+ getRotation(rotationOrder) {
1337
+ return Vector3.fromArray(inv('0xE09CAF86C32CB48F', this.handle, rotationOrder, rav()));
1343
1338
  }
1344
1339
  /**
1345
- * Axis - Invert Axis Flags
1346
- *
1347
- * @param pos
1348
- * @param xAxis
1349
- * @param yAxis
1350
- * @param zAxis
1340
+ * @param toggle
1351
1341
  */
1352
- setCoordsNoOffset(pos, xAxis, yAxis, zAxis) {
1353
- inv('0x239A3351AC1DA385', this.handle, f(pos.x), f(pos.y), f(pos.z), xAxis, yAxis, zAxis);
1342
+ setMotionBlur(toggle) {
1343
+ inv('0x516C6ABD18322B63', this.handle, toggle);
1344
+ }
1345
+ resetAlpha() {
1346
+ inv('0x744B9EF44779D9AB', this.handle);
1354
1347
  }
1355
1348
  /**
1356
- * Returns (CUR_HEALTH / MAX_HEALTH)
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
1357
1350
  *
1351
+ * @param pos
1352
+ * @param xSize
1353
+ * @param ySize
1354
+ * @param zSize
1355
+ * @param p7
1356
+ * @param p8
1357
+ * @param p9
1358
1358
  * @returns
1359
1359
  */
1360
- getHealthFloat() {
1361
- return inv('0x96C638784DB4C815', this.handle, raf());
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());
1362
1362
  }
1363
1363
  /**
1364
1364
  * @param entity2