@nativewrappers/redm-codegen 0.0.2 → 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 (248) hide show
  1. package/dist/classes/AnimScene.d.ts +101 -101
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +147 -147
  4. package/dist/classes/BaseModel.d.ts +12 -12
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +18 -18
  7. package/dist/classes/BaseTask.d.ts +22 -22
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +29 -29
  10. package/dist/classes/Cam.d.ts +86 -86
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +116 -116
  13. package/dist/classes/Entity.d.ts +426 -425
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +594 -589
  16. package/dist/classes/Interior.d.ts +1 -1
  17. package/dist/classes/Interior.d.ts.map +1 -1
  18. package/dist/classes/Ped.d.ts +13 -12
  19. package/dist/classes/Ped.d.ts.map +1 -1
  20. package/dist/classes/Ped.js +5 -0
  21. package/dist/classes/PedTask.d.ts +729 -729
  22. package/dist/classes/PedTask.d.ts.map +1 -1
  23. package/dist/classes/PedTask.js +951 -951
  24. package/dist/classes/PersChar.d.ts +11 -11
  25. package/dist/classes/PersChar.d.ts.map +1 -1
  26. package/dist/classes/PersChar.js +17 -17
  27. package/dist/classes/Pickup.d.ts +3 -3
  28. package/dist/classes/Pickup.d.ts.map +1 -1
  29. package/dist/classes/Pickup.js +7 -7
  30. package/dist/classes/Player.d.ts +164 -164
  31. package/dist/classes/Player.d.ts.map +1 -1
  32. package/dist/classes/Player.js +218 -218
  33. package/dist/classes/Prop.d.ts +87 -86
  34. package/dist/classes/Prop.d.ts.map +1 -1
  35. package/dist/classes/Prop.js +131 -126
  36. package/dist/classes/PropSet.d.ts +18 -18
  37. package/dist/classes/PropSet.d.ts.map +1 -1
  38. package/dist/classes/PropSet.js +25 -25
  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 +18 -18
  43. package/dist/classes/VehicleTask.d.ts.map +1 -1
  44. package/dist/classes/VehicleTask.js +26 -26
  45. package/dist/classes/Volume.d.ts +1 -1
  46. package/dist/classes/Volume.d.ts.map +1 -1
  47. package/dist/classes/Weapon.d.ts +277 -277
  48. package/dist/classes/Weapon.d.ts.map +1 -1
  49. package/dist/classes/Weapon.js +398 -398
  50. package/dist/namespaces/Aitransport.d.ts +77 -77
  51. package/dist/namespaces/Aitransport.d.ts.map +1 -1
  52. package/dist/namespaces/Aitransport.js +94 -94
  53. package/dist/namespaces/Animscene.d.ts +51 -51
  54. package/dist/namespaces/Animscene.d.ts.map +1 -1
  55. package/dist/namespaces/Animscene.js +69 -69
  56. package/dist/namespaces/Audio.d.ts +2 -2
  57. package/dist/namespaces/Audio.d.ts.map +1 -1
  58. package/dist/namespaces/Bounty.d.ts +57 -57
  59. package/dist/namespaces/Bounty.d.ts.map +1 -1
  60. package/dist/namespaces/Bounty.js +90 -90
  61. package/dist/namespaces/Brain.d.ts +15 -15
  62. package/dist/namespaces/Brain.d.ts.map +1 -1
  63. package/dist/namespaces/Brain.js +20 -20
  64. package/dist/namespaces/CamStatics.d.ts +317 -317
  65. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  66. package/dist/namespaces/CamStatics.js +449 -449
  67. package/dist/namespaces/Collection.d.ts +13 -13
  68. package/dist/namespaces/Collection.d.ts.map +1 -1
  69. package/dist/namespaces/Collection.js +8 -8
  70. package/dist/namespaces/Companion.d.ts +22 -22
  71. package/dist/namespaces/Companion.d.ts.map +1 -1
  72. package/dist/namespaces/Companion.js +30 -30
  73. package/dist/namespaces/Compendium.d.ts +60 -60
  74. package/dist/namespaces/Compendium.d.ts.map +1 -1
  75. package/dist/namespaces/Compendium.js +80 -80
  76. package/dist/namespaces/Crashlog.d.ts +10 -10
  77. package/dist/namespaces/Crashlog.d.ts.map +1 -1
  78. package/dist/namespaces/Crashlog.js +14 -14
  79. package/dist/namespaces/Databinding.d.ts +173 -173
  80. package/dist/namespaces/Databinding.d.ts.map +1 -1
  81. package/dist/namespaces/Databinding.js +263 -263
  82. package/dist/namespaces/Dlc.d.ts +5 -5
  83. package/dist/namespaces/Dlc.d.ts.map +1 -1
  84. package/dist/namespaces/Dlc.js +9 -9
  85. package/dist/namespaces/EntityStatics.d.ts +178 -178
  86. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  87. package/dist/namespaces/EntityStatics.js +242 -242
  88. package/dist/namespaces/Event.d.ts +62 -62
  89. package/dist/namespaces/Event.d.ts.map +1 -1
  90. package/dist/namespaces/Event.js +82 -82
  91. package/dist/namespaces/Fire.d.ts +7 -7
  92. package/dist/namespaces/Fire.d.ts.map +1 -1
  93. package/dist/namespaces/Fire.js +9 -9
  94. package/dist/namespaces/Graphics.d.ts +797 -797
  95. package/dist/namespaces/Graphics.d.ts.map +1 -1
  96. package/dist/namespaces/Graphics.js +1095 -1095
  97. package/dist/namespaces/Hud.d.ts +477 -477
  98. package/dist/namespaces/Hud.d.ts.map +1 -1
  99. package/dist/namespaces/Hud.js +721 -721
  100. package/dist/namespaces/InteriorStatics.d.ts +2 -2
  101. package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
  102. package/dist/namespaces/Inventory.d.ts +216 -216
  103. package/dist/namespaces/Inventory.d.ts.map +1 -1
  104. package/dist/namespaces/Inventory.js +301 -301
  105. package/dist/namespaces/Itemdatabase.d.ts +8 -8
  106. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  107. package/dist/namespaces/Itemdatabase.js +7 -7
  108. package/dist/namespaces/Law.d.ts +2 -2
  109. package/dist/namespaces/Law.d.ts.map +1 -1
  110. package/dist/namespaces/Map.d.ts +65 -65
  111. package/dist/namespaces/Map.d.ts.map +1 -1
  112. package/dist/namespaces/Map.js +91 -91
  113. package/dist/namespaces/Minigame.d.ts +17 -17
  114. package/dist/namespaces/Minigame.d.ts.map +1 -1
  115. package/dist/namespaces/Minigame.js +25 -25
  116. package/dist/namespaces/Misc.d.ts +5 -5
  117. package/dist/namespaces/Misc.d.ts.map +1 -1
  118. package/dist/namespaces/Missiondata.d.ts +3 -3
  119. package/dist/namespaces/Missiondata.d.ts.map +1 -1
  120. package/dist/namespaces/Netshopping.d.ts +1 -1
  121. package/dist/namespaces/Netshopping.d.ts.map +1 -1
  122. package/dist/namespaces/Network.d.ts +1302 -1310
  123. package/dist/namespaces/Network.d.ts.map +1 -1
  124. package/dist/namespaces/Network.js +1910 -1918
  125. package/dist/namespaces/Object.d.ts +170 -170
  126. package/dist/namespaces/Object.d.ts.map +1 -1
  127. package/dist/namespaces/Object.js +232 -232
  128. package/dist/namespaces/Pad.d.ts +103 -103
  129. package/dist/namespaces/Pad.d.ts.map +1 -1
  130. package/dist/namespaces/Pad.js +134 -134
  131. package/dist/namespaces/PedStatics.d.ts +3 -3
  132. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  133. package/dist/namespaces/Perschar.d.ts +71 -71
  134. package/dist/namespaces/Perschar.d.ts.map +1 -1
  135. package/dist/namespaces/Perschar.js +106 -106
  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/PlayerStatics.d.ts +52 -52
  140. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  141. package/dist/namespaces/PlayerStatics.js +71 -71
  142. package/dist/namespaces/Population.d.ts +3 -3
  143. package/dist/namespaces/Population.d.ts.map +1 -1
  144. package/dist/namespaces/Posse.d.ts +28 -28
  145. package/dist/namespaces/Posse.d.ts.map +1 -1
  146. package/dist/namespaces/Posse.js +44 -44
  147. package/dist/namespaces/Propset.d.ts +59 -59
  148. package/dist/namespaces/Propset.d.ts.map +1 -1
  149. package/dist/namespaces/Propset.js +81 -81
  150. package/dist/namespaces/Scripts.d.ts +3 -3
  151. package/dist/namespaces/Scripts.d.ts.map +1 -1
  152. package/dist/namespaces/Socialclub.d.ts +1 -1
  153. package/dist/namespaces/Socialclub.d.ts.map +1 -1
  154. package/dist/namespaces/Stats.d.ts +85 -85
  155. package/dist/namespaces/Stats.d.ts.map +1 -1
  156. package/dist/namespaces/Stats.js +113 -113
  157. package/dist/namespaces/Streaming.d.ts +35 -35
  158. package/dist/namespaces/Streaming.d.ts.map +1 -1
  159. package/dist/namespaces/Streaming.js +53 -53
  160. package/dist/namespaces/Task.d.ts +367 -367
  161. package/dist/namespaces/Task.d.ts.map +1 -1
  162. package/dist/namespaces/Task.js +508 -508
  163. package/dist/namespaces/Telemetry.d.ts +198 -198
  164. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  165. package/dist/namespaces/Telemetry.js +274 -274
  166. package/dist/namespaces/Uiapps.d.ts +24 -24
  167. package/dist/namespaces/Uiapps.d.ts.map +1 -1
  168. package/dist/namespaces/Uiapps.js +33 -33
  169. package/dist/namespaces/Uistickyfeed.d.ts +16 -16
  170. package/dist/namespaces/Uistickyfeed.d.ts.map +1 -1
  171. package/dist/namespaces/Uistickyfeed.js +21 -21
  172. package/dist/namespaces/VehicleStatics.d.ts +2 -2
  173. package/dist/namespaces/VehicleStatics.d.ts.map +1 -1
  174. package/dist/namespaces/Water.d.ts +27 -27
  175. package/dist/namespaces/Water.d.ts.map +1 -1
  176. package/dist/namespaces/Water.js +41 -41
  177. package/dist/namespaces/WeaponStatics.d.ts +250 -250
  178. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  179. package/dist/namespaces/WeaponStatics.js +372 -372
  180. package/dist/namespaces/Zone.d.ts +8 -8
  181. package/dist/namespaces/Zone.d.ts.map +1 -1
  182. package/dist/namespaces/Zone.js +9 -9
  183. package/package.json +1 -1
  184. package/src/classes/AnimScene.ts +170 -170
  185. package/src/classes/BaseModel.ts +21 -21
  186. package/src/classes/BaseTask.ts +31 -31
  187. package/src/classes/Cam.ts +124 -124
  188. package/src/classes/Entity.ts +619 -614
  189. package/src/classes/Interior.ts +1 -1
  190. package/src/classes/Ped.ts +17 -12
  191. package/src/classes/PedTask.ts +1011 -1011
  192. package/src/classes/PersChar.ts +19 -19
  193. package/src/classes/Pickup.ts +8 -8
  194. package/src/classes/Player.ts +227 -227
  195. package/src/classes/Prop.ts +146 -141
  196. package/src/classes/PropSet.ts +29 -29
  197. package/src/classes/Vehicle.ts +5 -0
  198. package/src/classes/VehicleTask.ts +30 -30
  199. package/src/classes/Volume.ts +1 -1
  200. package/src/classes/Weapon.ts +414 -414
  201. package/src/namespaces/Aitransport.ts +102 -102
  202. package/src/namespaces/Animscene.ts +78 -78
  203. package/src/namespaces/Audio.ts +2 -2
  204. package/src/namespaces/Bounty.ts +102 -102
  205. package/src/namespaces/Brain.ts +22 -22
  206. package/src/namespaces/CamStatics.ts +501 -501
  207. package/src/namespaces/Collection.ts +16 -16
  208. package/src/namespaces/Companion.ts +34 -34
  209. package/src/namespaces/Compendium.ts +93 -93
  210. package/src/namespaces/Crashlog.ts +16 -16
  211. package/src/namespaces/Databinding.ts +280 -280
  212. package/src/namespaces/Dlc.ts +9 -9
  213. package/src/namespaces/EntityStatics.ts +249 -249
  214. package/src/namespaces/Event.ts +92 -92
  215. package/src/namespaces/Fire.ts +10 -10
  216. package/src/namespaces/Graphics.ts +1155 -1155
  217. package/src/namespaces/Hud.ts +763 -763
  218. package/src/namespaces/InteriorStatics.ts +2 -2
  219. package/src/namespaces/Inventory.ts +321 -321
  220. package/src/namespaces/Itemdatabase.ts +11 -11
  221. package/src/namespaces/Law.ts +2 -2
  222. package/src/namespaces/Map.ts +104 -104
  223. package/src/namespaces/Minigame.ts +29 -29
  224. package/src/namespaces/Misc.ts +5 -5
  225. package/src/namespaces/Missiondata.ts +3 -3
  226. package/src/namespaces/Netshopping.ts +1 -1
  227. package/src/namespaces/Network.ts +1921 -1929
  228. package/src/namespaces/Object.ts +237 -237
  229. package/src/namespaces/Pad.ts +151 -151
  230. package/src/namespaces/PedStatics.ts +3 -3
  231. package/src/namespaces/Perschar.ts +116 -116
  232. package/src/namespaces/Persistence.ts +48 -48
  233. package/src/namespaces/PlayerStatics.ts +75 -75
  234. package/src/namespaces/Population.ts +3 -3
  235. package/src/namespaces/Posse.ts +47 -47
  236. package/src/namespaces/Propset.ts +92 -92
  237. package/src/namespaces/Scripts.ts +3 -3
  238. package/src/namespaces/Socialclub.ts +1 -1
  239. package/src/namespaces/Stats.ts +129 -129
  240. package/src/namespaces/Streaming.ts +62 -62
  241. package/src/namespaces/Task.ts +538 -538
  242. package/src/namespaces/Telemetry.ts +295 -295
  243. package/src/namespaces/Uiapps.ts +39 -39
  244. package/src/namespaces/Uistickyfeed.ts +23 -23
  245. package/src/namespaces/VehicleStatics.ts +2 -2
  246. package/src/namespaces/Water.ts +47 -47
  247. package/src/namespaces/WeaponStatics.ts +394 -394
  248. package/src/namespaces/Zone.ts +11 -11
