@nativewrappers/redm-codegen 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/dist/classes/AnimScene.d.ts +135 -135
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +208 -208
  4. package/dist/classes/BaseModel.d.ts +21 -21
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +33 -33
  7. package/dist/classes/BaseTask.d.ts +23 -23
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +27 -27
  10. package/dist/classes/Cam.d.ts +98 -98
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +134 -134
  13. package/dist/classes/Entity.d.ts +385 -380
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +498 -489
  16. package/dist/classes/Interior.d.ts +5 -5
  17. package/dist/classes/Interior.d.ts.map +1 -1
  18. package/dist/classes/Interior.js +8 -8
  19. package/dist/classes/ItemSet.d.ts +2 -2
  20. package/dist/classes/ItemSet.d.ts.map +1 -1
  21. package/dist/classes/ItemSet.js +3 -3
  22. package/dist/classes/Ped.d.ts +336 -336
  23. package/dist/classes/Ped.d.ts.map +1 -1
  24. package/dist/classes/Ped.js +495 -495
  25. package/dist/classes/PedModel.d.ts +1 -1
  26. package/dist/classes/PedModel.d.ts.map +1 -1
  27. package/dist/classes/PedModel.js +2 -2
  28. package/dist/classes/PedTask.d.ts +255 -255
  29. package/dist/classes/PedTask.d.ts.map +1 -1
  30. package/dist/classes/PedTask.js +345 -345
  31. package/dist/classes/PersChar.d.ts +13 -13
  32. package/dist/classes/PersChar.d.ts.map +1 -1
  33. package/dist/classes/PersChar.js +29 -29
  34. package/dist/classes/Pickup.d.ts +8 -8
  35. package/dist/classes/Pickup.d.ts.map +1 -1
  36. package/dist/classes/Pickup.js +15 -15
  37. package/dist/classes/Player.d.ts +713 -709
  38. package/dist/classes/Player.d.ts.map +1 -1
  39. package/dist/classes/Player.js +979 -973
  40. package/dist/classes/Prop.d.ts +115 -115
  41. package/dist/classes/Prop.d.ts.map +1 -1
  42. package/dist/classes/Prop.js +160 -160
  43. package/dist/classes/PropSet.d.ts +5 -5
  44. package/dist/classes/PropSet.d.ts.map +1 -1
  45. package/dist/classes/PropSet.js +6 -6
  46. package/dist/classes/Vehicle.d.ts +122 -122
  47. package/dist/classes/Vehicle.d.ts.map +1 -1
  48. package/dist/classes/Vehicle.js +147 -147
  49. package/dist/classes/VehicleModel.d.ts +1 -1
  50. package/dist/classes/VehicleModel.d.ts.map +1 -1
  51. package/dist/classes/VehicleModel.js +2 -2
  52. package/dist/classes/VehicleTask.d.ts +9 -9
  53. package/dist/classes/VehicleTask.d.ts.map +1 -1
  54. package/dist/classes/VehicleTask.js +12 -12
  55. package/dist/classes/Volume.d.ts +56 -56
  56. package/dist/classes/Volume.d.ts.map +1 -1
  57. package/dist/classes/Volume.js +84 -84
  58. package/dist/classes/Weapon.d.ts +354 -354
  59. package/dist/classes/Weapon.d.ts.map +1 -1
  60. package/dist/classes/Weapon.js +464 -464
  61. package/dist/namespaces/Aicoverpoint.d.ts +23 -23
  62. package/dist/namespaces/Aicoverpoint.d.ts.map +1 -1
  63. package/dist/namespaces/Aicoverpoint.js +35 -35
  64. package/dist/namespaces/Aitransport.d.ts +78 -78
  65. package/dist/namespaces/Aitransport.d.ts.map +1 -1
  66. package/dist/namespaces/Aitransport.js +95 -95
  67. package/dist/namespaces/Animscene.d.ts +49 -49
  68. package/dist/namespaces/Animscene.d.ts.map +1 -1
  69. package/dist/namespaces/Animscene.js +67 -67
  70. package/dist/namespaces/Audio.d.ts +447 -447
  71. package/dist/namespaces/Audio.d.ts.map +1 -1
  72. package/dist/namespaces/Audio.js +635 -635
  73. package/dist/namespaces/CamStatics.d.ts +441 -441
  74. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  75. package/dist/namespaces/CamStatics.js +675 -675
  76. package/dist/namespaces/Collection.d.ts +6 -6
  77. package/dist/namespaces/Collection.d.ts.map +1 -1
  78. package/dist/namespaces/Collection.js +11 -11
  79. package/dist/namespaces/Companion.d.ts +22 -22
  80. package/dist/namespaces/Companion.d.ts.map +1 -1
  81. package/dist/namespaces/Companion.js +30 -30
  82. package/dist/namespaces/Compapp.js +1 -1
  83. package/dist/namespaces/Compendium.d.ts +82 -82
  84. package/dist/namespaces/Compendium.d.ts.map +1 -1
  85. package/dist/namespaces/Compendium.js +115 -115
  86. package/dist/namespaces/Crashlog.js +9 -9
  87. package/dist/namespaces/Crew.js +4 -4
  88. package/dist/namespaces/Databinding.d.ts +164 -164
  89. package/dist/namespaces/Databinding.d.ts.map +1 -1
  90. package/dist/namespaces/Databinding.js +232 -232
  91. package/dist/namespaces/Datafile.js +4 -4
  92. package/dist/namespaces/Decorator.d.ts +19 -19
  93. package/dist/namespaces/Decorator.d.ts.map +1 -1
  94. package/dist/namespaces/Decorator.js +34 -34
  95. package/dist/namespaces/Dlc.d.ts +5 -5
  96. package/dist/namespaces/Dlc.d.ts.map +1 -1
  97. package/dist/namespaces/Dlc.js +9 -9
  98. package/dist/namespaces/EntityStatics.d.ts +119 -119
  99. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  100. package/dist/namespaces/EntityStatics.js +164 -164
  101. package/dist/namespaces/Event.js +4 -4
  102. package/dist/namespaces/Fire.d.ts +89 -89
  103. package/dist/namespaces/Fire.d.ts.map +1 -1
  104. package/dist/namespaces/Fire.js +115 -115
  105. package/dist/namespaces/Flock.js +2 -2
  106. package/dist/namespaces/Gang.js +2 -2
  107. package/dist/namespaces/GoogleAnalytics.js +2 -2
  108. package/dist/namespaces/Graphics.d.ts +375 -375
  109. package/dist/namespaces/Graphics.d.ts.map +1 -1
  110. package/dist/namespaces/Graphics.js +569 -569
  111. package/dist/namespaces/Hud.d.ts +507 -507
  112. package/dist/namespaces/Hud.d.ts.map +1 -1
  113. package/dist/namespaces/Hud.js +706 -706
  114. package/dist/namespaces/Ik.js +1 -1
  115. package/dist/namespaces/Interaction.js +3 -3
  116. package/dist/namespaces/InteriorStatics.js +2 -2
  117. package/dist/namespaces/Inventory.d.ts +159 -159
  118. package/dist/namespaces/Inventory.d.ts.map +1 -1
  119. package/dist/namespaces/Inventory.js +214 -214
  120. package/dist/namespaces/Itemdatabase.d.ts +5 -5
  121. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  122. package/dist/namespaces/Itemdatabase.js +10 -10
  123. package/dist/namespaces/Itemset.js +2 -2
  124. package/dist/namespaces/Law.d.ts +1 -1
  125. package/dist/namespaces/Law.d.ts.map +1 -1
  126. package/dist/namespaces/Law.js +19 -19
  127. package/dist/namespaces/Localization.js +1 -1
  128. package/dist/namespaces/Map.d.ts +173 -173
  129. package/dist/namespaces/Map.d.ts.map +1 -1
  130. package/dist/namespaces/Map.js +240 -240
  131. package/dist/namespaces/Minigame.d.ts +17 -17
  132. package/dist/namespaces/Minigame.d.ts.map +1 -1
  133. package/dist/namespaces/Minigame.js +25 -25
  134. package/dist/namespaces/Misc.d.ts +3 -3
  135. package/dist/namespaces/Misc.d.ts.map +1 -1
  136. package/dist/namespaces/Misc.js +35 -35
  137. package/dist/namespaces/Missiondata.d.ts +15 -15
  138. package/dist/namespaces/Missiondata.d.ts.map +1 -1
  139. package/dist/namespaces/Missiondata.js +24 -24
  140. package/dist/namespaces/Money.js +3 -3
  141. package/dist/namespaces/Netshopping.d.ts +58 -58
  142. package/dist/namespaces/Netshopping.d.ts.map +1 -1
  143. package/dist/namespaces/Netshopping.js +89 -89
  144. package/dist/namespaces/Network.d.ts +694 -694
  145. package/dist/namespaces/Network.d.ts.map +1 -1
  146. package/dist/namespaces/Network.js +1129 -1129
  147. package/dist/namespaces/Object.d.ts +142 -142
  148. package/dist/namespaces/Object.d.ts.map +1 -1
  149. package/dist/namespaces/Object.js +195 -195
  150. package/dist/namespaces/Pad.d.ts +101 -101
  151. package/dist/namespaces/Pad.d.ts.map +1 -1
  152. package/dist/namespaces/Pad.js +142 -142
  153. package/dist/namespaces/Pathfind.js +10 -10
  154. package/dist/namespaces/PedStatics.d.ts +20 -20
  155. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  156. package/dist/namespaces/PedStatics.js +36 -36
  157. package/dist/namespaces/Perschar.d.ts +49 -49
  158. package/dist/namespaces/Perschar.d.ts.map +1 -1
  159. package/dist/namespaces/Perschar.js +76 -76
  160. package/dist/namespaces/Physics.d.ts +89 -89
  161. package/dist/namespaces/Physics.d.ts.map +1 -1
  162. package/dist/namespaces/Physics.js +125 -125
  163. package/dist/namespaces/PlayerStatics.d.ts +139 -139
  164. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  165. package/dist/namespaces/PlayerStatics.js +200 -200
  166. package/dist/namespaces/Population.d.ts +75 -75
  167. package/dist/namespaces/Population.d.ts.map +1 -1
  168. package/dist/namespaces/Population.js +101 -101
  169. package/dist/namespaces/Posse.d.ts +54 -54
  170. package/dist/namespaces/Posse.d.ts.map +1 -1
  171. package/dist/namespaces/Posse.js +86 -86
  172. package/dist/namespaces/Replay.d.ts +1 -1
  173. package/dist/namespaces/Replay.d.ts.map +1 -1
  174. package/dist/namespaces/Replay.js +2 -2
  175. package/dist/namespaces/Scripts.d.ts +1 -1
  176. package/dist/namespaces/Scripts.d.ts.map +1 -1
  177. package/dist/namespaces/Scripts.js +12 -12
  178. package/dist/namespaces/Socialclub.js +8 -8
  179. package/dist/namespaces/Socialclubfeed.js +1 -1
  180. package/dist/namespaces/Spactionproxy.js +4 -4
  181. package/dist/namespaces/Stats.d.ts +197 -197
  182. package/dist/namespaces/Stats.d.ts.map +1 -1
  183. package/dist/namespaces/Stats.js +285 -285
  184. package/dist/namespaces/Streaming.d.ts +46 -46
  185. package/dist/namespaces/Streaming.d.ts.map +1 -1
  186. package/dist/namespaces/Streaming.js +79 -79
  187. package/dist/namespaces/Task.d.ts +138 -138
  188. package/dist/namespaces/Task.d.ts.map +1 -1
  189. package/dist/namespaces/Task.js +204 -204
  190. package/dist/namespaces/Telemetry.d.ts +212 -212
  191. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  192. package/dist/namespaces/Telemetry.js +308 -308
  193. package/dist/namespaces/Txd.js +1 -1
  194. package/dist/namespaces/Uiapps.d.ts +25 -25
  195. package/dist/namespaces/Uiapps.d.ts.map +1 -1
  196. package/dist/namespaces/Uiapps.js +36 -36
  197. package/dist/namespaces/Uievents.js +1 -1
  198. package/dist/namespaces/Uifeed.d.ts +15 -15
  199. package/dist/namespaces/Uifeed.d.ts.map +1 -1
  200. package/dist/namespaces/Uifeed.js +25 -25
  201. package/dist/namespaces/Uistickyfeed.d.ts +16 -16
  202. package/dist/namespaces/Uistickyfeed.d.ts.map +1 -1
  203. package/dist/namespaces/Uistickyfeed.js +21 -21
  204. package/dist/namespaces/Unlock.js +5 -5
  205. package/dist/namespaces/VehicleStatics.js +12 -12
  206. package/dist/namespaces/Voice.d.ts +38 -38
  207. package/dist/namespaces/Voice.d.ts.map +1 -1
  208. package/dist/namespaces/Voice.js +61 -61
  209. package/dist/namespaces/VolumeStatics.d.ts +161 -161
  210. package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
  211. package/dist/namespaces/VolumeStatics.js +217 -217
  212. package/dist/namespaces/Water.d.ts +27 -27
  213. package/dist/namespaces/Water.d.ts.map +1 -1
  214. package/dist/namespaces/Water.js +41 -41
  215. package/dist/namespaces/WeaponStatics.d.ts +274 -274
  216. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  217. package/dist/namespaces/WeaponStatics.js +390 -390
  218. package/dist/namespaces/Zone.d.ts +7 -7
  219. package/dist/namespaces/Zone.d.ts.map +1 -1
  220. package/dist/namespaces/Zone.js +9 -9
  221. package/dist/types/NativeAliases.d.ts +3 -1
  222. package/dist/types/NativeAliases.d.ts.map +1 -1
  223. package/dist/types/NativeAliases.js +3 -1
  224. package/package.json +1 -1
  225. package/src/classes/AnimScene.ts +227 -227
  226. package/src/classes/BaseModel.ts +36 -36
  227. package/src/classes/BaseTask.ts +29 -29
  228. package/src/classes/Cam.ts +143 -143
  229. package/src/classes/Entity.ts +517 -506
  230. package/src/classes/Interior.ts +8 -8
  231. package/src/classes/ItemSet.ts +3 -3
  232. package/src/classes/Ped.ts +512 -512
  233. package/src/classes/PedModel.ts +2 -2
  234. package/src/classes/PedTask.ts +429 -429
  235. package/src/classes/PersChar.ts +35 -35
  236. package/src/classes/Pickup.ts +16 -16
  237. package/src/classes/Player.ts +995 -988
  238. package/src/classes/Prop.ts +177 -177
  239. package/src/classes/PropSet.ts +6 -6
  240. package/src/classes/Vehicle.ts +147 -147
  241. package/src/classes/VehicleModel.ts +2 -2
  242. package/src/classes/VehicleTask.ts +13 -13
  243. package/src/classes/Volume.ts +91 -91
  244. package/src/classes/Weapon.ts +489 -489
  245. package/src/namespaces/Aicoverpoint.ts +40 -40
  246. package/src/namespaces/Aitransport.ts +104 -104
  247. package/src/namespaces/Animscene.ts +74 -74
  248. package/src/namespaces/Audio.ts +647 -647
  249. package/src/namespaces/CamStatics.ts +768 -768
  250. package/src/namespaces/Collection.ts +12 -12
  251. package/src/namespaces/Companion.ts +34 -34
  252. package/src/namespaces/Compapp.ts +1 -1
  253. package/src/namespaces/Compendium.ts +120 -120
  254. package/src/namespaces/Crashlog.ts +9 -9
  255. package/src/namespaces/Crew.ts +4 -4
  256. package/src/namespaces/Databinding.ts +249 -249
  257. package/src/namespaces/Datafile.ts +4 -4
  258. package/src/namespaces/Decorator.ts +37 -37
  259. package/src/namespaces/Dlc.ts +9 -9
  260. package/src/namespaces/EntityStatics.ts +172 -172
  261. package/src/namespaces/Event.ts +4 -4
  262. package/src/namespaces/Fire.ts +127 -127
  263. package/src/namespaces/Flock.ts +2 -2
  264. package/src/namespaces/Gang.ts +2 -2
  265. package/src/namespaces/GoogleAnalytics.ts +2 -2
  266. package/src/namespaces/Graphics.ts +583 -583
  267. package/src/namespaces/Hud.ts +741 -741
  268. package/src/namespaces/Ik.ts +1 -1
  269. package/src/namespaces/Interaction.ts +3 -3
  270. package/src/namespaces/InteriorStatics.ts +2 -2
  271. package/src/namespaces/Inventory.ts +236 -236
  272. package/src/namespaces/Itemdatabase.ts +11 -11
  273. package/src/namespaces/Itemset.ts +2 -2
  274. package/src/namespaces/Law.ts +20 -20
  275. package/src/namespaces/Localization.ts +1 -1
  276. package/src/namespaces/Map.ts +256 -256
  277. package/src/namespaces/Minigame.ts +29 -29
  278. package/src/namespaces/Misc.ts +38 -38
  279. package/src/namespaces/Missiondata.ts +28 -28
  280. package/src/namespaces/Money.ts +3 -3
  281. package/src/namespaces/Netshopping.ts +99 -99
  282. package/src/namespaces/Network.ts +1165 -1165
  283. package/src/namespaces/Object.ts +214 -214
  284. package/src/namespaces/Pad.ts +150 -150
  285. package/src/namespaces/Pathfind.ts +10 -10
  286. package/src/namespaces/PedStatics.ts +42 -42
  287. package/src/namespaces/Perschar.ts +78 -78
  288. package/src/namespaces/Physics.ts +141 -141
  289. package/src/namespaces/PlayerStatics.ts +228 -228
  290. package/src/namespaces/Population.ts +114 -114
  291. package/src/namespaces/Posse.ts +87 -87
  292. package/src/namespaces/Replay.ts +3 -3
  293. package/src/namespaces/Scripts.ts +13 -13
  294. package/src/namespaces/Socialclub.ts +8 -8
  295. package/src/namespaces/Socialclubfeed.ts +1 -1
  296. package/src/namespaces/Spactionproxy.ts +4 -4
  297. package/src/namespaces/Stats.ts +293 -293
  298. package/src/namespaces/Streaming.ts +93 -93
  299. package/src/namespaces/Task.ts +228 -228
  300. package/src/namespaces/Telemetry.ts +322 -322
  301. package/src/namespaces/Txd.ts +1 -1
  302. package/src/namespaces/Uiapps.ts +43 -43
  303. package/src/namespaces/Uievents.ts +1 -1
  304. package/src/namespaces/Uifeed.ts +28 -28
  305. package/src/namespaces/Uistickyfeed.ts +23 -23
  306. package/src/namespaces/Unlock.ts +5 -5
  307. package/src/namespaces/VehicleStatics.ts +12 -12
  308. package/src/namespaces/Voice.ts +70 -70
  309. package/src/namespaces/VolumeStatics.ts +222 -222
  310. package/src/namespaces/Water.ts +47 -47
  311. package/src/namespaces/WeaponStatics.ts +402 -402
  312. package/src/namespaces/Zone.ts +10 -10
  313. package/src/types/NativeAliases.ts +6 -1
