@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
@@ -13,6 +13,82 @@ export class Ped extends Entity {
13
13
  return null;
14
14
  return Ped.fromHandle(inv('0x5B912C3F653822E6', netId, rai()));
15
15
  }
16
+ /**
17
+ * @returns
18
+ */
19
+ get IsOnFoot() {
20
+ return !!inv('0x01FEE67DB37F59B2', this.handle, rai());
21
+ }
22
+ /**
23
+ * Only used in R* Script nb_stalking_hunter
24
+ *
25
+ * @param ped2
26
+ */
27
+ N_0xED1C764997A86D5A(ped2) {
28
+ inv('0xED1C764997A86D5A', this.handle, ped2.handle);
29
+ }
30
+ /**
31
+ * @param grappleSequence
32
+ */
33
+ set GrappleSequence(grappleSequence) {
34
+ inv('0x604190F0CF0DF158', this.handle, grappleSequence);
35
+ }
36
+ /**
37
+ * @param p1
38
+ */
39
+ N_0xFFA1594703ED27CA(p1) {
40
+ inv('0xFFA1594703ED27CA', this.handle, p1);
41
+ }
42
+ /**
43
+ * @returns
44
+ */
45
+ get MeleeTargetForPed() {
46
+ return createFromHandle('Ped', inv('0x18A3E9EE1297FD39', this.handle, rai()));
47
+ }
48
+ /**
49
+ * Use to apply metaped player components
50
+ * Replaces asset, alternatively you can remove assets using REMOVE_TAG_FROM_META_PED
51
+ *
52
+ * @param drawable
53
+ * @param albedo
54
+ * @param normal
55
+ * @param material
56
+ * @param palette
57
+ * @param tint0
58
+ * @param tint1
59
+ * @param tint2
60
+ */
61
+ setMetaTag(drawable, albedo, normal, material, palette, tint0, tint1, tint2) {
62
+ inv('0xBC6DF00D7A4A6819', this.handle, _h(drawable), _h(albedo), _h(normal), _h(material), _h(palette), tint0, tint1, tint2);
63
+ }
64
+ /**
65
+ * @param p1
66
+ * @param p2
67
+ */
68
+ N_0x32CEDA9A0AB4CEF7(p1, p2) {
69
+ inv('0x32CEDA9A0AB4CEF7', this.handle, _h(p1), p2);
70
+ }
71
+ /**
72
+ * @returns
73
+ */
74
+ get IsChild() {
75
+ return inv('0x137772000DAF42C5', this.handle);
76
+ }
77
+ /**
78
+ * @param index
79
+ * @param p2
80
+ * @returns argStruct; argStruct2
81
+ */
82
+ getShopItemComponentAtIndex(index, p2) {
83
+ const result = inv('0x77BA37622E22023B', this.handle, index, p2, pvi(), pvi(), rai());
84
+ return [result[0] & 0xFFFFFFFF, result[1], result[2]];
85
+ }
86
+ /**
87
+ * @param value
88
+ */
89
+ set MaxMoveBlendRatio(value) {
90
+ inv('0x433083750C5E064A', this.handle, f(value));
91
+ }
16
92
  /**
17
93
  * If targetPed is set to 0 the ped motivationState affects everyone
18
94
  *
@@ -36,7 +112,7 @@ export class Ped extends Entity {
36
112
  * @returns
37
113
  */
38
114
  N_0x2DC0E8DCBD3546E9() {
39
- return inv('0x2DC0E8DCBD3546E9', this.handle, rai());
115
+ return !!inv('0x2DC0E8DCBD3546E9', this.handle, rai());
40
116
  }
41
117
  /**
42
118
  * Doesn't actually return anything.
@@ -50,7 +126,7 @@ export class Ped extends Entity {
50
126
  /**
51
127
  * @returns
52
128
  */