@@ -11,185 +11,237 @@ 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
  /**
53
- * @returns
54
+ * @param toggle
54
55
  */
55
- isVisibleToScript(): boolean;
56
+ setHasGravity(toggle: boolean): void;
56
57
  /**
57
- * @param entity2
58
- * @param traceType
58
+ * @param relative
59
59
  * @returns
60
60
  */
61
- hasClearLosToEntity(entity2: Entity, traceType: number): boolean;
61
+ getSpeedVector(relative: boolean): Vector3;
62
62
  /**
63
- * Used in Script Function GENERIC_ITEM_HAS_ANIM_COMPLETED
64
- * *GET_ENTITY**
65
- *
66
- * @param animDict
67
- * @param animClip
63
+ * @param entity2
64
+ * @param p2
65
+ * @param p3
68
66
  * @returns
69
67
  */
70
- N_0x8E46E18AA828334F(animDict: string | null, animClip: string | null): number;
68
+ hasBeenDamagedByEntity(entity2: Entity, p2: boolean, p3: boolean): boolean;
71
69
  /**
72
- * @param playerPedToIgnore
73
- * @param flags
74
70
  * @returns
75
71
  */
76
- getNearestPlayerToEntity(playerPedToIgnore: Ped, flags: number): Player | null;
72
+ isFullyLooted(): any;
77
73
  /**
78
- * Gets the Y-component of the entity's forward vector.
79
- *
80
74
  * @returns
81
75
  */