@@ -15,13 +15,13 @@ export declare class Entity implements IHandle {
15
15
  /**
16
16
  * @returns
17
17
  */
18
- getIsBird(): any;
18
+ get IsBird(): any;
19
19
  /**
20
20
  * Gets the entity's forward vector in YX(Z) eulers. Similar to GET_ENTITY_FORWARD_VECTOR
21
21
  *
22
22
  * @returns
23
23
  */
24
- getForwardVectorYx(): Vector3;
24
+ get ForwardVectorYx(): Vector3;
25
25
  /**
26
26
  * @param pos
27
27
  * @param xAxis
@@ -42,18 +42,18 @@ export declare class Entity implements IHandle {
42
42
  /**
43
43
  * @param toggle
44
44
  */
45
- setLoadCollisionFlag(toggle: boolean): void;
45
+ set LoadCollisionFlag(toggle: boolean);
46
46
  /**
47
47
  * Changes type and quality of skins
48
48
  * type hashes: https://pastebin.com/C1WvQjCy
49
49
  *
50
50
  * @param type
51
51
  */
52
- setCarcassType(type: string | number): void;
52
+ set CarcassType(type: string | number);
53
53
  /**
54
54
  * @param toggle
55
55
  */
56
- setHasGravity(toggle: boolean): void;
56
+ set HasGravity(toggle: boolean);
57
57
  /**
58
58
  * @param relative
59
59
  * @returns
@@ -69,15 +69,15 @@ export declare class Entity implements IHandle {
69
69
  /**
70
70
  * @returns
71
71
  */
72
- isFullyLooted(): any;
72
+ get IsFullyLooted(): any;
73
73
  /**
74
74
  * @returns
75
75
  */
76
- isOccluded(): boolean;
76
+ get IsOccluded(): boolean;
77
77
  /**
78
78
  * @param toggle
79
79
  */
80
- setCanBeDamaged(toggle: boolean): void;
80
+ set CanBeDamaged(toggle: boolean);
81
81
  /**
82
82
  * @param forceFlags
83
83
  * @param pos
@@ -93,135 +93,93 @@ export declare class Entity implements IHandle {
93
93
  /**
94
94
  * @returns
95
95
  */
96
- isDead(): boolean;
96
+ get IsDead(): boolean;
97
97
  /**
98
- * @param playerPedToIgnore
99
- * @param flags
98
+ * @param pos1
99
+ * @param pos2
100
+ * @param p7
101
+ * @param p8
102
+ * @param p9
100
103
  * @returns
101
104
  */
102
- getNearestPlayerToEntity(playerPedToIgnore: Ped, flags: number): Player | null;
105
+ isInArea(pos1: Vector3, pos2: Vector3, p7: boolean, p8: boolean, p9: any): boolean;
103
106
  /**
104
- * Gets the Y-component of the entity's forward vector.
107
+ * Returns the coordinates of an entity-bone.
108
+ * https://github.com/femga/rdr3_discoveries/tree/master/boneNames
105
109
  *
110
+ * @param boneIndex
106
111
  * @returns
107
112
  */
108
- getForwardY(): number;
109
- /**
110
- * @param pitch
111
- * @param roll
112
- * @param yaw
113
- * @param rotationOrder
114
- * @param p5
115
- */
116
- setRotation(pitch: number, roll: number, yaw: number, rotationOrder: number, p5: boolean): void;
117
- /**
118
- * @param p1
119
- * @param relationshipGroup
120
- */
121
- setOnlyDamagedByRelationshipGroup(p1: boolean, relationshipGroup: string | number): void;
113
+ getWorldPositionOfBone(boneIndex: number): Vector3;
122
114
  /**
123
- * https://github.com/femga/rdr3_discoveries/tree/master/AI/ENTITY_PROOFS
124
- * 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
115
+ * https://github.com/femga/rdr3_discoveries/tree/master/animations
125
116
  *
126
- * @param proofsBitset
127
- * @param specialFlag
128
- */
129
- setProofs(proofsBitset: number, specialFlag: boolean): void;
130
- /**
131
- * @returns
132
- */
133
- hasCollisionLoadedAroundEntity(): boolean;
134
- /**
135
- * @returns
136
- */
137
- getIsCarriablePelt(): any;
138
- /**
139
- * @param p1
117
+ * @param animName
118
+ * @param animDict
119
+ * @param p3
120
+ * @param loop
121
+ * @param stayInAnim
122
+ * @param p6
123
+ * @param delta
124
+ * @param bitset
140
125
  * @returns
141
126
  */
142
- getVelocity(p1: number): Vector3;
143
- /**
144
- * @param toggle
145
- */
146
- setCanAutoVaultOnEntity(toggle: boolean): void;
127
+ playAnim(animName: string | null, animDict: string | null, p3: number, loop: boolean, stayInAnim: boolean, p6: boolean, delta: number, bitset: any): boolean;
147
128
  /**
148
- * 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.
149
- * https://github.com/femga/rdr3_discoveries/blob/master/AI/EVENTS/loot_rewards.lua
129
+ * Returns false if entity is not a ped or object.
150
130
  *
151
- * @param lootTable
152
- * @returns
153
- */
154
- scriptOverrideLootTablePermanent(lootTable: string | number): any;
155
- /**
156
- * @returns argStruct
131
+ * @returns lootTable
157
132
  */
158
- getScript(): [number, number];
133
+ get ScriptOverrideLootTablePermanent(): [any, number];
159
134
  /**
160
- * @param actionHash
135
+ * @param animDict
136
+ * @param animName
137
+ * @param p3
161
138
  * @returns
162
139
  */
163
- hasAnimEventFired(actionHash: string | number): boolean;
140
+ hasAnimFinished(animDict: string | null, animName: string | null, p3: number): boolean;
164
141
  /**
165
- * @param p1
142
+ * @param bCanBeDamaged
143
+ * @param relGroup
166
144
  */
167
- N_0xEF259AA1E097E0AD(p1: any): void;
145
+ setCanBeDamagedByRelationshipGroup(bCanBeDamaged: boolean, relGroup: string | number): void;
168
146
  /**
169
- * Getter for FREEZE_ENTITY_POSITION
170
- *
171
147
  * @returns
172
148
  */
173
- isFrozen(): any;
149
+ get UprightValue(): number;
174
150
  /**
175
- * Returns the entity that is looting a ped but only while the looting is active
176
- *
177
- * @returns
178
- */
179
- getLootingPed(): Ped | null;
180
- /**
181
- * @returns
151
+ * @param pos
152
+ * @param heading
153
+ * @param xAxis
154
+ * @param yAxis
155
+ * @param zAxis
182
156
  */
183
- isWaitingForWorldCollision(): boolean;
157
+ setCoordsAndHeading(pos: Vector3, heading: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): void;
184
158
  /**
185
- * Gets the X-component of the entity's forward vector.
159
+ * Returns zero if the entity is not a carriable
186
160
  *
187
161
  * @returns
188
162
  */
189
- getForwardX(): number;
163
+ get CarryConfig(): number;
190
164
  /**
191
- * @returns
192
- */
193
- isAPed(): boolean;
194
- /**
195
- * @returns
196
- */
197
- getPitch(): number;
198
- /**
199
- * @returns
200
- */
201
- isStatic(): boolean;
202
- /**
203
- * Returns the model hash from the entity
165
+ * tier: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityThreatTier
204
166
  *
205
- * @returns
206
- */
207
- getModel(): number;
208
- /**
209
- * Deletes the specified entity, then sets the handle pointed to by the pointer to NULL.
167
+ * @param tier
168
+ * @param p2
210
169
  */
211
- deleteEntity(): void;
170
+ setThreatTier(tier: number, p2: boolean): void;
212
171
  /**
213
- * @param team
214
- * @param playerPedToIgnore
215
- * @param flags
172
+ * Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
173
+ *
216
174
  * @returns
217
175
  */
218
- getNearestPlayerToOnTeam(team: number, playerPedToIgnore: Ped, flags: number): Player | null;
176
+ get Heading(): number;
219
177
  /**
220
178
  * Returns the LOD distance of an entity.
221
179
  *
222
180
  * @returns
223
181
  */
224
- getLodDist(): number;
182
+ get LodDist(): number;
225
183
  /**
226
184
  * @returns
227
185
  */
@@ -229,17 +187,17 @@ export declare class Entity implements IHandle {
229
187
  /**
230
188
  * @param xyzw
231
189
  */
232
- setQuaternion(xyzw: Vector4): void;
190
+ set Quaternion(xyzw: Vector4);
233
191
  /**
234
192
  * @returns
235
193
  */
236
- isAttachedToAnyObject(): boolean;
194
+ get IsAttachedToAnyObject(): boolean;
237
195
  /**
238
196
  * Sets a ped or an object totally invincible. It doesn't take any kind of damage. Peds will not ragdoll on explosions.
239
197
  *
240
198
  * @param toggle
241
199
  */
242
- setInvincible(toggle: boolean): void;
200
+ set Invincible(toggle: boolean);
243
201
  /**
244
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.
245
203
  * https://github.com/femga/rdr3_discoveries/tree/master/boneNames useSoftPinning - if set to false attached entity will not detach when fixed
@@ -265,7 +223,7 @@ export declare class Entity implements IHandle {
265
223
  /**
266
224
  * @returns
267
225
  */
268
- getIsAnimal(): any;
226
+ get IsAnimal(): any;
269
227
  /**
270
228
  * p6/relative - makes the xyz force not relative to world coords, but to something else
271
229
  * p7/highForce - setting false will make the force really low
@@ -283,7 +241,7 @@ export declare class Entity implements IHandle {
283
241
  *
284
242
  * @returns
285
243
  */
286
- getCanBeDamaged(): any;
244
+ get CanBeDamaged(): any;
287
245
  /**
288
246
  * @param p1
289
247
  */
@@ -300,7 +258,7 @@ export declare class Entity implements IHandle {
300
258
  *
301
259
  * @returns
302
260
  */
303
- getForwardVector(): Vector3;
261
+ get ForwardVector(): Vector3;
304
262
  /**
305
263
  * @param modelHash
306
264
  * @returns
@@ -316,36 +274,36 @@ export declare class Entity implements IHandle {
316
274
  /**
317
275
  * @param toggle
318
276
  */
319
- setRenderScorched(toggle: boolean): void;
277
+ set RenderScorched(toggle: boolean);
320
278
  /**
321
279
  * @param heading
322
280
  */
323
- setHeading(heading: number): void;
281
+ set Heading(heading: number);
324
282
  /**
325
283
  * @returns
326
284
  */
327
- getCollisionDisabled(): boolean;
285
+ get CollisionDisabled(): boolean;
328
286
  /**
329
287
  * Displays the current ROLL axis of the entity [-180.0000/180.0000+]
330
288
  * (Sideways Roll) such as a vehicle tipped on its side
331
289
  *
332
290
  * @returns
333
291
  */
334
- getRoll(): number;
292
+ get Roll(): number;
335
293
  /**
336
294
  * @returns
337
295
  */
338
- getNearestParticipantToEntity(): Player | null;
296
+ get NearestParticipantToEntity(): Player | null;
339
297
  /**
340
298
  * Returns entityType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityType
341
299
  *
342
300
  * @returns
343
301
  */
344
- getType(): number;
302
+ get Type(): number;
345
303
  /**
346
304
  * @returns
347
305
  */
348
- isOwnedByPersistenceSystem(): any;
306
+ get IsOwnedByPersistenceSystem(): any;
349
307
  /**
350
308
  * @param animDict
351
309
  * @param animName
@@ -373,11 +331,11 @@ export declare class Entity implements IHandle {
373
331
  *
374
332
  * @returns
375
333
  */
376
- getSubmergedLevel(): number;
334
+ get SubmergedLevel(): number;
377
335
  /**
378
336
  * @returns
379
337
  */
380
- isAttached(): boolean;
338
+ get IsAttached(): boolean;
381
339
  /**
382
340
  * SET_ENTITY_A*
383
341
  *
@@ -387,290 +345,343 @@ export declare class Entity implements IHandle {
387
345
  /**
388
346
  * @param looted
389
347
  */
390
- setFullyLooted(looted: boolean): void;
348
+ set FullyLooted(looted: boolean);
391
349
  /**
392
350
  * @returns
393
351
  */
394
- isAttachedToAnyVehicle(): boolean;
352
+ get IsAttachedToAnyVehicle(): boolean;
395
353
  /**
396
- * @param p1
354
+ * Used in Script Function DUELING_DID_PLAYER_DISARM_OPPONENT
355
+ *
356
+ * @param entity2
357
+ * @param p2
358
+ * @param p3
359
+ * @returns
397
360
  */
398
- N_0xA48E4801DEBDF7E4(p1: boolean): void;
361
+ N_0x3EC28DA1FFAC9DDD(entity2: Entity, p2: any, p3: any): boolean;
399
362
  /**
400
- * @param toggle
401
- * @param keepPhysics
363
+ * Must be called from a background script, otherwise it will do nothing.
402
364
  */
403
- setCompletelyDisableCollision(toggle: boolean, keepPhysics: boolean): void;
365
+ delete2(): void;
404
366
  /**
405
367
  * @param p1
368
+ * @returns
406
369
  */
407
- N_0xCDB682BB47C02F0A(p1: string | number): void;
370
+ isInAir(p1: any): boolean;
408
371
  /**
409
- * @param volume
410
- * @param p2
411
- * @param p3
412
372
  * @returns
413
373
  */
414
- isInVolume(volume: number, p2: boolean, p3: number): boolean;
374
+ get IsAMissionEntity(): boolean;
415
375
  /**
416
- * @returns rightVector; forwardVector; upVector; position
376
+ * @returns
417
377
  */
418
- getMatrix(): [Vector3, Vector3, Vector3, Vector3];
378
+ get IsAttachedToAnyPed(): boolean;
419
379
  /**
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.
380
+ * @param to
381
+ * @returns
421
382
  */
422
- N_0x371D179701D9C082(): void;
383
+ isAttachedToEntity(to: Entity): boolean;
423
384
  /**
424
- * @param p1
425
385
  * @returns
426
386
  */
427
- getMaxHealth(p1: boolean): number;
387
+ hasBeenDamagedByAnyObject(): boolean;
428
388
  /**
429
- * @param animDict
430
- * @param animName
431
- * @param time
389
+ * @param rotationOrder
390
+ * @returns
432
391
  */
433
- setAnimCurrentTime(animDict: string | null, animName: string | null, time: number): void;
392
+ getRotation(rotationOrder: number): Vector3;
434
393
  /**
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.
394
+ * @param toggle
395
+ */
396
+ set MotionBlur(toggle: boolean);
397
+ resetAlpha(): void;
398
+ /**
399
+ * Checks if entity is within x/y/zSize distance of x/y/z. Last three are unknown ints, almost always p7 = 0, p8 = 1, p9 = 0
438
400
  *
439
- * @param alive
440
- * @param realCoords
401
+ * @param pos
402
+ * @param xSize
403
+ * @param ySize
404
+ * @param zSize
405
+ * @param p7
406
+ * @param p8
407
+ * @param p9
441
408
  * @returns
442
409
  */
443
- getCoords(alive: boolean, realCoords: boolean): Vector3;
410
+ isAtCoord(pos: Vector3, xSize: number, ySize: number, zSize: number, p7: boolean, p8: boolean, p9: number): boolean;
411
+ /**
412
+ * @param entity2
413
+ * @param p2
414
+ * @param boneIndex
415
+ * @param offset
416
+ * @param p7
417
+ * @param p8
418
+ * @param p9
419
+ * @param p10
420
+ * @param p11
421
+ * @param p12
422
+ * @param p13
423
+ * @param p14
424
+ * @param p15
425
+ * @param p16
426
+ * @param p17
427
+ * @param p18
428
+ * @param p19
429
+ * @param p20
430
+ * @param p21
431
+ */
432
+ attachToEntityPhysically(entity2: Entity, p2: number, boneIndex: number, offset: Vector3, p7: number, p8: number, p9: number, p10: number, p11: number, p12: number, p13: number, p14: boolean, p15: boolean, p16: boolean, p17: boolean, p18: number, p19: boolean, p20: number, p21: number): void;
444
433
  /**
445
434
  * @returns
446
435
  */
447
- isAnObject(): boolean;
436
+ get HeightAboveGround(): number;
448
437
  /**
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).
438
+ * @param pos
439
+ * @param heading
440
+ * @param p5
441
+ * @param p6
442
+ */
443
+ setCoordsAndHeadingNoOffset(pos: Vector3, heading: number, p5: boolean, p6: boolean): void;
444
+ /**
445
+ * Creates a spherical cone at origin that extends to surface with the angle specified. Then returns true if the entity is inside the spherical cone Angle is measured in degrees.
450
446
  *
451
- * @param value
447
+ * @param originX
448
+ * @param originY
449
+ * @param originZ
450
+ * @param edgeX
451
+ * @param edgeY
452
+ * @param edgeZ
453
+ * @param angle
454
+ * @param p8
455
+ * @param p9
456
+ * @param p10
457
+ * @returns
452
458
  */
453
- setLodDist(value: number): void;
459
+ isInAngledArea(originX: number, originY: number, originZ: number, edgeX: number, edgeY: number, edgeZ: number, angle: number, p8: boolean, p9: boolean, p10: any): boolean;
460
+ clearLastDamageEntity(): void;
454
461
  /**
455
462
  * @param toggle
456
463
  */
457
- setDynamic(toggle: boolean): void;
464
+ set AlwaysPrerender(toggle: boolean);
458
465
  /**
459
- * @param radius
466
+ * Note that the third parameter(denoted as z) is "up and down" with positive numbers encouraging upwards movement.
467
+ *
468
+ * @param pos
460
469
  */
461
- setCustomPickupRadius(radius: number): void;
470
+ set Velocity(pos: Vector3);
471
+ /**
472
+ * SET_ENTITY_LO*
473
+ *
474
+ * @param p1
475
+ * @param p2
476
+ * @param p3
477
+ */
478
+ N_0xAF7F3099B9FEB535(p1: number, p2: number, p3: number): void;
462
479
  /**
463
480
  * @returns
464
481
  */
465
- getPopulationType(): number;
482
+ N_0xAF72EC7E1B54539B(): Entity | null;
466
483
  /**
484
+ * Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
485
+ *
467
486
  * @returns
468
487
  */
469
- isAVehicle(): boolean;
488
+ get ObjectIndexFromIndex(): Prop | null;
470
489
  /**
471
- * @param pos
472
- * @param atTop
473
- * @param inWorldCoords
490
+ * Has the entity1 got a clear line of sight to the other entity2 from the direction entity1 is facing.
491
+ *
492
+ * @param entity2
493
+ * @param traceType
474
494
  * @returns
475
495
  */
476
- getHeight(pos: Vector3, atTop: boolean, inWorldCoords: boolean): number;
496
+ hasClearLosToEntityInFront(entity2: Entity, traceType: number): boolean;
477
497
  /**
478
- * @param pos
479
498
  * @returns
480
499
  */
481
- getOffsetFromGivenWorldCoords(pos: Vector3): Vector3;
482
- addTrackingTrails(): void;
500
+ get IsOnTrainTrack(): any;
483
501
  /**
484
- * @param toggle
502
+ * @param angle
503
+ * @returns
485
504
  */
486
- setCanClimbOnEntity(toggle: boolean): void;
505
+ isUpright(angle: number): boolean;
487
506
  /**
488
- * @returns minimum; maximum
507
+ * @param targetEntity
508
+ * @returns
489
509
  */
490
- getWorldPositionOfDimensions(): [Vector3, Vector3];
510
+ isTouchingEntity(targetEntity: Entity): boolean;
511
+ deleteCarriable(): void;
491
512
  /**
492
- * @param p1
513
+ * Returns a normalized value between 0.0f and 1.0f. You can get the actual anim time by multiplying this by GET_ANIM_DURATION
514
+ *
515
+ * @param animDict
516
+ * @param animName
493
517
  * @returns
494
518
  */
495
- isUnderwater(p1: boolean): any;
519
+ getAnimCurrentTime(animDict: string | null, animName: string | null): number;
496
520
  /**
497
- * @param animation
498
- * @param animGroup
499
- * @param p3
521
+ * @param entity2
522
+ * @param thisFrameOnly
523
+ */
524
+ setNoCollisionEntity(entity2: Entity, thisFrameOnly: boolean): void;
525
+ /**
526
+ * Result is in meters per second (m/s)
527
+ *
500
528
  * @returns
501
529
  */
502
- stopAnim(animation: string | null, animGroup: string | null, p3: number): any;
530
+ get Speed(): number;
531
+ /**
532
+ * @param bOnlyDamagedWhenRunningScript
533
+ */
534
+ set CanOnlyBeDamagedByScriptParticipants(bOnlyDamagedWhenRunningScript: boolean);
503
535
  /**
504
536
  * @returns
505
537
  */
506
- hasCollidedWithAnything(): boolean;
538
+ get IsTrackedVisible(): any;
539
+ /**
540
+ * @param p1
541
+ * @param collision
542
+ */
543
+ detachEntity(p1: boolean, collision: boolean): void;
507
544
  /**
508
- * Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
509
- *
510
545
  * @returns
511
546
  */
512
- getVehicleIndexFromIndex(): Vehicle | null;
547
+ get IsVisibleToScript(): boolean;
513
548
  /**
549
+ * @param entity2
550
+ * @param traceType
514
551
  * @returns
515
552
  */
516
- isVisible(): boolean;
553
+ hasClearLosToEntity(entity2: Entity, traceType: number): boolean;
517
554
  /**
518
- * SET_ENTITY_LO*
555
+ * Used in Script Function GENERIC_ITEM_HAS_ANIM_COMPLETED
556
+ * *GET_ENTITY**
519
557
  *
520
- * @param toggle
558
+ * @param animDict
559
+ * @param animClip
560
+ * @returns
521
561
  */
522
- N_0xFF9965C47FA404DA(toggle: boolean): void;
562
+ N_0x8E46E18AA828334F(animDict: string | null, animClip: string | null): number;
523
563
  /**
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.
564
+ * @param playerPedToIgnore
565
+ * @param flags
566
+ * @returns
567
+ */
568
+ getNearestPlayerToEntity(playerPedToIgnore: Ped, flags: number): Player | null;
569
+ /**
570
+ * Gets the Y-component of the entity's forward vector.
527
571
  *
528
- * @param index
529
572
  * @returns
530
573
  */
531
- getOptimalCarryConfig(index: number): number;
532
- setFadeIn(): void;
574
+ get ForwardY(): number;
575
+ /**
576
+ * @param pitch
577
+ * @param roll
578
+ * @param yaw
579
+ * @param rotationOrder
580
+ * @param p5
581
+ */
582
+ setRotation(pitch: number, roll: number, yaw: number, rotationOrder: number, p5: boolean): void;
583
+ /**
584
+ * @param p1
585
+ * @param relationshipGroup
586
+ */
587
+ setOnlyDamagedByRelationshipGroup(p1: boolean, relationshipGroup: string | number): void;
588
+ /**
589
+ * https://github.com/femga/rdr3_discoveries/tree/master/AI/ENTITY_PROOFS
590
+ * 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
591
+ *
592
+ * @param proofsBitset
593
+ * @param specialFlag
594
+ */
595
+ setProofs(proofsBitset: number, specialFlag: boolean): void;
533
596
  /**
534
597
  * @returns
535
598
  */
536
- hasBeenDamagedByAnyPed(): boolean;
599
+ hasCollisionLoadedAroundEntity(): boolean;
537
600
  /**
538
- * @param targetEntity
539
601
  * @returns
540
602
  */
541
- isTouchingEntity(targetEntity: Entity): boolean;
542
- deleteCarriable(): void;
603
+ get IsCarriablePelt(): any;
543
604
  /**
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
605
+ * @param p1
548
606
  * @returns
549
607
  */
550
- getAnimCurrentTime(animDict: string | null, animName: string | null): number;
608
+ getVelocity(p1: number): Vector3;
551
609
  /**
552
- * @param entity2
553
- * @param thisFrameOnly
610
+ * @param toggle
554
611
  */
555
- setNoCollisionEntity(entity2: Entity, thisFrameOnly: boolean): void;
612
+ set CanAutoVaultOnEntity(toggle: boolean);
556
613
  /**
557
- * Result is in meters per second (m/s)
614
+ * 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.
615
+ * https://github.com/femga/rdr3_discoveries/blob/master/AI/EVENTS/loot_rewards.lua
558
616
  *
617
+ * @param lootTable
559
618
  * @returns
560
619
  */
561
- getSpeed(): number;
620
+ scriptOverrideLootTablePermanent(lootTable: string | number): any;
562
621
  /**
563
- * @param bOnlyDamagedWhenRunningScript
622
+ * @returns argStruct
564
623
  */
565
- setCanOnlyBeDamagedByScriptParticipants(bOnlyDamagedWhenRunningScript: boolean): void;
624
+ get Script(): [number, number];
566
625
  /**
626
+ * @param actionHash
567
627
  * @returns
568
628
  */
569
- isTrackedVisible(): any;
629
+ hasAnimEventFired(actionHash: string | number): boolean;
570
630
  /**
571
631
  * @param p1
572
- * @param collision
573
- */
574
- detachEntity(p1: boolean, collision: boolean): void;
575
- /**
576
- * @returns
577
632
  */
578
- isVisibleToScript(): boolean;
633
+ N_0xEF259AA1E097E0AD(p1: any): void;
579
634
  /**
580
- * @param entity2
581
- * @param traceType
635
+ * Getter for FREEZE_ENTITY_POSITION
636
+ *
582
637
  * @returns
583
638
  */
584
- hasClearLosToEntity(entity2: Entity, traceType: number): boolean;
639
+ get IsFrozen(): any;
585
640
  /**
586
- * Used in Script Function GENERIC_ITEM_HAS_ANIM_COMPLETED
587
- * *GET_ENTITY**
641
+ * Returns the entity that is looting a ped but only while the looting is active
588
642
  *
589
- * @param animDict
590
- * @param animClip
591
643
  * @returns
592
644
  */
593
- N_0x8E46E18AA828334F(animDict: string | null, animClip: string | null): number;
645
+ get LootingPed(): Ped | null;
594
646
  /**
595
- * @param pos1
596
- * @param pos2
597
- * @param p7
598
- * @param p8
599
- * @param p9
600
647
  * @returns
601
648
  */
602
- isInArea(pos1: Vector3, pos2: Vector3, p7: boolean, p8: boolean, p9: any): boolean;
649
+ get IsWaitingForWorldCollision(): boolean;
603
650
  /**
604
- * Returns the coordinates of an entity-bone.
605
- * https://github.com/femga/rdr3_discoveries/tree/master/boneNames
651
+ * Gets the X-component of the entity's forward vector.
606
652
  *
607
- * @param boneIndex
608
653
  * @returns
609
654
  */
610
- getWorldPositionOfBone(boneIndex: number): Vector3;
655
+ get ForwardX(): number;
611
656
  /**
612
- * https://github.com/femga/rdr3_discoveries/tree/master/animations
613
- *
614
- * @param animName
615
- * @param animDict
616
- * @param p3
617
- * @param loop
618
- * @param stayInAnim
619
- * @param p6
620
- * @param delta
621
- * @param bitset
622
657
  * @returns
623
658
  */
624
- playAnim(animName: string | null, animDict: string | null, p3: number, loop: boolean, stayInAnim: boolean, p6: boolean, delta: number, bitset: any): boolean;
625
- /**
626
- * Returns false if entity is not a ped or object.
627
- *
628
- * @returns lootTable
629
- */
630
- getScriptOverrideLootTablePermanent(): [any, number];
659
+ get IsAPed(): boolean;
631
660
  /**
632
- * @param animDict
633
- * @param animName
634
- * @param p3
635
661
  * @returns
636
662
  */
637
- hasAnimFinished(animDict: string | null, animName: string | null, p3: number): boolean;
638
- /**
639
- * @param bCanBeDamaged
640
- * @param relGroup
641
- */
642
- setCanBeDamagedByRelationshipGroup(bCanBeDamaged: boolean, relGroup: string | number): void;
663
+ get Pitch(): number;
643
664
  /**
644
665
  * @returns
645
666
  */
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;
667
+ get IsStatic(): boolean;
655
668
  /**
656
- * Returns zero if the entity is not a carriable
669
+ * Returns the model hash from the entity
657
670
  *
658
671
  * @returns
659
672
  */
660
- getCarryConfig(): number;
673
+ get Model(): number;
661
674
  /**
662
- * tier: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityThreatTier
663
- *
664
- * @param tier
665
- * @param p2
675
+ * Deletes the specified entity, then sets the handle pointed to by the pointer to NULL.
666
676
  */
667
- setThreatTier(tier: number, p2: boolean): void;
677
+ deleteEntity(): void;
668
678
  /**
669
- * Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
670
- *
679
+ * @param team
680
+ * @param playerPedToIgnore
681
+ * @param flags
671
682
  * @returns
672
683
  */
673
- getHeading(): number;
684
+ getNearestPlayerToOnTeam(team: number, playerPedToIgnore: Ped, flags: number): Player | null;
674
685
  /**
675
686
  * Seems to return true if entity is burned / scorched
676
687
  * *GET_ENTITY**
@@ -681,7 +692,7 @@ export declare class Entity implements IHandle {
681
692
  /**
682
693
  * @param toggle
683
694
  */
684
- setRequiresMoreExpensiveRiverCheck(toggle: boolean): void;
695
+ set RequiresMoreExpensiveRiverCheck(toggle: boolean);
685
696
  /**
686
697
  * @param boneIndex
687
698
  * @returns Returns the offset from the entity for the selected bone index.
@@ -693,27 +704,27 @@ export declare class Entity implements IHandle {
693
704
  *
694
705
  * @returns
695
706
  */
696
- getPedIndexFromIndex(): Ped | null;
707
+ get PedIndexFromIndex(): Ped | null;
697
708
  /**
698
709
  * Sets whether the entity can be targeted without being in line-of-sight.
699
710
  *
700
711
  * @param toggle
701
712
  */
702
- setCanBeTargetedWithoutLos(toggle: boolean): void;
713
+ set CanBeTargetedWithoutLos(toggle: boolean);
703
714
  /**
704
715
  * @returns
705
716
  */
706
- isOnScreen(): boolean;
717
+ get IsOnScreen(): boolean;
707
718
  /**
708
719
  * Old name: _SET_ENTITY_DECALS_DISABLED
709
720
  *
710
721
  * @param toggle
711
722
  */
712
- setNoweapondecals(toggle: boolean): void;
723
+ set Noweapondecals(toggle: boolean);
713
724
  /**
714
725
  * @returns
715
726
  */
716
- getHealth(): number;
727
+ get Health(): number;
717
728
  /**
718
729
  * sets the fill in state for some objects like for the stew, coffee mug ,poker chips, jugs ? P1 is either 0 or 2 p2 seems to be a label/name p3 is the fill in state, max seems to be for some 3.0 (most is 1.0) - 0.0
719
730
  * heres some of the labels/names found
@@ -770,11 +781,11 @@ export declare class Entity implements IHandle {
770
781
  /**
771
782
  * @returns
772
783
  */
773
- getAttachedTo(): Entity | null;
784
+ get AttachedTo(): Entity | null;
774
785
  /**
775
786
  * @param toggle
776
787
  */
777
- setOnlyDamagedByPlayer(toggle: boolean): void;
788
+ set OnlyDamagedByPlayer(toggle: boolean);
778
789
  /**
779
790
  * @param p1
780
791
  * @param p2
@@ -794,7 +805,7 @@ export declare class Entity implements IHandle {
794
805
  /**
795
806
  * @returns
796
807
  */
797
- getIsPredator(): any;
808
+ get IsPredator(): any;
798
809
  /**
799
810
  * enum eCarriableState
800
811
  * {
@@ -815,11 +826,11 @@ export declare class Entity implements IHandle {
815
826
  *
816
827
  * @returns
817
828
  */
818
- getCarriableState(): number;
829
+ get CarriableState(): number;
819
830
  /**
820
831
  * @param value
821
832
  */
822
- setMaxHealth(value: number): void;
833
+ set MaxHealth(value: number);
823
834
  /**
824
835
  * Params: p1 (probably animType) = 1, 0
825
836
  *
@@ -830,7 +841,7 @@ export declare class Entity implements IHandle {
830
841
  /**
831
842
  * @param enabled
832
843
  */
833
- setLightsEnabled(enabled: boolean): void;
844
+ set LightsEnabled(enabled: boolean);
834
845
  /**
835
846
  * Offset values are relative to the entity. x = left/right
836
847
  * y = forward/backward
@@ -856,20 +867,20 @@ export declare class Entity implements IHandle {
856
867
  /**
857
868
  * @param toggle
858
869
  */
859
- setVisible(toggle: boolean): void;
870
+ set Visible(toggle: boolean);
860
871
  /**
861
872
  * Old name: _SET_ENTITY_CLEANUP_BY_ENGINE
862
873
  *
863
874
  * @param toggle
864
875
  */
865
- setShouldFreezeWaitingOnCollision(toggle: boolean): void;
876
+ set ShouldFreezeWaitingOnCollision(toggle: boolean);
866
877
  /**
867
878
  * Note: this native was removed in 1232 but added back in 1311
868
879
  * Old name: _GET_ENTITY_PROOFS
869
880
  *
870
881
  * @returns
871
882
  */
872
- getProofs(): number;
883
+ get Proofs(): number;
873
884
  /**
874
885
  * skin - everything alpha except skin
875
886
  * Set entity alpha level. Ranging from 0 to 255 but changes occur after every 20 percent (after every 51).
@@ -881,69 +892,65 @@ export declare class Entity implements IHandle {
881
892
  /**
882
893
  * @returns
883
894
  */
884
- getThreatTier(): number;
895
+ get ThreatTier(): number;
885
896
  /**
886
- * Used in Script Function DUELING_DID_PLAYER_DISARM_OPPONENT
887
- *
888
- * @param entity2
889
- * @param p2
890
- * @param p3
891
- * @returns
897
+ * @param p1
892
898
  */
893
- N_0x3EC28DA1FFAC9DDD(entity2: Entity, p2: any, p3: any): boolean;
899
+ N_0xA48E4801DEBDF7E4(p1: boolean): void;
894
900
  /**
895
- * Must be called from a background script, otherwise it will do nothing.
901
+ * @param toggle
902
+ * @param keepPhysics
896
903
  */
897
- delete2(): void;
904
+ setCompletelyDisableCollision(toggle: boolean, keepPhysics: boolean): void;
898
905
  /**
899
906
  * @param p1
900
- * @returns
901
907
  */
902
- isInAir(p1: any): boolean;
908
+ N_0xCDB682BB47C02F0A(p1: string | number): void;
903
909
  /**
910
+ * @param volume
911
+ * @param p2
912
+ * @param p3
904
913
  * @returns
905
914
  */
906
- isAMissionEntity(): boolean;
915
+ isInVolume(volume: number, p2: boolean, p3: number): boolean;
907
916
  /**
908
- * @returns
917
+ * @returns rightVector; forwardVector; upVector; position
909
918
  */
910
- isAttachedToAnyPed(): boolean;
919
+ get Matrix(): [Vector3, Vector3, Vector3, Vector3];
911
920
  /**
912
- * @param to
913
- * @returns
921
+ * 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.
914
922
  */
915
- isAttachedToEntity(to: Entity): boolean;
923
+ N_0x371D179701D9C082(): void;
916
924
  /**
925
+ * @param p1
917
926
  * @returns
918
927
  */
919
- hasBeenDamagedByAnyObject(): boolean;
928
+ getMaxHealth(p1: boolean): number;
920
929
  /**
921
- * @param rotationOrder
922
- * @returns
930
+ * @param animDict
931
+ * @param animName
932
+ * @param time
923
933
  */
924
- getRotation(rotationOrder: number): Vector3;
934
+ setAnimCurrentTime(animDict: string | null, animName: string | null, time: number): void;
925
935
  /**
926
- * @param toggle
936
+ * Gets the current coordinates for a specified entity.
937
+ * `entity` = The entity to get the coordinates from.
938
+ * `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.
939
+ *
940
+ * @param alive
941
+ * @param realCoords
942
+ * @returns
927
943
  */
928
- setMotionBlur(toggle: boolean): void;
929
- resetAlpha(): void;
944
+ getCoords(alive?: boolean, realCoords?: boolean): Vector3;
945
+ get Coords(): Vector3;
930
946
  /**
931
- * Checks if entity is within x/y/zSize distance of x/y/z. Last three are unknown ints, almost always p7 = 0, p8 = 1, p9 = 0
932
- *
933
- * @param pos
934
- * @param xSize
935
- * @param ySize
936
- * @param zSize
937
- * @param p7
938
- * @param p8
939
- * @param p9
940
947
  * @returns
941
948
  */
942
- isAtCoord(pos: Vector3, xSize: number, ySize: number, zSize: number, p7: boolean, p8: boolean, p9: number): boolean;
949
+ get IsAnObject(): boolean;
943
950
  /**
944
951
  * @returns
945
952
  */
946
- isUpsidedown(): boolean;
953
+ get IsUpsidedown(): boolean;
947
954
  /**
948
955
  * @param p1
949
956
  * @returns
@@ -954,7 +961,7 @@ export declare class Entity implements IHandle {
954
961
  *
955
962
  * @returns
956
963
  */
957
- getCarriableFromEntity(): number;
964
+ get CarriableFromEntity(): number;
958
965
  /**
959
966
  * @param toggle
960
967
  * @param keepPhysics
@@ -968,7 +975,7 @@ export declare class Entity implements IHandle {
968
975
  /**
969
976
  * @returns
970
977
  */
971
- isInWater(): boolean;
978
+ get IsInWater(): boolean;
972
979
  /**
973
980
  * @returns Returns `true` if the entity exists
974
981
  */
@@ -976,7 +983,7 @@ export declare class Entity implements IHandle {
976
983
  /**
977
984
  * @returns
978
985
  */
979
- getAlpha(): number;
986
+ get Alpha(): number;
980
987
  /**
981
988
  * This native only works on `Ped` and `Object` entity types
982
989
  *
@@ -1002,101 +1009,99 @@ export declare class Entity implements IHandle {
1002
1009
  *
1003
1010
  * @returns
1004
1011
  */
1005
- getHealthFloat(): number;
1012
+ get HealthFloat(): number;
1006
1013
  /**
1007
- * @param entity2
1008
- * @param p2
1009
- * @param boneIndex
1010
- * @param offset
1011
- * @param p7
1012
- * @param p8
1013
- * @param p9
1014
- * @param p10
1015
- * @param p11
1016
- * @param p12
1017
- * @param p13
1018
- * @param p14
1019
- * @param p15
1020
- * @param p16
1021
- * @param p17
1022
- * @param p18
1023
- * @param p19
1024
- * @param p20
1025
- * @param p21
1014
+ * 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).
1015
+ *
1016
+ * @param value
1026
1017
  */
1027
- attachToEntityPhysically(entity2: Entity, p2: number, boneIndex: number, offset: Vector3, p7: number, p8: number, p9: number, p10: number, p11: number, p12: number, p13: number, p14: boolean, p15: boolean, p16: boolean, p17: boolean, p18: number, p19: boolean, p20: number, p21: number): void;
1018
+ set LodDist(value: number);
1019
+ /**
1020
+ * @param toggle
1021
+ */
1022
+ set Dynamic(toggle: boolean);
1023
+ /**
1024
+ * @param radius
1025
+ */
1026
+ set CustomPickupRadius(radius: number);
1027
+ /**
1028
+ * @returns
1029
+ */
1030
+ get PopulationType(): number;
1028
1031
  /**
1029
1032
  * @returns
1030
1033
  */
1031
- getHeightAboveGround(): number;
1034
+ get IsAVehicle(): boolean;
1032
1035
  /**
1033
1036
  * @param pos
1034
- * @param heading
1035
- * @param p5
1036
- * @param p6
1037
+ * @param atTop
1038
+ * @param inWorldCoords
1039
+ * @returns
1037
1040
  */
1038
- setCoordsAndHeadingNoOffset(pos: Vector3, heading: number, p5: boolean, p6: boolean): void;
1041
+ getHeight(pos: Vector3, atTop: boolean, inWorldCoords: boolean): number;
1039
1042
  /**
1040
- * Creates a spherical cone at origin that extends to surface with the angle specified. Then returns true if the entity is inside the spherical cone Angle is measured in degrees.
1041
- *
1042
- * @param originX
1043
- * @param originY
1044
- * @param originZ
1045
- * @param edgeX
1046
- * @param edgeY
1047
- * @param edgeZ
1048
- * @param angle
1049
- * @param p8
1050
- * @param p9
1051
- * @param p10
1043
+ * @param pos
1052
1044
  * @returns
1053
1045
  */
1054
- isInAngledArea(originX: number, originY: number, originZ: number, edgeX: number, edgeY: number, edgeZ: number, angle: number, p8: boolean, p9: boolean, p10: any): boolean;
1055
- clearLastDamageEntity(): void;
1046
+ getOffsetFromGivenWorldCoords(pos: Vector3): Vector3;
1047
+ addTrackingTrails(): void;
1056
1048
  /**
1057
1049
  * @param toggle
1058
1050
  */
1059
- setAlwaysPrerender(toggle: boolean): void;
1051
+ set CanClimbOnEntity(toggle: boolean);
1060
1052
  /**
1061
- * Note that the third parameter(denoted as z) is "up and down" with positive numbers encouraging upwards movement.
1062
- *
1063
- * @param pos
1053
+ * @returns minimum; maximum
1064
1054
  */
1065
- setVelocity(pos: Vector3): void;
1055
+ get WorldPositionOfDimensions(): [Vector3, Vector3];
1066
1056
  /**
1067
- * SET_ENTITY_LO*
1068
- *
1069
1057
  * @param p1
1070
- * @param p2
1058
+ * @returns
1059
+ */
1060
+ isUnderwater(p1: boolean): any;
1061
+ /**
1062
+ * @param animation
1063
+ * @param animGroup
1071
1064
  * @param p3
1065
+ * @returns
1072
1066
  */
1073
- N_0xAF7F3099B9FEB535(p1: number, p2: number, p3: number): void;
1067
+ stopAnim(animation: string | null, animGroup: string | null, p3: number): any;
1074
1068
  /**
1075
1069
  * @returns
1076
1070
  */
1077
- N_0xAF72EC7E1B54539B(): Entity | null;
1071
+ hasCollidedWithAnything(): boolean;
1078
1072
  /**
1079
1073
  * Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
1080
1074
  *
1081
1075
  * @returns
1082
1076
  */
1083
- getObjectIndexFromIndex(): Prop | null;
1077
+ get VehicleIndexFromIndex(): Vehicle | null;
1084
1078
  /**
1085
- * Has the entity1 got a clear line of sight to the other entity2 from the direction entity1 is facing.
1086
- *
1087
- * @param entity2
1088
- * @param traceType
1089
1079
  * @returns
1090
1080
  */
1091
- hasClearLosToEntityInFront(entity2: Entity, traceType: number): boolean;
1081
+ get IsVisible(): boolean;
1082
+ /**
1083
+ * SET_ENTITY_LO*
1084
+ *
1085
+ * @param toggle
1086
+ */
1087
+ N_0xFF9965C47FA404DA(toggle: boolean): void;
1092
1088
  /**
1089
+ * Valid indices: 0 - 3
1090
+ * Index 1 always returns a `hogtied` config, doesn't matter the entity.
1091
+ * It's for humans only and the ped must be resurrected first if it's dead.
1092
+ *
1093
+ * @param index
1093
1094
  * @returns
1094
1095
  */
1095
- isOnTrainTrack(): any;
1096
+ getOptimalCarryConfig(index: number): number;
1097
+ setFadeIn(): void;
1096
1098
  /**
1097
- * @param angle
1098
1099
  * @returns
1099
1100
  */
1100
- isUpright(angle: number): boolean;
1101
+ hasBeenDamagedByAnyPed(): boolean;
1102
+ /**
1103
+ * Gets the network ID of this entity for network synchronization.
1104
+ */
1105
+ get NetworkId(): number;
1101
1106
  }
1102
1107
  //# sourceMappingURL=Entity.d.ts.map