@nativewrappers/redm-codegen 0.0.2 → 0.0.3

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 (254) hide show
  1. package/dist/classes/AnimScene.d.ts +142 -142
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +203 -203
  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 +34 -34
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +42 -42
  10. package/dist/classes/Cam.d.ts +71 -71
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +102 -102
  13. package/dist/classes/Entity.d.ts +387 -386
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +509 -504
  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 +67 -66
  20. package/dist/classes/Ped.d.ts.map +1 -1
  21. package/dist/classes/Ped.js +80 -75
  22. package/dist/classes/PedTask.d.ts +1518 -1518
  23. package/dist/classes/PedTask.d.ts.map +1 -1
  24. package/dist/classes/PedTask.js +1930 -1930
  25. package/dist/classes/PersChar.d.ts +11 -11
  26. package/dist/classes/PersChar.d.ts.map +1 -1
  27. package/dist/classes/PersChar.js +23 -23
  28. package/dist/classes/Pickup.d.ts +7 -7
  29. package/dist/classes/Pickup.d.ts.map +1 -1
  30. package/dist/classes/Pickup.js +13 -13
  31. package/dist/classes/Player.d.ts +237 -237
  32. package/dist/classes/Player.d.ts.map +1 -1
  33. package/dist/classes/Player.js +319 -319
  34. package/dist/classes/Prop.d.ts +105 -104
  35. package/dist/classes/Prop.d.ts.map +1 -1
  36. package/dist/classes/Prop.js +155 -150
  37. package/dist/classes/PropSet.d.ts +1 -1
  38. package/dist/classes/PropSet.d.ts.map +1 -1
  39. package/dist/classes/Vehicle.d.ts +1 -0
  40. package/dist/classes/Vehicle.d.ts.map +1 -1
  41. package/dist/classes/Vehicle.js +5 -0
  42. package/dist/classes/VehicleTask.d.ts +21 -21
  43. package/dist/classes/VehicleTask.d.ts.map +1 -1
  44. package/dist/classes/VehicleTask.js +27 -27
  45. package/dist/classes/Volume.d.ts +40 -40
  46. package/dist/classes/Volume.d.ts.map +1 -1
  47. package/dist/classes/Volume.js +54 -54
  48. package/dist/classes/Weapon.d.ts +364 -364
  49. package/dist/classes/Weapon.d.ts.map +1 -1
  50. package/dist/classes/Weapon.js +515 -515
  51. package/dist/namespaces/Aitransport.d.ts +77 -77
  52. package/dist/namespaces/Aitransport.d.ts.map +1 -1
  53. package/dist/namespaces/Aitransport.js +94 -94
  54. package/dist/namespaces/Animscene.d.ts +65 -65
  55. package/dist/namespaces/Animscene.d.ts.map +1 -1
  56. package/dist/namespaces/Animscene.js +83 -83
  57. package/dist/namespaces/Audio.d.ts +464 -464
  58. package/dist/namespaces/Audio.d.ts.map +1 -1
  59. package/dist/namespaces/Audio.js +651 -651
  60. package/dist/namespaces/Bounty.d.ts +23 -23
  61. package/dist/namespaces/Bounty.d.ts.map +1 -1
  62. package/dist/namespaces/Bounty.js +40 -40
  63. package/dist/namespaces/Brain.d.ts +15 -15
  64. package/dist/namespaces/Brain.d.ts.map +1 -1
  65. package/dist/namespaces/Brain.js +20 -20
  66. package/dist/namespaces/CamStatics.d.ts +459 -459
  67. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  68. package/dist/namespaces/CamStatics.js +719 -719
  69. package/dist/namespaces/Collection.d.ts +78 -78
  70. package/dist/namespaces/Collection.d.ts.map +1 -1
  71. package/dist/namespaces/Collection.js +109 -109
  72. package/dist/namespaces/Companion.d.ts +22 -22
  73. package/dist/namespaces/Companion.d.ts.map +1 -1
  74. package/dist/namespaces/Companion.js +30 -30
  75. package/dist/namespaces/Compendium.d.ts +94 -94
  76. package/dist/namespaces/Compendium.d.ts.map +1 -1
  77. package/dist/namespaces/Compendium.js +126 -126
  78. package/dist/namespaces/Databinding.d.ts +113 -113
  79. package/dist/namespaces/Databinding.d.ts.map +1 -1
  80. package/dist/namespaces/Databinding.js +167 -167
  81. package/dist/namespaces/Dlc.d.ts +5 -5
  82. package/dist/namespaces/Dlc.d.ts.map +1 -1
  83. package/dist/namespaces/Dlc.js +9 -9
  84. package/dist/namespaces/EntityStatics.d.ts +164 -164
  85. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  86. package/dist/namespaces/EntityStatics.js +225 -225
  87. package/dist/namespaces/Event.d.ts +62 -62
  88. package/dist/namespaces/Event.d.ts.map +1 -1
  89. package/dist/namespaces/Event.js +82 -82
  90. package/dist/namespaces/Fire.d.ts +7 -7
  91. package/dist/namespaces/Fire.d.ts.map +1 -1
  92. package/dist/namespaces/Fire.js +9 -9
  93. package/dist/namespaces/Graphics.d.ts +688 -688
  94. package/dist/namespaces/Graphics.d.ts.map +1 -1
  95. package/dist/namespaces/Graphics.js +876 -876
  96. package/dist/namespaces/Hud.d.ts +456 -456
  97. package/dist/namespaces/Hud.d.ts.map +1 -1
  98. package/dist/namespaces/Hud.js +598 -598
  99. package/dist/namespaces/InteriorStatics.d.ts +42 -42
  100. package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
  101. package/dist/namespaces/InteriorStatics.js +56 -56
  102. package/dist/namespaces/Inventory.d.ts +156 -156
  103. package/dist/namespaces/Inventory.d.ts.map +1 -1
  104. package/dist/namespaces/Inventory.js +210 -210
  105. package/dist/namespaces/Itemdatabase.d.ts +3 -3
  106. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  107. package/dist/namespaces/Law.d.ts +2 -2
  108. package/dist/namespaces/Law.d.ts.map +1 -1
  109. package/dist/namespaces/Map.d.ts +128 -128
  110. package/dist/namespaces/Map.d.ts.map +1 -1
  111. package/dist/namespaces/Map.js +180 -180
  112. package/dist/namespaces/Minigame.d.ts +60 -60
  113. package/dist/namespaces/Minigame.d.ts.map +1 -1
  114. package/dist/namespaces/Minigame.js +88 -88
  115. package/dist/namespaces/Misc.d.ts +5 -5
  116. package/dist/namespaces/Misc.d.ts.map +1 -1
  117. package/dist/namespaces/Missiondata.d.ts +3 -3
  118. package/dist/namespaces/Missiondata.d.ts.map +1 -1
  119. package/dist/namespaces/Netshopping.d.ts +1 -1
  120. package/dist/namespaces/Netshopping.d.ts.map +1 -1
  121. package/dist/namespaces/Network.d.ts +1528 -1536
  122. package/dist/namespaces/Network.d.ts.map +1 -1
  123. package/dist/namespaces/Network.js +2196 -2204
  124. package/dist/namespaces/Object.d.ts +244 -244
  125. package/dist/namespaces/Object.d.ts.map +1 -1
  126. package/dist/namespaces/Object.js +355 -355
  127. package/dist/namespaces/Pad.d.ts +43 -43
  128. package/dist/namespaces/Pad.d.ts.map +1 -1
  129. package/dist/namespaces/Pad.js +58 -58
  130. package/dist/namespaces/PedStatics.d.ts +21 -21
  131. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  132. package/dist/namespaces/PedStatics.js +26 -26
  133. package/dist/namespaces/Perschar.d.ts +62 -62
  134. package/dist/namespaces/Perschar.d.ts.map +1 -1
  135. package/dist/namespaces/Perschar.js +91 -91
  136. package/dist/namespaces/Persistence.d.ts +30 -30
  137. package/dist/namespaces/Persistence.d.ts.map +1 -1
  138. package/dist/namespaces/Persistence.js +42 -42
  139. package/dist/namespaces/Physics.d.ts +207 -207
  140. package/dist/namespaces/Physics.d.ts.map +1 -1
  141. package/dist/namespaces/Physics.js +310 -310
  142. package/dist/namespaces/PlayerStatics.d.ts +72 -72
  143. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  144. package/dist/namespaces/PlayerStatics.js +103 -103
  145. package/dist/namespaces/Population.d.ts +88 -88
  146. package/dist/namespaces/Population.d.ts.map +1 -1
  147. package/dist/namespaces/Population.js +116 -116
  148. package/dist/namespaces/Posse.d.ts +49 -49
  149. package/dist/namespaces/Posse.d.ts.map +1 -1
  150. package/dist/namespaces/Posse.js +79 -79
  151. package/dist/namespaces/Propset.d.ts +1 -1
  152. package/dist/namespaces/Propset.d.ts.map +1 -1
  153. package/dist/namespaces/Scripts.d.ts +3 -3
  154. package/dist/namespaces/Scripts.d.ts.map +1 -1
  155. package/dist/namespaces/Shapetest.d.ts +11 -11
  156. package/dist/namespaces/Shapetest.d.ts.map +1 -1
  157. package/dist/namespaces/Shapetest.js +13 -13
  158. package/dist/namespaces/Socialclub.d.ts +1 -1
  159. package/dist/namespaces/Socialclub.d.ts.map +1 -1
  160. package/dist/namespaces/Stats.d.ts +174 -174
  161. package/dist/namespaces/Stats.d.ts.map +1 -1
  162. package/dist/namespaces/Stats.js +240 -240
  163. package/dist/namespaces/Streaming.d.ts +127 -127
  164. package/dist/namespaces/Streaming.d.ts.map +1 -1
  165. package/dist/namespaces/Streaming.js +193 -193
  166. package/dist/namespaces/Task.d.ts +220 -220
  167. package/dist/namespaces/Task.d.ts.map +1 -1
  168. package/dist/namespaces/Task.js +299 -299
  169. package/dist/namespaces/Telemetry.d.ts +188 -188
  170. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  171. package/dist/namespaces/Telemetry.js +249 -249
  172. package/dist/namespaces/Uiapps.d.ts +24 -24
  173. package/dist/namespaces/Uiapps.d.ts.map +1 -1
  174. package/dist/namespaces/Uiapps.js +33 -33
  175. package/dist/namespaces/Uistickyfeed.d.ts +16 -16
  176. package/dist/namespaces/Uistickyfeed.d.ts.map +1 -1
  177. package/dist/namespaces/Uistickyfeed.js +21 -21
  178. package/dist/namespaces/VehicleStatics.d.ts +2 -2
  179. package/dist/namespaces/VehicleStatics.d.ts.map +1 -1
  180. package/dist/namespaces/VolumeStatics.d.ts +64 -64
  181. package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
  182. package/dist/namespaces/VolumeStatics.js +85 -85
  183. package/dist/namespaces/WeaponStatics.d.ts +262 -262
  184. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  185. package/dist/namespaces/WeaponStatics.js +361 -361
  186. package/dist/namespaces/Zone.d.ts +2 -2
  187. package/dist/namespaces/Zone.d.ts.map +1 -1
  188. package/package.json +1 -1
  189. package/src/classes/AnimScene.ts +230 -230
  190. package/src/classes/BaseModel.ts +50 -50
  191. package/src/classes/BaseTask.ts +46 -46
  192. package/src/classes/Cam.ts +113 -113
  193. package/src/classes/Entity.ts +537 -532
  194. package/src/classes/Interior.ts +43 -43
  195. package/src/classes/Ped.ts +100 -95
  196. package/src/classes/PedTask.ts +1969 -1969
  197. package/src/classes/PersChar.ts +28 -28
  198. package/src/classes/Pickup.ts +13 -13
  199. package/src/classes/Player.ts +364 -364
  200. package/src/classes/Prop.ts +167 -162
  201. package/src/classes/PropSet.ts +1 -1
  202. package/src/classes/Vehicle.ts +5 -0
  203. package/src/classes/VehicleTask.ts +30 -30
  204. package/src/classes/Volume.ts +62 -62
  205. package/src/classes/Weapon.ts +517 -517
  206. package/src/namespaces/Aitransport.ts +102 -102
  207. package/src/namespaces/Animscene.ts +92 -92
  208. package/src/namespaces/Audio.ts +765 -765
  209. package/src/namespaces/Bounty.ts +46 -46
  210. package/src/namespaces/Brain.ts +22 -22
  211. package/src/namespaces/CamStatics.ts +747 -747
  212. package/src/namespaces/Collection.ts +112 -112
  213. package/src/namespaces/Companion.ts +34 -34
  214. package/src/namespaces/Compendium.ts +131 -131
  215. package/src/namespaces/Databinding.ts +170 -170
  216. package/src/namespaces/Dlc.ts +9 -9
  217. package/src/namespaces/EntityStatics.ts +237 -237
  218. package/src/namespaces/Event.ts +92 -92
  219. package/src/namespaces/Fire.ts +10 -10
  220. package/src/namespaces/Graphics.ts +1206 -1206
  221. package/src/namespaces/Hud.ts +647 -647
  222. package/src/namespaces/InteriorStatics.ts +66 -66
  223. package/src/namespaces/Inventory.ts +237 -237
  224. package/src/namespaces/Itemdatabase.ts +3 -3
  225. package/src/namespaces/Law.ts +2 -2
  226. package/src/namespaces/Map.ts +204 -204
  227. package/src/namespaces/Minigame.ts +100 -100
  228. package/src/namespaces/Misc.ts +5 -5
  229. package/src/namespaces/Missiondata.ts +3 -3
  230. package/src/namespaces/Netshopping.ts +1 -1
  231. package/src/namespaces/Network.ts +2217 -2225
  232. package/src/namespaces/Object.ts +381 -381
  233. package/src/namespaces/Pad.ts +67 -67
  234. package/src/namespaces/PedStatics.ts +33 -33
  235. package/src/namespaces/Perschar.ts +105 -105
  236. package/src/namespaces/Persistence.ts +48 -48
  237. package/src/namespaces/Physics.ts +326 -326
  238. package/src/namespaces/PlayerStatics.ts +113 -113
  239. package/src/namespaces/Population.ts +133 -133
  240. package/src/namespaces/Posse.ts +80 -80
  241. package/src/namespaces/Propset.ts +1 -1
  242. package/src/namespaces/Scripts.ts +3 -3
  243. package/src/namespaces/Shapetest.ts +14 -14
  244. package/src/namespaces/Socialclub.ts +1 -1
  245. package/src/namespaces/Stats.ts +266 -266
  246. package/src/namespaces/Streaming.ts +226 -226
  247. package/src/namespaces/Task.ts +527 -527
  248. package/src/namespaces/Telemetry.ts +300 -300
  249. package/src/namespaces/Uiapps.ts +39 -39
  250. package/src/namespaces/Uistickyfeed.ts +23 -23
  251. package/src/namespaces/VehicleStatics.ts +2 -2
  252. package/src/namespaces/VolumeStatics.ts +87 -87
  253. package/src/namespaces/WeaponStatics.ts +365 -365
  254. package/src/namespaces/Zone.ts +2 -2