82
- getForwardY(): number;
76
+ isOccluded(): boolean;
83
77
  /**
84
- * @param pitch
85
- * @param roll
86
- * @param yaw
87
- * @param rotationOrder
88
- * @param p5
78
+ * @param toggle
89
79
  */
90
- setRotation(pitch: number, roll: number, yaw: number, rotationOrder: number, p5: boolean): void;
80
+ setCanBeDamaged(toggle: boolean): void;
91
81
  /**
92
- * @param p1
93
- * @param relationshipGroup
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
94
91
  */
95
- setOnlyDamagedByRelationshipGroup(p1: boolean, relationshipGroup: string | number): void;
92
+ applyForceToEntity(forceFlags: number, pos: Vector3, offset: Vector3, boneIndex: number, isDirectionRel: boolean, ignoreUpVec: boolean, isForceRel: boolean, p12: boolean, p13: boolean): void;
96
93
  /**
97
- * https://github.com/femga/rdr3_discoveries/tree/master/AI/ENTITY_PROOFS
98
- * 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
99
- *
100
- * @param proofsBitset
101
- * @param specialFlag
94
+ * @returns
102
95
  */
103
- setProofs(proofsBitset: number, specialFlag: boolean): void;
96
+ isDead(): boolean;
104
97
  /**
98
+ * @param pos1
99
+ * @param pos2
100
+ * @param p7
101
+ * @param p8
102
+ * @param p9
105
103
  * @returns
106
104
  */
107
- hasCollisionLoadedAroundEntity(): boolean;
105
+ isInArea(pos1: Vector3, pos2: Vector3, p7: boolean, p8: boolean, p9: any): boolean;
108
106
  /**
107
+ * Returns the coordinates of an entity-bone.
108
+ * https://github.com/femga/rdr3_discoveries/tree/master/boneNames
109
+ *
110
+ * @param boneIndex
109
111
  * @returns
110
112
  */