53
- getMetaOutfitHash() {
129
+ get MetaOutfitHash() {
54
130
  return (inv('0x30569F348D126A5A', this.handle, rai())) & 0xFFFFFFFF;
55
131
  }
56
132
  /**
@@ -67,7 +143,7 @@ export class Ped extends Entity {
67
143
  *
68
144
  * @returns
69
145
  */
70
- getDamaged() {
146
+ get Damaged() {
71
147
  return inv('0x6CFC373008A1EDAF', this.handle);
72
148
  }
73
149
  /**
@@ -76,7 +152,7 @@ export class Ped extends Entity {
76
152
  * @returns
77
153
  */
78
154
  N_0x5C6C7C70CA302801() {
79
- return inv('0x5C6C7C70CA302801', this.handle, rai());
155
+ return !!inv('0x5C6C7C70CA302801', this.handle, rai());
80
156
  }
81
157
  /**
82
158
  * _C*
@@ -96,13 +172,13 @@ export class Ped extends Entity {
96
172
  /**
97
173
  * @param bondingLevel
98
174
  */
99
- setMountBondingLevel(bondingLevel) {
175
+ set MountBondingLevel(bondingLevel) {
100
176
  inv('0xA69899995997A63B', this.handle, bondingLevel);
101
177
  }
102
178
  /**
103
179
  * @returns
104
180
  */
105
- isVisibilityTracked() {
181
+ get IsVisibilityTracked() {
106
182
  return inv('0x5102307CE88798EB', this.handle);
107
183
  }
108
184
  /**
@@ -112,7 +188,7 @@ export class Ped extends Entity {
112
188
  * @returns
113
189
  */
114
190
  N_0x550CB89DD7F4FA3D(ped2) {
115
- return inv('0x550CB89DD7F4FA3D', this.handle, ped2.handle, rai());
191
+ return !!inv('0x550CB89DD7F4FA3D', this.handle, ped2.handle, rai());
116
192
  }
117
193
  /**
118
194
  * Used in Script Function CHECK_IS_PLAYER_SEEN
@@ -136,7 +212,7 @@ export class Ped extends Entity {
136
212
  * @returns
137
213
  */
138
214
  N_0xD4D403EA031F351C() {
139
- return inv('0xD4D403EA031F351C', this.handle, rai());
215
+ return !!inv('0xD4D403EA031F351C', this.handle, rai());
140
216
  }
141
217
  releaseVisibilityTracking() {
142
218
  inv('0x3088634CF8C819CF', this.handle);
@@ -165,7 +241,7 @@ export class Ped extends Entity {
165
241
  /**
166
242
  * @param toggle
167
243
  */
168
- setHighlyPerceptive(toggle) {
244
+ set HighlyPerceptive(toggle) {
169
245
  inv('0x52D59AB61DDC05DD', this.handle, toggle);
170
246
  }
171
247
  /**
@@ -183,7 +259,7 @@ export class Ped extends Entity {
183
259
  /**
184
260
  * @param scale
185
261
  */
186
- setScale(scale) {
262
+ set Scale(scale) {
187
263
  inv('0x25ACFC650B65C538', this.handle, f(scale));
188
264
  }
189
265
  /**
@@ -206,14 +282,14 @@ export class Ped extends Entity {
206
282
  * @returns
207
283
  */
208
284
  N_0x0EEF7A81C17679DB() {
209
- return inv('0x0EEF7A81C17679DB', this.handle, rai());
285
+ return !!inv('0x0EEF7A81C17679DB', this.handle, rai());
210
286
  }
211
287
  /**
212
288
  * _SET_W(EAPON?)*
213
289
  *
214
290
  * @param totalDamage
215
291
  */
216
- setTotalDamageFromAi(totalDamage) {
292
+ set TotalDamageFromAi(totalDamage) {
217
293
  inv('0x73B6F907B913C860', this.handle, f(totalDamage));
218
294
  }
219
295
  /**
@@ -229,7 +305,7 @@ export class Ped extends Entity {
229
305
  /**
230
306
  * @param toggle
231
307
  */
232
- setCanTorsoVehicleIk(toggle) {
308
+ set CanTorsoVehicleIk(toggle) {
233
309
  inv('0x6647C5F6F5792496', this.handle, toggle);
234
310
  }
235
311
  /**
@@ -260,7 +336,7 @@ export class Ped extends Entity {
260
336
  /**
261
337
  * @returns
262
338
  */
263
- getNumReservedHealth() {
339
+ get NumReservedHealth() {
264
340
  return inv('0x16F2C8C084AB2092', this.handle);
265
341
  }
266
342
  /**
@@ -279,7 +355,7 @@ export class Ped extends Entity {
279
355
  /**
280
356
  * @param modifier
281
357
  */
282
- setDefenseModifierForPed(modifier) {
358
+ set DefenseModifierForPed(modifier) {
283
359
  inv('0x9B6808EC46BE849B', this.handle, f(modifier));
284
360
  }
285
361
  /**
@@ -297,25 +373,25 @@ export class Ped extends Entity {
297
373
  * @returns
298
374
  */
299
375
  N_0x0D3B1568917EBDA0(p1) {
300
- return inv('0x0D3B1568917EBDA0', this.handle, p1, rai());
376
+ return !!inv('0x0D3B1568917EBDA0', this.handle, p1, rai());
301
377
  }
302
378
  /**
303
379
  * @param abilityLevel Refer to [enum: ePedCombatAbility]
304
380
  */
305
- setCombatAbility(abilityLevel) {
381
+ set CombatAbility(abilityLevel) {
306
382
  inv('0xC7622C0D36B2FDA8', this.handle, abilityLevel);
307
383
  }
308
384
  /**
309
385
  * @returns
310
386
  */
311
- isRunningRagdollTask() {
312
- return inv('0xE3B6097CC25AA69E', this.handle, rai());
387
+ get IsRunningRagdollTask() {
388
+ return !!inv('0xE3B6097CC25AA69E', this.handle, rai());
313
389
  }
314
390
  /**
315
391
  * @returns
316
392
  */
317
- isJumping() {
318
- return inv('0xCEDABC5900A0BF97', this.handle, rai());
393
+ get IsJumping() {
394
+ return !!inv('0xCEDABC5900A0BF97', this.handle, rai());
319
395
  }
320
396
  /**
321
397
  * 0.0 - 1.0
@@ -323,7 +399,7 @@ export class Ped extends Entity {
323
399
  *
324
400
  * @param scent
325
401
  */
326
- setScent(scent) {
402
+ set Scent(scent) {
327
403
  inv('0x01B21B81865E2A1F', this.handle, f(scent));
328
404
  }
329
405
  /**
@@ -348,7 +424,7 @@ export class Ped extends Entity {
348
424
  * @returns
349
425
  */
350
426
  isTargetInPerceptionArea(targetPed, p2, customDistance, p4, p5) {
351
- return inv('0x06087579E7AA85A9', this.handle, targetPed.handle, f(p2), f(customDistance), f(p4), f(p5), rai());
427
+ return !!inv('0x06087579E7AA85A9', this.handle, targetPed.handle, f(p2), f(customDistance), f(p4), f(p5), rai());
352
428
  }
353
429
  initDefaultHealth() {
354
430
  inv('0x7DD7FB3480D8083E', this.handle);
@@ -382,7 +458,7 @@ export class Ped extends Entity {
382
458
  * @returns Returns `true` if the specific action flag is disabled
383
459
  */
384
460
  isActionDisableFlagEnabled(actionDisableFlag) {
385
- return inv('0xB346C85D49CC998E', this.handle, actionDisableFlag, rai());
461
+ return !!inv('0xB346C85D49CC998E', this.handle, actionDisableFlag, rai());
386
462
  }
387
463
  /**
388
464
  * Returns peltId
@@ -400,7 +476,7 @@ export class Ped extends Entity {
400
476
  * @returns
401
477
  */
402
478
  isInAnyVehicle(atGetIn) {
403
- return inv('0x997ABD671D25CA0B', this.handle, atGetIn, rai());
479
+ return !!inv('0x997ABD671D25CA0B', this.handle, atGetIn, rai());
404
480
  }
405
481
  /**
406
482
  * @param p1
@@ -440,7 +516,7 @@ export class Ped extends Entity {
440
516
  *
441
517
  * @returns
442
518
  */
443
- getHorseTamingState() {
519
+ get HorseTamingState() {
444
520
  return inv('0x454AD4DA6C41B5BD', this.handle, rai());
445
521
  }
446
522
  /**
@@ -460,7 +536,7 @@ export class Ped extends Entity {
460
536
  /**
461
537
  * @returns
462
538
  */
463
- getTrackedPixelcount() {
539
+ get TrackedPixelcount() {
464
540
  return inv('0x511F1A683387C7E2', this.handle, rai());
465
541
  }
466
542
  /**
@@ -481,14 +557,14 @@ export class Ped extends Entity {
481
557
  *
482
558
  * @param bleedoutProfile
483
559
  */
484
- setBleedoutProfile(bleedoutProfile) {
560
+ set BleedoutProfile(bleedoutProfile) {
485
561
  inv('0x66C047719B0E80E1', this.handle, _h(bleedoutProfile));
486
562
  }
487
563
  /**
488
564
  * @returns
489
565
  */
490
- isProne() {
491
- return inv('0xD6A86331A537A7B9', this.handle, rai());
566
+ get IsProne() {
567
+ return !!inv('0xD6A86331A537A7B9', this.handle, rai());
492
568
  }
493
569
  /**
494
570
  * _CLEAR_PED_D*
@@ -509,8 +585,8 @@ export class Ped extends Entity {
509
585
  *
510
586
  * @returns
511
587
  */
512
- isSittingInAnyVehicle() {
513
- return inv('0x826AA586EDB9FEF8', this.handle, rai());
588
+ get IsSittingInAnyVehicle() {
589
+ return !!inv('0x826AA586EDB9FEF8', this.handle, rai());
514
590
  }
515
591
  /**
516
592
  * flagId: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePedScriptConfigFlags
@@ -543,7 +619,7 @@ export class Ped extends Entity {
543
619
  * @returns
544
620
  */
545
621
  canKnockOffVehicle() {
546
- return inv('0x51AC07A44D4F5B8A', this.handle, rai());
622
+ return !!inv('0x51AC07A44D4F5B8A', this.handle, rai());
547
623
  }
548
624
  /**
549
625
  * _IS_PED_J* - _IS_PED_L*
@@ -551,7 +627,7 @@ export class Ped extends Entity {
551
627
  * @returns
552
628
  */
553
629
  N_0xB91AB3BE7F655D49() {
554
- return inv('0xB91AB3BE7F655D49', this.handle, rai());
630
+ return !!inv('0xB91AB3BE7F655D49', this.handle, rai());
555
631
  }
556
632
  /**
557
633
  * nmTaskMessageParameterName: See physicstasks.ymt. Search for DraggedByCart or 0xD00820D7 (Used in R* SP Script marston8)
@@ -565,7 +641,7 @@ export class Ped extends Entity {
565
641
  * @returns
566
642
  */
567
643
  setToRagdoll(timeMin, timeMax, ragdollType, abortIfInjured, abortIfDead, nmTaskMessageParameterName) {
568
- return inv('0xAE99FB955581844A', this.handle, timeMin, timeMax, ragdollType, abortIfInjured, abortIfDead, nmTaskMessageParameterName, rai());
644
+ return !!inv('0xAE99FB955581844A', this.handle, timeMin, timeMax, ragdollType, abortIfInjured, abortIfDead, nmTaskMessageParameterName, rai());
569
645
  }
570
646
  /**
571
647
  * Not implemented.
@@ -590,19 +666,19 @@ export class Ped extends Entity {
590
666
  /**
591
667
  * @param toggle
592
668
  */
593
- setCanPlayAmbientBaseAnims(toggle) {
669
+ set CanPlayAmbientBaseAnims(toggle) {
594
670
  inv('0x0EB0585D15254740', this.handle, toggle);
595
671
  }
596
672
  /**
597
673
  * @returns
598
674
  */
599
- getGrappleState() {
675
+ get GrappleState() {
600
676
  return inv('0x2311F15D971AA680', this.handle, rai());
601
677
  }
602
678
  /**
603
679
  * @returns sizeAndVehs
604
680
  */
605
- getNearbyVehicles() {
681
+ get NearbyVehicles() {
606
682
  const result = inv('0xCFF869CBFA210D82', this.handle, pvi(), rai());
607
683
  return [result[0], result[1]];
608
684
  }
@@ -614,12 +690,12 @@ export class Ped extends Entity {
614
690
  * @returns
615
691
  */
616
692
  N_0xC3995D396F1D97B6(p1, p2) {
617
- return inv('0xC3995D396F1D97B6', this.handle, p1, p2, rai());
693
+ return !!inv('0xC3995D396F1D97B6', this.handle, p1, p2, rai());
618
694
  }
619
695
  /**
620
696
  * @returns
621
697
  */
622
- isDragging() {
698
+ get IsDragging() {
623
699
  return inv('0x226CF9B159E38F42', this.handle);
624
700
  }
625
701
  /**
@@ -628,7 +704,7 @@ export class Ped extends Entity {
628
704
  * @returns
629
705
  */
630
706
  N_0x290B2E6CCDE532E1() {
631
- return inv('0x290B2E6CCDE532E1', this.handle, rai());
707
+ return !!inv('0x290B2E6CCDE532E1', this.handle, rai());
632
708
  }
633
709
  /**
634
710
  * @param player
@@ -642,14 +718,14 @@ export class Ped extends Entity {
642
718
  *
643
719
  * @returns
644
720
  */
645
- isLeadingAnyGroup() {
646
- return inv('0x917760CFE7A0E0F1', this.handle, rai());
721
+ get IsLeadingAnyGroup() {
722
+ return !!inv('0x917760CFE7A0E0F1', this.handle, rai());
647
723
  }
648
724
  /**
649
725
  * @returns
650
726
  */
651
- isEnteringAnyTransport() {
652
- return inv('0x1D46B417F926D34D', this.handle);
727
+ get IsEnteringAnyTransport() {
728
+ return !!inv('0x1D46B417F926D34D', this.handle, rai());
653
729
  }
654
730
  /**
655
731
  * *HAS**
@@ -657,7 +733,7 @@ export class Ped extends Entity {
657
733
  * @returns
658
734
  */
659
735
  N_0x7020839C7302D8AC() {
660
- return inv('0x7020839C7302D8AC', this.handle, rai());
736
+ return !!inv('0x7020839C7302D8AC', this.handle, rai());
661
737
  }
662
738
  /**
663
739
  * @param position
@@ -671,8 +747,8 @@ export class Ped extends Entity {
671
747
  *
672
748
  * @returns
673
749
  */
674
- isRagdoll() {
675
- return inv('0x47E4E977581C5B55', this.handle, rai());
750
+ get IsRagdoll() {
751
+ return !!inv('0x47E4E977581C5B55', this.handle, rai());
676
752
  }
677
753
  /**
678
754
  * @returns
@@ -699,25 +775,25 @@ export class Ped extends Entity {
699
775
  /**
700
776
  * @returns
701
777
  */
702
- getFirstEntityIsCarrying() {
778
+ get FirstEntityIsCarrying() {
703
779
  return createFromHandle('Entity', inv('0xD806CD2A4F2C2996', this.handle, rai()));
704
780
  }
705
781
  /**
706
782
  * @returns
707
783
  */
708
- getTransportIsSeatedOn() {
784
+ get TransportIsSeatedOn() {
709
785
  return createFromHandle('Entity', inv('0x849BD6C6314793D0', this.handle, rai()));
710
786
  }
711
787
  /**
712
788
  * @returns
713
789
  */
714
- isAnimalInteractionRunning() {
790
+ get IsAnimalInteractionRunning() {
715
791
  return inv('0x7FC84E85D98F063D', this.handle);
716
792
  }
717
793
  /**
718
794
  * @returns
719
795
  */
720
- getCanBeIncapacitatedThisFrame() {
796
+ get CanBeIncapacitatedThisFrame() {
721
797
  return inv('0x7A4E00364B5D727B', this.handle);
722
798
  }
723
799
  /**
@@ -738,7 +814,7 @@ export class Ped extends Entity {
738
814
  /**
739
815
  * @param p1
740
816
  */
741
- setRandomComponentVariation(p1) {
817
+ set RandomComponentVariation(p1) {
742
818
  inv('0xC8A9481A01E63C28', this.handle, p1);
743
819
  }
744
820
  /**
@@ -746,7 +822,7 @@ export class Ped extends Entity {
746
822
  *
747
823
  * @param p1
748
824
  */
749
- setBeatMultiplier(p1) {
825
+ set BeatMultiplier(p1) {
750
826
  inv('0x6DBF2D78709AD70B', this.handle, f(p1));
751
827
  }
752
828
  /**
@@ -755,7 +831,7 @@ export class Ped extends Entity {
755
831
  * @returns
756
832
  */
757
833
  N_0x40C9155AF8BC13F3() {
758
- return inv('0x40C9155AF8BC13F3', this.handle, rai());
834
+ return !!inv('0x40C9155AF8BC13F3', this.handle, rai());
759
835
  }
760
836
  /**
761
837
  * Only used in R* SP Script winter1: p1 = 5000
@@ -770,13 +846,13 @@ export class Ped extends Entity {
770
846
  /**
771
847
  * @returns
772
848
  */
773
- isHangingOnToVehicle() {
774
- return inv('0x1C86D8AEF8254B78', this.handle, rai());
849
+ get IsHangingOnToVehicle() {
850
+ return !!inv('0x1C86D8AEF8254B78', this.handle, rai());
775
851
  }
776
852
  /**
777
853
  * @returns
778
854
  */
779
- getIsDoingCombatRoll() {
855
+ get IsDoingCombatRoll() {
780
856
  return inv('0xC48A9EB0D499B3E5', this.handle);
781
857
  }
782
858
  /**
@@ -784,7 +860,7 @@ export class Ped extends Entity {
784
860
  * @returns
785
861
  */
786
862
  isBeingStunned(weaponType) {
787
- return inv('0x4FBACCE3B4138EE8', this.handle, _h(weaponType), rai());
863
+ return !!inv('0x4FBACCE3B4138EE8', this.handle, _h(weaponType), rai());
788
864
  }
789
865
  /**
790
866
  * AI_ATTITUDE_NEUTRAL = 0,
@@ -818,8 +894,8 @@ export class Ped extends Entity {
818
894
  *
819
895
  * @returns
820
896
  */
821
- isAnimalControlledByAPlayer() {
822
- return inv('0x0E2F43516F998269', this.handle, rai());
897
+ get IsAnimalControlledByAPlayer() {
898
+ return !!inv('0x0E2F43516F998269', this.handle, rai());
823
899
  }
824
900
  /**
825
901
  * @param object
@@ -843,7 +919,7 @@ export class Ped extends Entity {
843
919
  /**
844
920
  * @returns
845
921
  */
846
- getIncapacitationTimeRemaining() {
922
+ get IncapacitationTimeRemaining() {
847
923
  return inv('0x88D9D76D78065487', this.handle, rai());
848
924
  }
849
925
  /**
@@ -859,7 +935,7 @@ export class Ped extends Entity {
859
935
  /**
860
936
  * @returns
861
937
  */
862
- isCowering() {
938
+ get IsCowering() {
863
939
  return inv('0xB086C8C0F5701D14', this.handle);
864
940
  }
865
941
  /**
@@ -867,7 +943,7 @@ export class Ped extends Entity {
867
943
  *
868
944
  * @returns
869
945
  */
870
- getLastLedMount() {
946
+ get LastLedMount() {
871
947
  return createFromHandle('Ped', inv('0x693126B5D0457D0D', this.handle, rai()));
872
948
  }
873
949
  /**
@@ -882,19 +958,19 @@ export class Ped extends Entity {
882
958
  * @returns
883
959
  */
884
960
  N_0x09D7AFD3716DA8E1(p1) {
885
- return inv('0x09D7AFD3716DA8E1', this.handle, p1, rai());
961
+ return !!inv('0x09D7AFD3716DA8E1', this.handle, p1, rai());
886
962
  }
887
963
  /**
888
964
  * @param p1
889
965
  * @returns
890
966
  */
891
967
  isDeadOrDying(p1) {
892
- return inv('0x3317DEDB88C95038', this.handle, p1, rai());
968
+ return !!inv('0x3317DEDB88C95038', this.handle, p1, rai());
893
969
  }
894
970
  /**
895
971
  * @param toggle
896
972
  */
897
- setCanTorsoReactIk(toggle) {
973
+ set CanTorsoReactIk(toggle) {
898
974
  inv('0xF5846EDB26A98A24', this.handle, toggle);
899
975
  }
900
976
  /**
@@ -924,13 +1000,13 @@ export class Ped extends Entity {
924
1000
  /**
925
1001
  * @param toggle
926
1002
  */
927
- setCanLegIk(toggle) {
1003
+ set CanLegIk(toggle) {
928
1004
  inv('0x73518ECE2485412B', this.handle, toggle);
929
1005
  }
930
1006
  /**
931
1007
  * @param speech
932
1008
  */
933
- setInteractionPositiveResponse(speech) {
1009
+ set InteractionPositiveResponse(speech) {
934
1010
  inv('0x20C5459379D75C1C', this.handle, speech);
935
1011
  }
936
1012
  /**
@@ -945,14 +1021,14 @@ export class Ped extends Entity {
945
1021
  /**
946
1022
  * @param p1
947
1023
  */
948
- setLadderMovementSpeedModifier(p1) {
1024
+ set LadderMovementSpeedModifier(p1) {
949
1025
  inv('0x05CE6AF4DF071D23', this.handle, f(p1));
950
1026
  }
951
1027
  /**
952
1028
  * @returns
953
1029
  */
954
1030
  N_0x88A5564B19C15391() {
955
- return inv('0x88A5564B19C15391', this.handle, rai());
1031
+ return !!inv('0x88A5564B19C15391', this.handle, rai());
956
1032
  }
957
1033
  /**
958
1034
  * @param p1
@@ -963,7 +1039,7 @@ export class Ped extends Entity {
963
1039
  /**
964
1040
  * @param unk
965
1041
  */
966
- setInjuredOnGroundBehaviour(unk) {
1042
+ set InjuredOnGroundBehaviour(unk) {
967
1043
  inv('0xEC4B4B3B9908052A', this.handle, f(unk));
968
1044
  }
969
1045
  /**
@@ -992,7 +1068,7 @@ export class Ped extends Entity {
992
1068
  /**
993
1069
  * @param toggle
994
1070
  */
995
- setKeepTask(toggle) {
1071
+ set KeepTask(toggle) {
996
1072
  inv('0x971D38760FBC02EF', this.handle, toggle);
997
1073
  }
998
1074
  /**
@@ -1000,7 +1076,7 @@ export class Ped extends Entity {
1000
1076
  *
1001
1077
  * @param patternHash
1002
1078
  */
1003
- setFiringPattern(patternHash) {
1079
+ set FiringPattern(patternHash) {
1004
1080
  inv('0x9AC577F5A12AD8A9', this.handle, _h(patternHash));
1005
1081
  }
1006
1082
  /**
@@ -1014,15 +1090,15 @@ export class Ped extends Entity {
1014
1090
  /**
1015
1091
  * @returns
1016
1092
  */
1017
- isClimbing() {
1018
- return inv('0x53E8CB4F48BFE623', this.handle, rai());
1093
+ get IsClimbing() {
1094
+ return !!inv('0x53E8CB4F48BFE623', this.handle, rai());
1019
1095
  }
1020
1096
  /**
1021
1097
  * Params: shootRate = 0 - 1000
1022
1098
  *
1023
1099
  * @param shootRate
1024
1100
  */
1025
- setShootRate(shootRate) {
1101
+ set ShootRate(shootRate) {
1026
1102
  inv('0x614DA022990752DC', this.handle, shootRate);
1027
1103
  }
1028
1104
  /**
@@ -1030,7 +1106,7 @@ export class Ped extends Entity {
1030
1106
  * @returns
1031
1107
  */
1032
1108
  isAnimalInteractionPossible(animal) {
1033
- return inv('0xD543D3A8FDE4F185', this.handle, animal.handle);
1109
+ return !!inv('0xD543D3A8FDE4F185', this.handle, animal.handle, rai());
1034
1110
  }
1035
1111
  /**
1036
1112
  * Ped will no longer get angry when you stay near him.
@@ -1054,8 +1130,8 @@ export class Ped extends Entity {
1054
1130
  *
1055
1131
  * @returns
1056
1132
  */
1057
- isShooting() {
1058
- return inv('0x34616828CD07F1A1', this.handle, rai());
1133
+ get IsShooting() {
1134
+ return !!inv('0x34616828CD07F1A1', this.handle, rai());
1059
1135
  }
1060
1136
  /**
1061
1137
  * p1:
@@ -1158,7 +1234,7 @@ export class Ped extends Entity {
1158
1234
  /**
1159
1235
  * @param toggle
1160
1236
  */
1161
- setCanPlayAmbientAnims(toggle) {
1237
+ set CanPlayAmbientAnims(toggle) {
1162
1238
  inv('0x6373D1349925A70E', this.handle, toggle);
1163
1239
  }
1164
1240
  resetWeaponMovementClipset() {
@@ -1176,7 +1252,7 @@ export class Ped extends Entity {
1176
1252
  /**
1177
1253
  * @returns
1178
1254
  */
1179
- getMaxHealth() {
1255
+ get MaxHealth() {
1180
1256
  return inv('0x4700A416E8324EF3', this.handle, rai());
1181
1257
  }
1182
1258
  /**
@@ -1185,12 +1261,12 @@ export class Ped extends Entity {
1185
1261
  * @returns
1186
1262
  */
1187
1263
  wasSkeletonUpdated() {
1188
- return inv('0x11B499C1E0FF8559', this.handle, rai());
1264
+ return !!inv('0x11B499C1E0FF8559', this.handle, rai());
1189
1265
  }
1190
1266
  /**
1191
1267
  * @param damageCleanliness Refer to [enum: ePedDamageCleanliness]
1192
1268
  */
1193
- setDamageCleanliness(damageCleanliness) {
1269
+ set DamageCleanliness(damageCleanliness) {
1194
1270
  inv('0x7528720101A807A5', this.handle, damageCleanliness);
1195
1271
  }
1196
1272
  /**
@@ -1239,7 +1315,7 @@ export class Ped extends Entity {
1239
1315
  /**
1240
1316
  * @param toggle
1241
1317
  */
1242
- setCanRagdoll(toggle) {
1318
+ set CanRagdoll(toggle) {
1243
1319
  inv('0xB128377056A54E2A', this.handle, toggle);
1244
1320
  }
1245
1321
  /**
@@ -1263,7 +1339,7 @@ export class Ped extends Entity {
1263
1339
  *
1264
1340
  * @param toggle
1265
1341
  */
1266
- setCanBeLassoed(toggle) {
1342
+ set CanBeLassoed(toggle) {
1267
1343
  inv('0xFD6943B6DF77E449', this.handle, toggle);
1268
1344
  }
1269
1345
  /**
@@ -1295,7 +1371,7 @@ export class Ped extends Entity {
1295
1371
  /**
1296
1372
  * @returns
1297
1373
  */
1298
- getVehicleIsUsing() {
1374
+ get VehicleIsUsing() {
1299
1375
  return createFromHandle('Vehicle', inv('0x6094AD011A2EA87D', this.handle, rai()));
1300
1376
  }
1301
1377
  /**
@@ -1303,7 +1379,7 @@ export class Ped extends Entity {
1303
1379
  * @returns
1304
1380
  */
1305
1381
  isInCombat(target) {
1306
- return inv('0x4859F1FC66A6278E', this.handle, target.handle, rai());
1382
+ return !!inv('0x4859F1FC66A6278E', this.handle, target.handle, rai());
1307
1383
  }
1308
1384
  /**
1309
1385
  * _SET_PED_MO*
@@ -1316,7 +1392,7 @@ export class Ped extends Entity {
1316
1392
  /**
1317
1393
  * @returns
1318
1394
  */
1319
- getHealthRechargeMultiplier() {
1395
+ get HealthRechargeMultiplier() {
1320
1396
  return inv('0x95B8E397B8F4360F', this.handle, raf());
1321
1397
  }
1322
1398
  /**
@@ -1328,13 +1404,13 @@ export class Ped extends Entity {
1328
1404
  /**
1329
1405
  * @param modifier
1330
1406
  */
1331
- setCurrentDefenseAgainstPlayersModifier(modifier) {
1407
+ set CurrentDefenseAgainstPlayersModifier(modifier) {
1332
1408
  inv('0x069EDDF1FD4DEB0A', this.handle, f(modifier));
1333
1409
  }
1334
1410
  /**
1335
1411
  * @returns
1336
1412
  */
1337
- getToPlayerWeaponDamageModifier() {
1413
+ get ToPlayerWeaponDamageModifier() {
1338
1414
  return inv('0x936E7CAD0AE2EE14', this.handle, raf());
1339
1415
  }
1340
1416
  /**
@@ -1372,7 +1448,7 @@ export class Ped extends Entity {
1372
1448
  /**
1373
1449
  * @param toggle
1374
1450
  */
1375
- setEnableBoundAnkles(toggle) {
1451
+ set EnableBoundAnkles(toggle) {
1376
1452
  inv('0xC52E0F855C58FC2E', this.handle, toggle);
1377
1453
  }
1378
1454
  requestVisibilityTracking() {
@@ -1381,7 +1457,7 @@ export class Ped extends Entity {
1381
1457
  /**
1382
1458
  * @param duration
1383
1459
  */
1384
- setIncapacitationTotalBleedOutDuration(duration) {
1460
+ set IncapacitationTotalBleedOutDuration(duration) {
1385
1461
  inv('0x2890418B39BC8FFF', this.handle, f(duration));
1386
1462
  }
1387
1463
  /**
@@ -1390,12 +1466,12 @@ export class Ped extends Entity {
1390
1466
  * @returns
1391
1467
  */
1392
1468
  N_0x5BF0B9D9A8E227A0() {
1393
- return inv('0x5BF0B9D9A8E227A0', this.handle, rai());
1469
+ return !!inv('0x5BF0B9D9A8E227A0', this.handle, rai());
1394
1470
  }
1395
1471
  /**
1396
1472
  * @returns
1397
1473
  */
1398
- getIdRange() {
1474
+ get IdRange() {
1399
1475
  return inv('0x31167ED4324B758D', this.handle, raf());
1400
1476
  }
1401
1477
  /**
@@ -1403,18 +1479,18 @@ export class Ped extends Entity {
1403
1479
  * @returns
1404
1480
  */
1405
1481
  isGroupLeader(groupId) {
1406
- return inv('0x878B68960C1C2A35', this.handle, groupId);
1482
+ return !!inv('0x878B68960C1C2A35', this.handle, groupId, rai());
1407
1483
  }
1408
1484
  /**
1409
1485
  * @returns
1410
1486
  */
1411
- isSliding() {
1487
+ get IsSliding() {
1412
1488
  return inv('0xD6740E14E4CEFC0B', this.handle);
1413
1489
  }
1414
1490
  /**
1415
1491
  * @returns
1416
1492
  */
1417
- getJackTarget() {
1493
+ get JackTarget() {
1418
1494
  return createFromHandle('Ped', inv('0x5486A79D9FBD342D', this.handle, rai()));
1419
1495
  }
1420
1496
  /**
@@ -1422,7 +1498,7 @@ export class Ped extends Entity {
1422
1498
  * @returns
1423
1499
  */
1424
1500
  N_0xD355E2F1BB41087E(p1) {
1425
- return inv('0xD355E2F1BB41087E', this.handle, f(p1), rai());
1501
+ return !!inv('0xD355E2F1BB41087E', this.handle, f(p1), rai());
1426
1502
  }
1427
1503
  /**
1428
1504
  * Washing player's face/hands now
@@ -1444,12 +1520,12 @@ export class Ped extends Entity {
1444
1520
  * @returns
1445
1521
  */
1446
1522
  isHeadingTowardsPosition(pos, p4) {
1447
- return inv('0xFCF37A457CB96DC0', this.handle, f(pos.x), f(pos.y), f(pos.z), f(p4), rai());
1523
+ return !!inv('0xFCF37A457CB96DC0', this.handle, f(pos.x), f(pos.y), f(pos.z), f(p4), rai());
1448
1524
  }
1449
1525
  /**
1450
1526
  * @returns
1451
1527
  */
1452
- getIncapacitationHealth() {
1528
+ get IncapacitationHealth() {
1453
1529
  return inv('0x89BFDF6D53145545', this.handle, rai());
1454
1530
  }
1455
1531
  /**
@@ -1493,13 +1569,13 @@ export class Ped extends Entity {
1493
1569
  /**
1494
1570
  * @param p1
1495
1571
  */
1496
- setRandomOutfitVariation(p1) {
1572
+ set RandomOutfitVariation(p1) {
1497
1573
  inv('0x283978A15512B2FE', this.handle, p1);
1498
1574
  }
1499
1575
  /**
1500
1576
  * @returns
1501
1577
  */
1502
- getIsGrappling() {
1578
+ get IsGrappling() {
1503
1579
  return inv('0x0E99E3BF11BB6367', this.handle);
1504
1580
  }
1505
1581
  /**
@@ -1513,13 +1589,13 @@ export class Ped extends Entity {
1513
1589
  /**
1514
1590
  * @returns
1515
1591
  */
1516
- isOnMount() {
1517
- return inv('0x460BC76A0E10655E', this.handle, rai());
1592
+ get IsOnMount() {
1593
+ return !!inv('0x460BC76A0E10655E', this.handle, rai());
1518
1594
  }
1519
1595
  /**
1520
1596
  * @returns
1521
1597
  */
1522
- getLastVehicleDraftHorseWasAttachedTo() {
1598
+ get LastVehicleDraftHorseWasAttachedTo() {
1523
1599
  return createFromHandle('Vehicle', inv('0x5064DB5083C29921', this.handle, rai()));
1524
1600
  }
1525
1601
  /**
@@ -1529,7 +1605,7 @@ export class Ped extends Entity {
1529
1605
  * @returns
1530
1606
  */
1531
1607
  N_0xD55DB4466D00A258() {
1532
- return inv('0xD55DB4466D00A258', this.handle, rai());
1608
+ return !!inv('0xD55DB4466D00A258', this.handle, rai());
1533
1609
  }
1534
1610
  /**
1535
1611
  * METAPED_PLAYER_COMPONENTS_SET_META_TYPE_TO_BE_BYPASSED: Setting visibility
@@ -1545,7 +1621,7 @@ export class Ped extends Entity {
1545
1621
  *
1546
1622
  * @returns
1547
1623
  */
1548
- isUsingSlipstream() {
1624
+ get IsUsingSlipstream() {
1549
1625
  return inv('0xAF61B3CD8C3B82C3', this.handle);
1550
1626
  }
1551
1627
  /**
@@ -1561,7 +1637,7 @@ export class Ped extends Entity {
1561
1637
  * @returns
1562
1638
  */
1563
1639
  canRagdoll() {
1564
- return inv('0x128F79EDCECE4FD5', this.handle, rai());
1640
+ return !!inv('0x128F79EDCECE4FD5', this.handle, rai());
1565
1641
  }
1566
1642
  /**
1567
1643
  * Ped: The ped to warp.
@@ -1605,8 +1681,8 @@ export class Ped extends Entity {
1605
1681
  /**
1606
1682
  * @returns
1607
1683
  */
1608
- isInAnyBoat() {
1609
- return inv('0x2E0E1C2B4F6CB339', this.handle, rai());
1684
+ get IsInAnyBoat() {
1685
+ return !!inv('0x2E0E1C2B4F6CB339', this.handle, rai());
1610
1686
  }
1611
1687
  /**
1612
1688
  * no bone = -1
@@ -1626,13 +1702,13 @@ export class Ped extends Entity {
1626
1702
  /**
1627
1703
  * @returns
1628
1704
  */
1629
- getAccuracy() {
1705
+ get Accuracy() {
1630
1706
  return inv('0x37F4AD56ECBC0CD6', this.handle, rai());
1631
1707
  }
1632
1708
  /**
1633
1709
  * @param toggle
1634
1710
  */
1635
- setDesiresGroup(toggle) {
1711
+ set DesiresGroup(toggle) {
1636
1712
  inv('0xBAD2A311667A50D7', this.handle, toggle);
1637
1713
  }
1638
1714
  /**
@@ -1692,7 +1768,7 @@ export class Ped extends Entity {
1692
1768
  /**
1693
1769
  * @param peltId
1694
1770
  */
1695
- setPeltForHorse(peltId) {
1771
+ set PeltForHorse(peltId) {
1696
1772
  inv('0xA73F50E8796150D5', this.handle, peltId);
1697
1773
  }
1698
1774
  /**
@@ -1720,7 +1796,7 @@ export class Ped extends Entity {
1720
1796
  /**
1721
1797
  * @param modifier
1722
1798
  */
1723
- setAnimalDetectionModifier(modifier) {
1799
+ set AnimalDetectionModifier(modifier) {
1724
1800
  inv('0x43CA928E892CFDB8', this.handle, f(modifier));
1725
1801
  }
1726
1802
  /**
@@ -1744,13 +1820,13 @@ export class Ped extends Entity {
1744
1820
  *
1745
1821
  * @param damageModifier
1746
1822
  */
1747
- setToPlayerWeaponDamageModifier(damageModifier) {
1823
+ set ToPlayerWeaponDamageModifier(damageModifier) {
1748
1824
  inv('0xD77AE48611B7B10A', this.handle, f(damageModifier));
1749
1825
  }
1750
1826
  /**
1751
1827
  * @param quality Refer to [enum: ePedQuality]
1752
1828
  */
1753
- setQuality(quality) {
1829
+ set Quality(quality) {
1754
1830
  inv('0xCE6B874286D640BB', this.handle, quality);
1755
1831
  }
1756
1832
  /**
@@ -1759,7 +1835,7 @@ export class Ped extends Entity {
1759
1835
  * @returns
1760
1836
  */
1761
1837
  N_0x7EE3A8660F38797E() {
1762
- return inv('0x7EE3A8660F38797E', this.handle, rai());
1838
+ return !!inv('0x7EE3A8660F38797E', this.handle, rai());
1763
1839
  }
1764
1840
  /**
1765
1841
  * @param ikIndex
@@ -1781,14 +1857,14 @@ export class Ped extends Entity {
1781
1857
  * @returns
1782
1858
  */
1783
1859
  isInVehicle(vehicle, atGetIn) {
1784
- return inv('0xA3EE4A07279BB9DB', this.handle, vehicle.handle, atGetIn, rai());
1860
+ return !!inv('0xA3EE4A07279BB9DB', this.handle, vehicle.handle, atGetIn, rai());
1785
1861
  }
1786
1862
  /**
1787
1863
  * Sets the maximum health of a ped.
1788
1864
  *
1789
1865
  * @param value
1790
1866
  */
1791
- setMaxHealth(value) {
1867
+ set MaxHealth(value) {
1792
1868
  inv('0xF5F6378C4F3419D3', this.handle, value);
1793
1869
  }
1794
1870
  /**
@@ -1803,7 +1879,7 @@ export class Ped extends Entity {
1803
1879
  /**
1804
1880
  * @param multiplier
1805
1881
  */
1806
- setHealthRechargeMultiplier(multiplier) {
1882
+ set HealthRechargeMultiplier(multiplier) {
1807
1883
  inv('0xDE1B1907A83A1550', this.handle, multiplier);
1808
1884
  }
1809
1885
  /**
@@ -1852,8 +1928,8 @@ export class Ped extends Entity {
1852
1928
  /**
1853
1929
  * @returns
1854
1930
  */
1855
- isHogtied() {
1856
- return inv('0x3AA24CCC0D451379', this.handle);
1931
+ get IsHogtied() {
1932
+ return !!inv('0x3AA24CCC0D451379', this.handle, rai());
1857
1933
  }
1858
1934
  fadeAndDestroyPed() {
1859
1935
  inv('0x7043D0681285BA2D', this.handle);
@@ -1880,7 +1956,7 @@ export class Ped extends Entity {
1880
1956
  *
1881
1957
  * @param toggle
1882
1958
  */
1883
- setMountSecurityEnabled(toggle) {
1959
+ set MountSecurityEnabled(toggle) {
1884
1960
  inv('0x11E6B9629C46D6EC', this.handle, toggle);
1885
1961
  }
1886
1962
  /**
@@ -1888,7 +1964,7 @@ export class Ped extends Entity {
1888
1964
  *
1889
1965
  * @param disable
1890
1966
  */
1891
- setDisableKickMove(disable) {
1967
+ set DisableKickMove(disable) {
1892
1968
  inv('0xADD31A5C7A5FAA73', this.handle, disable);
1893
1969
  }
1894
1970
  /**
@@ -1897,7 +1973,7 @@ export class Ped extends Entity {
1897
1973
  *
1898
1974
  * @param personality
1899
1975
  */
1900
- setInteractionPersonality(personality) {
1976
+ set InteractionPersonality(personality) {
1901
1977
  inv('0x24C82EF607105FAA', this.handle, _h(personality));
1902
1978
  }
1903
1979
  /**
@@ -1921,13 +1997,13 @@ export class Ped extends Entity {
1921
1997
  /**
1922
1998
  * @param toggle
1923
1999
  */
1924
- setToDisableRagdoll(toggle) {
2000
+ set ToDisableRagdoll(toggle) {
1925
2001
  inv('0x221F4D9912B7FE86', this.handle, toggle);
1926
2002
  }
1927
2003
  /**
1928
2004
  * @returns
1929
2005
  */
1930
- getSeatIsUsing() {
2006
+ get SeatIsUsing() {
1931
2007
  return inv('0x4E76CB57222A00E5', this.handle, rai());
1932
2008
  }
1933
2009
  /**
@@ -1935,13 +2011,13 @@ export class Ped extends Entity {
1935
2011
  *
1936
2012
  * @returns
1937
2013
  */
1938
- isMale() {
1939
- return inv('0x6D9F5FAA7488BA46', this.handle, rai());
2014
+ get IsMale() {
2015
+ return !!inv('0x6D9F5FAA7488BA46', this.handle, rai());
1940
2016
  }
1941
2017
  /**
1942
2018
  * @returns
1943
2019
  */
1944
- getLastDroppedHat() {
2020
+ get LastDroppedHat() {
1945
2021
  return createFromHandle('Prop', inv('0x1F714E7A9DADFC42', this.handle, rai()));
1946
2022
  }
1947
2023
  /**
@@ -1951,20 +2027,20 @@ export class Ped extends Entity {
1951
2027
  * @returns
1952
2028
  */
1953
2029
  isUsingScenarioHash(scenarioHash) {
1954
- return inv('0x34D6AC1157C8226C', this.handle, _h(scenarioHash));
2030
+ return !!inv('0x34D6AC1157C8226C', this.handle, _h(scenarioHash), rai());
1955
2031
  }
1956
2032
  /**
1957
2033
  * Sets ped eye redness, weariness: 0.f to 1.f
1958
2034
  *
1959
2035
  * @param weariness
1960
2036
  */
1961
- setMetaWeariness(weariness) {
2037
+ set MetaWeariness(weariness) {
1962
2038
  inv('0x314C5465195F3B30', this.handle, f(weariness));
1963
2039
  }
1964
2040
  /**
1965
2041
  * @returns
1966
2042
  */
1967
- getHeight() {
2043
+ get Height() {
1968
2044
  return inv('0x1D491CCF7211FB74', this.handle, raf());
1969
2045
  }
1970
2046
  /**
@@ -1990,14 +2066,14 @@ export class Ped extends Entity {
1990
2066
  * @returns
1991
2067
  */
1992
2068
  getResetFlag(flagId) {
1993
- return inv('0xAF9E59B1B1FBF2A0', this.handle, flagId, rai());
2069
+ return !!inv('0xAF9E59B1B1FBF2A0', this.handle, flagId, rai());
1994
2070
  }
1995
2071
  /**
1996
2072
  * Old name: SET_PED_CLOTH_PACKAGE_INDEX
1997
2073
  *
1998
2074
  * @param p1
1999
2075
  */
2000
- setClothPinFrames(p1) {
2076
+ set ClothPinFrames(p1) {
2001
2077
  inv('0x78C4E9961DB3EB5B', this.handle, p1);
2002
2078
  }
2003
2079
  /**
@@ -2021,13 +2097,13 @@ export class Ped extends Entity {
2021
2097
  /**
2022
2098
  * @returns
2023
2099
  */
2024
- isBeingJacked() {
2025
- return inv('0x9A497FE2DF198913', this.handle, rai());
2100
+ get IsBeingJacked() {
2101
+ return !!inv('0x9A497FE2DF198913', this.handle, rai());
2026
2102
  }
2027
2103
  /**
2028
2104
  * @returns
2029
2105
  */
2030
- getTimeOfDeath() {
2106
+ get TimeOfDeath() {
2031
2107
  return inv('0x1E98817B311AE98A', this.handle, rai());
2032
2108
  }
2033
2109
  /**
@@ -2041,7 +2117,7 @@ export class Ped extends Entity {
2041
2117
  /**
2042
2118
  * @returns
2043
2119
  */
2044
- getLodMultiplier() {
2120
+ get LodMultiplier() {
2045
2121
  return inv('0x1B710E6F4AB69341', this.handle, raf());
2046
2122
  }
2047
2123
  /**
@@ -2049,13 +2125,13 @@ export class Ped extends Entity {
2049
2125
  *
2050
2126
  * @param patternHash
2051
2127
  */
2052
- setFiringPattern2(patternHash) {
2128
+ set FiringPattern2(patternHash) {
2053
2129
  inv('0x20E54854DEF6A54A', this.handle, _h(patternHash));
2054
2130
  }
2055
2131
  /**
2056
2132
  * @returns outBone
2057
2133
  */
2058
- getLastDamageBone() {
2134
+ get LastDamageBone() {
2059
2135
  const result = inv('0xD75960F6BD9EA49C', this.handle, pvi(), rai());
2060
2136
  return [!!result[0], result[1]];
2061
2137
  }
@@ -2071,13 +2147,13 @@ export class Ped extends Entity {
2071
2147
  *
2072
2148
  * @param toggle
2073
2149
  */
2074
- setAsCop(toggle) {
2150
+ set AsCop(toggle) {
2075
2151
  inv('0xBB03C38DD3FB7FFD', this.handle, toggle);
2076
2152
  }
2077
2153
  /**
2078
2154
  * @param value
2079
2155
  */
2080
- setIdRange(value) {
2156
+ set IdRange(value) {
2081
2157
  inv('0xF107E836A70DCE05', this.handle, f(value));
2082
2158
  }
2083
2159
  /**
@@ -2086,7 +2162,7 @@ export class Ped extends Entity {
2086
2162
  * @returns
2087
2163
  */
2088
2164
  isGroupMember(groupId, p2) {
2089
- return inv('0x9BB01E3834671191', this.handle, groupId, p2, rai());
2165
+ return !!inv('0x9BB01E3834671191', this.handle, groupId, p2, rai());
2090
2166
  }
2091
2167
  /**
2092
2168
  * _IS_PED_M* - _IS_PED_O*
@@ -2096,18 +2172,18 @@ export class Ped extends Entity {
2096
2172
  * @returns
2097
2173
  */
2098
2174
  N_0x2DD4E0E26DFAD97D(ped2, p2) {
2099
- return inv('0x2DD4E0E26DFAD97D', this.handle, ped2.handle, f(p2), rai());
2175
+ return !!inv('0x2DD4E0E26DFAD97D', this.handle, ped2.handle, f(p2), rai());
2100
2176
  }
2101
2177
  /**
2102
2178
  * @param bEnableIK
2103
2179
  */
2104
- setCanBodyRecoilIk(bEnableIK) {
2180
+ set CanBodyRecoilIk(bEnableIK) {
2105
2181
  inv('0xEE9DF765990E8D1D', this.handle, bEnableIK);
2106
2182
  }
2107
2183
  /**
2108
2184
  * @returns
2109
2185
  */
2110
- getLastMount() {
2186
+ get LastMount() {
2111
2187
  return createFromHandle('Ped', inv('0x4C8B59171957BCF7', this.handle, rai()));
2112
2188
  }
2113
2189
  /**
@@ -2125,7 +2201,7 @@ export class Ped extends Entity {
2125
2201
  /**
2126
2202
  * @returns
2127
2203
  */
2128
- getRelationshipGroupHash() {
2204
+ get RelationshipGroupHash() {
2129
2205
  return (inv('0x7DBDD04862D95F04', this.handle, rai())) & 0xFFFFFFFF;
2130
2206
  }
2131
2207
  /**
@@ -2153,13 +2229,13 @@ export class Ped extends Entity {
2153
2229
  /**
2154
2230
  * @param multiplier
2155
2231
  */
2156
- setLodMultiplier(multiplier) {
2232
+ set LodMultiplier(multiplier) {
2157
2233
  inv('0xDC2C5C242AAC342B', this.handle, f(multiplier));
2158
2234
  }
2159
2235
  /**
2160
2236
  * @returns
2161
2237
  */
2162
- isIntimidated() {
2238
+ get IsIntimidated() {
2163
2239
  return inv('0x57779B55B83E2BEA', this.handle);
2164
2240
  }
2165
2241
  /**
@@ -2169,7 +2245,7 @@ export class Ped extends Entity {
2169
2245
  * @returns
2170
2246
  */
2171
2247
  isRespondingToEvent(eventType) {
2172
- return inv('0x625B774D75C87068', this.handle, _h(eventType), rai());
2248
+ return !!inv('0x625B774D75C87068', this.handle, _h(eventType), rai());
2173
2249
  }
2174
2250
  /**
2175
2251
  * *RESET_PED**
@@ -2187,20 +2263,20 @@ export class Ped extends Entity {
2187
2263
  /**
2188
2264
  * @returns
2189
2265
  */
2190
- isSitting() {
2191
- return inv('0x84D0BF2B21862059', this.handle);
2266
+ get IsSitting() {
2267
+ return !!inv('0x84D0BF2B21862059', this.handle, rai());
2192
2268
  }
2193
2269
  /**
2194
2270
  * @returns
2195
2271
  */
2196
- getNumComponentsInPed() {
2272
+ get NumComponentsInPed() {
2197
2273
  return inv('0x90403E8107B60E81', this.handle, rai());
2198
2274
  }
2199
2275
  /**
2200
2276
  * @returns
2201
2277
  */
2202
- isSwimmingUnderWater() {
2203
- return inv('0xC024869A53992F34', this.handle, rai());
2278
+ get IsSwimmingUnderWater() {
2279
+ return !!inv('0xC024869A53992F34', this.handle, rai());
2204
2280
  }
2205
2281
  /**
2206
2282
  * _SET_PED_T* - SET_PED_U*
@@ -2214,13 +2290,13 @@ export class Ped extends Entity {
2214
2290
  /**
2215
2291
  * @returns
2216
2292
  */
2217
- getCombatRange() {
2293
+ get CombatRange() {
2218
2294
  return inv('0xFFDE295662405B25', this.handle, rai());
2219
2295
  }
2220
2296
  /**
2221
2297
  * @param grappleAction
2222
2298
  */
2223
- setGrappleAction(grappleAction) {
2299
+ set GrappleAction(grappleAction) {
2224
2300
  inv('0x8301D87B1B89E219', this.handle, _h(grappleAction));
2225
2301
  }
2226
2302
  /**
@@ -2263,13 +2339,13 @@ export class Ped extends Entity {
2263
2339
  /**
2264
2340
  * @returns
2265
2341
  */
2266
- isReadyToRender() {
2267
- return inv('0xA0BC8FAED8CFEB3C', this.handle);
2342
+ get IsReadyToRender() {
2343
+ return !!inv('0xA0BC8FAED8CFEB3C', this.handle, rai());
2268
2344
  }
2269
2345
  /**
2270
2346
  * @param value
2271
2347
  */
2272
- setSeeingRange(value) {
2348
+ set SeeingRange(value) {
2273
2349
  inv('0xF29CF591C4BF6CEE', this.handle, f(value));
2274
2350
  }
2275
2351
  /**
@@ -2300,7 +2376,7 @@ export class Ped extends Entity {
2300
2376
  *
2301
2377
  * @returns
2302
2378
  */
2303
- getNumComponentCategoriesInPed() {
2379
+ get NumComponentCategoriesInPed() {
2304
2380
  return inv('0xA622E66EEE92A08D', this.handle, rai());
2305
2381
  }
2306
2382
  disableInjuredOnGroundBehaviour() {
@@ -2327,7 +2403,7 @@ export class Ped extends Entity {
2327
2403
  /**
2328
2404
  * @param toggle
2329
2405
  */
2330
- setCanHeadIk(toggle) {
2406
+ set CanHeadIk(toggle) {
2331
2407
  inv('0xC11C18092C5530DC', this.handle, toggle);
2332
2408
  }
2333
2409
  /**
@@ -2336,7 +2412,7 @@ export class Ped extends Entity {
2336
2412
  * @returns
2337
2413
  */
2338
2414
  N_0x12EB4E31F092C9B3() {
2339
- return inv('0x12EB4E31F092C9B3', this.handle, rai());
2415
+ return !!inv('0x12EB4E31F092C9B3', this.handle, rai());
2340
2416
  }
2341
2417
  /**
2342
2418
  * Washing player's face/hands now
@@ -2352,8 +2428,8 @@ export class Ped extends Entity {
2352
2428
  /**
2353
2429
  * @returns
2354
2430
  */
2355
- isBeingStealthKilled() {
2356
- return inv('0x863B23EFDE9C5DF2', this.handle, rai());
2431
+ get IsBeingStealthKilled() {
2432
+ return !!inv('0x863B23EFDE9C5DF2', this.handle, rai());
2357
2433
  }
2358
2434
  /**
2359
2435
  * *CLEAR_PED_COMBAT**
@@ -2369,7 +2445,7 @@ export class Ped extends Entity {
2369
2445
  *
2370
2446
  * @param toggle
2371
2447
  */
2372
- setImmersionFlag(toggle) {
2448
+ set ImmersionFlag(toggle) {
2373
2449
  inv('0x7FB0088E8769CDDB', this.handle, toggle);
2374
2450
  }
2375
2451
  /**
@@ -2405,7 +2481,7 @@ export class Ped extends Entity {
2405
2481
  /**
2406
2482
  * @returns
2407
2483
  */
2408
- getGrappleStyle() {
2484
+ get GrappleStyle() {
2409
2485
  return (inv('0x753B15AD0FD6F3E3', this.handle, rai())) & 0xFFFFFFFF;
2410
2486
  }
2411
2487
  N_0x2371C39D4F91C288() {
@@ -2414,7 +2490,7 @@ export class Ped extends Entity {
2414
2490
  /**
2415
2491
  * @returns
2416
2492
  */
2417
- isDrunk() {
2493
+ get IsDrunk() {
2418
2494
  return inv('0x50F124E6EF188B22', this.handle);
2419
2495
  }
2420
2496
  /**
@@ -2422,7 +2498,7 @@ export class Ped extends Entity {
2422
2498
  *
2423
2499
  * @param height
2424
2500
  */
2425
- setWetnessHeight(height) {
2501
+ set WetnessHeight(height) {
2426
2502
  inv('0x44CB6447D2571AA0', this.handle, f(height));
2427
2503
  }
2428
2504
  /**
@@ -2437,7 +2513,7 @@ export class Ped extends Entity {
2437
2513
  *
2438
2514
  * @returns
2439
2515
  */
2440
- isMetaFish() {
2516
+ get IsMetaFish() {
2441
2517
  return inv('0x118D476A6F1A13F1', this.handle);
2442
2518
  }
2443
2519
  /**
@@ -2461,7 +2537,7 @@ export class Ped extends Entity {
2461
2537
  *
2462
2538
  * @returns
2463
2539
  */
2464
- getStaminaNormalized() {
2540
+ get StaminaNormalized() {
2465
2541
  return inv('0x22F2A386D43048A9', this.handle, raf());
2466
2542
  }
2467
2543
  /**
@@ -2476,13 +2552,13 @@ export class Ped extends Entity {
2476
2552
  *
2477
2553
  * @param state
2478
2554
  */
2479
- setCanBeKnockedOffVehicle(state) {
2555
+ set CanBeKnockedOffVehicle(state) {
2480
2556
  inv('0x7A6535691B477C48', this.handle, state);
2481
2557
  }
2482
2558
  /**
2483
2559
  * @param healthAmount
2484
2560
  */
2485
- setMinHealthThreshold(healthAmount) {
2561
+ set MinHealthThreshold(healthAmount) {
2486
2562
  inv('0x7883AA809DF43D98', this.handle, f(healthAmount));
2487
2563
  }
2488
2564
  /**
@@ -2496,7 +2572,7 @@ export class Ped extends Entity {
2496
2572
  /**
2497
2573
  * @returns
2498
2574
  */
2499
- getLootingPickupTargetEntity() {
2575
+ get LootingPickupTargetEntity() {
2500
2576
  return createFromHandle('Entity', inv('0x14169FA823679E41', this.handle, rai()));
2501
2577
  }
2502
2578
  /**
@@ -2513,7 +2589,7 @@ export class Ped extends Entity {
2513
2589
  * @returns
2514
2590
  */
2515
2591
  canInCombatSeeTarget(target) {
2516
- return inv('0xEAD42DE3610D0721', this.handle, target.handle, rai());
2592
+ return !!inv('0xEAD42DE3610D0721', this.handle, target.handle, rai());
2517
2593
  }
2518
2594
  /**
2519
2595
  * _IS_PED_R*
@@ -2521,7 +2597,7 @@ export class Ped extends Entity {
2521
2597
  * @returns
2522
2598
  */
2523
2599
  N_0x3AEC4A410ECAF30D() {
2524
- return inv('0x3AEC4A410ECAF30D', this.handle, rai());
2600
+ return !!inv('0x3AEC4A410ECAF30D', this.handle, rai());
2525
2601
  }
2526
2602
  /**
2527
2603
  * Apply cold intensity to ped from 0.0 to 1.0
@@ -2543,7 +2619,7 @@ export class Ped extends Entity {
2543
2619
  * @returns
2544
2620
  */
2545
2621
  isDefensiveAreaActive(p1) {
2546
- return inv('0xBA63D9FE45412247', this.handle, p1, rai());
2622
+ return !!inv('0xBA63D9FE45412247', this.handle, p1, rai());
2547
2623
  }
2548
2624
  /**
2549
2625
  * @param motivationState Refer to [enum: eMotivationState]
@@ -2572,8 +2648,8 @@ export class Ped extends Entity {
2572
2648
  *
2573
2649
  * @returns
2574
2650
  */
2575
- isOpeningDoor() {
2576
- return inv('0x26AF0E8E30BD2A2C', this.handle, rai());
2651
+ get IsOpeningDoor() {
2652
+ return !!inv('0x26AF0E8E30BD2A2C', this.handle, rai());
2577
2653
  }
2578
2654
  /**
2579
2655
  * _SET_PED_O*
@@ -2588,7 +2664,7 @@ export class Ped extends Entity {
2588
2664
  *
2589
2665
  * @param toggle
2590
2666
  */
2591
- setCanBeIncapacitated(toggle) {
2667
+ set CanBeIncapacitated(toggle) {
2592
2668
  inv('0x5240864E847C691C', this.handle, toggle);
2593
2669
  }
2594
2670
  /**
@@ -2601,7 +2677,7 @@ export class Ped extends Entity {
2601
2677
  /**
2602
2678
  * @param hash
2603
2679
  */
2604
- setRelationshipGroupDefaultHash(hash) {
2680
+ set RelationshipGroupDefaultHash(hash) {
2605
2681
  inv('0xADB3F206518799E8', this.handle, _h(hash));
2606
2682
  }
2607
2683
  /**
@@ -2610,7 +2686,7 @@ export class Ped extends Entity {
2610
2686
  * @returns
2611
2687
  */
2612
2688
  N_0x06A10B4D7F50B0C3() {
2613
- return inv('0x06A10B4D7F50B0C3', this.handle, rai());
2689
+ return !!inv('0x06A10B4D7F50B0C3', this.handle, rai());
2614
2690
  }
2615
2691
  /**
2616
2692
  * SOBER = 0.0f, SLIGHTLY_DRUNK = 0.25f, MODERATELY_DRUNK = 0.5f, VERY_DRUNK = 1.0f
@@ -2626,8 +2702,8 @@ export class Ped extends Entity {
2626
2702
  *
2627
2703
  * @returns
2628
2704
  */
2629
- isReloading() {
2630
- return inv('0x24B100C68C645951', this.handle, rai());
2705
+ get IsReloading() {
2706
+ return !!inv('0x24B100C68C645951', this.handle, rai());
2631
2707
  }
2632
2708
  /**
2633
2709
  * NB_CUSTOM_CLIENT_ON_CREATE_COMPLETE - set legendary to not avoid prey
@@ -2644,7 +2720,7 @@ export class Ped extends Entity {
2644
2720
  * @returns
2645
2721
  */
2646
2722
  N_0x77243ED4F7CAAA55() {
2647
- return inv('0x77243ED4F7CAAA55', this.handle, rai());
2723
+ return !!inv('0x77243ED4F7CAAA55', this.handle, rai());
2648
2724
  }
2649
2725
  /**
2650
2726
  * _CLEAR*
@@ -2655,32 +2731,32 @@ export class Ped extends Entity {
2655
2731
  /**
2656
2732
  * @returns
2657
2733
  */
2658
- isUsingActionMode() {
2659
- return inv('0x00E73468D085F745', this.handle, rai());
2734
+ get IsUsingActionMode() {
2735
+ return !!inv('0x00E73468D085F745', this.handle, rai());
2660
2736
  }
2661
2737
  /**
2662
2738
  * @param p1
2663
2739
  * @returns
2664
2740
  */
2665
2741
  N_0xB65927F861E7AE39(p1) {
2666
- return inv('0xB65927F861E7AE39', this.handle, p1, rai());
2742
+ return !!inv('0xB65927F861E7AE39', this.handle, p1, rai());
2667
2743
  }
2668
2744
  /**
2669
2745
  * @param toggle
2670
2746
  */
2671
- setCanTorsoIk(toggle) {
2747
+ set CanTorsoIk(toggle) {
2672
2748
  inv('0xF2B7106D37947CE0', this.handle, toggle);
2673
2749
  }
2674
2750
  /**
2675
2751
  * @returns
2676
2752
  */
2677
- getTranquilizer() {
2753
+ get Tranquilizer() {
2678
2754
  return createFromHandle('Ped', inv('0x65C75FDCCAC86464', this.handle, rai()));
2679
2755
  }
2680
2756
  /**
2681
2757
  * @returns
2682
2758
  */
2683
- getInteractionPersonality() {
2759
+ get InteractionPersonality() {
2684
2760
  return (inv('0xD7AD3C7EBAF88C92', this.handle, rai())) & 0xFFFFFFFF;
2685
2761
  }
2686
2762
  /**
@@ -2725,8 +2801,8 @@ export class Ped extends Entity {
2725
2801
  *
2726
2802
  * @returns
2727
2803
  */
2728
- isHuman() {
2729
- return inv('0xB980061DA992779D', this.handle, rai());
2804
+ get IsHuman() {
2805
+ return !!inv('0xB980061DA992779D', this.handle, rai());
2730
2806
  }
2731
2807
  /**
2732
2808
  * @param p1
@@ -2734,13 +2810,13 @@ export class Ped extends Entity {
2734
2810
  * @returns
2735
2811
  */
2736
2812
  isPerformingMeleeAction(p1, p2) {
2737
- return inv('0xDCCA191DF9980FD7', this.handle, p1, _h(p2), rai());
2813
+ return !!inv('0xDCCA191DF9980FD7', this.handle, p1, _h(p2), rai());
2738
2814
  }
2739
2815
  /**
2740
2816
  * @returns
2741
2817
  */
2742
- isGoingIntoCover() {
2743
- return inv('0x9F65DBC537E59AD5', this.handle, rai());
2818
+ get IsGoingIntoCover() {
2819
+ return !!inv('0x9F65DBC537E59AD5', this.handle, rai());
2744
2820
  }
2745
2821
  setShouldPlayImmediateScenarioExit() {
2746
2822
  inv('0xF1C03A5352243A30', this.handle);
@@ -2767,7 +2843,7 @@ export class Ped extends Entity {
2767
2843
  /**
2768
2844
  * @returns
2769
2845
  */
2770
- getVehicleDraftHorseIsAttachedTo() {
2846
+ get VehicleDraftHorseIsAttachedTo() {
2771
2847
  return createFromHandle('Vehicle', inv('0xE4770DA1B8FF4FD1', this.handle, rai()));
2772
2848
  }
2773
2849
  /**
@@ -2842,7 +2918,7 @@ export class Ped extends Entity {
2842
2918
  *
2843
2919
  * @param brawlingStyle
2844
2920
  */
2845
- setBrawlingStyle(brawlingStyle) {
2921
+ set BrawlingStyle(brawlingStyle) {
2846
2922
  inv('0x8BA83CC4288CD56D', this.handle, _h(brawlingStyle));
2847
2923
  }
2848
2924
  /**
@@ -2896,21 +2972,21 @@ export class Ped extends Entity {
2896
2972
  /**
2897
2973
  * @returns
2898
2974
  */
2899
- isInAnyPlane() {
2900
- return inv('0x5FFF4CFC74D8FB80', this.handle, rai());
2975
+ get IsInAnyPlane() {
2976
+ return !!inv('0x5FFF4CFC74D8FB80', this.handle, rai());
2901
2977
  }
2902
2978
  /**
2903
2979
  * @param modelHash
2904
2980
  * @returns
2905
2981
  */
2906
2982
  isInModel(modelHash) {
2907
- return inv('0x796D90EFB19AA332', this.handle, _h(modelHash), rai());
2983
+ return !!inv('0x796D90EFB19AA332', this.handle, _h(modelHash), rai());
2908
2984
  }
2909
2985
  /**
2910
2986
  * @returns
2911
2987
  */
2912
- isInGroup() {
2913
- return inv('0x5891CAC5D4ACFF74', this.handle, rai());
2988
+ get IsInGroup() {
2989
+ return !!inv('0x5891CAC5D4ACFF74', this.handle, rai());
2914
2990
  }
2915
2991
  /**
2916
2992
  * For more information, see common:/data/emotional_presets.meta
@@ -2931,13 +3007,13 @@ export class Ped extends Entity {
2931
3007
  /**
2932
3008
  * @returns
2933
3009
  */
2934
- getAccuracyAgainstLocalPlayerModifier() {
3010
+ get AccuracyAgainstLocalPlayerModifier() {
2935
3011
  return inv('0xDC9273D95976BA22', this.handle, raf());
2936
3012
  }
2937
3013
  /**
2938
3014
  * @returns
2939
3015
  */
2940
- getNumMetaOutfits() {
3016
+ get NumMetaOutfits() {
2941
3017
  return inv('0x10C70A515BC03707', this.handle, rai());
2942
3018
  }
2943
3019
  N_0x2D976DBDC731DF80() {
@@ -2975,13 +3051,13 @@ export class Ped extends Entity {
2975
3051
  /**
2976
3052
  * @returns
2977
3053
  */
2978
- getRelationshipGroupDefaultHash() {
3054
+ get RelationshipGroupDefaultHash() {
2979
3055
  return (inv('0x42FDD0F017B1E38E', this.handle, rai())) & 0xFFFFFFFF;
2980
3056
  }
2981
3057
  /**
2982
3058
  * @param groupId
2983
3059
  */
2984
- setAsGroupMember(groupId) {
3060
+ set AsGroupMember(groupId) {
2985
3061
  inv('0x9F3480FE65DB31B5', this.handle, groupId);
2986
3062
  }
2987
3063
  /**
@@ -2995,7 +3071,7 @@ export class Ped extends Entity {
2995
3071
  /**
2996
3072
  * @returns
2997
3073
  */
2998
- getGrappler() {
3074
+ get Grappler() {
2999
3075
  return createFromHandle('Ped', inv('0xD0B7AEB56229D317', this.handle, rai()));
3000
3076
  }
3001
3077
  /**
@@ -3011,7 +3087,7 @@ export class Ped extends Entity {
3011
3087
  * @returns
3012
3088
  */
3013
3089
  N_0x94132D7C8D3575C4() {
3014
- return inv('0x94132D7C8D3575C4', this.handle, rai());
3090
+ return !!inv('0x94132D7C8D3575C4', this.handle, rai());
3015
3091
  }
3016
3092
  /**
3017
3093
  * @param componentHash
@@ -3026,14 +3102,14 @@ export class Ped extends Entity {
3026
3102
  /**
3027
3103
  * @param toggle
3028
3104
  */
3029
- setPauseWritheBleedout(toggle) {
3105
+ set PauseWritheBleedout(toggle) {
3030
3106
  inv('0x925A160133003AC6', this.handle, toggle);
3031
3107
  }
3032
3108
  /**
3033
3109
  * @returns
3034
3110
  */
3035
- isRespondingToThreat() {
3036
- return inv('0x77525BBF433F2CD6', this.handle);
3111
+ get IsRespondingToThreat() {
3112
+ return !!inv('0x77525BBF433F2CD6', this.handle, rai());
3037
3113
  }
3038
3114
  /**
3039
3115
  * @param metapedType
@@ -3054,13 +3130,13 @@ export class Ped extends Entity {
3054
3130
  /**
3055
3131
  * @param value
3056
3132
  */
3057
- setHearingRange(value) {
3133
+ set HearingRange(value) {
3058
3134
  inv('0x33A8F7F7D5F7F33C', this.handle, f(value));
3059
3135
  }
3060
3136
  /**
3061
3137
  * @param relationshipGroup
3062
3138
  */
3063
- setRelationshipGroupHash(relationshipGroup) {
3139
+ set RelationshipGroupHash(relationshipGroup) {
3064
3140
  inv('0xC80A74AC829DDD92', this.handle, _h(relationshipGroup));
3065
3141
  }
3066
3142
  /**
@@ -3069,7 +3145,7 @@ export class Ped extends Entity {
3069
3145
  * @returns
3070
3146
  */
3071
3147
  isAnyHostileNearPoint(pos, radius) {
3072
- return inv('0x68772DB2B2526F9F', this.handle, f(pos.x), f(pos.y), f(pos.z), f(radius), rai());
3148
+ return !!inv('0x68772DB2B2526F9F', this.handle, f(pos.x), f(pos.y), f(pos.z), f(radius), rai());
3073
3149
  }
3074
3150
  /**
3075
3151
  * _SET_PED_M*
@@ -3082,7 +3158,7 @@ export class Ped extends Entity {
3082
3158
  /**
3083
3159
  * @param sweat
3084
3160
  */
3085
- setSweat(sweat) {
3161
+ set Sweat(sweat) {
3086
3162
  inv('0x27B0405F59637D1F', this.handle, f(sweat));
3087
3163
  }
3088
3164
  /**
@@ -3090,7 +3166,7 @@ export class Ped extends Entity {
3090
3166
  *
3091
3167
  * @returns
3092
3168
  */
3093
- getSourceOfDeath() {
3169
+ get SourceOfDeath() {
3094
3170
  return createFromHandle('Entity', inv('0x93C8B64DEB84728C', this.handle, rai()));
3095
3171
  }
3096
3172
  /**
@@ -3130,7 +3206,7 @@ export class Ped extends Entity {
3130
3206
  /**
3131
3207
  * @param value
3132
3208
  */
3133
- setVisualFieldMinAngle(value) {
3209
+ set VisualFieldMinAngle(value) {
3134
3210
  inv('0x2DB492222FB21E26', this.handle, f(value));
3135
3211
  }
3136
3212
  /**
@@ -3150,8 +3226,8 @@ export class Ped extends Entity {
3150
3226
  /**
3151
3227
  * @returns
3152
3228
  */
3153
- isFalling() {
3154
- return inv('0xFB92A102F1C4DFA3', this.handle, rai());
3229
+ get IsFalling() {
3230
+ return !!inv('0xFB92A102F1C4DFA3', this.handle, rai());
3155
3231
  }
3156
3232
  /**
3157
3233
  * @param flags Refer to [enum: eRagdollBlockingFlags]
@@ -3162,8 +3238,8 @@ export class Ped extends Entity {
3162
3238
  /**
3163
3239
  * @returns
3164
3240
  */
3165
- isLassoed() {
3166
- return inv('0x9682F850056C9ADE', this.handle);
3241
+ get IsLassoed() {
3242
+ return !!inv('0x9682F850056C9ADE', this.handle, rai());
3167
3243
  }
3168
3244
  /**
3169
3245
  * @param object
@@ -3182,14 +3258,14 @@ export class Ped extends Entity {
3182
3258
  * @returns
3183
3259
  */
3184
3260
  N_0x256EDD55C6BE1482() {
3185
- return inv('0x256EDD55C6BE1482', this.handle, rai());
3261
+ return !!inv('0x256EDD55C6BE1482', this.handle, rai());
3186
3262
  }
3187
3263
  /**
3188
3264
  * Only used in R* MP Script fm_mission_controller
3189
3265
  *
3190
3266
  * @param patternHash
3191
3267
  */
3192
- setFiringPattern3(patternHash) {
3268
+ set FiringPattern3(patternHash) {
3193
3269
  inv('0x244E8C282188E40F', this.handle, _h(patternHash));
3194
3270
  }
3195
3271
  /**
@@ -3198,7 +3274,7 @@ export class Ped extends Entity {
3198
3274
  *
3199
3275
  * @param personality
3200
3276
  */
3201
- setPersonality(personality) {
3277
+ set Personality(personality) {
3202
3278
  inv('0xB8B6430EAD2D2437', this.handle, _h(personality));
3203
3279
  }
3204
3280
  /**
@@ -3221,7 +3297,7 @@ export class Ped extends Entity {
3221
3297
  * @returns
3222
3298
  */
3223
3299
  N_0x577C60BA06D0EA64() {
3224
- return inv('0x577C60BA06D0EA64', this.handle, rai());
3300
+ return !!inv('0x577C60BA06D0EA64', this.handle, rai());
3225
3301
  }
3226
3302
  /**
3227
3303
  * Returns category hash that each ped component has. Hash examples: MASKS, HATS, HEADS, HORSE_MANES
@@ -3235,19 +3311,19 @@ export class Ped extends Entity {
3235
3311
  /**
3236
3312
  * @returns
3237
3313
  */
3238
- isUsingAnyScenario() {
3239
- return inv('0x57AB4A3080F85143', this.handle, rai());
3314
+ get IsUsingAnyScenario() {
3315
+ return !!inv('0x57AB4A3080F85143', this.handle, rai());
3240
3316
  }
3241
3317
  /**
3242
3318
  * @param amount
3243
3319
  */
3244
- setMoney(amount) {
3320
+ set Money(amount) {
3245
3321
  inv('0xA9C8960E8684C1B5', this.handle, amount);
3246
3322
  }
3247
3323
  /**
3248
3324
  * @returns
3249
3325
  */
3250
- getStamina() {
3326
+ get Stamina() {
3251
3327
  return inv('0x775A1CA7893AA8B5', this.handle, raf());
3252
3328
  }
3253
3329
  /**
@@ -3267,7 +3343,7 @@ export class Ped extends Entity {
3267
3343
  * @returns
3268
3344
  */
3269
3345
  N_0xFA8C10DCE0706D43() {
3270
- return inv('0xFA8C10DCE0706D43', this.handle, rai());
3346
+ return !!inv('0xFA8C10DCE0706D43', this.handle, rai());
3271
3347
  }
3272
3348
  /**
3273
3349
  * Only used in R* SP Scripts
@@ -3294,7 +3370,7 @@ export class Ped extends Entity {
3294
3370
  *
3295
3371
  * @param bonus
3296
3372
  */
3297
- setTotalDamageFalloffBonus(bonus) {
3373
+ set TotalDamageFalloffBonus(bonus) {
3298
3374
  inv('0x932786CE3C76477C', this.handle, f(bonus));
3299
3375
  }
3300
3376
  /**
@@ -3311,7 +3387,7 @@ export class Ped extends Entity {
3311
3387
  *
3312
3388
  * @param memoryType
3313
3389
  */
3314
- setSimplePlayerMemory(memoryType) {
3390
+ set SimplePlayerMemory(memoryType) {
3315
3391
  inv('0xC494C76A34266E82', this.handle, memoryType);
3316
3392
  }
3317
3393
  /**
@@ -3322,18 +3398,18 @@ export class Ped extends Entity {
3322
3398
  * @returns
3323
3399
  */
3324
3400
  N_0x1E017404784AA6A3(p1) {
3325
- return inv('0x1E017404784AA6A3', this.handle, _h(p1), rai());
3401
+ return !!inv('0x1E017404784AA6A3', this.handle, _h(p1), rai());
3326
3402
  }
3327
3403
  /**
3328
3404
  * @returns
3329
3405
  */
3330
- getActiveAnimalOwner() {
3406
+ get ActiveAnimalOwner() {
3331
3407
  return createFromHandle('Ped', inv('0xF103823FFE72BB49', this.handle, rai()));
3332
3408
  }
3333
3409
  /**
3334
3410
  * @returns
3335
3411
  */
3336
- getType() {
3412
+ get Type() {
3337
3413
  return inv('0xFF059E1E4C01E63C', this.handle, rai());
3338
3414
  }
3339
3415
  /**
@@ -3353,7 +3429,7 @@ export class Ped extends Entity {
3353
3429
  *
3354
3430
  * @returns
3355
3431
  */
3356
- getLassoerOfPed() {
3432
+ get LassoerOfPed() {
3357
3433
  return createFromHandle('Entity', inv('0x833F0053340EF413', this.handle, rai()));
3358
3434
  }
3359
3435
  /**
@@ -3367,27 +3443,27 @@ export class Ped extends Entity {
3367
3443
  /**
3368
3444
  * @returns
3369
3445
  */
3370
- getCrouchMovement() {
3446
+ get CrouchMovement() {
3371
3447
  return inv('0xD5FE956C70FF370B', this.handle);
3372
3448
  }
3373
3449
  /**
3374
3450
  * @returns
3375
3451
  */
3376
- isRunningMobilePhoneTask() {
3377
- return inv('0x2AFE52F782F25775', this.handle, rai());
3452
+ get IsRunningMobilePhoneTask() {
3453
+ return !!inv('0x2AFE52F782F25775', this.handle, rai());
3378
3454
  }
3379
3455
  /**
3380
3456
  * @returns
3381
3457
  */
3382
- isInCoverFacingLeft() {
3383
- return inv('0x845333B3150583AB', this.handle, rai());
3458
+ get IsInCoverFacingLeft() {
3459
+ return !!inv('0x845333B3150583AB', this.handle, rai());
3384
3460
  }
3385
3461
  /**
3386
3462
  * accuracy = 0-100, 100 being perfectly accurate
3387
3463
  *
3388
3464
  * @param accuracy
3389
3465
  */
3390
- setAccuracy(accuracy) {
3466
+ set Accuracy(accuracy) {
3391
3467
  inv('0x7AEFB85C1D49DEB6', this.handle, accuracy);
3392
3468
  }
3393
3469
  /**
@@ -3396,7 +3472,7 @@ export class Ped extends Entity {
3396
3472
  * @returns
3397
3473
  */
3398
3474
  N_0x913D04A5176F84C9() {
3399
- return inv('0x913D04A5176F84C9', this.handle, rai());
3475
+ return !!inv('0x913D04A5176F84C9', this.handle, rai());
3400
3476
  }
3401
3477
  /**
3402
3478
  * Set the pelt of the animal to the back of the horse
@@ -3415,20 +3491,20 @@ export class Ped extends Entity {
3415
3491
  /**
3416
3492
  * @param multiplier
3417
3493
  */
3418
- setHeadshotDamageMultiplier(multiplier) {
3494
+ set HeadshotDamageMultiplier(multiplier) {
3419
3495
  inv('0x2BA918C823B8BA56', this.handle, f(multiplier));
3420
3496
  }
3421
3497
  /**
3422
3498
  * @returns Returns `true` if the ped is in the water, or on a boat that is in the water.
3423
3499
  */
3424
- isAfloat() {
3425
- return inv('0xDC88D06719070C39', this.handle, rai());
3500
+ get IsAfloat() {
3501
+ return !!inv('0xDC88D06719070C39', this.handle, rai());
3426
3502
  }
3427
3503
  /**
3428
3504
  * @returns
3429
3505
  */
3430
- isAPlayer() {
3431
- return inv('0x12534C348C6CB68B', this.handle, rai());
3506
+ get IsAPlayer() {
3507
+ return !!inv('0x12534C348C6CB68B', this.handle, rai());
3432
3508
  }
3433
3509
  /**
3434
3510
  * This function will simply bring the dead ped back to life. Before calling this function, you may want to declare the position, where your Resurrected ped to be spawn at because theres a chance the ped will fall through the map Also, disabling any assigned task immediately helped in the number of scenarios, where If you want peds to perform certain decided tasks.
@@ -3441,14 +3517,14 @@ export class Ped extends Entity {
3441
3517
  *
3442
3518
  * @returns
3443
3519
  */
3444
- getNumReservedStamina() {
3520
+ get NumReservedStamina() {
3445
3521
  return inv('0xFC3B580C4380B5B7', this.handle, rai());
3446
3522
  }
3447
3523
  /**
3448
3524
  * @returns
3449
3525
  */
3450
- isJacking() {
3451
- return inv('0x4AE4FF911DFB61DA', this.handle, rai());
3526
+ get IsJacking() {
3527
+ return !!inv('0x4AE4FF911DFB61DA', this.handle, rai());
3452
3528
  }
3453
3529
  /**
3454
3530
  * _SET_PED_IN*
@@ -3476,7 +3552,7 @@ export class Ped extends Entity {
3476
3552
  /**
3477
3553
  * @param gxtEntryHash
3478
3554
  */
3479
- setPromptNameFromGxtEntry2(gxtEntryHash) {
3555
+ set PromptNameFromGxtEntry2(gxtEntryHash) {
3480
3556
  inv('0xC2745D9261664901', this.handle, _h(gxtEntryHash));
3481
3557
  }
3482
3558
  /**
@@ -3503,7 +3579,7 @@ export class Ped extends Entity {
3503
3579
  * @returns
3504
3580
  */
3505
3581
  N_0xF9331B3A314EB49D() {
3506
- return inv('0xF9331B3A314EB49D', this.handle, rai());
3582
+ return !!inv('0xF9331B3A314EB49D', this.handle, rai());
3507
3583
  }
3508
3584
  /**
3509
3585
  * limb: 3 = Left Hand, 4 = Left Arm, 6 = Right Hand, 7 = Right Arm, 9 = Left Foot, 10 = Left Leg, 12 = Right Foot, 13 = Right Leg, 37 = Head
@@ -3574,7 +3650,7 @@ export class Ped extends Entity {
3574
3650
  * @returns
3575
3651
  */
3576
3652
  N_0xB7DBB2986B87E230(p1) {
3577
- return inv('0xB7DBB2986B87E230', this.handle, f(p1), rai());
3653
+ return !!inv('0xB7DBB2986B87E230', this.handle, f(p1), rai());
3578
3654
  }
3579
3655
  /**
3580
3656
  * It clears the wetness of the selected Ped/Player. Clothes have to be wet to notice the difference.
@@ -3603,12 +3679,12 @@ export class Ped extends Entity {
3603
3679
  * @returns
3604
3680
  */
3605
3681
  getLootingFlag(lootFlag) {
3606
- return inv('0xE4C11F104620DDCE', this.handle, lootFlag, rai());
3682
+ return !!inv('0xE4C11F104620DDCE', this.handle, lootFlag, rai());
3607
3683
  }
3608
3684
  /**
3609
3685
  * @returns
3610
3686
  */
3611
- getPedsJacker() {
3687
+ get PedsJacker() {
3612
3688
  return createFromHandle('Ped', inv('0x9B128DC36C1E04CF', this.handle, rai()));
3613
3689
  }
3614
3690
  /**
@@ -3641,7 +3717,7 @@ export class Ped extends Entity {
3641
3717
  *
3642
3718
  * @param locomotionArchetype
3643
3719
  */
3644
- setDesiredLocoForModel(locomotionArchetype) {
3720
+ set DesiredLocoForModel(locomotionArchetype) {
3645
3721
  inv('0x923583741DC87BCE', this.handle, locomotionArchetype);
3646
3722
  }
3647
3723
  /**
@@ -3679,7 +3755,7 @@ export class Ped extends Entity {
3679
3755
  *
3680
3756
  * @param amount How wet the ped should appear ranges from `0.0`-`1.0`
3681
3757
  */
3682
- setWetness(amount) {
3758
+ set Wetness(amount) {
3683
3759
  inv('0xF9CFF5BB70E8A2CB', this.handle, f(amount));
3684
3760
  }
3685
3761
  /**
@@ -3698,12 +3774,12 @@ export class Ped extends Entity {
3698
3774
  * @returns
3699
3775
  */
3700
3776
  N_0x1148F706CF4EBDDA(p1, p2) {
3701
- return inv('0x1148F706CF4EBDDA', this.handle, _h(p1), p2, rai());
3777
+ return !!inv('0x1148F706CF4EBDDA', this.handle, _h(p1), p2, rai());
3702
3778
  }
3703
3779
  /**
3704
3780
  * @returns Refer to [enum: ePedDamageCleanliness]
3705
3781
  */
3706
- getDamageCleanliness() {
3782
+ get DamageCleanliness() {
3707
3783
  return inv('0x88EFFED5FE8B0B4A', this.handle, rai());
3708
3784
  }
3709
3785
  /**
@@ -3721,7 +3797,7 @@ export class Ped extends Entity {
3721
3797
  *
3722
3798
  * @param responseType
3723
3799
  */
3724
- setTargetLossResponse(responseType) {
3800
+ set TargetLossResponse(responseType) {
3725
3801
  inv('0x0703B9079823DA4A', this.handle, responseType);
3726
3802
  }
3727
3803
  /**
@@ -3731,25 +3807,25 @@ export class Ped extends Entity {
3731
3807
  * @returns
3732
3808
  */
3733
3809
  N_0x8822F139408B8D0A() {
3734
- return inv('0x8822F139408B8D0A', this.handle, rai());
3810
+ return !!inv('0x8822F139408B8D0A', this.handle, rai());
3735
3811
  }
3736
3812
  /**
3737
3813
  * @param p1
3738
3814
  * @returns
3739
3815
  */
3740
3816
  isLocationSpawnSafe(p1) {
3741
- return inv('0xFB1E7998B8595825', this.handle, f(p1));
3817
+ return !!inv('0xFB1E7998B8595825', this.handle, f(p1), rai());
3742
3818
  }
3743
3819
  /**
3744
3820
  * @param modifier
3745
3821
  */
3746
- setAccuracyAgainstLocalPlayerModifier(modifier) {
3822
+ set AccuracyAgainstLocalPlayerModifier(modifier) {
3747
3823
  inv('0xC2266AA617668AD3', this.handle, f(modifier));
3748
3824
  }
3749
3825
  /**
3750
3826
  * @param speech
3751
3827
  */
3752
- setInteractionNegativeResponse(speech) {
3828
+ set InteractionNegativeResponse(speech) {
3753
3829
  inv('0xA3C53CDE922BC78B', this.handle, speech);
3754
3830
  }
3755
3831
  /**
@@ -3760,12 +3836,12 @@ export class Ped extends Entity {
3760
3836
  * @returns
3761
3837
  */
3762
3838
  N_0x99DF2639DA76C1DC(ped2, p2) {
3763
- return inv('0x99DF2639DA76C1DC', this.handle, ped2.handle, p2, rai());
3839
+ return !!inv('0x99DF2639DA76C1DC', this.handle, ped2.handle, p2, rai());
3764
3840
  }
3765
3841
  /**
3766
3842
  * @returns
3767
3843
  */
3768
- getLassoTarget() {
3844
+ get LassoTarget() {
3769
3845
  return createFromHandle('Entity', inv('0xB65A4DAB460A19BD', this.handle, rai()));
3770
3846
  }
3771
3847
  /**
@@ -3781,7 +3857,7 @@ export class Ped extends Entity {
3781
3857
  /**
3782
3858
  * @param range
3783
3859
  */
3784
- setVisualFieldPeripheralRange(range) {
3860
+ set VisualFieldPeripheralRange(range) {
3785
3861
  inv('0x9C74B0BC831B753A', this.handle, f(range));
3786
3862
  }
3787
3863
  /**
@@ -3796,7 +3872,7 @@ export class Ped extends Entity {
3796
3872
  /**
3797
3873
  * @returns
3798
3874
  */
3799
- getBlockingOfNonTemporaryEvents() {
3875
+ get BlockingOfNonTemporaryEvents() {
3800
3876
  return inv('0x268B3AEBF032A88D', this.handle);
3801
3877
  }
3802
3878
  /**
@@ -3804,7 +3880,7 @@ export class Ped extends Entity {
3804
3880
  *
3805
3881
  * @returns
3806
3882
  */
3807
- getActiveDynamicScenario2() {
3883
+ get ActiveDynamicScenario2() {
3808
3884
  return (inv('0xC22AA08A8ADB87D4', this.handle, rai())) & 0xFFFFFFFF;
3809
3885
  }
3810
3886
  /**
@@ -3813,7 +3889,7 @@ export class Ped extends Entity {
3813
3889
  *
3814
3890
  * @returns
3815
3891
  */
3816
- getDrunkness() {
3892
+ get Drunkness() {
3817
3893
  return inv('0x6FB76442469ABD68', this.handle, raf());
3818
3894
  }
3819
3895
  /**
@@ -3842,7 +3918,7 @@ export class Ped extends Entity {
3842
3918
  * @returns
3843
3919
  */
3844
3920
  setToRagdollWithFall(timeMin, timeMax, ragdollType, falldirX, falldirY, falldirZ, p7, p8, p9, p10, p11, p12, p13) {
3845
- return inv('0xD76632D99E4966C8', this.handle, timeMin, timeMax, ragdollType, f(falldirX), f(falldirY), f(falldirZ), f(p7), f(p8), f(p9), f(p10), f(p11), f(p12), f(p13), rai());
3921
+ return !!inv('0xD76632D99E4966C8', this.handle, timeMin, timeMax, ragdollType, f(falldirX), f(falldirY), f(falldirZ), f(p7), f(p8), f(p9), f(p10), f(p11), f(p12), f(p13), rai());
3846
3922
  }
3847
3923
  /**
3848
3924
  * The higher the multiplier the less the engine renders culls (https://docs.unity3d.com/Manual/OcclusionCulling.html)
@@ -3856,7 +3932,7 @@ export class Ped extends Entity {
3856
3932
  /**
3857
3933
  * @returns
3858
3934
  */
3859
- getLassoedLassoer() {
3935
+ get LassoedLassoer() {
3860
3936
  return createFromHandle('Ped', inv('0x0C31C51168E80365', this.handle, rai()));
3861
3937
  }
3862
3938
  /**
@@ -3871,7 +3947,7 @@ export class Ped extends Entity {
3871
3947
  /**
3872
3948
  * @returns
3873
3949
  */
3874
- getSeatIsTryingToEnter() {
3950
+ get SeatIsTryingToEnter() {
3875
3951
  return inv('0x6F4C85ACD641BCD2', this.handle, rai());
3876
3952
  }
3877
3953
  /**
@@ -3890,19 +3966,19 @@ export class Ped extends Entity {
3890
3966
  *
3891
3967
  * @param configHash
3892
3968
  */
3893
- setHealthConfig(configHash) {
3969
+ set HealthConfig(configHash) {
3894
3970
  inv('0xF6B82FCE03B43A37', this.handle, _h(configHash));
3895
3971
  }
3896
3972
  /**
3897
3973
  * @param value
3898
3974
  */
3899
- setMinMoveBlendRatio(value) {
3975
+ set MinMoveBlendRatio(value) {
3900
3976
  inv('0x01A898D26E2333DD', this.handle, f(value));
3901
3977
  }
3902
3978
  /**
3903
3979
  * @returns
3904
3980
  */
3905
- getGrappleFlag() {
3981
+ get GrappleFlag() {
3906
3982
  return inv('0xF3C873ED0C595109', this.handle, rai());
3907
3983
  }
3908
3984
  /**
@@ -3915,7 +3991,7 @@ export class Ped extends Entity {
3915
3991
  /**
3916
3992
  * @param toggle
3917
3993
  */
3918
- setBlockingOfNonTemporaryEvents(toggle) {
3994
+ set BlockingOfNonTemporaryEvents(toggle) {
3919
3995
  inv('0x9F8AA94D6D97DBF4', this.handle, toggle);
3920
3996
  }
3921
3997
  /**
@@ -3926,7 +4002,7 @@ export class Ped extends Entity {
3926
4002
  *
3927
4003
  * @param avoidanceLevel
3928
4004
  */
3929
- setHorseAvoidanceLevel(avoidanceLevel) {
4005
+ set HorseAvoidanceLevel(avoidanceLevel) {
3930
4006
  inv('0xDDCF6FEA5D7ACC17', this.handle, avoidanceLevel);
3931
4007
  }
3932
4008
  /**
@@ -3954,7 +4030,7 @@ export class Ped extends Entity {
3954
4030
  * @returns
3955
4031
  */
3956
4032
  hasInteractedWithPlayerRecently(player, flag, ms) {
3957
- return inv('0x947E43F544B6AB34', this.handle, player.handle, flag, ms, rai());
4033
+ return !!inv('0x947E43F544B6AB34', this.handle, player.handle, flag, ms, rai());
3958
4034
  }
3959
4035
  /**
3960
4036
  * Used in Script Function MP_MAIN_OFFLINE__INITIALIZE_FLOW & PROCESS_GENERIC_PLAYER_INITIALIZATION
@@ -3967,8 +4043,8 @@ export class Ped extends Entity {
3967
4043
  /**
3968
4044
  * @returns
3969
4045
  */
3970
- isAimingFromCover() {
3971
- return inv('0x3998B1276A3300E5', this.handle, rai());
4046
+ get IsAimingFromCover() {
4047
+ return !!inv('0x3998B1276A3300E5', this.handle, rai());
3972
4048
  }
3973
4049
  /**
3974
4050
  * Size will be permanent
@@ -3996,7 +4072,7 @@ export class Ped extends Entity {
3996
4072
  /**
3997
4073
  * @param gxtEntryHash
3998
4074
  */
3999
- setPromptNameFromGxtEntry(gxtEntryHash) {
4075
+ set PromptNameFromGxtEntry(gxtEntryHash) {
4000
4076
  inv('0xFCA8FB9E15FA80D3', this.handle, _h(gxtEntryHash));
4001
4077
  }
4002
4078
  /**
@@ -4004,7 +4080,7 @@ export class Ped extends Entity {
4004
4080
  *
4005
4081
  * @returns
4006
4082
  */
4007
- getQuality() {
4083
+ get Quality() {
4008
4084
  return inv('0x7BCC6087D130312A', this.handle, rai());
4009
4085
  }
4010
4086
  /**
@@ -4058,13 +4134,13 @@ export class Ped extends Entity {
4058
4134
  /**
4059
4135
  * @param name
4060
4136
  */
4061
- setPromptName(name) {
4137
+ set PromptName(name) {
4062
4138
  inv('0x4A48B6E03BABB4AC', this.handle, name);
4063
4139
  }
4064
4140
  /**
4065
4141
  * @param grappleAnim
4066
4142
  */
4067
- setGrappleAnimation(grappleAnim) {
4143
+ set GrappleAnimation(grappleAnim) {
4068
4144
  inv('0x56E9C26CD29D1ED6', this.handle, _h(grappleAnim));
4069
4145
  }
4070
4146
  /**
@@ -4104,27 +4180,27 @@ export class Ped extends Entity {
4104
4180
  * @returns
4105
4181
  */
4106
4182
  N_0x5203038FF8BAE577(p1, p2) {
4107
- return inv('0x5203038FF8BAE577', this.handle, p1, p2, rai());
4183
+ return !!inv('0x5203038FF8BAE577', this.handle, p1, p2, rai());
4108
4184
  }
4109
4185
  /**
4110
4186
  * @param combatMovement Refer to [enum: ePedCombatMovement]
4111
4187
  */
4112
- setCombatMovement(combatMovement) {
4188
+ set CombatMovement(combatMovement) {
4113
4189
  inv('0x4D9CA1009AFBD057', this.handle, combatMovement);
4114
4190
  }
4115
4191
  /**
4116
4192
  * @returns
4117
4193
  */
4118
4194
  N_0xA4B6432E3880F2F9() {
4119
- return inv('0xA4B6432E3880F2F9', this.handle, rai());
4195
+ return !!inv('0xA4B6432E3880F2F9', this.handle, rai());
4120
4196
  }
4121
4197
  /**
4122
4198
  * Returns whether the entity is in stealth mode
4123
4199
  *
4124
4200
  * @returns
4125
4201
  */
4126
- getStealthMovement() {
4127
- return inv('0x7C2AC9CA66575FBF', this.handle, rai());
4202
+ get StealthMovement() {
4203
+ return !!inv('0x7C2AC9CA66575FBF', this.handle, rai());
4128
4204
  }
4129
4205
  /**
4130
4206
  * Returns whether or not a ped is visible within your FOV, not this check auto's to false after a certain distance.
@@ -4132,8 +4208,8 @@ export class Ped extends Entity {
4132
4208
  *
4133
4209
  * @returns
4134
4210
  */
4135
- isTrackedVisible() {
4136
- return inv('0x91C8E617F64188AC', this.handle, rai());
4211
+ get IsTrackedVisible() {
4212
+ return !!inv('0x91C8E617F64188AC', this.handle, rai());
4137
4213
  }
4138
4214
  /**
4139
4215
  * Changes Multiplayer ped face and body type components, they can be stacked
@@ -4179,8 +4255,8 @@ export class Ped extends Entity {
4179
4255
  *
4180
4256
  * @returns
4181
4257
  */
4182
- isInMeleeCombat() {
4183
- return inv('0x4E209B2C1EAD5159', this.handle, rai());
4258
+ get IsInMeleeCombat() {
4259
+ return !!inv('0x4E209B2C1EAD5159', this.handle, rai());
4184
4260
  }
4185
4261
  /**
4186
4262
  * @param object
@@ -4193,7 +4269,7 @@ export class Ped extends Entity {
4193
4269
  /**
4194
4270
  * @returns
4195
4271
  */
4196
- getMotionFocusEntity() {
4272
+ get MotionFocusEntity() {
4197
4273
  return createFromHandle('Entity', inv('0x243E1B4607040057', this.handle, rai()));
4198
4274
  }
4199
4275
  /**
@@ -4201,7 +4277,7 @@ export class Ped extends Entity {
4201
4277
  * @returns
4202
4278
  */
4203
4279
  isOnSpecificVehicle(vehicle) {
4204
- return inv('0xEC5F66E459AF3BB2', this.handle, vehicle.handle, rai());
4280
+ return !!inv('0xEC5F66E459AF3BB2', this.handle, vehicle.handle, rai());
4205
4281
  }
4206
4282
  /**
4207
4283
  * https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/CLootingFlags__Flags
@@ -4217,13 +4293,13 @@ export class Ped extends Entity {
4217
4293
  * @returns
4218
4294
  */
4219
4295
  removeSubscribeToLegendaryBlips() {
4220
- return inv('0x011A42FD923D41CA', this.handle, rai());
4296
+ return !!inv('0x011A42FD923D41CA', this.handle, rai());
4221
4297
  }
4222
4298
  /**
4223
4299
  * @returns
4224
4300
  */
4225
- isDiving() {
4226
- return inv('0x5527B8246FEF9B11', this.handle, rai());
4301
+ get IsDiving() {
4302
+ return !!inv('0x5527B8246FEF9B11', this.handle, rai());
4227
4303
  }
4228
4304
  /**
4229
4305
  * @param state
@@ -4245,32 +4321,32 @@ export class Ped extends Entity {
4245
4321
  * @returns
4246
4322
  */
4247
4323
  isInCover(p1, p2) {
4248
- return inv('0x60DFD0691A170B88', this.handle, p1, p2, rai());
4324
+ return !!inv('0x60DFD0691A170B88', this.handle, p1, p2, rai());
4249
4325
  }
4250
4326
  /**
4251
4327
  * nullsub, doesn't do anything
4252
4328
  *
4253
4329
  * @param name
4254
4330
  */
4255
- setNameDebug(name) {
4331
+ set NameDebug(name) {
4256
4332
  inv('0x98EFA132A4117BE1', this.handle, name);
4257
4333
  }
4258
4334
  /**
4259
4335
  * @returns
4260
4336
  */
4261
- isInFlyingVehicle() {
4262
- return inv('0x9134873537FA419C', this.handle, rai());
4337
+ get IsInFlyingVehicle() {
4338
+ return !!inv('0x9134873537FA419C', this.handle, rai());
4263
4339
  }
4264
4340
  /**
4265
4341
  * @returns
4266
4342
  */
4267
- isGettingIntoAVehicle() {
4268
- return inv('0xBB062B2B5722478E', this.handle, rai());
4343
+ get IsGettingIntoAVehicle() {
4344
+ return !!inv('0xBB062B2B5722478E', this.handle, rai());
4269
4345
  }
4270
4346
  /**
4271
4347
  * @returns
4272
4348
  */
4273
- isUsingActionMode2() {
4349
+ get IsUsingActionMode2() {
4274
4350
  return inv('0xEBB208D6AE712C03', this.handle);
4275
4351
  }
4276
4352
  /**
@@ -4288,8 +4364,8 @@ export class Ped extends Entity {
4288
4364
  /**
4289
4365
  * @returns
4290
4366
  */
4291
- isCarryingSomething() {
4292
- return inv('0xA911EE21EDF69DAF', this.handle);
4367
+ get IsCarryingSomething() {
4368
+ return !!inv('0xA911EE21EDF69DAF', this.handle, rai());
4293
4369
  }
4294
4370
  setMoveAnimsBlendOut() {
4295
4371
  inv('0x9E8C908F41584ECD', this.handle);
@@ -4297,13 +4373,13 @@ export class Ped extends Entity {
4297
4373
  /**
4298
4374
  * @param angle
4299
4375
  */
4300
- setVisualFieldCenterAngle(angle) {
4376
+ set VisualFieldCenterAngle(angle) {
4301
4377
  inv('0x3B6405E8AB34A907', this.handle, f(angle));
4302
4378
  }
4303
4379
  /**
4304
4380
  * @returns
4305
4381
  */
4306
- isDoingScenarioTransition() {
4382
+ get IsDoingScenarioTransition() {
4307
4383
  return inv('0xC488B8C0E52560D8', this.handle);
4308
4384
  }
4309
4385
  /**
@@ -4311,13 +4387,13 @@ export class Ped extends Entity {
4311
4387
  *
4312
4388
  * @param flags Refer to [enum: eRagdollBlockingFlags]
4313
4389
  */
4314
- setRagdollBlockingFlags(flags) {
4390
+ set RagdollBlockingFlags(flags) {
4315
4391
  inv('0x26695EC767728D84', this.handle, flags);
4316
4392
  }
4317
4393
  /**
4318
4394
  * @param toggle
4319
4395
  */
4320
- setGravity(toggle) {
4396
+ set Gravity(toggle) {
4321
4397
  inv('0x9FF447B6B6AD960A', this.handle, toggle);
4322
4398
  }
4323
4399
  /**
@@ -4356,7 +4432,7 @@ export class Ped extends Entity {
4356
4432
  *
4357
4433
  * @param playerType
4358
4434
  */
4359
- setActivePlayerType(playerType) {
4435
+ set ActivePlayerType(playerType) {
4360
4436
  inv('0xB285AD0EC870B2DF', this.handle, _h(playerType));
4361
4437
  }
4362
4438
  /**
@@ -4371,13 +4447,13 @@ export class Ped extends Entity {
4371
4447
  /**
4372
4448
  * @returns
4373
4449
  */
4374
- isStopped() {
4375
- return inv('0x530944F6F4B8A214', this.handle, rai());
4450
+ get IsStopped() {
4451
+ return !!inv('0x530944F6F4B8A214', this.handle, rai());
4376
4452
  }
4377
4453
  /**
4378
4454
  * @param p1
4379
4455
  */
4380
- setRemoveNetworked(p1) {
4456
+ set RemoveNetworked(p1) {
4381
4457
  inv('0x39A2FC5AF55A52B1', this.handle, p1);
4382
4458
  }
4383
4459
  /**
@@ -4396,7 +4472,7 @@ export class Ped extends Entity {
4396
4472
  /**
4397
4473
  * @param flags
4398
4474
  */
4399
- setIncapacitationFlags(flags) {
4475
+ set IncapacitationFlags(flags) {
4400
4476
  inv('0xD67B6F3BCF81BA47', this.handle, flags);
4401
4477
  }
4402
4478
  /**
@@ -4412,7 +4488,7 @@ export class Ped extends Entity {
4412
4488
  /**
4413
4489
  * @param range Refer to [enum: ePedCombatRange]
4414
4490
  */
4415
- setCombatRange(range) {
4491
+ set CombatRange(range) {
4416
4492
  inv('0x3C606747B23E497B', this.handle, range);
4417
4493
  }
4418
4494
  /**
@@ -4423,12 +4499,12 @@ export class Ped extends Entity {
4423
4499
  * @returns
4424
4500
  */
4425
4501
  isFacingPed(otherPed, angle) {
4426
- return inv('0xD71649DB0A545AA3', this.handle, otherPed.handle, f(angle), rai());
4502
+ return !!inv('0xD71649DB0A545AA3', this.handle, otherPed.handle, f(angle), rai());
4427
4503
  }
4428
4504
  /**
4429
4505
  * @returns
4430
4506
  */
4431
- isQueuedForDeletion() {
4507
+ get IsQueuedForDeletion() {
4432
4508
  return inv('0x8D9BFCE3352DE47F', this.handle);
4433
4509
  }
4434
4510
  /**
@@ -4443,7 +4519,7 @@ export class Ped extends Entity {
4443
4519
  /**
4444
4520
  * @param index
4445
4521
  */
4446
- setGroupMemberPassengerIndex(index) {
4522
+ set GroupMemberPassengerIndex(index) {
4447
4523
  inv('0x0BDDB8D9EC6BCF3C', this.handle, index);
4448
4524
  }
4449
4525
  N_0xC9151483CC06A414() {
@@ -4452,7 +4528,7 @@ export class Ped extends Entity {
4452
4528
  /**
4453
4529
  * @returns
4454
4530
  */
4455
- isClimbingLadder() {
4531
+ get IsClimbingLadder() {
4456
4532
  return inv('0x59643424B68D52B5', this.handle);
4457
4533
  }
4458
4534
  /**
@@ -4465,8 +4541,8 @@ export class Ped extends Entity {
4465
4541
  /**
4466
4542
  * @returns
4467
4543
  */
4468
- isHogtying() {
4469
- return inv('0x42429C674B61238B', this.handle);
4544
+ get IsHogtying() {
4545
+ return !!inv('0x42429C674B61238B', this.handle, rai());
4470
4546
  }
4471
4547
  /**
4472
4548
  * Hashes: GUARD, COMBAT_ANIMAL, LAW, LAW_SHERIFF
@@ -4474,7 +4550,7 @@ export class Ped extends Entity {
4474
4550
  *
4475
4551
  * @param p1
4476
4552
  */
4477
- setCombatAttributeHash(p1) {
4553
+ set CombatAttributeHash(p1) {
4478
4554
  inv('0xBD75500141E4725C', this.handle, _h(p1));
4479
4555
  }
4480
4556
  /**
@@ -4506,26 +4582,26 @@ export class Ped extends Entity {
4506
4582
  *
4507
4583
  * @returns
4508
4584
  */
4509
- getPlayerWaterDepth() {
4585
+ get PlayerWaterDepth() {
4510
4586
  return inv('0x2942457417A5FD24', this.handle, raf());
4511
4587
  }
4512
4588
  /**
4513
4589
  * @param actionDisableFlag Refer to [enum: eActionDisableFlags]
4514
4590
  */
4515
- setTargetActionDisableFlag(actionDisableFlag) {
4591
+ set TargetActionDisableFlag(actionDisableFlag) {
4516
4592
  inv('0xC163DAC52AC975D3', this.handle, actionDisableFlag);
4517
4593
  }
4518
4594
  /**
4519
4595
  * @returns
4520
4596
  */
4521
- isFleeing() {
4522
- return inv('0xBBCCE00B381F8482', this.handle, rai());
4597
+ get IsFleeing() {
4598
+ return !!inv('0xBBCCE00B381F8482', this.handle, rai());
4523
4599
  }
4524
4600
  /**
4525
4601
  * @returns
4526
4602
  */
4527
- isFallingOver() {
4528
- return inv('0x3E592D0486DEC0F6', this.handle);
4603
+ get IsFallingOver() {
4604
+ return !!inv('0x3E592D0486DEC0F6', this.handle, rai());
4529
4605
  }
4530
4606
  /**
4531
4607
  * target: 0 affects everyone
@@ -4564,7 +4640,7 @@ export class Ped extends Entity {
4564
4640
  /**
4565
4641
  * @param multiplier
4566
4642
  */
4567
- setStaminaDepletionMultiplier(multiplier) {
4643
+ set StaminaDepletionMultiplier(multiplier) {
4568
4644
  inv('0xEF5A3D2285D8924B', this.handle, multiplier);
4569
4645
  }
4570
4646
  /**
@@ -4584,7 +4660,7 @@ export class Ped extends Entity {
4584
4660
  /**
4585
4661
  * @returns
4586
4662
  */
4587
- getBrawlingStyle() {
4663
+ get BrawlingStyle() {
4588
4664
  return (inv('0xEC6B59BE445FEC51', this.handle, rai())) & 0xFFFFFFFF;
4589
4665
  }
4590
4666
  /**
@@ -4604,8 +4680,8 @@ export class Ped extends Entity {
4604
4680
  /**
4605
4681
  * @returns
4606
4682
  */
4607
- isInAnyTaxi() {
4608
- return inv('0x6E575D6A898AB852', this.handle, rai());
4683
+ get IsInAnyTaxi() {
4684
+ return !!inv('0x6E575D6A898AB852', this.handle, rai());
4609
4685
  }
4610
4686
  /**
4611
4687
  * If returned true: There are enemy peds near friendly turn in ped. Going to aggro.
@@ -4618,18 +4694,18 @@ export class Ped extends Entity {
4618
4694
  * @returns
4619
4695
  */
4620
4696
  isInPoint(pos, radius, p5) {
4621
- return inv('0x078076AB50FB117F', this.handle, f(pos.x), f(pos.y), f(pos.z), f(radius), p5, rai());
4697
+ return !!inv('0x078076AB50FB117F', this.handle, f(pos.x), f(pos.y), f(pos.z), f(radius), p5, rai());
4622
4698
  }
4623
4699
  /**
4624
4700
  * @returns
4625
4701
  */
4626
- getStaminaDepletionMultiplier() {
4702
+ get StaminaDepletionMultiplier() {
4627
4703
  return inv('0x825F6DD559A0895B', this.handle, raf());
4628
4704
  }
4629
4705
  /**
4630
4706
  * @param multiplier
4631
4707
  */
4632
- setStaminaRechargeMultiplier(multiplier) {
4708
+ set StaminaRechargeMultiplier(multiplier) {
4633
4709
  inv('0x345C9F993A8AB4A4', this.handle, multiplier);
4634
4710
  }
4635
4711
  /**
@@ -4644,8 +4720,8 @@ export class Ped extends Entity {
4644
4720
  /**
4645
4721
  * @returns
4646
4722
  */
4647
- isInAnyTrain() {
4648
- return inv('0x6F972C1AB75A1ED0', this.handle, rai());
4723
+ get IsInAnyTrain() {
4724
+ return !!inv('0x6F972C1AB75A1ED0', this.handle, rai());
4649
4725
  }
4650
4726
  /**
4651
4727
  * Detect if ped is sitting in the specified vehicle
@@ -4655,7 +4731,7 @@ export class Ped extends Entity {
4655
4731
  * @returns
4656
4732
  */
4657
4733
  isSittingInVehicle(vehicle) {
4658
- return inv('0xA808AA1D79230FC2', this.handle, vehicle.handle, rai());
4734
+ return !!inv('0xA808AA1D79230FC2', this.handle, vehicle.handle, rai());
4659
4735
  }
4660
4736
  /**
4661
4737
  * Forces transition now, called together with 0xD65FDC686A031C83
@@ -4674,13 +4750,13 @@ export class Ped extends Entity {
4674
4750
  /**
4675
4751
  * @returns
4676
4752
  */
4677
- getMount() {
4753
+ get Mount() {
4678
4754
  return createFromHandle('Ped', inv('0xE7E11B8DCBED1058', this.handle, rai()));
4679
4755
  }
4680
4756
  /**
4681
4757
  * @returns
4682
4758
  */
4683
- getMoney() {
4759
+ get Money() {
4684
4760
  return inv('0x3F69145BBA87BAE7', this.handle, rai());
4685
4761
  }
4686
4762
  /**
@@ -4703,7 +4779,7 @@ export class Ped extends Entity {
4703
4779
  * @returns
4704
4780
  */
4705
4781
  forceMotionState(motionStateHash, p2, p3, p4) {
4706
- return inv('0xF28965D04F570DCA', this.handle, _h(motionStateHash), p2, p3, p4, rai());
4782
+ return !!inv('0xF28965D04F570DCA', this.handle, _h(motionStateHash), p2, p3, p4, rai());
4707
4783
  }
4708
4784
  /**
4709
4785
  * @param p2
@@ -4730,7 +4806,7 @@ export class Ped extends Entity {
4730
4806
  /**
4731
4807
  * @param value
4732
4808
  */
4733
- setMaxTimeInWater(value) {
4809
+ set MaxTimeInWater(value) {
4734
4810
  inv('0x43C851690662113D', this.handle, f(value));
4735
4811
  }
4736
4812
  /**
@@ -4751,7 +4827,7 @@ export class Ped extends Entity {
4751
4827
  /**
4752
4828
  * @param name
4753
4829
  */
4754
- setPromptName2(name) {
4830
+ set PromptName2(name) {
4755
4831
  inv('0x19B14E04B009E28B', this.handle, name);
4756
4832
  }
4757
4833
  /**
@@ -4768,21 +4844,21 @@ export class Ped extends Entity {
4768
4844
  *
4769
4845
  * @returns
4770
4846
  */
4771
- isFatallyInjured() {
4772
- return inv('0xD839450756ED5A80', this.handle, rai());
4847
+ get IsFatallyInjured() {
4848
+ return !!inv('0xD839450756ED5A80', this.handle, rai());
4773
4849
  }
4774
4850
  /**
4775
4851
  * _IS_PED_IN*
4776
4852
  *
4777
4853
  * @returns
4778
4854
  */
4779
- isInvestigating() {
4780
- return inv('0x7583A9D35248B83F', this.handle, rai());
4855
+ get IsInvestigating() {
4856
+ return !!inv('0x7583A9D35248B83F', this.handle, rai());
4781
4857
  }
4782
4858
  /**
4783
4859
  * @returns
4784
4860
  */
4785
- getCurrentTargetForPed() {
4861
+ get CurrentTargetForPed() {
4786
4862
  return createFromHandle('Entity', inv('0xCD66FEA29400A0B5', this.handle, rai()));
4787
4863
  }
4788
4864
  /**
@@ -4797,7 +4873,7 @@ export class Ped extends Entity {
4797
4873
  *
4798
4874
  * @param value
4799
4875
  */
4800
- setCapsule(value) {
4876
+ set Capsule(value) {
4801
4877
  inv('0x364DF566EC833DE2', this.handle, f(value));
4802
4878
  }
4803
4879
  /**
@@ -4805,13 +4881,13 @@ export class Ped extends Entity {
4805
4881
  * @returns
4806
4882
  */
4807
4883
  isHeadtrackingEntity(entity) {
4808
- return inv('0x813A0A7C9D2E831F', this.handle, entity.handle, rai());
4884
+ return !!inv('0x813A0A7C9D2E831F', this.handle, entity.handle, rai());
4809
4885
  }
4810
4886
  /**
4811
4887
  * @returns
4812
4888
  */
4813
- isVaulting() {
4814
- return inv('0x117C70D1F5730B5E', this.handle, rai());
4889
+ get IsVaulting() {
4890
+ return !!inv('0x117C70D1F5730B5E', this.handle, rai());
4815
4891
  }
4816
4892
  /**
4817
4893
  * _IS_PED_M* - _IS_PED_O*
@@ -4819,13 +4895,13 @@ export class Ped extends Entity {
4819
4895
  * @returns
4820
4896
  */
4821
4897
  N_0xBD0E4F52F6D95242() {
4822
- return inv('0xBD0E4F52F6D95242', this.handle, rai());
4898
+ return !!inv('0xBD0E4F52F6D95242', this.handle, rai());
4823
4899
  }
4824
4900
  /**
4825
4901
  * @returns
4826
4902
  */
4827
4903
  wasKilledByHeadshot() {
4828
- return inv('0x06FA94C835787C64', this.handle, rai());
4904
+ return !!inv('0x06FA94C835787C64', this.handle, rai());
4829
4905
  }
4830
4906
  /**
4831
4907
  * @param pedKiller
@@ -4839,14 +4915,14 @@ export class Ped extends Entity {
4839
4915
  *
4840
4916
  * @returns speedX; speedY
4841
4917
  */
4842
- getCurrentMoveBlendRatio() {
4918
+ get CurrentMoveBlendRatio() {
4843
4919
  const result = inv('0xF60165E1D2C5370B', this.handle, pvf(), pvf(), rai());
4844
4920
  return [!!result[0], result[1], result[2]];
4845
4921
  }
4846
4922
  /**
4847
4923
  * @param heading
4848
4924
  */
4849
- setDesiredHeading(heading) {
4925
+ set DesiredHeading(heading) {
4850
4926
  inv('0xAA5A7ECE2AA8FE70', this.handle, f(heading));
4851
4927
  }
4852
4928
  /**
@@ -4870,13 +4946,13 @@ export class Ped extends Entity {
4870
4946
  *
4871
4947
  * @returns
4872
4948
  */
4873
- getActiveDynamicScenario() {
4949
+ get ActiveDynamicScenario() {
4874
4950
  return (inv('0x569F1E1237508DEB', this.handle, rai())) & 0xFFFFFFFF;
4875
4951
  }
4876
4952
  /**
4877
4953
  * @param toggle
4878
4954
  */
4879
- setCanRagdollFromPlayerImpact(toggle) {
4955
+ set CanRagdollFromPlayerImpact(toggle) {
4880
4956
  inv('0xDF993EE5E90ABA25', this.handle, toggle);
4881
4957
  }
4882
4958
  /**
@@ -4884,7 +4960,7 @@ export class Ped extends Entity {
4884
4960
  * @returns
4885
4961
  */
4886
4962
  isEventInQueue(eventType) {
4887
- return inv('0xC8D523BF5BBD3808', this.handle, _h(eventType));
4963
+ return !!inv('0xC8D523BF5BBD3808', this.handle, _h(eventType), rai());
4888
4964
  }
4889
4965
  /**
4890
4966
  * @param mount
@@ -4913,13 +4989,13 @@ export class Ped extends Entity {
4913
4989
  /**
4914
4990
  * @param value
4915
4991
  */
4916
- setVisualFieldMaxAngle(value) {
4992
+ set VisualFieldMaxAngle(value) {
4917
4993
  inv('0x70793BDCA1E854D4', this.handle, f(value));
4918
4994
  }
4919
4995
  /**
4920
4996
  * @returns
4921
4997
  */
4922
- getMetaRace() {
4998
+ get MetaRace() {
4923
4999
  return inv('0xB292203008EBBAAC', this.handle);
4924
5000
  }
4925
5001
  /**
@@ -4933,7 +5009,7 @@ export class Ped extends Entity {
4933
5009
  *
4934
5010
  * @returns
4935
5011
  */
4936
- getLootStatusMp() {
5012
+ get LootStatusMp() {
4937
5013
  return inv('0xC737697C41628340', this.handle, rai());
4938
5014
  }
4939
5015
  /**
@@ -4954,7 +5030,7 @@ export class Ped extends Entity {
4954
5030
  *
4955
5031
  * @returns
4956
5032
  */
4957
- getCauseOfDeath() {
5033
+ get CauseOfDeath() {
4958
5034
  return (inv('0x16FFE42AB2D2DC59', this.handle, rai())) & 0xFFFFFFFF;
4959
5035
  }
4960
5036
  /**
@@ -5003,7 +5079,7 @@ export class Ped extends Entity {
5003
5079
  /**
5004
5080
  * @param toggle
5005
5081
  */
5006
- setCanArmIk(toggle) {
5082
+ set CanArmIk(toggle) {
5007
5083
  inv('0x6C3B4D6D13B4C841', this.handle, toggle);
5008
5084
  }
5009
5085
  /**
@@ -5037,8 +5113,8 @@ export class Ped extends Entity {
5037
5113
  /**
5038
5114
  * @returns
5039
5115
  */
5040
- isInAnyHeli() {
5041
- return inv('0x298B91AE825E5705', this.handle, rai());
5116
+ get IsInAnyHeli() {
5117
+ return !!inv('0x298B91AE825E5705', this.handle, rai());
5042
5118
  }
5043
5119
  /**
5044
5120
  * @param ped
@@ -5046,7 +5122,7 @@ export class Ped extends Entity {
5046
5122
  * @returns Return `true` if the ped is heard by the target ped.
5047
5123
  */
5048
5124
  canHearTargetPed(ped, flag) {
5049
- return inv('0x0EA9EACBA3B01601', this.handle, ped.handle, flag, rai());
5125
+ return !!inv('0x0EA9EACBA3B01601', this.handle, ped.handle, flag, rai());
5050
5126
  }
5051
5127
  /**
5052
5128
  * @param componentHash
@@ -5060,7 +5136,7 @@ export class Ped extends Entity {
5060
5136
  *
5061
5137
  * @returns
5062
5138
  */
5063
- getGroupIndex() {
5139
+ get GroupIndex() {
5064
5140
  return inv('0xF162E133B4E7A675', this.handle, rai());
5065
5141
  }
5066
5142
  /**
@@ -5071,13 +5147,13 @@ export class Ped extends Entity {
5071
5147
  * @returns
5072
5148
  */
5073
5149
  getConfigFlag(flagId, p2) {
5074
- return inv('0x7EE53118C892B513', this.handle, flagId, p2, rai());
5150
+ return !!inv('0x7EE53118C892B513', this.handle, flagId, p2, rai());
5075
5151
  }
5076
5152
  /**
5077
5153
  * @returns
5078
5154
  */
5079
- isIncapacitated() {
5080
- return inv('0xB655DB7582AEC805', this.handle);
5155
+ get IsIncapacitated() {
5156
+ return !!inv('0xB655DB7582AEC805', this.handle, rai());
5081
5157
  }
5082
5158
  /**
5083
5159
  * duration in seconds
@@ -5105,7 +5181,7 @@ export class Ped extends Entity {
5105
5181
  /**
5106
5182
  * @param damaged
5107
5183
  */
5108
- setDamaged(damaged) {
5184
+ set Damaged(damaged) {
5109
5185
  inv('0xDACE03C65C6666DB', this.handle, damaged);
5110
5186
  }
5111
5187
  /**
@@ -5126,12 +5202,12 @@ export class Ped extends Entity {
5126
5202
  * @returns
5127
5203
  */
5128
5204
  N_0xEBAAC9A750E7563B() {
5129
- return inv('0xEBAAC9A750E7563B', this.handle, rai());
5205
+ return !!inv('0xEBAAC9A750E7563B', this.handle, rai());
5130
5206
  }
5131
5207
  /**
5132
5208
  * @param mode
5133
5209
  */
5134
- setLegIkMode(mode) {
5210
+ set LegIkMode(mode) {
5135
5211
  inv('0xC396F5B86FF9FEBD', this.handle, mode);
5136
5212
  }
5137
5213
  /**
@@ -5148,30 +5224,30 @@ export class Ped extends Entity {
5148
5224
  * @returns
5149
5225
  */
5150
5226
  isUsingThisScenario(scenario) {
5151
- return inv('0x9C54041BB66BCF9E', this.handle, scenario);
5227
+ return !!inv('0x9C54041BB66BCF9E', this.handle, scenario, rai());
5152
5228
  }
5153
5229
  /**
5154
5230
  * @returns Returns the peds [enum: ePedCombatMovement]
5155
5231
  */
5156
- getCombatMovement() {
5232
+ get CombatMovement() {
5157
5233
  return inv('0xDEA92412FCAEB3F5', this.handle, rai());
5158
5234
  }
5159
5235
  /**
5160
5236
  * @returns
5161
5237
  */
5162
- getVehicleIsEntering() {
5238
+ get VehicleIsEntering() {
5163
5239
  return createFromHandle('Vehicle', inv('0xF92691AED837A5FC', this.handle, rai()));
5164
5240
  }
5165
5241
  /**
5166
5242
  * @param toggle
5167
5243
  */
5168
- setCanBeTargetted(toggle) {
5244
+ set CanBeTargetted(toggle) {
5169
5245
  inv('0x63F58F7C80513AAD', this.handle, toggle);
5170
5246
  }
5171
5247
  /**
5172
5248
  * @returns
5173
5249
  */
5174
- getMeleeActionPhase() {
5250
+ get MeleeActionPhase() {
5175
5251
  return inv('0x6127F25ED21C533C', this.handle, raf());
5176
5252
  }
5177
5253
  /**
@@ -5179,7 +5255,7 @@ export class Ped extends Entity {
5179
5255
  *
5180
5256
  * @param volume
5181
5257
  */
5182
- setVoiceVolume(volume) {
5258
+ set VoiceVolume(volume) {
5183
5259
  inv('0xD05AD61F242C626B', this.handle, f(volume));
5184
5260
  }
5185
5261
  /**
@@ -5203,13 +5279,13 @@ export class Ped extends Entity {
5203
5279
  /**
5204
5280
  * @returns
5205
5281
  */
5206
- isBeingDragged() {
5207
- return inv('0xEF3A8772F085B4AA', this.handle);
5282
+ get IsBeingDragged() {
5283
+ return !!inv('0xEF3A8772F085B4AA', this.handle, rai());
5208
5284
  }
5209
5285
  /**
5210
5286
  * @param actionDisableFlag Refer to [enum: eActionDisableFlags]
5211
5287
  */
5212
- setActionDisableFlag(actionDisableFlag) {
5288
+ set ActionDisableFlag(actionDisableFlag) {
5213
5289
  inv('0xB8DE69D9473B7593', this.handle, actionDisableFlag);
5214
5290
  }
5215
5291
  /**
@@ -5234,37 +5310,37 @@ export class Ped extends Entity {
5234
5310
  * @returns
5235
5311
  */
5236
5312
  N_0x7F090958AE95B61B(p1) {
5237
- return inv('0x7F090958AE95B61B', this.handle, p1, rai());
5313
+ return !!inv('0x7F090958AE95B61B', this.handle, p1, rai());
5238
5314
  }
5239
5315
  /**
5240
5316
  * @param modelHash
5241
5317
  * @returns
5242
5318
  */
5243
5319
  isModel(modelHash) {
5244
- return inv('0xC9D55B1A358A5BF7', this.handle, _h(modelHash), rai());
5320
+ return !!inv('0xC9D55B1A358A5BF7', this.handle, _h(modelHash), rai());
5245
5321
  }
5246
5322
  /**
5247
5323
  * @param toggle
5248
5324
  */
5249
- setLights(toggle) {
5325
+ set Lights(toggle) {
5250
5326
  inv('0x13A210949FCBD92B', this.handle, toggle);
5251
5327
  }
5252
5328
  /**
5253
5329
  * @returns
5254
5330
  */
5255
5331
  N_0x758F081DB204DDDE() {
5256
- return inv('0x758F081DB204DDDE', this.handle, rai());
5332
+ return !!inv('0x758F081DB204DDDE', this.handle, rai());
5257
5333
  }
5258
5334
  /**
5259
5335
  * @param p1
5260
5336
  */
5261
- setKnockedByOneHit(p1) {
5337
+ set KnockedByOneHit(p1) {
5262
5338
  inv('0x5BCF0B79D4F5DBA3', this.handle, f(p1));
5263
5339
  }
5264
5340
  /**
5265
5341
  * @returns
5266
5342
  */
5267
- getIsBeingGrappled() {
5343
+ get IsBeingGrappled() {
5268
5344
  return inv('0x3BDFCF25B58B0415', this.handle);
5269
5345
  }
5270
5346
  clearEnvDirt() {
@@ -5282,7 +5358,7 @@ export class Ped extends Entity {
5282
5358
  *
5283
5359
  * @returns
5284
5360
  */
5285
- getMetaType() {
5361
+ get MetaType() {
5286
5362
  return inv('0xEC9A1261BF0CE510', this.handle, rai());
5287
5363
  }
5288
5364
  /**
@@ -5293,7 +5369,7 @@ export class Ped extends Entity {
5293
5369
  * @returns
5294
5370
  */
5295
5371
  isOnVehicle(p1) {
5296
- return inv('0x67722AEB798E5FAB', this.handle, p1, rai());
5372
+ return !!inv('0x67722AEB798E5FAB', this.handle, p1, rai());
5297
5373
  }
5298
5374
  /**
5299
5375
  * Used in Script Function MOONSHINE_BAND_CLIENT_PATRON_UPDATE
@@ -5315,7 +5391,7 @@ export class Ped extends Entity {
5315
5391
  /**
5316
5392
  * @returns
5317
5393
  */
5318
- getMaxStamina() {
5394
+ get MaxStamina() {
5319
5395
  return inv('0xCB42AFE2B613EE55', this.handle, raf());
5320
5396
  }
5321
5397
  /**
@@ -5346,7 +5422,7 @@ export class Ped extends Entity {
5346
5422
  *
5347
5423
  * @returns
5348
5424
  */
5349
- getTotalDamageFromAi() {
5425
+ get TotalDamageFromAi() {
5350
5426
  return inv('0x92C8EACA29F6BED6', this.handle, raf());
5351
5427
  }
5352
5428
  /**
@@ -5361,7 +5437,7 @@ export class Ped extends Entity {
5361
5437
  *
5362
5438
  * @param locoMotionType
5363
5439
  */
5364
- setDesiredLocoMotionType(locoMotionType) {
5440
+ set DesiredLocoMotionType(locoMotionType) {
5365
5441
  inv('0x89F5E7ADECCCB49C', this.handle, locoMotionType);
5366
5442
  }
5367
5443
  /**
@@ -5376,7 +5452,7 @@ export class Ped extends Entity {
5376
5452
  *
5377
5453
  * @param value
5378
5454
  */
5379
- setMoveRateOverride(value) {
5455
+ set MoveRateOverride(value) {
5380
5456
  inv('0x085BF80FA50A39D1', this.handle, f(value));
5381
5457
  }
5382
5458
  /**
@@ -5404,7 +5480,7 @@ export class Ped extends Entity {
5404
5480
  /**
5405
5481
  * @param toggle
5406
5482
  */
5407
- setCanUseAutoConversationLookat(toggle) {
5483
+ set CanUseAutoConversationLookat(toggle) {
5408
5484
  inv('0xEC4686EC06434678', this.handle, toggle);
5409
5485
  }
5410
5486
  /**
@@ -5432,14 +5508,14 @@ export class Ped extends Entity {
5432
5508
  *
5433
5509
  * @returns
5434
5510
  */
5435
- isInjured() {
5436
- return inv('0x84A2DD9AC37C35C1', this.handle, rai());
5511
+ get IsInjured() {
5512
+ return !!inv('0x84A2DD9AC37C35C1', this.handle, rai());
5437
5513
  }
5438
5514
  /**
5439
5515
  * @returns
5440
5516
  */
5441
- isBeingHogtied() {
5442
- return inv('0xD453BB601D4A606E', this.handle);
5517
+ get IsBeingHogtied() {
5518
+ return !!inv('0xD453BB601D4A606E', this.handle, rai());
5443
5519
  }
5444
5520
  /**
5445
5521
  * https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/Lasso%20Hogtie%20Flags
@@ -5454,7 +5530,7 @@ export class Ped extends Entity {
5454
5530
  /**
5455
5531
  * @returns
5456
5532
  */
5457
- getStaminaRechargeMultiplier() {
5533
+ get StaminaRechargeMultiplier() {
5458
5534
  return inv('0xE7687EB2F634ABF0', this.handle, raf());
5459
5535
  }
5460
5536
  /**
@@ -5477,7 +5553,7 @@ export class Ped extends Entity {
5477
5553
  /**
5478
5554
  * @param behaviour
5479
5555
  */
5480
- setCombatBehaviour(behaviour) {
5556
+ set CombatBehaviour(behaviour) {
5481
5557
  inv('0x9238A3D970BBB0A9', this.handle, _h(behaviour));
5482
5558
  }
5483
5559
  /**
@@ -5506,21 +5582,21 @@ export class Ped extends Entity {
5506
5582
  /**
5507
5583
  * @returns
5508
5584
  */
5509
- isPlantingBomb() {
5510
- return inv('0xC70B5FAE151982D8', this.handle, rai());
5585
+ get IsPlantingBomb() {
5586
+ return !!inv('0xC70B5FAE151982D8', this.handle, rai());
5511
5587
  }
5512
5588
  /**
5513
5589
  * @returns
5514
5590
  */
5515
5591
  addSubscribeToLegendaryBlips() {
5516
- return inv('0xE37287EE358939C3', this.handle, rai());
5592
+ return !!inv('0xE37287EE358939C3', this.handle, rai());
5517
5593
  }
5518
5594
  /**
5519
5595
  * @param ped2
5520
5596
  * @returns
5521
5597
  */
5522
5598
  isHeadtrackingPed(ped2) {
5523
- return inv('0x5CD3CB88A7F8850D', this.handle, ped2.handle, rai());
5599
+ return !!inv('0x5CD3CB88A7F8850D', this.handle, ped2.handle, rai());
5524
5600
  }
5525
5601
  /**
5526
5602
  * _CLEAR*
@@ -5535,14 +5611,14 @@ export class Ped extends Entity {
5535
5611
  * @returns
5536
5612
  */
5537
5613
  isFullyOnMount(p1) {
5538
- return inv('0x95CBC65780DE7EB1', this.handle, p1);
5614
+ return !!inv('0x95CBC65780DE7EB1', this.handle, p1, rai());
5539
5615
  }
5540
5616
  /**
5541
5617
  * Presumably returns the Entity that the Ped is currently diving out of the way of.
5542
5618
  *
5543
5619
  * @returns evadingEntity
5544
5620
  */
5545
- isEvasiveDiving() {
5621
+ get IsEvasiveDiving() {
5546
5622
  const result = inv('0x414641C26E105898', this.handle, pvi(), rai());
5547
5623
  return [!!result[0], createFromHandle('Entity', result[1])];
5548
5624
  }
@@ -5566,14 +5642,14 @@ export class Ped extends Entity {
5566
5642
  /**
5567
5643
  * @returns
5568
5644
  */
5569
- getPlayerIsFollowing() {
5645
+ get PlayerIsFollowing() {
5570
5646
  return createFromHandle('Player', inv('0x6A3975DEA89F9A17', this.handle, rai()));
5571
5647
  }
5572
5648
  /**
5573
5649
  * @returns
5574
5650
  */
5575
- isSwimming() {
5576
- return inv('0x9DE327631295B4C2', this.handle, rai());
5651
+ get IsSwimming() {
5652
+ return !!inv('0x9DE327631295B4C2', this.handle, rai());
5577
5653
  }
5578
5654
  /**
5579
5655
  * Seems to set the peds stamina to 30%
@@ -5598,7 +5674,7 @@ export class Ped extends Entity {
5598
5674
  /**
5599
5675
  * @param value
5600
5676
  */
5601
- setMaxTimeUnderwater(value) {
5677
+ set MaxTimeUnderwater(value) {
5602
5678
  inv('0x6BA428C528D9E522', this.handle, f(value));
5603
5679
  }
5604
5680
  /**
@@ -5625,82 +5701,6 @@ export class Ped extends Entity {
5625
5701
  N_0x4B19F171450E0D4F() {
5626
5702
  return createFromHandle('Ped', inv('0x4B19F171450E0D4F', this.handle, rai()));
5627
5703
  }
5628
- /**
5629
- * @returns
5630
- */
5631
- isOnFoot() {
5632
- return inv('0x01FEE67DB37F59B2', this.handle, rai());
5633
- }
5634
- /**
5635
- * Only used in R* Script nb_stalking_hunter
5636
- *
5637
- * @param ped2
5638
- */
5639
- N_0xED1C764997A86D5A(ped2) {
5640
- inv('0xED1C764997A86D5A', this.handle, ped2.handle);
5641
- }
5642
- /**
5643
- * @param grappleSequence
5644
- */
5645
- setGrappleSequence(grappleSequence) {
5646
- inv('0x604190F0CF0DF158', this.handle, grappleSequence);
5647
- }
5648
- /**
5649
- * @param p1
5650
- */
5651
- N_0xFFA1594703ED27CA(p1) {
5652
- inv('0xFFA1594703ED27CA', this.handle, p1);
5653
- }
5654
- /**
5655
- * @returns
5656
- */
5657
- getMeleeTargetForPed() {
5658
- return createFromHandle('Ped', inv('0x18A3E9EE1297FD39', this.handle, rai()));
5659
- }
5660
- /**
5661
- * Use to apply metaped player components
5662
- * Replaces asset, alternatively you can remove assets using REMOVE_TAG_FROM_META_PED
5663
- *
5664
- * @param drawable
5665
- * @param albedo
5666
- * @param normal
5667
- * @param material
5668
- * @param palette
5669
- * @param tint0
5670
- * @param tint1
5671
- * @param tint2
5672
- */
5673
- setMetaTag(drawable, albedo, normal, material, palette, tint0, tint1, tint2) {
5674
- inv('0xBC6DF00D7A4A6819', this.handle, _h(drawable), _h(albedo), _h(normal), _h(material), _h(palette), tint0, tint1, tint2);
5675
- }
5676
- /**
5677
- * @param p1
5678
- * @param p2
5679
- */
5680
- N_0x32CEDA9A0AB4CEF7(p1, p2) {
5681
- inv('0x32CEDA9A0AB4CEF7', this.handle, _h(p1), p2);
5682
- }
5683
- /**
5684
- * @returns
5685
- */
5686
- isChild() {
5687
- return inv('0x137772000DAF42C5', this.handle);
5688
- }
5689
- /**
5690
- * @param index
5691
- * @param p2
5692
- * @returns argStruct; argStruct2
5693
- */
5694
- getShopItemComponentAtIndex(index, p2) {
5695
- const result = inv('0x77BA37622E22023B', this.handle, index, p2, pvi(), pvi(), rai());
5696
- return [result[0] & 0xFFFFFFFF, result[1], result[2]];
5697
- }
5698
- /**
5699
- * @param value
5700
- */
5701
- setMaxMoveBlendRatio(value) {
5702
- inv('0x433083750C5E064A', this.handle, f(value));
5703
- }
5704
5704
  get task() {
5705
5705
  if (!this._task) {
5706
5706
  this._task = new PedTask(this);