@@ -11,63 +11,89 @@ export declare class Entity implements IHandle {
11
11
  handle: number;
12
12
  constructor(handle: number);
13
13
  static fromHandle(handle: number): Entity | null;
14
+ static fromNetworkId(netId: number): Entity | null;
14
15
  /**
15
- * @param targetEntity
16
16
  * @returns
17
17
  */
18
- isTouchingEntity(targetEntity: Entity): boolean;
19
- deleteCarriable(): void;
18
+ getIsBird(): any;
20
19
  /**
21
- * Returns a normalized value between 0.0f and 1.0f. You can get the actual anim time by multiplying this by GET_ANIM_DURATION
20
+ * Gets the entity's forward vector in YX(Z) eulers. Similar to GET_ENTITY_FORWARD_VECTOR
22
21
  *
23
- * @param animDict
24
- * @param animName
25
22
  * @returns
26
23
  */
27
- getAnimCurrentTime(animDict: string | null, animName: string | null): number;
24
+ getForwardVectorYx(): Vector3;
28
25
  /**
29
- * @param entity2
30
- * @param thisFrameOnly
26
+ * @param pos
27
+ * @param xAxis
28
+ * @param yAxis
29
+ * @param zAxis
30
+ * @param clearArea
31
31
  */
32
- setNoCollisionEntity(entity2: Entity, thisFrameOnly: boolean): void;
32
+ setCoords(pos: Vector3, xAxis: boolean, yAxis: boolean, zAxis: boolean, clearArea: boolean): void;
33
33
  /**
34
- * Result is in meters per second (m/s)
35
- *
34
+ * @param boneName
36
35
  * @returns
37
36
  */
38
- getSpeed(): number;
37
+ getBoneIndexByName(boneName: string | null): number;
39
38
  /**
40
- * @param bOnlyDamagedWhenRunningScript
39
+ * @param pause
41
40
  */
42
- setCanOnlyBeDamagedByScriptParticipants(bOnlyDamagedWhenRunningScript: boolean): void;
41
+ pauseTracking(pause: boolean): void;
43
42
  /**
44
- * @returns
43
+ * @param toggle
45
44
  */
46
- isTrackedVisible(): any;
45
+ setLoadCollisionFlag(toggle: boolean): void;
47
46
  /**
48
- * @param p1
49
- * @param collision
47
+ * Changes type and quality of skins
48
+ * type hashes: https://pastebin.com/C1WvQjCy
49
+ *
50
+ * @param type
50
51
  */
51
- detachEntity(p1: boolean, collision: boolean): void;
52
+ setCarcassType(type: string | number): void;
52
53
  /**
54
+ * @param toggle
55
+ */
56
+ setHasGravity(toggle: boolean): void;
57
+ /**
58
+ * @param relative
53
59
  * @returns
54
60
  */
55
- isVisibleToScript(): boolean;
61
+ getSpeedVector(relative: boolean): Vector3;
56
62
  /**
57
63
  * @param entity2
58
- * @param traceType
64
+ * @param p2
65
+ * @param p3
59
66
  * @returns
60
67
  */
61
- hasClearLosToEntity(entity2: Entity, traceType: number): boolean;
68
+ hasBeenDamagedByEntity(entity2: Entity, p2: boolean, p3: boolean): boolean;
62
69
  /**
63
- * Used in Script Function GENERIC_ITEM_HAS_ANIM_COMPLETED
64
- * *GET_ENTITY**
65
- *
66
- * @param animDict
67
- * @param animClip
68
70
  * @returns
69
71
  */
70
- N_0x8E46E18AA828334F(animDict: string | null, animClip: string | null): number;
72
+ isFullyLooted(): any;
73
+ /**
74
+ * @returns
75
+ */
76
+ isOccluded(): boolean;
77
+ /**
78
+ * @param toggle
79
+ */
80
+ setCanBeDamaged(toggle: boolean): void;
81
+ /**
82
+ * @param forceFlags
83
+ * @param pos
84
+ * @param offset
85
+ * @param boneIndex
86
+ * @param isDirectionRel
87
+ * @param ignoreUpVec
88
+ * @param isForceRel
89
+ * @param p12
90
+ * @param p13
91
+ */
92
+ applyForceToEntity(forceFlags: number, pos: Vector3, offset: Vector3, boneIndex: number, isDirectionRel: boolean, ignoreUpVec: boolean, isForceRel: boolean, p12: boolean, p13: boolean): void;
93
+ /**
94
+ * @returns
95
+ */
96
+ isDead(): boolean;
71
97
  /**
72
98
  * @param playerPedToIgnore
73
99
  * @param flags
@@ -129,7 +155,7 @@ export declare class Entity implements IHandle {
129
155
  /**
130
156
  * @returns argStruct
131
157
  */
132
- getScript(): [string | number, number];
158
+ getScript(): [number, number];
133
159
  /**
134
160
  * @param actionHash
135
161
  * @returns
@@ -178,7 +204,7 @@ export declare class Entity implements IHandle {
178
204
  *
179
205
  * @returns
180
206
  */
181
- getModel(): string | number;
207
+ getModel(): number;
182
208
  /**
183
209
  * Deletes the specified entity, then sets the handle pointed to by the pointer to NULL.
184
210
  */
@@ -190,6 +216,74 @@ export declare class Entity implements IHandle {
190
216
  * @returns
191
217
  */
192
218
  getNearestPlayerToOnTeam(team: number, playerPedToIgnore: Ped, flags: number): Player | null;
219
+ /**
220
+ * Returns the LOD distance of an entity.
221
+ *
222
+ * @returns
223
+ */
224
+ getLodDist(): number;
225
+ /**
226
+ * @returns
227
+ */
228
+ doesHaveDrawable(): boolean;
229
+ /**
230
+ * @param xyzw
231
+ */
232
+ setQuaternion(xyzw: Vector4): void;
233
+ /**
234
+ * @returns
235
+ */
236
+ isAttachedToAnyObject(): boolean;
237
+ /**
238
+ * Sets a ped or an object totally invincible. It doesn't take any kind of damage. Peds will not ragdoll on explosions.
239
+ *
240
+ * @param toggle
241
+ */
242
+ setInvincible(toggle: boolean): void;
243
+ /**
244
+ * Attaches entity1 to bone (boneIndex) of entity2. boneIndex - this is different to boneID, use GET_PED_BONE_INDEX to get the index from the ID. use the index for attaching to specific bones. entity1 will be attached to entity2's centre if bone index given doesn't correspond to bone indexes for that entity type.
245
+ * https://github.com/femga/rdr3_discoveries/tree/master/boneNames useSoftPinning - if set to false attached entity will not detach when fixed
246
+ * collision - controls collision between the two entities (FALSE disables collision).
247
+ * isPed - pitch doesn't work when false and roll will only work on negative numbers (only peds)
248
+ * vertexIndex - position of vertex
249
+ * fixedRot - if false it ignores entity vector
250
+ *
251
+ * @param entity2
252
+ * @param boneIndex
253
+ * @param pos
254
+ * @param rot
255
+ * @param p9
256
+ * @param useSoftPinning
257
+ * @param collision
258
+ * @param isPed
259
+ * @param vertexIndex
260
+ * @param fixedRot
261
+ * @param p15
262
+ * @param p16
263
+ */
264
+ attachToEntity(entity2: Entity, boneIndex: number, pos: Vector3, rot: Vector3, p9: boolean, useSoftPinning: boolean, collision: boolean, isPed: boolean, vertexIndex: number, fixedRot: boolean, p15: boolean, p16: boolean): void;
265
+ /**
266
+ * @returns
267
+ */
268
+ getIsAnimal(): any;
269
+ /**
270
+ * p6/relative - makes the xyz force not relative to world coords, but to something else
271
+ * p7/highForce - setting false will make the force really low
272
+ *
273
+ * @param forceType
274
+ * @param pos
275
+ * @param component
276
+ * @param isDirectionRel
277
+ * @param isForceRel
278
+ * @param p8
279
+ */
280
+ applyForceToCenterOfMass(forceType: number, pos: Vector3, component: number, isDirectionRel: boolean, isForceRel: boolean, p8: boolean): void;
281
+ /**
282
+ * Old name: _GET_ENTITY_CAN_BE_DAMAGED
283
+ *
284
+ * @returns
285
+ */
286
+ getCanBeDamaged(): any;
193
287
  /**
194
288
  * @param p1
195
289
  */
@@ -243,237 +337,260 @@ export declare class Entity implements IHandle {
243
337
  */
244
338
  getNearestParticipantToEntity(): Player | null;
245
339
  /**
246
- * enum eCarriableState
247
- * {
248
- * CARRIABLE_STATE_NONE,
249
- * CARRIABLE_STATE_TRANSITIONING_TO_HOGTIED,
250
- * CARRIABLE_STATE_CARRIABLE_INTRO,
251
- * CARRIABLE_STATE_CARRIABLE,
252
- * CARRIABLE_STATE_BEING_PICKED_UP_FROM_GROUND,
253
- * CARRIABLE_STATE_CARRIED_BY_HUMAN,
254
- * CARRIABLE_STATE_BEING_PLACED_ON_GROUND,
255
- * CARRIABLE_STATE_CARRIED_BY_MOUNT,
256
- * CARRIABLE_STATE_BEING_PLACED_ON_MOUNT,
257
- * CARRIABLE_STATE_BEING_PICKED_UP_FROM_MOUNT,
258
- * CARRIABLE_STATE_BEING_CUT_FREE,
259
- * CARRIABLE_STATE_BEING_PLACED_ON_GROUND_ESCAPE,
260
- * CARRIABLE_STATE_BEING_PLACED_IN_VEHICLE
261
- * };
340
+ * Returns entityType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityType
262
341
  *
263
342
  * @returns
264
343
  */
265
- getCarriableState(): number;
344
+ getType(): number;
266
345
  /**
267
- * @param value
346
+ * @returns
268
347
  */
269
- setMaxHealth(value: number): void;
348
+ isOwnedByPersistenceSystem(): any;
270
349
  /**
271
- * Params: p1 (probably animType) = 1, 0
272
- *
273
- * @param p1
350
+ * @param animDict
351
+ * @param animName
352
+ * @param animType
274
353
  * @returns
275
354
  */
276
- isPlayingAnyAnim(p1: number): boolean;
355
+ isPlayingAnim(animDict: string | null, animName: string | null, animType: number): boolean;
277
356
  /**
278
- * @param enabled
357
+ * Marks the specified entity (ped, vehicle or object) as no longer needed, allowing the game engine to delete it whenever it sees fit.
279
358
  */
280
- setLightsEnabled(enabled: boolean): void;
359
+ setAsNoLongerNeeded(): void;
281
360
  /**
282
- * Offset values are relative to the entity. x = left/right
283
- * y = forward/backward
284
- * z = up/down
285
- *
286
- * @param offset
287
361
  * @returns
288
362
  */
289
- getOffsetFromInWorldCoords(offset: Vector3): Vector3;
363
+ hasBeenDamagedByAnyVehicle(): boolean;
290
364
  /**
291
- * Checks if entity1 is within the box defined by x/y/zSize of entity2. Last three parameters are almost always p5 = 0, p6 = 1, p7 = 0
365
+ * @param animDict
366
+ * @param animName
367
+ * @param speedMultiplier
368
+ */
369
+ setAnimSpeed(animDict: string | null, animName: string | null, speedMultiplier: number): void;
370
+ unpinMapEntity(): void;
371
+ /**
372
+ * Get how much of the entity is submerged. 1.0f is whole entity.
292
373
  *
293
- * @param entity2
294
- * @param xSize
295
- * @param ySize
296
- * @param zSize
297
- * @param p5
298
- * @param p6
299
- * @param p7
300
374
  * @returns
301
375
  */
302
- isAtEntity(entity2: Entity, xSize: number, ySize: number, zSize: number, p5: boolean, p6: boolean, p7: number): boolean;
376
+ getSubmergedLevel(): number;
303
377
  /**
304
- * @param toggle
378
+ * @returns
305
379
  */
306
- setVisible(toggle: boolean): void;
380
+ isAttached(): boolean;
307
381
  /**
308
- * Old name: _SET_ENTITY_CLEANUP_BY_ENGINE
382
+ * SET_ENTITY_A*
309
383
  *
310
- * @param toggle
384
+ * @param p1
311
385
  */
312
- setShouldFreezeWaitingOnCollision(toggle: boolean): void;
386
+ N_0xC0EDEF16D90661EE(p1: number): void;
313
387
  /**
314
- * Note: this native was removed in 1232 but added back in 1311
315
- * Old name: _GET_ENTITY_PROOFS
316
- *
317
- * @returns
388
+ * @param looted
318
389
  */
319
- getProofs(): number;
390
+ setFullyLooted(looted: boolean): void;
320
391
  /**
321
- * skin - everything alpha except skin
322
- * Set entity alpha level. Ranging from 0 to 255 but changes occur after every 20 percent (after every 51).
323
- *
324
- * @param alphaLevel
325
- * @param skin
392
+ * @returns
326
393
  */
327
- setAlpha(alphaLevel: number, skin: boolean): void;
394
+ isAttachedToAnyVehicle(): boolean;
328
395
  /**
329
- * @returns
396
+ * @param p1
330
397
  */
331
- getThreatTier(): number;
398
+ N_0xA48E4801DEBDF7E4(p1: boolean): void;
332
399
  /**
333
- * @returns
400
+ * @param toggle
401
+ * @param keepPhysics
334
402
  */
335
- isUpsidedown(): boolean;
403
+ setCompletelyDisableCollision(toggle: boolean, keepPhysics: boolean): void;
336
404
  /**
337
405
  * @param p1
338
- * @returns
339
406
  */
340
- doesBelongToThisScript(p1: boolean): boolean;
407
+ N_0xCDB682BB47C02F0A(p1: string | number): void;
341
408
  /**
342
- * Returns a hash of an entity's name. (Alternative Name: _GET_ENTITY_PROMPT_NAME_HASH)
343
- *
409
+ * @param volume
410
+ * @param p2
411
+ * @param p3
344
412
  * @returns
345
413
  */
346
- getCarriableFromEntity(): string | number;
414
+ isInVolume(volume: number, p2: boolean, p3: number): boolean;
347
415
  /**
348
- * @param toggle
349
- * @param keepPhysics
416
+ * @returns rightVector; forwardVector; upVector; position
350
417
  */
351
- setCollision(toggle: boolean, keepPhysics: boolean): void;
418
+ getMatrix(): [Vector3, Vector3, Vector3, Vector3];
419
+ /**
420
+ * 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.
421
+ */
422
+ N_0x371D179701D9C082(): void;
352
423
  /**
353
424
  * @param p1
354
425
  * @returns
355
426
  */
356
- placeOnGroundProperly(p1: boolean): any;
427
+ getMaxHealth(p1: boolean): number;
357
428
  /**
358
- * @returns
429
+ * @param animDict
430
+ * @param animName
431
+ * @param time
359
432
  */
360
- isInWater(): boolean;
433
+ setAnimCurrentTime(animDict: string | null, animName: string | null, time: number): void;
361
434
  /**
362
- * @returns Returns `true` if the entity exists
435
+ * Gets the current coordinates for a specified entity.
436
+ * `entity` = The entity to get the coordinates from.
437
+ * `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.
438
+ *
439
+ * @param alive
440
+ * @param realCoords
441
+ * @returns
363
442
  */
364
- doesExist(): boolean;
443
+ getCoords(alive: boolean, realCoords: boolean): Vector3;
365
444
  /**
366
445
  * @returns
367
446
  */
368
- getAlpha(): number;
447
+ isAnObject(): boolean;
369
448
  /**
370
- * This native only works on `Ped` and `Object` entity types
449
+ * 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).
371
450
  *
372
- * @param flagId Refer to [enum: eCarryingFlags]
451
+ * @param value
452
+ */
453
+ setLodDist(value: number): void;
454
+ /**
455
+ * @param toggle
456
+ */
457
+ setDynamic(toggle: boolean): void;
458
+ /**
459
+ * @param radius
460
+ */
461
+ setCustomPickupRadius(radius: number): void;
462
+ /**
373
463
  * @returns
374
464
  */
375
- getCarryingFlag(flagId: eCarryingFlags): number;
465
+ getPopulationType(): number;
376
466
  /**
377
- * @param p1
467
+ * @returns
378
468
  */
379
- forceAiAndAnimationUpdate(p1: boolean): void;
469
+ isAVehicle(): boolean;
380
470
  /**
381
- * Axis - Invert Axis Flags
382
- *
383
471
  * @param pos
384
- * @param xAxis
385
- * @param yAxis
386
- * @param zAxis
472
+ * @param atTop
473
+ * @param inWorldCoords
474
+ * @returns
387
475
  */
388
- setCoordsNoOffset(pos: Vector3, xAxis: boolean, yAxis: boolean, zAxis: boolean): void;
476
+ getHeight(pos: Vector3, atTop: boolean, inWorldCoords: boolean): number;
389
477
  /**
390
- * Returns (CUR_HEALTH / MAX_HEALTH)
391
- *
478
+ * @param pos
392
479
  * @returns
393
480
  */
394
- getHealthFloat(): number;
481
+ getOffsetFromGivenWorldCoords(pos: Vector3): Vector3;
482
+ addTrackingTrails(): void;
483
+ /**
484
+ * @param toggle
485
+ */
486
+ setCanClimbOnEntity(toggle: boolean): void;
487
+ /**
488
+ * @returns minimum; maximum
489
+ */
490
+ getWorldPositionOfDimensions(): [Vector3, Vector3];
395
491
  /**
492
+ * @param p1
396
493
  * @returns
397
494
  */
398
- getIsBird(): any;
495
+ isUnderwater(p1: boolean): any;
399
496
  /**
400
- * Gets the entity's forward vector in YX(Z) eulers. Similar to GET_ENTITY_FORWARD_VECTOR
401
- *
497
+ * @param animation
498
+ * @param animGroup
499
+ * @param p3
402
500
  * @returns
403
501
  */
404
- getForwardVectorYx(): Vector3;
502
+ stopAnim(animation: string | null, animGroup: string | null, p3: number): any;
405
503
  /**
406
- * @param pos
407
- * @param xAxis
408
- * @param yAxis
409
- * @param zAxis
410
- * @param clearArea
504
+ * @returns
411
505
  */
412
- setCoords(pos: Vector3, xAxis: boolean, yAxis: boolean, zAxis: boolean, clearArea: boolean): void;
506
+ hasCollidedWithAnything(): boolean;
413
507
  /**
414
- * @param boneName
508
+ * Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
509
+ *
415
510
  * @returns
416
511
  */
417
- getBoneIndexByName(boneName: string | null): number;
512
+ getVehicleIndexFromIndex(): Vehicle | null;
418
513
  /**
419
- * @param pause
514
+ * @returns
420
515
  */
421
- pauseTracking(pause: boolean): void;
516
+ isVisible(): boolean;
422
517
  /**
518
+ * SET_ENTITY_LO*
519
+ *
423
520
  * @param toggle
424
521
  */
425
- setLoadCollisionFlag(toggle: boolean): void;
522
+ N_0xFF9965C47FA404DA(toggle: boolean): void;
426
523
  /**
427
- * Changes type and quality of skins
428
- * type hashes: https://pastebin.com/C1WvQjCy
524
+ * Valid indices: 0 - 3
525
+ * Index 1 always returns a `hogtied` config, doesn't matter the entity.
526
+ * It's for humans only and the ped must be resurrected first if it's dead.
429
527
  *
430
- * @param type
528
+ * @param index
529
+ * @returns
431
530
  */
432
- setCarcassType(type: string | number): void;
531
+ getOptimalCarryConfig(index: number): number;
532
+ setFadeIn(): void;
433
533
  /**
434
- * @param toggle
534
+ * @returns
435
535
  */
436
- setHasGravity(toggle: boolean): void;
536
+ hasBeenDamagedByAnyPed(): boolean;
437
537
  /**
438
- * @param relative
538
+ * @param targetEntity
439
539
  * @returns
440
540
  */
441
- getSpeedVector(relative: boolean): Vector3;
541
+ isTouchingEntity(targetEntity: Entity): boolean;
542
+ deleteCarriable(): void;
442
543
  /**
443
- * @param entity2
444
- * @param p2
445
- * @param p3
544
+ * Returns a normalized value between 0.0f and 1.0f. You can get the actual anim time by multiplying this by GET_ANIM_DURATION
545
+ *
546
+ * @param animDict
547
+ * @param animName
446
548
  * @returns
447
549
  */
448
- hasBeenDamagedByEntity(entity2: Entity, p2: boolean, p3: boolean): boolean;
550
+ getAnimCurrentTime(animDict: string | null, animName: string | null): number;
551
+ /**
552
+ * @param entity2
553
+ * @param thisFrameOnly
554
+ */
555
+ setNoCollisionEntity(entity2: Entity, thisFrameOnly: boolean): void;
449
556
  /**
557
+ * Result is in meters per second (m/s)
558
+ *
450
559
  * @returns
451
560
  */
452
- isFullyLooted(): any;
561
+ getSpeed(): number;
562
+ /**
563
+ * @param bOnlyDamagedWhenRunningScript
564
+ */
565
+ setCanOnlyBeDamagedByScriptParticipants(bOnlyDamagedWhenRunningScript: boolean): void;
453
566
  /**
454
567
  * @returns
455
568
  */
456
- isOccluded(): boolean;
569
+ isTrackedVisible(): any;
457
570
  /**
458
- * @param toggle
571
+ * @param p1
572
+ * @param collision
459
573
  */
460
- setCanBeDamaged(toggle: boolean): void;
574
+ detachEntity(p1: boolean, collision: boolean): void;
461
575
  /**
462
- * @param forceFlags
463
- * @param pos
464
- * @param offset
465
- * @param boneIndex
466
- * @param isDirectionRel
467
- * @param ignoreUpVec
468
- * @param isForceRel
469
- * @param p12
470
- * @param p13
576
+ * @returns
471
577
  */
472
- applyForceToEntity(forceFlags: number, pos: Vector3, offset: Vector3, boneIndex: number, isDirectionRel: boolean, ignoreUpVec: boolean, isForceRel: boolean, p12: boolean, p13: boolean): void;
578
+ isVisibleToScript(): boolean;
473
579
  /**
580
+ * @param entity2
581
+ * @param traceType
474
582
  * @returns
475
583
  */
476
- isDead(): boolean;
584
+ hasClearLosToEntity(entity2: Entity, traceType: number): boolean;
585
+ /**
586
+ * Used in Script Function GENERIC_ITEM_HAS_ANIM_COMPLETED
587
+ * *GET_ENTITY**
588
+ *
589
+ * @param animDict
590
+ * @param animClip
591
+ * @returns
592
+ */
593
+ N_0x8E46E18AA828334F(animDict: string | null, animClip: string | null): number;
477
594
  /**
478
595
  * @param pos1
479
596
  * @param pos2
@@ -523,105 +640,37 @@ export declare class Entity implements IHandle {
523
640
  * @param relGroup
524
641
  */
525
642
  setCanBeDamagedByRelationshipGroup(bCanBeDamaged: boolean, relGroup: string | number): void;
526
- /**
527
- * @returns
528
- */
529
- getUprightValue(): number;
530
- /**
531
- * @param pos
532
- * @param heading
533
- * @param xAxis
534
- * @param yAxis
535
- * @param zAxis
536
- */
537
- setCoordsAndHeading(pos: Vector3, heading: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): void;
538
- /**
539
- * Returns zero if the entity is not a carriable
540
- *
541
- * @returns
542
- */
543
- getCarryConfig(): string | number;
544
- /**
545
- * tier: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityThreatTier
546
- *
547
- * @param tier
548
- * @param p2
549
- */
550
- setThreatTier(tier: number, p2: boolean): void;
551
- /**
552
- * Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
553
- *
554
- * @returns
555
- */
556
- getHeading(): number;
557
- /**
558
- * Returns the LOD distance of an entity.
559
- *
560
- * @returns
561
- */
562
- getLodDist(): number;
563
- /**
564
- * @returns
565
- */
566
- doesHaveDrawable(): boolean;
567
- /**
568
- * @param xyzw
569
- */
570
- setQuaternion(xyzw: Vector4): void;
571
- /**
572
- * @returns
573
- */
574
- isAttachedToAnyObject(): boolean;
575
- /**
576
- * Sets a ped or an object totally invincible. It doesn't take any kind of damage. Peds will not ragdoll on explosions.
577
- *
578
- * @param toggle
579
- */
580
- setInvincible(toggle: boolean): void;
581
- /**
582
- * Attaches entity1 to bone (boneIndex) of entity2. boneIndex - this is different to boneID, use GET_PED_BONE_INDEX to get the index from the ID. use the index for attaching to specific bones. entity1 will be attached to entity2's centre if bone index given doesn't correspond to bone indexes for that entity type.
583
- * https://github.com/femga/rdr3_discoveries/tree/master/boneNames useSoftPinning - if set to false attached entity will not detach when fixed
584
- * collision - controls collision between the two entities (FALSE disables collision).
585
- * isPed - pitch doesn't work when false and roll will only work on negative numbers (only peds)
586
- * vertexIndex - position of vertex
587
- * fixedRot - if false it ignores entity vector
588
- *
589
- * @param entity2
590
- * @param boneIndex
591
- * @param pos
592
- * @param rot
593
- * @param p9
594
- * @param useSoftPinning
595
- * @param collision
596
- * @param isPed
597
- * @param vertexIndex
598
- * @param fixedRot
599
- * @param p15
600
- * @param p16
643
+ /**
644
+ * @returns
601
645
  */
602
- attachToEntity(entity2: Entity, boneIndex: number, pos: Vector3, rot: Vector3, p9: boolean, useSoftPinning: boolean, collision: boolean, isPed: boolean, vertexIndex: number, fixedRot: boolean, p15: boolean, p16: boolean): void;
646
+ getUprightValue(): number;
647
+ /**
648
+ * @param pos
649
+ * @param heading
650
+ * @param xAxis
651
+ * @param yAxis
652
+ * @param zAxis
653
+ */
654
+ setCoordsAndHeading(pos: Vector3, heading: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): void;
603
655
  /**
656
+ * Returns zero if the entity is not a carriable
657
+ *
604
658
  * @returns
605
659
  */
606
- getIsAnimal(): any;
660
+ getCarryConfig(): number;
607
661
  /**
608
- * p6/relative - makes the xyz force not relative to world coords, but to something else
609
- * p7/highForce - setting false will make the force really low
662
+ * tier: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityThreatTier
610
663
  *
611
- * @param forceType
612
- * @param pos
613
- * @param component
614
- * @param isDirectionRel
615
- * @param isForceRel
616
- * @param p8
664
+ * @param tier
665
+ * @param p2
617
666
  */
618
- applyForceToCenterOfMass(forceType: number, pos: Vector3, component: number, isDirectionRel: boolean, isForceRel: boolean, p8: boolean): void;
667
+ setThreatTier(tier: number, p2: boolean): void;
619
668
  /**
620
- * Old name: _GET_ENTITY_CAN_BE_DAMAGED
669
+ * Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
621
670
  *
622
671
  * @returns
623
672
  */
624
- getCanBeDamaged(): any;
673
+ getHeading(): number;
625
674
  /**
626
675
  * Seems to return true if entity is burned / scorched
627
676
  * *GET_ENTITY**
@@ -747,114 +796,92 @@ export declare class Entity implements IHandle {
747
796
  */
748
797
  getIsPredator(): any;
749
798
  /**
750
- * Returns entityType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityType
799
+ * enum eCarriableState
800
+ * {
801
+ * CARRIABLE_STATE_NONE,
802
+ * CARRIABLE_STATE_TRANSITIONING_TO_HOGTIED,
803
+ * CARRIABLE_STATE_CARRIABLE_INTRO,
804
+ * CARRIABLE_STATE_CARRIABLE,
805
+ * CARRIABLE_STATE_BEING_PICKED_UP_FROM_GROUND,
806
+ * CARRIABLE_STATE_CARRIED_BY_HUMAN,
807
+ * CARRIABLE_STATE_BEING_PLACED_ON_GROUND,
808
+ * CARRIABLE_STATE_CARRIED_BY_MOUNT,
809
+ * CARRIABLE_STATE_BEING_PLACED_ON_MOUNT,
810
+ * CARRIABLE_STATE_BEING_PICKED_UP_FROM_MOUNT,
811
+ * CARRIABLE_STATE_BEING_CUT_FREE,
812
+ * CARRIABLE_STATE_BEING_PLACED_ON_GROUND_ESCAPE,
813
+ * CARRIABLE_STATE_BEING_PLACED_IN_VEHICLE
814
+ * };
751
815
  *
752
816
  * @returns
753
817
  */
754
- getType(): number;
755
- /**
756
- * @returns
757
- */
758
- isOwnedByPersistenceSystem(): any;
759
- /**
760
- * @param animDict
761
- * @param animName
762
- * @param animType
763
- * @returns
764
- */
765
- isPlayingAnim(animDict: string | null, animName: string | null, animType: number): boolean;
818
+ getCarriableState(): number;
766
819
  /**
767
- * Marks the specified entity (ped, vehicle or object) as no longer needed, allowing the game engine to delete it whenever it sees fit.
820
+ * @param value
768
821
  */
769
- setAsNoLongerNeeded(): void;
822
+ setMaxHealth(value: number): void;
770
823
  /**
824
+ * Params: p1 (probably animType) = 1, 0
825
+ *
826
+ * @param p1
771
827
  * @returns
772
828
  */
773
- hasBeenDamagedByAnyVehicle(): boolean;
829
+ isPlayingAnyAnim(p1: number): boolean;
774
830
  /**
775
- * @param animDict
776
- * @param animName
777
- * @param speedMultiplier
831
+ * @param enabled
778
832
  */
779
- setAnimSpeed(animDict: string | null, animName: string | null, speedMultiplier: number): void;
780
- unpinMapEntity(): void;
833
+ setLightsEnabled(enabled: boolean): void;
781
834
  /**
782
- * Get how much of the entity is submerged. 1.0f is whole entity.
835
+ * Offset values are relative to the entity. x = left/right
836
+ * y = forward/backward
837
+ * z = up/down
783
838
  *
839
+ * @param offset
784
840
  * @returns
785
841
  */
786
- getSubmergedLevel(): number;
787
- /**
788
- * @returns
789
- */
790
- isAttached(): boolean;
842
+ getOffsetFromInWorldCoords(offset: Vector3): Vector3;
791
843
  /**
792
- * SET_ENTITY_A*
844
+ * Checks if entity1 is within the box defined by x/y/zSize of entity2. Last three parameters are almost always p5 = 0, p6 = 1, p7 = 0
793
845
  *
794
- * @param p1
795
- */
796
- N_0xC0EDEF16D90661EE(p1: number): void;
797
- /**
798
- * @param looted
799
- */
800
- setFullyLooted(looted: boolean): void;
801
- /**
846
+ * @param entity2
847
+ * @param xSize
848
+ * @param ySize
849
+ * @param zSize
850
+ * @param p5
851
+ * @param p6
852
+ * @param p7
802
853
  * @returns
803
854
  */
804
- isAttachedToAnyVehicle(): boolean;
805
- /**
806
- * @param p1
807
- */
808
- N_0xA48E4801DEBDF7E4(p1: boolean): void;
855
+ isAtEntity(entity2: Entity, xSize: number, ySize: number, zSize: number, p5: boolean, p6: boolean, p7: number): boolean;
809
856
  /**
810
857
  * @param toggle
811
- * @param keepPhysics
812
- */
813
- setCompletelyDisableCollision(toggle: boolean, keepPhysics: boolean): void;
814
- /**
815
- * @param p1
816
- */
817
- N_0xCDB682BB47C02F0A(p1: string | number): void;
818
- /**
819
- * @param volume
820
- * @param p2
821
- * @param p3
822
- * @returns
823
- */
824
- isInVolume(volume: number, p2: boolean, p3: number): boolean;
825
- /**
826
- * @returns rightVector; forwardVector; upVector; position
827
858
  */
828
- getMatrix(): [Vector3, Vector3, Vector3, Vector3];
859
+ setVisible(toggle: boolean): void;
829
860
  /**
830
- * 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.
861
+ * Old name: _SET_ENTITY_CLEANUP_BY_ENGINE
862
+ *
863
+ * @param toggle
831
864
  */
832
- N_0x371D179701D9C082(): void;
865
+ setShouldFreezeWaitingOnCollision(toggle: boolean): void;
833
866
  /**
834
- * @param p1
867
+ * Note: this native was removed in 1232 but added back in 1311
868
+ * Old name: _GET_ENTITY_PROOFS
869
+ *
835
870
  * @returns
836
871
  */
837
- getMaxHealth(p1: boolean): number;
838
- /**
839
- * @param animDict
840
- * @param animName
841
- * @param time
842
- */
843
- setAnimCurrentTime(animDict: string | null, animName: string | null, time: number): void;
872
+ getProofs(): number;
844
873
  /**
845
- * Gets the current coordinates for a specified entity.
846
- * `entity` = The entity to get the coordinates from.
847
- * `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.
874
+ * skin - everything alpha except skin
875
+ * Set entity alpha level. Ranging from 0 to 255 but changes occur after every 20 percent (after every 51).
848
876
  *
849
- * @param alive
850
- * @param realCoords
851
- * @returns
877
+ * @param alphaLevel
878
+ * @param skin
852
879
  */
853
- getCoords(alive: boolean, realCoords: boolean): Vector3;
880
+ setAlpha(alphaLevel: number, skin: boolean): void;
854
881
  /**
855
882
  * @returns
856
883
  */
857
- isAnObject(): boolean;
884
+ getThreatTier(): number;
858
885
  /**
859
886
  * Used in Script Function DUELING_DID_PLAYER_DISARM_OPPONENT
860
887
  *
@@ -914,64 +941,68 @@ export declare class Entity implements IHandle {
914
941
  */
915
942
  isAtCoord(pos: Vector3, xSize: number, ySize: number, zSize: number, p7: boolean, p8: boolean, p9: number): boolean;
916
943
  /**
917
- * 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).
918
- *
919
- * @param value
944
+ * @returns
920
945
  */
921
- setLodDist(value: number): void;
946
+ isUpsidedown(): boolean;
922
947
  /**
923
- * @param toggle
948
+ * @param p1
949
+ * @returns
924
950
  */
925
- setDynamic(toggle: boolean): void;
951
+ doesBelongToThisScript(p1: boolean): boolean;
926
952
  /**
927
- * @param radius
953
+ * Returns a hash of an entity's name. (Alternative Name: _GET_ENTITY_PROMPT_NAME_HASH)
954
+ *
955
+ * @returns
928
956
  */
929
- setCustomPickupRadius(radius: number): void;
957
+ getCarriableFromEntity(): number;
930
958
  /**
931
- * @returns
959
+ * @param toggle
960
+ * @param keepPhysics
932
961
  */
933
- getPopulationType(): number;
962
+ setCollision(toggle: boolean, keepPhysics: boolean): void;
934
963
  /**
964
+ * @param p1
935
965
  * @returns
936
966
  */
937
- isAVehicle(): boolean;
967
+ placeOnGroundProperly(p1: boolean): any;
938
968
  /**
939
- * @param pos
940
- * @param atTop
941
- * @param inWorldCoords
942
969
  * @returns
943
970
  */
944
- getHeight(pos: Vector3, atTop: boolean, inWorldCoords: boolean): number;
971
+ isInWater(): boolean;
945
972
  /**
946
- * @param pos
947
- * @returns
973
+ * @returns Returns `true` if the entity exists
948
974
  */
949
- getOffsetFromGivenWorldCoords(pos: Vector3): Vector3;
950
- addTrackingTrails(): void;
975
+ doesExist(): boolean;
951
976
  /**
952
- * @param toggle
977
+ * @returns
953
978
  */
954
- setCanClimbOnEntity(toggle: boolean): void;
979
+ getAlpha(): number;
955
980
  /**
956
- * @returns minimum; maximum
981
+ * This native only works on `Ped` and `Object` entity types
982
+ *
983
+ * @param flagId Refer to [enum: eCarryingFlags]
984
+ * @returns
957
985
  */
958
- getWorldPositionOfDimensions(): [Vector3, Vector3];
986
+ getCarryingFlag(flagId: eCarryingFlags): number;
959
987
  /**
960
988
  * @param p1
961
- * @returns
962
989
  */
963
- isUnderwater(p1: boolean): any;
990
+ forceAiAndAnimationUpdate(p1: boolean): void;
964
991
  /**
965
- * @param animation
966
- * @param animGroup
967
- * @param p3
968
- * @returns
992
+ * Axis - Invert Axis Flags
993
+ *
994
+ * @param pos
995
+ * @param xAxis
996
+ * @param yAxis
997
+ * @param zAxis
969
998
  */
970
- stopAnim(animation: string | null, animGroup: string | null, p3: number): any;
999
+ setCoordsNoOffset(pos: Vector3, xAxis: boolean, yAxis: boolean, zAxis: boolean): void;
971
1000
  /**
1001
+ * Returns (CUR_HEALTH / MAX_HEALTH)
1002
+ *
972
1003
  * @returns
973
1004
  */
974
- hasCollidedWithAnything(): boolean;
1005
+ getHealthFloat(): number;
975
1006
  /**
976
1007
  * @param entity2
977
1008
  * @param p2
@@ -1067,35 +1098,5 @@ export declare class Entity implements IHandle {
1067
1098
  * @returns
1068
1099
  */
1069
1100
  isUpright(angle: number): boolean;
1070
- /**
1071
- * Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
1072
- *
1073
- * @returns
1074
- */
1075
- getVehicleIndexFromIndex(): Vehicle | null;
1076
- /**
1077
- * @returns
1078
- */
1079
- isVisible(): boolean;
1080
- /**
1081
- * SET_ENTITY_LO*
1082
- *
1083
- * @param toggle
1084
- */
1085
- N_0xFF9965C47FA404DA(toggle: boolean): void;
1086
- /**
1087
- * Valid indices: 0 - 3
1088
- * Index 1 always returns a `hogtied` config, doesn't matter the entity.
1089
- * It's for humans only and the ped must be resurrected first if it's dead.
1090
- *
1091
- * @param index
1092
- * @returns
1093
- */
1094
- getOptimalCarryConfig(index: number): string | number;
1095
- setFadeIn(): void;
1096
- /**
1097
- * @returns
1098
- */
1099
- hasBeenDamagedByAnyPed(): boolean;
1100
1101
  }
1101
1102
  //# sourceMappingURL=Entity.d.ts.map