111
- getIsCarriablePelt(): any;
113
+ getWorldPositionOfBone(boneIndex: number): Vector3;
112
114
  /**
113
- * @param p1
115
+ * https://github.com/femga/rdr3_discoveries/tree/master/animations
116
+ *
117
+ * @param animName
118
+ * @param animDict
119
+ * @param p3
120
+ * @param loop
121
+ * @param stayInAnim
122
+ * @param p6
123
+ * @param delta
124
+ * @param bitset
114
125
  * @returns
115
126
  */
116
- getVelocity(p1: number): Vector3;
127
+ playAnim(animName: string | null, animDict: string | null, p3: number, loop: boolean, stayInAnim: boolean, p6: boolean, delta: number, bitset: any): boolean;
117
128
  /**
118
- * @param toggle
129
+ * Returns false if entity is not a ped or object.
130
+ *
131
+ * @returns lootTable
119
132
  */
120
- setCanAutoVaultOnEntity(toggle: boolean): void;
133
+ getScriptOverrideLootTablePermanent(): [any, number];
121
134
  /**
122
- * 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.
123
- * https://github.com/femga/rdr3_discoveries/blob/master/AI/EVENTS/loot_rewards.lua
124
- *
125
- * @param lootTable
135
+ * @param animDict
136
+ * @param animName
137
+ * @param p3
126
138
  * @returns
127
139
  */
128
- scriptOverrideLootTablePermanent(lootTable: string | number): any;
140
+ hasAnimFinished(animDict: string | null, animName: string | null, p3: number): boolean;
129
141
  /**
130
- * @returns argStruct
142
+ * @param bCanBeDamaged
143
+ * @param relGroup
131
144
  */
132
- getScript(): [string | number, number];
145
+ setCanBeDamagedByRelationshipGroup(bCanBeDamaged: boolean, relGroup: string | number): void;
133
146
  /**
134
- * @param actionHash
135
147
  * @returns
136
148
  */
137
- hasAnimEventFired(actionHash: string | number): boolean;
149
+ getUprightValue(): number;
138
150
  /**
139
- * @param p1
151
+ * @param pos
152
+ * @param heading
153
+ * @param xAxis
154
+ * @param yAxis
155
+ * @param zAxis
140
156
  */
141
- N_0xEF259AA1E097E0AD(p1: any): void;
157
+ setCoordsAndHeading(pos: Vector3, heading: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): void;
142
158
  /**
143
- * Getter for FREEZE_ENTITY_POSITION
159
+ * Returns zero if the entity is not a carriable
144
160
  *
145
161
  * @returns
146
162
  */
147
- isFrozen(): any;
163
+ getCarryConfig(): number;
148
164
  /**
149
- * Returns the entity that is looting a ped but only while the looting is active
165
+ * tier: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityThreatTier
150
166
  *
151
- * @returns
167
+ * @param tier
168
+ * @param p2
152
169
  */
153
- getLootingPed(): Ped | null;
170
+ setThreatTier(tier: number, p2: boolean): void;
154
171
  /**
172
+ * Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
173
+ *
155
174
  * @returns
156
175
  */
157
- isWaitingForWorldCollision(): boolean;
176
+ getHeading(): number;
158
177
  /**
159
- * Gets the X-component of the entity's forward vector.
178
+ * Returns the LOD distance of an entity.
160
179
  *
161
180
  * @returns
162
181
  */
163
- getForwardX(): number;
182
+ getLodDist(): number;
164
183
  /**
165
184
  * @returns
166
185
  */
167
- isAPed(): boolean;
186
+ doesHaveDrawable(): boolean;
168
187
  /**
169
- * @returns
188
+ * @param xyzw
170
189
  */
171
- getPitch(): number;
190
+ setQuaternion(xyzw: Vector4): void;
172
191
  /**
173
192
  * @returns
174
193
  */
175
- isStatic(): boolean;
194
+ isAttachedToAnyObject(): boolean;
176
195
  /**
177
- * Returns the model hash from the entity
196
+ * Sets a ped or an object totally invincible. It doesn't take any kind of damage. Peds will not ragdoll on explosions.
197
+ *
198
+ * @param toggle
199
+ */
200
+ setInvincible(toggle: boolean): void;
201
+ /**
202
+ * 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.
203
+ * https://github.com/femga/rdr3_discoveries/tree/master/boneNames useSoftPinning - if set to false attached entity will not detach when fixed
204
+ * collision - controls collision between the two entities (FALSE disables collision).
205
+ * isPed - pitch doesn't work when false and roll will only work on negative numbers (only peds)
206
+ * vertexIndex - position of vertex
207
+ * fixedRot - if false it ignores entity vector
178
208
  *
209
+ * @param entity2
210
+ * @param boneIndex
211
+ * @param pos
212
+ * @param rot
213
+ * @param p9
214
+ * @param useSoftPinning
215
+ * @param collision
216
+ * @param isPed
217
+ * @param vertexIndex
218
+ * @param fixedRot
219
+ * @param p15
220
+ * @param p16
221
+ */
222
+ 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;
223
+ /**
179
224
  * @returns
180
225
  */
181
- getModel(): string | number;
226
+ getIsAnimal(): any;
182
227
  /**
183
- * Deletes the specified entity, then sets the handle pointed to by the pointer to NULL.
228
+ * p6/relative - makes the xyz force not relative to world coords, but to something else
229
+ * p7/highForce - setting false will make the force really low
230
+ *
231
+ * @param forceType
232
+ * @param pos
233
+ * @param component
234
+ * @param isDirectionRel
235
+ * @param isForceRel
236
+ * @param p8
184
237
  */
185
- deleteEntity(): void;
238
+ applyForceToCenterOfMass(forceType: number, pos: Vector3, component: number, isDirectionRel: boolean, isForceRel: boolean, p8: boolean): void;
186
239
  /**
187
- * @param team
188
- * @param playerPedToIgnore
189
- * @param flags
240
+ * Old name: _GET_ENTITY_CAN_BE_DAMAGED
241
+ *
190
242
  * @returns
191
243
  */
192
- getNearestPlayerToOnTeam(team: number, playerPedToIgnore: Ped, flags: number): Player | null;
244
+ getCanBeDamaged(): any;
193
245
  /**
194
246
  * @param p1
195
247
  */
@@ -243,92 +295,58 @@ export declare class Entity implements IHandle {
243
295
  */
244
296
  getNearestParticipantToEntity(): Player | null;
245
297
  /**
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
- * };
262
- *
263
- * @returns
298
+ * @param p1
264
299
  */
265
- getCarriableState(): number;
300
+ N_0xA48E4801DEBDF7E4(p1: boolean): void;
266
301
  /**
267
- * @param value
302
+ * @param toggle
303
+ * @param keepPhysics
268
304
  */
269
- setMaxHealth(value: number): void;
305
+ setCompletelyDisableCollision(toggle: boolean, keepPhysics: boolean): void;
270
306
  /**
271
- * Params: p1 (probably animType) = 1, 0
272
- *
273
307
  * @param p1
274
- * @returns
275
308
  */
276
- isPlayingAnyAnim(p1: number): boolean;
277
- /**
278
- * @param enabled
279
- */
280
- setLightsEnabled(enabled: boolean): void;
309
+ N_0xCDB682BB47C02F0A(p1: string | number): void;
281
310
  /**
282
- * Offset values are relative to the entity. x = left/right
283
- * y = forward/backward
284
- * z = up/down
285
- *
286
- * @param offset
311
+ * @param volume
312
+ * @param p2
313
+ * @param p3
287
314
  * @returns
288
315
  */
289
- getOffsetFromInWorldCoords(offset: Vector3): Vector3;
316
+ isInVolume(volume: number, p2: boolean, p3: number): boolean;
290
317
  /**
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
292
- *
293
- * @param entity2
294
- * @param xSize
295
- * @param ySize
296
- * @param zSize
297
- * @param p5
298
- * @param p6
299
- * @param p7
300
- * @returns
318
+ * @returns rightVector; forwardVector; upVector; position
301
319
  */
302
- isAtEntity(entity2: Entity, xSize: number, ySize: number, zSize: number, p5: boolean, p6: boolean, p7: number): boolean;
320
+ getMatrix(): [Vector3, Vector3, Vector3, Vector3];
303
321
  /**
304
- * @param toggle
322
+ * 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.
305
323
  */
306
- setVisible(toggle: boolean): void;
324
+ N_0x371D179701D9C082(): void;
307
325
  /**
308
- * Old name: _SET_ENTITY_CLEANUP_BY_ENGINE
309
- *
310
- * @param toggle
326
+ * @param p1
327
+ * @returns
311
328
  */
312
- setShouldFreezeWaitingOnCollision(toggle: boolean): void;
329
+ getMaxHealth(p1: boolean): number;
313
330
  /**
314
- * Note: this native was removed in 1232 but added back in 1311
315
- * Old name: _GET_ENTITY_PROOFS
316
- *
317
- * @returns
331
+ * @param animDict
332
+ * @param animName
333
+ * @param time
318
334
  */
319
- getProofs(): number;
335
+ setAnimCurrentTime(animDict: string | null, animName: string | null, time: number): void;
320
336
  /**
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).
337
+ * Gets the current coordinates for a specified entity.
338
+ * `entity` = The entity to get the coordinates from.
339
+ * `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.
323
340
  *
324
- * @param alphaLevel
325
- * @param skin
341
+ * @param alive
342
+ * @param realCoords
343
+ * @returns
326
344
  */
327
- setAlpha(alphaLevel: number, skin: boolean): void;
345
+ getCoords(alive?: boolean, realCoords?: boolean): Vector3;
328
346
  /**
329
347
  * @returns
330
348
  */
331
- getThreatTier(): number;
349
+ isAnObject(): boolean;
332
350
  /**
333
351
  * @returns
334
352
  */
@@ -343,7 +361,7 @@ export declare class Entity implements IHandle {
343
361
  *
344
362
  * @returns
345
363
  */
346
- getCarriableFromEntity(): string | number;
364
+ getCarriableFromEntity(): number;
347
365
  /**
348
366
  * @param toggle
349
367
  * @param keepPhysics
@@ -393,235 +411,273 @@ export declare class Entity implements IHandle {
393
411
  */
394
412
  getHealthFloat(): number;
395
413
  /**
396
- * @returns
414
+ * 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).
415
+ *
416
+ * @param value
397
417
  */
398
- getIsBird(): any;
418
+ setLodDist(value: number): void;
399
419
  /**
400
- * Gets the entity's forward vector in YX(Z) eulers. Similar to GET_ENTITY_FORWARD_VECTOR
401
- *
402
- * @returns
420
+ * @param toggle
403
421
  */
404
- getForwardVectorYx(): Vector3;
422
+ setDynamic(toggle: boolean): void;
405
423
  /**
406
- * @param pos
407
- * @param xAxis
408
- * @param yAxis
409
- * @param zAxis
410
- * @param clearArea
424
+ * @param radius
411
425
  */
412
- setCoords(pos: Vector3, xAxis: boolean, yAxis: boolean, zAxis: boolean, clearArea: boolean): void;
426
+ setCustomPickupRadius(radius: number): void;
413
427
  /**
414
- * @param boneName
415
428
  * @returns
416
429
  */
417
- getBoneIndexByName(boneName: string | null): number;
430
+ getPopulationType(): number;
418
431
  /**
419
- * @param pause
432
+ * @returns
420
433
  */
421
- pauseTracking(pause: boolean): void;
434
+ isAVehicle(): boolean;
422
435
  /**
423
- * @param toggle
436
+ * @param pos
437
+ * @param atTop
438
+ * @param inWorldCoords
439
+ * @returns
424
440
  */
425
- setLoadCollisionFlag(toggle: boolean): void;
441
+ getHeight(pos: Vector3, atTop: boolean, inWorldCoords: boolean): number;
426
442
  /**
427
- * Changes type and quality of skins
428
- * type hashes: https://pastebin.com/C1WvQjCy
429
- *
430
- * @param type
443
+ * @param pos
444
+ * @returns
431
445
  */
432
- setCarcassType(type: string | number): void;
446
+ getOffsetFromGivenWorldCoords(pos: Vector3): Vector3;
447
+ addTrackingTrails(): void;
433
448
  /**
434
449
  * @param toggle
435
450
  */
436
- setHasGravity(toggle: boolean): void;
451
+ setCanClimbOnEntity(toggle: boolean): void;
437
452
  /**
438
- * @param relative
453
+ * @returns minimum; maximum
454
+ */
455
+ getWorldPositionOfDimensions(): [Vector3, Vector3];
456
+ /**
457
+ * @param p1
439
458
  * @returns
440
459
  */
441
- getSpeedVector(relative: boolean): Vector3;
460
+ isUnderwater(p1: boolean): any;
442
461
  /**
443
- * @param entity2
444
- * @param p2
462
+ * @param animation
463
+ * @param animGroup
445
464
  * @param p3
446
465
  * @returns
447
466
  */
448
- hasBeenDamagedByEntity(entity2: Entity, p2: boolean, p3: boolean): boolean;
467
+ stopAnim(animation: string | null, animGroup: string | null, p3: number): any;
449
468
  /**
450
469
  * @returns
451
470
  */
452
- isFullyLooted(): any;
471
+ hasCollidedWithAnything(): boolean;
453
472
  /**
473
+ * Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
474
+ *
454
475
  * @returns
455
476
  */
456
- isOccluded(): boolean;
477
+ getVehicleIndexFromIndex(): Vehicle | null;
457
478
  /**
458
- * @param toggle
479
+ * @returns
459
480
  */
460
- setCanBeDamaged(toggle: boolean): void;
481
+ isVisible(): boolean;
461
482
  /**
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
483
+ * SET_ENTITY_LO*
484
+ *
485
+ * @param toggle
471
486
  */
472
- applyForceToEntity(forceFlags: number, pos: Vector3, offset: Vector3, boneIndex: number, isDirectionRel: boolean, ignoreUpVec: boolean, isForceRel: boolean, p12: boolean, p13: boolean): void;
487
+ N_0xFF9965C47FA404DA(toggle: boolean): void;
473
488
  /**
489
+ * Valid indices: 0 - 3
490
+ * Index 1 always returns a `hogtied` config, doesn't matter the entity.
491
+ * It's for humans only and the ped must be resurrected first if it's dead.
492
+ *
493
+ * @param index
474
494
  * @returns
475
495
  */
476
- isDead(): boolean;
496
+ getOptimalCarryConfig(index: number): number;
497
+ setFadeIn(): void;
477
498
  /**
478
- * @param pos1
479
- * @param pos2
480
- * @param p7
481
- * @param p8
482
- * @param p9
483
499
  * @returns
484
500
  */
485
- isInArea(pos1: Vector3, pos2: Vector3, p7: boolean, p8: boolean, p9: any): boolean;
501
+ hasBeenDamagedByAnyPed(): boolean;
486
502
  /**
487
- * Returns the coordinates of an entity-bone.
488
- * https://github.com/femga/rdr3_discoveries/tree/master/boneNames
489
- *
490
- * @param boneIndex
503
+ * @param targetEntity
491
504
  * @returns
492
505
  */
493
- getWorldPositionOfBone(boneIndex: number): Vector3;
506
+ isTouchingEntity(targetEntity: Entity): boolean;
507
+ deleteCarriable(): void;
494
508
  /**
495
- * https://github.com/femga/rdr3_discoveries/tree/master/animations
509
+ * Returns a normalized value between 0.0f and 1.0f. You can get the actual anim time by multiplying this by GET_ANIM_DURATION
496
510
  *
497
- * @param animName
498
511
  * @param animDict
499
- * @param p3
500
- * @param loop
501
- * @param stayInAnim
502
- * @param p6
503
- * @param delta
504
- * @param bitset
512
+ * @param animName
505
513
  * @returns
506
514
  */
507
- playAnim(animName: string | null, animDict: string | null, p3: number, loop: boolean, stayInAnim: boolean, p6: boolean, delta: number, bitset: any): boolean;
515
+ getAnimCurrentTime(animDict: string | null, animName: string | null): number;
508
516
  /**
509
- * Returns false if entity is not a ped or object.
517
+ * @param entity2
518
+ * @param thisFrameOnly
519
+ */
520
+ setNoCollisionEntity(entity2: Entity, thisFrameOnly: boolean): void;
521
+ /**
522
+ * Result is in meters per second (m/s)
510
523
  *
511
- * @returns lootTable
524
+ * @returns
512
525
  */
513
- getScriptOverrideLootTablePermanent(): [any, number];
526
+ getSpeed(): number;
527
+ /**
528
+ * @param bOnlyDamagedWhenRunningScript
529
+ */
530
+ setCanOnlyBeDamagedByScriptParticipants(bOnlyDamagedWhenRunningScript: boolean): void;
514
531
  /**
515
- * @param animDict
516
- * @param animName
517
- * @param p3
518
532
  * @returns
519
533
  */
520
- hasAnimFinished(animDict: string | null, animName: string | null, p3: number): boolean;
534
+ isTrackedVisible(): any;
521
535
  /**
522
- * @param bCanBeDamaged
523
- * @param relGroup
536
+ * @param p1
537
+ * @param collision
524
538
  */
525
- setCanBeDamagedByRelationshipGroup(bCanBeDamaged: boolean, relGroup: string | number): void;
539
+ detachEntity(p1: boolean, collision: boolean): void;
526
540
  /**
527
541
  * @returns
528
542
  */
529
- getUprightValue(): number;
543
+ isVisibleToScript(): boolean;
530
544
  /**
531
- * @param pos
532
- * @param heading
533
- * @param xAxis
534
- * @param yAxis
535
- * @param zAxis
545
+ * @param entity2
546
+ * @param traceType
547
+ * @returns
536
548
  */
537
- setCoordsAndHeading(pos: Vector3, heading: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): void;
549
+ hasClearLosToEntity(entity2: Entity, traceType: number): boolean;
538
550
  /**
539
- * Returns zero if the entity is not a carriable
551
+ * Used in Script Function GENERIC_ITEM_HAS_ANIM_COMPLETED
552
+ * *GET_ENTITY**
540
553
  *
554
+ * @param animDict
555
+ * @param animClip
541
556
  * @returns
542
557
  */
543
- getCarryConfig(): string | number;
558
+ N_0x8E46E18AA828334F(animDict: string | null, animClip: string | null): number;
544
559
  /**
545
- * tier: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityThreatTier
560
+ * @param playerPedToIgnore
561
+ * @param flags
562
+ * @returns
563
+ */
564
+ getNearestPlayerToEntity(playerPedToIgnore: Ped, flags: number): Player | null;
565
+ /**
566
+ * Gets the Y-component of the entity's forward vector.
546
567
  *
547
- * @param tier
548
- * @param p2
568
+ * @returns
549
569
  */
550
- setThreatTier(tier: number, p2: boolean): void;
570
+ getForwardY(): number;
551
571
  /**
552
- * Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
572
+ * @param pitch
573
+ * @param roll
574
+ * @param yaw
575
+ * @param rotationOrder
576
+ * @param p5
577
+ */
578
+ setRotation(pitch: number, roll: number, yaw: number, rotationOrder: number, p5: boolean): void;
579
+ /**
580
+ * @param p1
581
+ * @param relationshipGroup
582
+ */
583
+ setOnlyDamagedByRelationshipGroup(p1: boolean, relationshipGroup: string | number): void;
584
+ /**
585
+ * https://github.com/femga/rdr3_discoveries/tree/master/AI/ENTITY_PROOFS
586
+ * 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
553
587
  *
588
+ * @param proofsBitset
589
+ * @param specialFlag
590
+ */
591
+ setProofs(proofsBitset: number, specialFlag: boolean): void;
592
+ /**
554
593
  * @returns
555
594
  */
556
- getHeading(): number;
595
+ hasCollisionLoadedAroundEntity(): boolean;
557
596
  /**
558
- * Returns the LOD distance of an entity.
597
+ * @returns
598
+ */
599
+ getIsCarriablePelt(): any;
600
+ /**
601
+ * @param p1
602
+ * @returns
603
+ */
604
+ getVelocity(p1: number): Vector3;
605
+ /**
606
+ * @param toggle
607
+ */
608
+ setCanAutoVaultOnEntity(toggle: boolean): void;
609
+ /**
610
+ * 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.
611
+ * https://github.com/femga/rdr3_discoveries/blob/master/AI/EVENTS/loot_rewards.lua
559
612
  *
613
+ * @param lootTable
560
614
  * @returns
561
615
  */
562
- getLodDist(): number;
616
+ scriptOverrideLootTablePermanent(lootTable: string | number): any;
563
617
  /**
618
+ * @returns argStruct
619
+ */
620
+ getScript(): [number, number];
621
+ /**
622
+ * @param actionHash
564
623
  * @returns
565
624
  */
566
- doesHaveDrawable(): boolean;
625
+ hasAnimEventFired(actionHash: string | number): boolean;
567
626
  /**
568
- * @param xyzw
627
+ * @param p1
569
628
  */
570
- setQuaternion(xyzw: Vector4): void;
629
+ N_0xEF259AA1E097E0AD(p1: any): void;
571
630
  /**
631
+ * Getter for FREEZE_ENTITY_POSITION
632
+ *
572
633
  * @returns
573
634
  */
574
- isAttachedToAnyObject(): boolean;
635
+ isFrozen(): any;
575
636
  /**
576
- * Sets a ped or an object totally invincible. It doesn't take any kind of damage. Peds will not ragdoll on explosions.
637
+ * Returns the entity that is looting a ped but only while the looting is active
577
638
  *
578
- * @param toggle
639
+ * @returns
579
640
  */
580
- setInvincible(toggle: boolean): void;
641
+ getLootingPed(): Ped | null;
581
642
  /**
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
643
+ * @returns
644
+ */
645
+ isWaitingForWorldCollision(): boolean;
646
+ /**
647
+ * Gets the X-component of the entity's forward vector.
588
648
  *
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
649
+ * @returns
650
+ */
651
+ getForwardX(): number;
652
+ /**
653
+ * @returns
654
+ */
655
+ isAPed(): boolean;
656
+ /**
657
+ * @returns
601
658
  */
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;
659
+ getPitch(): number;
603
660
  /**
604
661
  * @returns
605
662
  */
606
- getIsAnimal(): any;
663
+ isStatic(): boolean;
607
664
  /**
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
665
+ * Returns the model hash from the entity
610
666
  *
611
- * @param forceType
612
- * @param pos
613
- * @param component
614
- * @param isDirectionRel
615
- * @param isForceRel
616
- * @param p8
667
+ * @returns
617
668
  */
618
- applyForceToCenterOfMass(forceType: number, pos: Vector3, component: number, isDirectionRel: boolean, isForceRel: boolean, p8: boolean): void;
669
+ getModel(): number;
619
670
  /**
620
- * Old name: _GET_ENTITY_CAN_BE_DAMAGED
621
- *
671
+ * Deletes the specified entity, then sets the handle pointed to by the pointer to NULL.
672
+ */
673
+ deleteEntity(): void;
674
+ /**
675
+ * @param team
676
+ * @param playerPedToIgnore
677
+ * @param flags
622
678
  * @returns
623
679
  */
624
- getCanBeDamaged(): any;
680
+ getNearestPlayerToOnTeam(team: number, playerPedToIgnore: Ped, flags: number): Player | null;
625
681
  /**
626
682
  * Seems to return true if entity is burned / scorched
627
683
  * *GET_ENTITY**
@@ -746,6 +802,93 @@ export declare class Entity implements IHandle {
746
802
  * @returns
747
803
  */
748
804
  getIsPredator(): any;
805
+ /**
806
+ * enum eCarriableState
807
+ * {
808
+ * CARRIABLE_STATE_NONE,
809
+ * CARRIABLE_STATE_TRANSITIONING_TO_HOGTIED,
810
+ * CARRIABLE_STATE_CARRIABLE_INTRO,
811
+ * CARRIABLE_STATE_CARRIABLE,
812
+ * CARRIABLE_STATE_BEING_PICKED_UP_FROM_GROUND,
813
+ * CARRIABLE_STATE_CARRIED_BY_HUMAN,
814
+ * CARRIABLE_STATE_BEING_PLACED_ON_GROUND,
815
+ * CARRIABLE_STATE_CARRIED_BY_MOUNT,
816
+ * CARRIABLE_STATE_BEING_PLACED_ON_MOUNT,
817
+ * CARRIABLE_STATE_BEING_PICKED_UP_FROM_MOUNT,
818
+ * CARRIABLE_STATE_BEING_CUT_FREE,
819
+ * CARRIABLE_STATE_BEING_PLACED_ON_GROUND_ESCAPE,
820
+ * CARRIABLE_STATE_BEING_PLACED_IN_VEHICLE
821
+ * };
822
+ *
823
+ * @returns
824
+ */
825
+ getCarriableState(): number;
826
+ /**
827
+ * @param value
828
+ */
829
+ setMaxHealth(value: number): void;
830
+ /**
831
+ * Params: p1 (probably animType) = 1, 0
832
+ *
833
+ * @param p1
834
+ * @returns
835
+ */
836
+ isPlayingAnyAnim(p1: number): boolean;
837
+ /**
838
+ * @param enabled
839
+ */
840
+ setLightsEnabled(enabled: boolean): void;
841
+ /**
842
+ * Offset values are relative to the entity. x = left/right
843
+ * y = forward/backward
844
+ * z = up/down
845
+ *
846
+ * @param offset
847
+ * @returns
848
+ */
849
+ getOffsetFromInWorldCoords(offset: Vector3): Vector3;
850
+ /**
851
+ * 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
852
+ *
853
+ * @param entity2
854
+ * @param xSize
855
+ * @param ySize
856
+ * @param zSize
857
+ * @param p5
858
+ * @param p6
859
+ * @param p7
860
+ * @returns
861
+ */
862
+ isAtEntity(entity2: Entity, xSize: number, ySize: number, zSize: number, p5: boolean, p6: boolean, p7: number): boolean;
863
+ /**
864
+ * @param toggle
865
+ */
866
+ setVisible(toggle: boolean): void;
867
+ /**
868
+ * Old name: _SET_ENTITY_CLEANUP_BY_ENGINE
869
+ *
870
+ * @param toggle
871
+ */
872
+ setShouldFreezeWaitingOnCollision(toggle: boolean): void;
873
+ /**
874
+ * Note: this native was removed in 1232 but added back in 1311
875
+ * Old name: _GET_ENTITY_PROOFS
876
+ *
877
+ * @returns
878
+ */
879
+ getProofs(): number;
880
+ /**
881
+ * skin - everything alpha except skin
882
+ * Set entity alpha level. Ranging from 0 to 255 but changes occur after every 20 percent (after every 51).
883
+ *
884
+ * @param alphaLevel
885
+ * @param skin
886
+ */
887
+ setAlpha(alphaLevel: number, skin: boolean): void;
888
+ /**
889
+ * @returns
890
+ */
891
+ getThreatTier(): number;
749
892
  /**
750
893
  * Returns entityType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityType
751
894
  *
@@ -802,59 +945,6 @@ export declare class Entity implements IHandle {
802
945
  * @returns
803
946
  */
804
947
  isAttachedToAnyVehicle(): boolean;
805
- /**
806
- * @param p1
807
- */
808
- N_0xA48E4801DEBDF7E4(p1: boolean): void;
809
- /**
810
- * @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
- */
828
- getMatrix(): [Vector3, Vector3, Vector3, Vector3];
829
- /**
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.
831
- */
832
- N_0x371D179701D9C082(): void;
833
- /**
834
- * @param p1
835
- * @returns
836
- */
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;
844
- /**
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.
848
- *
849
- * @param alive
850
- * @param realCoords
851
- * @returns
852
- */
853
- getCoords(alive: boolean, realCoords: boolean): Vector3;
854
- /**
855
- * @returns
856
- */
857
- isAnObject(): boolean;
858
948
  /**
859
949
  * Used in Script Function DUELING_DID_PLAYER_DISARM_OPPONENT
860
950
  *
@@ -913,65 +1003,6 @@ export declare class Entity implements IHandle {
913
1003
  * @returns
914
1004
  */
915
1005
  isAtCoord(pos: Vector3, xSize: number, ySize: number, zSize: number, p7: boolean, p8: boolean, p9: number): boolean;
916
- /**
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
920
- */
921
- setLodDist(value: number): void;
922
- /**
923
- * @param toggle
924
- */
925
- setDynamic(toggle: boolean): void;
926
- /**
927
- * @param radius
928
- */
929
- setCustomPickupRadius(radius: number): void;
930
- /**
931
- * @returns
932
- */
933
- getPopulationType(): number;
934
- /**
935
- * @returns
936
- */
937
- isAVehicle(): boolean;
938
- /**
939
- * @param pos
940
- * @param atTop
941
- * @param inWorldCoords
942
- * @returns
943
- */
944
- getHeight(pos: Vector3, atTop: boolean, inWorldCoords: boolean): number;
945
- /**
946
- * @param pos
947
- * @returns
948
- */
949
- getOffsetFromGivenWorldCoords(pos: Vector3): Vector3;
950
- addTrackingTrails(): void;
951
- /**
952
- * @param toggle
953
- */
954
- setCanClimbOnEntity(toggle: boolean): void;
955
- /**
956
- * @returns minimum; maximum
957
- */
958
- getWorldPositionOfDimensions(): [Vector3, Vector3];
959
- /**
960
- * @param p1
961
- * @returns
962
- */
963
- isUnderwater(p1: boolean): any;
964
- /**
965
- * @param animation
966
- * @param animGroup
967
- * @param p3
968
- * @returns
969
- */
970
- stopAnim(animation: string | null, animGroup: string | null, p3: number): any;
971
- /**
972
- * @returns
973
- */
974
- hasCollidedWithAnything(): boolean;
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