@nativewrappers/redm-codegen 0.0.4 → 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 (317) hide show
  1. package/dist/classes/AnimScene.d.ts +96 -96
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +137 -137
  4. package/dist/classes/BaseModel.d.ts +19 -19
  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 +33 -33
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +40 -40
  10. package/dist/classes/Cam.d.ts +85 -85
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +108 -108
  13. package/dist/classes/Entity.d.ts +288 -283
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +410 -401
  16. package/dist/classes/Interior.d.ts +27 -27
  17. package/dist/classes/Interior.d.ts.map +1 -1
  18. package/dist/classes/Interior.js +42 -42
  19. package/dist/classes/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 +286 -286
  23. package/dist/classes/Ped.d.ts.map +1 -1
  24. package/dist/classes/Ped.js +425 -425
  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 +729 -729
  29. package/dist/classes/PedTask.d.ts.map +1 -1
  30. package/dist/classes/PedTask.js +935 -935
  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 +19 -19
  34. package/dist/classes/Pickup.d.ts +6 -6
  35. package/dist/classes/Pickup.d.ts.map +1 -1
  36. package/dist/classes/Pickup.js +13 -13
  37. package/dist/classes/Player.d.ts +343 -339
  38. package/dist/classes/Player.d.ts.map +1 -1
  39. package/dist/classes/Player.js +495 -489
  40. package/dist/classes/Prop.d.ts +64 -64
  41. package/dist/classes/Prop.d.ts.map +1 -1
  42. package/dist/classes/Prop.js +94 -94
  43. package/dist/classes/PropSet.d.ts +18 -18
  44. package/dist/classes/PropSet.d.ts.map +1 -1
  45. package/dist/classes/PropSet.js +27 -27
  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 +24 -24
  53. package/dist/classes/VehicleTask.d.ts.map +1 -1
  54. package/dist/classes/VehicleTask.js +30 -30
  55. package/dist/classes/Volume.d.ts +44 -44
  56. package/dist/classes/Volume.d.ts.map +1 -1
  57. package/dist/classes/Volume.js +58 -58
  58. package/dist/classes/Weapon.d.ts +351 -351
  59. package/dist/classes/Weapon.d.ts.map +1 -1
  60. package/dist/classes/Weapon.js +486 -486
  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 +48 -48
  68. package/dist/namespaces/Animscene.d.ts.map +1 -1
  69. package/dist/namespaces/Animscene.js +65 -65
  70. package/dist/namespaces/Audio.d.ts +476 -476
  71. package/dist/namespaces/Audio.d.ts.map +1 -1
  72. package/dist/namespaces/Audio.js +692 -692
  73. package/dist/namespaces/Bounty.d.ts +57 -57
  74. package/dist/namespaces/Bounty.d.ts.map +1 -1
  75. package/dist/namespaces/Bounty.js +90 -90
  76. package/dist/namespaces/CamStatics.d.ts +432 -432
  77. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  78. package/dist/namespaces/CamStatics.js +606 -606
  79. package/dist/namespaces/Collection.d.ts +78 -78
  80. package/dist/namespaces/Collection.d.ts.map +1 -1
  81. package/dist/namespaces/Collection.js +111 -111
  82. package/dist/namespaces/Companion.d.ts +22 -22
  83. package/dist/namespaces/Companion.d.ts.map +1 -1
  84. package/dist/namespaces/Companion.js +30 -30
  85. package/dist/namespaces/Compapp.js +1 -1
  86. package/dist/namespaces/Compendium.d.ts +58 -58
  87. package/dist/namespaces/Compendium.d.ts.map +1 -1
  88. package/dist/namespaces/Compendium.js +83 -83
  89. package/dist/namespaces/Crashlog.d.ts +10 -10
  90. package/dist/namespaces/Crashlog.d.ts.map +1 -1
  91. package/dist/namespaces/Crashlog.js +21 -21
  92. package/dist/namespaces/Crew.js +4 -4
  93. package/dist/namespaces/Databinding.d.ts +154 -154
  94. package/dist/namespaces/Databinding.d.ts.map +1 -1
  95. package/dist/namespaces/Databinding.js +222 -222
  96. package/dist/namespaces/Datafile.js +4 -4
  97. package/dist/namespaces/Decorator.d.ts +19 -19
  98. package/dist/namespaces/Decorator.d.ts.map +1 -1
  99. package/dist/namespaces/Decorator.js +34 -34
  100. package/dist/namespaces/Dlc.d.ts +5 -5
  101. package/dist/namespaces/Dlc.d.ts.map +1 -1
  102. package/dist/namespaces/Dlc.js +9 -9
  103. package/dist/namespaces/EntityStatics.d.ts +80 -80
  104. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  105. package/dist/namespaces/EntityStatics.js +113 -113
  106. package/dist/namespaces/Event.js +4 -4
  107. package/dist/namespaces/Fire.d.ts +89 -89
  108. package/dist/namespaces/Fire.d.ts.map +1 -1
  109. package/dist/namespaces/Fire.js +115 -115
  110. package/dist/namespaces/Flock.js +2 -2
  111. package/dist/namespaces/Gang.js +2 -2
  112. package/dist/namespaces/GoogleAnalytics.js +2 -2
  113. package/dist/namespaces/Graphics.d.ts +781 -781
  114. package/dist/namespaces/Graphics.d.ts.map +1 -1
  115. package/dist/namespaces/Graphics.js +1207 -1207
  116. package/dist/namespaces/Hud.d.ts +483 -483
  117. package/dist/namespaces/Hud.d.ts.map +1 -1
  118. package/dist/namespaces/Hud.js +678 -678
  119. package/dist/namespaces/Ik.js +1 -1
  120. package/dist/namespaces/Interaction.js +3 -3
  121. package/dist/namespaces/InteriorStatics.d.ts +40 -40
  122. package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
  123. package/dist/namespaces/InteriorStatics.js +57 -57
  124. package/dist/namespaces/Inventory.d.ts +211 -211
  125. package/dist/namespaces/Inventory.d.ts.map +1 -1
  126. package/dist/namespaces/Inventory.js +291 -291
  127. package/dist/namespaces/Itemdatabase.js +3 -3
  128. package/dist/namespaces/Itemset.js +2 -2
  129. package/dist/namespaces/Law.d.ts +1 -1
  130. package/dist/namespaces/Law.d.ts.map +1 -1
  131. package/dist/namespaces/Law.js +19 -19
  132. package/dist/namespaces/Localization.js +1 -1
  133. package/dist/namespaces/Map.js +3 -3
  134. package/dist/namespaces/Minigame.d.ts +65 -65
  135. package/dist/namespaces/Minigame.d.ts.map +1 -1
  136. package/dist/namespaces/Minigame.js +105 -105
  137. package/dist/namespaces/Misc.d.ts +3 -3
  138. package/dist/namespaces/Misc.d.ts.map +1 -1
  139. package/dist/namespaces/Misc.js +35 -35
  140. package/dist/namespaces/Missiondata.d.ts +15 -15
  141. package/dist/namespaces/Missiondata.d.ts.map +1 -1
  142. package/dist/namespaces/Missiondata.js +24 -24
  143. package/dist/namespaces/Money.js +3 -3
  144. package/dist/namespaces/Netshopping.d.ts +58 -58
  145. package/dist/namespaces/Netshopping.d.ts.map +1 -1
  146. package/dist/namespaces/Netshopping.js +89 -89
  147. package/dist/namespaces/Network.d.ts +1067 -1067
  148. package/dist/namespaces/Network.d.ts.map +1 -1
  149. package/dist/namespaces/Network.js +1586 -1586
  150. package/dist/namespaces/Object.d.ts +231 -231
  151. package/dist/namespaces/Object.d.ts.map +1 -1
  152. package/dist/namespaces/Object.js +337 -337
  153. package/dist/namespaces/Pad.d.ts +42 -42
  154. package/dist/namespaces/Pad.d.ts.map +1 -1
  155. package/dist/namespaces/Pad.js +68 -68
  156. package/dist/namespaces/Pathfind.js +10 -10
  157. package/dist/namespaces/PedStatics.d.ts +2 -2
  158. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  159. package/dist/namespaces/PedStatics.js +10 -10
  160. package/dist/namespaces/Perschar.d.ts +54 -54
  161. package/dist/namespaces/Perschar.d.ts.map +1 -1
  162. package/dist/namespaces/Perschar.js +84 -84
  163. package/dist/namespaces/Physics.d.ts +121 -121
  164. package/dist/namespaces/Physics.d.ts.map +1 -1
  165. package/dist/namespaces/Physics.js +155 -155
  166. package/dist/namespaces/PlayerStatics.d.ts +97 -97
  167. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  168. package/dist/namespaces/PlayerStatics.js +142 -142
  169. package/dist/namespaces/Population.d.ts +11 -11
  170. package/dist/namespaces/Population.d.ts.map +1 -1
  171. package/dist/namespaces/Population.js +15 -15
  172. package/dist/namespaces/Posse.d.ts +33 -33
  173. package/dist/namespaces/Posse.d.ts.map +1 -1
  174. package/dist/namespaces/Posse.js +51 -51
  175. package/dist/namespaces/Propset.d.ts +59 -59
  176. package/dist/namespaces/Propset.d.ts.map +1 -1
  177. package/dist/namespaces/Propset.js +81 -81
  178. package/dist/namespaces/Replay.d.ts +1 -1
  179. package/dist/namespaces/Replay.d.ts.map +1 -1
  180. package/dist/namespaces/Replay.js +2 -2
  181. package/dist/namespaces/Scripts.d.ts +1 -1
  182. package/dist/namespaces/Scripts.d.ts.map +1 -1
  183. package/dist/namespaces/Scripts.js +12 -12
  184. package/dist/namespaces/Shapetest.d.ts +11 -11
  185. package/dist/namespaces/Shapetest.d.ts.map +1 -1
  186. package/dist/namespaces/Shapetest.js +13 -13
  187. package/dist/namespaces/Socialclub.js +8 -8
  188. package/dist/namespaces/Socialclubfeed.js +1 -1
  189. package/dist/namespaces/Spactionproxy.js +4 -4
  190. package/dist/namespaces/Stats.d.ts +191 -191
  191. package/dist/namespaces/Stats.d.ts.map +1 -1
  192. package/dist/namespaces/Stats.js +281 -281
  193. package/dist/namespaces/Streaming.d.ts +84 -84
  194. package/dist/namespaces/Streaming.d.ts.map +1 -1
  195. package/dist/namespaces/Streaming.js +137 -137
  196. package/dist/namespaces/Task.d.ts +347 -347
  197. package/dist/namespaces/Task.d.ts.map +1 -1
  198. package/dist/namespaces/Task.js +488 -488
  199. package/dist/namespaces/Telemetry.d.ts +151 -151
  200. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  201. package/dist/namespaces/Telemetry.js +206 -206
  202. package/dist/namespaces/Txd.js +1 -1
  203. package/dist/namespaces/Uiapps.d.ts +25 -25
  204. package/dist/namespaces/Uiapps.d.ts.map +1 -1
  205. package/dist/namespaces/Uiapps.js +36 -36
  206. package/dist/namespaces/Uievents.js +1 -1
  207. package/dist/namespaces/Uifeed.d.ts +15 -15
  208. package/dist/namespaces/Uifeed.d.ts.map +1 -1
  209. package/dist/namespaces/Uifeed.js +25 -25
  210. package/dist/namespaces/Uistickyfeed.d.ts +16 -16
  211. package/dist/namespaces/Uistickyfeed.d.ts.map +1 -1
  212. package/dist/namespaces/Uistickyfeed.js +21 -21
  213. package/dist/namespaces/Unlock.js +5 -5
  214. package/dist/namespaces/VehicleStatics.js +12 -12
  215. package/dist/namespaces/Voice.d.ts +38 -38
  216. package/dist/namespaces/Voice.d.ts.map +1 -1
  217. package/dist/namespaces/Voice.js +61 -61
  218. package/dist/namespaces/VolumeStatics.d.ts +99 -99
  219. package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
  220. package/dist/namespaces/VolumeStatics.js +137 -137
  221. package/dist/namespaces/WeaponStatics.d.ts +276 -276
  222. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  223. package/dist/namespaces/WeaponStatics.js +371 -371
  224. package/dist/types/NativeAliases.d.ts +3 -1
  225. package/dist/types/NativeAliases.d.ts.map +1 -1
  226. package/dist/types/NativeAliases.js +3 -1
  227. package/package.json +1 -1
  228. package/src/classes/AnimScene.ts +159 -159
  229. package/src/classes/BaseModel.ts +37 -37
  230. package/src/classes/BaseTask.ts +41 -41
  231. package/src/classes/Cam.ts +111 -111
  232. package/src/classes/Entity.ts +422 -411
  233. package/src/classes/Interior.ts +43 -43
  234. package/src/classes/ItemSet.ts +3 -3
  235. package/src/classes/Ped.ts +432 -432
  236. package/src/classes/PedModel.ts +2 -2
  237. package/src/classes/PedTask.ts +957 -957
  238. package/src/classes/PersChar.ts +22 -22
  239. package/src/classes/Pickup.ts +14 -14
  240. package/src/classes/Player.ts +994 -987
  241. package/src/classes/Prop.ts +106 -106
  242. package/src/classes/PropSet.ts +29 -29
  243. package/src/classes/Vehicle.ts +147 -147
  244. package/src/classes/VehicleModel.ts +2 -2
  245. package/src/classes/VehicleTask.ts +31 -31
  246. package/src/classes/Volume.ts +62 -62
  247. package/src/classes/Weapon.ts +511 -511
  248. package/src/namespaces/Aicoverpoint.ts +40 -40
  249. package/src/namespaces/Aitransport.ts +104 -104
  250. package/src/namespaces/Animscene.ts +71 -71
  251. package/src/namespaces/Audio.ts +725 -725
  252. package/src/namespaces/Bounty.ts +102 -102
  253. package/src/namespaces/CamStatics.ts +700 -700
  254. package/src/namespaces/Collection.ts +113 -113
  255. package/src/namespaces/Companion.ts +34 -34
  256. package/src/namespaces/Compapp.ts +1 -1
  257. package/src/namespaces/Compendium.ts +94 -94
  258. package/src/namespaces/Crashlog.ts +23 -23
  259. package/src/namespaces/Crew.ts +4 -4
  260. package/src/namespaces/Databinding.ts +237 -237
  261. package/src/namespaces/Datafile.ts +4 -4
  262. package/src/namespaces/Decorator.ts +37 -37
  263. package/src/namespaces/Dlc.ts +9 -9
  264. package/src/namespaces/EntityStatics.ts +117 -117
  265. package/src/namespaces/Event.ts +4 -4
  266. package/src/namespaces/Fire.ts +127 -127
  267. package/src/namespaces/Flock.ts +2 -2
  268. package/src/namespaces/Gang.ts +2 -2
  269. package/src/namespaces/GoogleAnalytics.ts +2 -2
  270. package/src/namespaces/Graphics.ts +1218 -1218
  271. package/src/namespaces/Hud.ts +696 -696
  272. package/src/namespaces/Ik.ts +1 -1
  273. package/src/namespaces/Interaction.ts +3 -3
  274. package/src/namespaces/InteriorStatics.ts +65 -65
  275. package/src/namespaces/Inventory.ts +294 -294
  276. package/src/namespaces/Itemdatabase.ts +3 -3
  277. package/src/namespaces/Itemset.ts +2 -2
  278. package/src/namespaces/Law.ts +20 -20
  279. package/src/namespaces/Localization.ts +1 -1
  280. package/src/namespaces/Map.ts +3 -3
  281. package/src/namespaces/Minigame.ts +109 -109
  282. package/src/namespaces/Misc.ts +38 -38
  283. package/src/namespaces/Missiondata.ts +28 -28
  284. package/src/namespaces/Money.ts +3 -3
  285. package/src/namespaces/Netshopping.ts +99 -99
  286. package/src/namespaces/Network.ts +1616 -1616
  287. package/src/namespaces/Object.ts +344 -344
  288. package/src/namespaces/Pad.ts +76 -76
  289. package/src/namespaces/Pathfind.ts +10 -10
  290. package/src/namespaces/PedStatics.ts +12 -12
  291. package/src/namespaces/Perschar.ts +86 -86
  292. package/src/namespaces/Physics.ts +171 -171
  293. package/src/namespaces/PlayerStatics.ts +162 -162
  294. package/src/namespaces/Population.ts +17 -17
  295. package/src/namespaces/Posse.ts +54 -54
  296. package/src/namespaces/Propset.ts +92 -92
  297. package/src/namespaces/Replay.ts +3 -3
  298. package/src/namespaces/Scripts.ts +13 -13
  299. package/src/namespaces/Shapetest.ts +14 -14
  300. package/src/namespaces/Socialclub.ts +8 -8
  301. package/src/namespaces/Socialclubfeed.ts +1 -1
  302. package/src/namespaces/Spactionproxy.ts +4 -4
  303. package/src/namespaces/Stats.ts +287 -287
  304. package/src/namespaces/Streaming.ts +159 -159
  305. package/src/namespaces/Task.ts +517 -517
  306. package/src/namespaces/Telemetry.ts +224 -224
  307. package/src/namespaces/Txd.ts +1 -1
  308. package/src/namespaces/Uiapps.ts +43 -43
  309. package/src/namespaces/Uievents.ts +1 -1
  310. package/src/namespaces/Uifeed.ts +28 -28
  311. package/src/namespaces/Uistickyfeed.ts +23 -23
  312. package/src/namespaces/Unlock.ts +5 -5
  313. package/src/namespaces/VehicleStatics.ts +12 -12
  314. package/src/namespaces/Voice.ts +70 -70
  315. package/src/namespaces/VolumeStatics.ts +143 -143
  316. package/src/namespaces/WeaponStatics.ts +383 -383
  317. package/src/types/NativeAliases.ts +6 -1
@@ -1,305 +1,276 @@
1
1
  import { inv, rai, raf, ras, pvi, pvf, _h, f } from '../types/NativeAliases';
2
2
  export class Hud {
3
3
  /**
4
- * @param modelHash
5
- */
6
- static linkNamedRendertarget(modelHash) {
7
- inv('0x2F506B8556242DDB', _h(modelHash));
8
- }
9
- /**
10
- * Returns the label text given the hash. Old name: _GET_LABEL_TEXT_BY_HASH
4
+ * For startProgress, 0.0f - 1.0f is a percentage value, so 0.5f = 50% progress. Range: 0.0f - 1.0f
5
+ * For decreaseSpeed, 0.0f will result in the prompt not showing the mash progress at all. 0.01f - ?.0f. At speeds around 7.0f to 8.0f the prompt basically fails immediately if you don't start mashing right away.
11
6
  *
12
- * @param labelHash
13
- * @returns
14
- */
15
- static getStringFromHashKey(labelHash) {
16
- return inv('0xBD5DD5EAE2B6CE14', _h(labelHash), ras());
17
- }
18
- /**
19
- * @param textBlock
20
- * @returns
7
+ * @param prompt
8
+ * @param mashes
9
+ * @param decreaseSpeed
10
+ * @param startProgress
21
11
  */
22
- static textBlockIsLoaded(textBlock) {
23
- return inv('0xD0976CC34002DB57', textBlock);
12
+ static uiPromptSetMashWithResistanceCanFailMode(prompt, mashes, decreaseSpeed, startProgress) {
13
+ inv('0xDC0CB602DEADBA53', prompt, mashes, f(decreaseSpeed), f(startProgress));
24
14
  }
25
15
  /**
26
16
  * @param prompt
27
- * @returns
17
+ * @param p1
18
+ * @param p2
28
19
  */
29
- static uiPromptHasMashMode(prompt) {
30
- return inv('0xCD072523791DDC1B', prompt);
20
+ static uiPromptSetTargetModeTarget(prompt, p1, p2) {
21
+ inv('0x5E019C45DD3B6A14', prompt, f(p1), f(p2));
31
22
  }
32
23
  /**
33
- * @param p0
34
- * @returns
24
+ * @param prompt
25
+ * @param p1
26
+ * @param p2
27
+ * @param p3
28
+ * @param p4
35
29
  */
36
- static N_0xD6BD313CFA41E57A(p0) {
37
- return inv('0xD6BD313CFA41E57A', p0);
30
+ static uiPromptSetMashManualCanFailMode(prompt, p1, p2, p3, p4) {
31
+ inv('0x179DCF71F705DA20', prompt, f(p1), f(p2), f(p3), p4);
38
32
  }
39
33
  /**
40
- * @returns
34
+ * @param prompt
35
+ * @param p1
36
+ * @param p2
37
+ * @param p3
41
38
  */
42
- static isMultiplayerChatActive() {
43
- return inv('0xBC19069D5FBB5C46', rai());
44
- }
45
- static disableFrontendThisFrame() {
46
- inv('0x56CE42A528156A67');
39
+ static uiPromptSetTargetMode(prompt, p1, p2, p3) {
40
+ inv('0x5F6503D9CD2754EB', prompt, f(p1), f(p2), p3);
47
41
  }
48
42
  /**
49
43
  * @param prompt
50
- * @returns
44
+ * @param autoFillTimeMs
45
+ * @param mashes
51
46
  */
52
- static uiPromptGetMashModeProgress(prompt) {
53
- return inv('0x8A9585293863B8A5', prompt, raf());
47
+ static uiPromptSetMashAutoFillMode(prompt, autoFillTimeMs, mashes) {
48
+ inv('0x6C39587D7CC66801', prompt, autoFillTimeMs, mashes);
54
49
  }
55
50
  /**
56
- * @param groupId
57
- * @param volume
58
- * @param p2
59
- * @param p3
60
- * @param p4
61
- * @param p5
62
- * @returns
51
+ * @param prompt
52
+ * @param toggle
63
53
  */
64
- static N_0x8B55B324A9123F6B(groupId, volume, p2, p3, p4, p5) {
65
- return inv('0x8B55B324A9123F6B', groupId, volume.handle, p2, p3, p4, p5);
54
+ static uiPromptSetBeatMode(prompt, toggle) {
55
+ inv('0xF957A1654C6322FE', prompt, toggle);
66
56
  }
67
57
  /**
68
- * @param entity
58
+ * Similar to 0x9D7E12EC6A1EE4E5(GET_TEXT_SUBSTRING) but starts at the beginning of the string
59
+ *
60
+ * @param text
61
+ * @param length
69
62
  * @returns
70
63
  */
71
- static uiPromptGetGroupIdForTargetEntity(entity) {
72
- return inv('0xB796970BD125FCE8', entity.handle, rai());
73
- }
74
- /**
75
- * Old name: _ALLOW_PAUSE_MENU_WHEN_DEAD_THIS_FRAME
76
- */
77
- static allowPauseWhenNotInStateOfPlayThisFrame() {
78
- inv('0x30996422DF1EE561');
64
+ static getTextSubstring2(text, length) {
65
+ return inv('0xD8402B858F4DDD88', text, length, ras());
79
66
  }
80
67
  /**
81
68
  * @param p0
82
- * @param p1
83
- * @returns
69
+ * @param prompt
70
+ * @param p2
84
71
  */
85
- static uiPromptGetGroupIdForScenarioPoint(p0, p1) {
86
- return inv('0xCB73D7521E7103F0', p0, p1, rai());
72
+ static uiPromptAddGroupLink(p0, prompt, p2) {
73
+ inv('0x684C96CC7C66E8EF', p0, prompt, p2);
87
74
  }
88
75
  /**
89
- * nullsub, doesn't do anything
90
- *
91
76
  * @param gamerTagId
92
- * @param allow
93
77
  */
94
- static setMpGamerTagUnkAllowLocalized(gamerTagId, allow) {
95
- inv('0xEF7AB1A0E8C86170', gamerTagId, allow);
78
+ static mpGamerTagEnableReviveTopIcon(gamerTagId) {
79
+ inv('0xFFF6579CF0139FCE', gamerTagId);
96
80
  }
97
81
  /**
98
- * @param ped
82
+ * @param p0
83
+ * @param p1
99
84
  */
100
- static uiPromptSetPromptPriorityPreference(ped) {
101
- inv('0x530A428705BE5DEF', ped.handle);
85
+ static N_0x8A59D44189AF2BC5(p0, p1) {
86
+ inv('0x8A59D44189AF2BC5', p0, p1);
102
87
  }
103
88
  /**
104
- * @param textBlock
89
+ * @param prompt
90
+ * @param p1
105
91
  */
106
- static textBlockDelete(textBlock) {
107
- inv('0xAA03F130A637D923', textBlock);
92
+ static uiPromptSetOrderingAsInputType(prompt, p1) {
93
+ inv('0x2F385ECC5200938D', prompt, p1);
108
94
  }
109
95
  /**
110
- * Returns true when either Pause Menu, a Frontend Menu, Online Policies menu or Social Club menu is active.
111
- *
112
- * @returns
96
+ * @param p0
113
97
  */
114
- static isPauseMenuActive() {
115
- return inv('0x535384D6067BA42E', rai());
98
+ static journalMarkRead(p0) {
99
+ inv('0xE4509BABE59BD24E', p0);
116
100
  }
117
101
  /**
118
- * @param controlAction
102
+ * @param gamerTagId
103
+ * @param entity
119
104
  * @returns
120
105
  */
121
- static uiPromptIsControlActionActive(controlAction) {
122
- return inv('0x1BE19185B8AFE299', _h(controlAction));
106
+ static isMpGamerTagActiveOnEntity(gamerTagId, entity) {
107
+ return inv('0x502E1591A504F843', gamerTagId, entity.handle);
123
108
  }
124
109
  /**
125
- * @param textBlock
126
- * @returns
110
+ * @param gamerTagId
111
+ * @param string
127
112
  */
128
- static textBlockIsStreamed(textBlock) {
129
- return inv('0x3CF96E16265B7DC8', textBlock);
113
+ static setMpGamerTagBigText(gamerTagId, string) {
114
+ inv('0xA0D7CE5F83259663', gamerTagId, string);
130
115
  }
131
116
  /**
132
- * @param worldX
133
- * @param worldY
134
- * @param worldZ
135
- * @returns screenX; screenY
117
+ * @param prompt
118
+ * @param radius
136
119
  */
137
- static getHudScreenPositionFromWorldPosition(worldX, worldY, worldZ) {
138
- const result = inv('0xB39C81628EF10B42', f(worldX), f(worldY), f(worldZ), pvf(), pvf(), rai());
139
- return [!!result[0], result[1], result[2]];
120
+ static uiPromptContextSetRadius(prompt, radius) {
121
+ inv('0x0C718001B77CA468', prompt, f(radius));
140
122
  }
141
123
  /**
142
124
  * @param prompt
143
- * @returns
125
+ * @param toggle
144
126
  */
145
- static uiPromptHasHoldMode(prompt) {
146
- return inv('0xB60C9F9ED47ABB76', prompt);
127
+ static uiPromptSetVisible(prompt, toggle) {
128
+ inv('0x71215ACCFDE075EE', prompt, toggle);
147
129
  }
148
130
  /**
149
131
  * @param p0
150
- * @param name
151
- */
152
- static setMissionNameForUgcMission(p0, name) {
153
- inv('0xD98630CE73C61E98', p0, name);
154
- }
155
- /**
132
+ * @param p1
156
133
  * @returns
157
134
  */
158
- static busyspinnerIsOn() {
159
- return inv('0x823BF7B1DF613A21', rai());
135
+ static uiRequestScene(p0, p1) {
136
+ return inv('0xB6857100F8FD433C', p0, p1);
160
137
  }
161
138
  /**
162
- * @param prompt
163
- * @param p1
139
+ * @param entity
140
+ * @param text
141
+ * @returns
164
142
  */
165
- static uiPromptSetTag(prompt, p1) {
166
- inv('0xDEC85C174751292B', prompt, p1);
143
+ static createMpGamerTagOnEntity(entity, text) {
144
+ return inv('0xE961BF23EAB76B12', entity.handle, text, rai());
167
145
  }
168
146
  /**
169
- * @param gamerTagId
170
- * @param string
147
+ * @param p0
148
+ * @returns
171
149
  */
172
- static setMpGamerTagName(gamerTagId, string) {
173
- inv('0xEA6F4B8D4B4B5B3E', gamerTagId, string);
150
+ static journalCanWriteEntry(p0) {
151
+ return inv('0xCF782691D91F270E', p0);
174
152
  }
175
153
  /**
176
154
  * @param prompt
177
- * @param progress
155
+ * @param p1
178
156
  */
179
- static uiPromptSetTargetModeProgress(prompt, progress) {
180
- inv('0x00123054BEC8A30F', prompt, f(progress));
157
+ static uiPromptSetManualResolved(prompt, p1) {
158
+ inv('0xA520C7B05FA4EB2A', prompt, p1);
181
159
  }
182
160
  /**
183
- * @param prompt
161
+ * @param inputHash
162
+ * @param labelName
163
+ * @param p2
164
+ * @param p3
165
+ * @param p4
166
+ * @param p5
167
+ * @returns
184
168
  */
185
- static uiPromptSetMashIndefinitelyMode(prompt) {
186
- inv('0x7B66E89312727274', prompt);
187
- }
188
- static uiPromptDisablePromptsThisFrame() {
189
- inv('0xF1622CE88A1946FB');
169
+ static uiPromptCreate(inputHash, labelName, p2, p3, p4, p5) {
170
+ return inv('0x29FA7910726C3889', _h(inputHash), labelName, p2, p3, p4, p5, rai());
190
171
  }
191
172
  /**
192
173
  * @param prompt
193
- * @param toggle
174
+ * @param p1
194
175
  */
195
- static uiPromptSetUrgentPulsingEnabled(prompt, toggle) {
196
- inv('0xC5F428EE08FA7F2C', prompt, toggle);
176
+ static uiPromptSetSpinnerSpeed(prompt, p1) {
177
+ inv('0xAC6586A7FDCD4B68', prompt, p1);
197
178
  }
198
179
  /**
199
- * Note: you must use VAR_STRING for p1 if string is not part of text database
200
- * tabAmount: specifies number of tabs in prompt group
201
- * tabDefaultIndex: specifies starting index
202
- * p3 if is set > 3 you can no longer press Q to change tab if there are more than one tab set in tabAmount
203
- *
204
- * @param hash
205
180
  * @param name
206
- * @param tabAmount
207
- * @param tabDefaultIndex
208
- * @param p4
209
- * @param prompt
210
181
  * @returns
211
182
  */
212
- static uiPromptSetActiveGroupThisFrame(hash, name, tabAmount, tabDefaultIndex, p4, prompt) {
213
- return inv('0xC65A45D4453C2627', _h(hash), name, tabAmount, tabDefaultIndex, p4, prompt);
183
+ static isNamedRendertargetRegistered(name) {
184
+ return !!inv('0x3EE32F7964C40FE6', name, rai());
214
185
  }
215
186
  /**
216
187
  * @param p0
217
188
  * @param p1
218
- * @param p2
219
- * @returns
220
189
  */
221
- static journalGetTextureWithLayout(p0, p1, p2) {
222
- return inv('0x62CC549B3B8EA2AA', p0, p1, p2);
190
+ static N_0x052D4AC0922AF91A(p0, p1) {
191
+ inv('0x052D4AC0922AF91A', p0, p1);
223
192
  }
224
193
  /**
225
194
  * @param prompt
226
- * @returns
227
195
  */
228
- static uiPromptIsEnabled(prompt) {
229
- return inv('0x0D00EDDFB58B7F28', prompt);
196
+ static uiPromptDelete(prompt) {
197
+ inv('0x00EDE88D4D13CF59', prompt);
230
198
  }
231
199
  /**
232
- * @param prompt
200
+ * Gets a string literal from a label name. Old name: _GET_LABEL_TEXT
201
+ *
202
+ * @param labelName
233
203
  * @returns
234
204
  */
235
- static uiPromptGetUrgentPulsingEnabled(prompt) {
236
- return inv('0x1FBA0DABECDDB52B', prompt, rai());
205
+ static getFilenameForAudioConversation(labelName) {
206
+ return inv('0xCFEDCCAD3C5BA90D', labelName, ras());
237
207
  }
238
- /**
239
- * @param scale
240
- * @param size
241
- */
242
- static setTextScale(scale, size) {
243
- inv('0x4170B650590B3B00', f(scale), f(size));
208
+ static N_0x5651516D947ABC53() {
209
+ inv('0x5651516D947ABC53');
244
210
  }
245
211
  /**
246
- * Found icons: SPEAKER, THROPY
247
- *
248
- * @param gamerTagId
249
- * @param icon
212
+ * @param renderId
250
213
  */
251
- static setMpGamerTagSecondaryIcon(gamerTagId, icon) {
252
- inv('0x95384C6CE1526EFF', gamerTagId, _h(icon));
214
+ static setTextRenderId(renderId) {
215
+ inv('0xE550CDE128D56757', renderId);
253
216
  }
254
217
  /**
255
- * Disables reduced time scale while menus such as weapon wheel and satchel are open.
218
+ * @param distance
219
+ * @param r
220
+ * @param g
221
+ * @param b
222
+ * @param a
256
223
  */
257
- static disableReducedMenuTimeScale() {
258
- inv('0xC5C7A2F6567FCCBC');
224
+ static setTextDropshadow(distance, r, g, b, a) {
225
+ inv('0x1BE39DBAA7263CA5', distance, r, g, b, a);
259
226
  }
260
227
  /**
261
- * @param prompt
262
- * @param p1
228
+ * @param label
229
+ * @returns
263
230
  */
264
- static uiPromptSetBeatModeGrayedOut(prompt, p1) {
265
- inv('0xB487A4936FBF40AC', prompt, p1);
231
+ static getLabelText2(label) {
232
+ return inv('0x3429670F9B9EF2D3', label, ras());
266
233
  }
267
234
  /**
268
- * @param p0
269
235
  * @returns
270
236
  */
271
- static journalGetGrimeAtIndex(p0) {
272
- return inv('0xCB5945E1B855852F', p0);
237
+ static journalGetEntryCount() {
238
+ return inv('0xE65B5DE53351BE22');
239
+ }
240
+ static journalClearAllProgress() {
241
+ inv('0xF402978DE6F88D6E');
273
242
  }
274
243
  /**
275
- * @param prompt
276
- * @param p1
244
+ * @param modelHash
277
245
  */
278
- static uiPromptRemoveGroup(prompt, p1) {
279
- inv('0x4E52C800A28F7BE8', prompt, p1);
246
+ static linkNamedRendertarget(modelHash) {
247
+ inv('0x2F506B8556242DDB', _h(modelHash));
280
248
  }
281
249
  /**
282
- * This native does nothing since build 1436, use _BG_SET_TEXT_COLOR (0x16FA5CE47F184F1E) instead.
250
+ * Returns the label text given the hash. Old name: _GET_LABEL_TEXT_BY_HASH
283
251
  *
284
- * @param r
285
- * @param g
286
- * @param b
287
- * @param a
252
+ * @param labelHash
253
+ * @returns
288
254
  */
289
- static setTextColor(r, g, b, a) {
290
- inv('0x50A41AD966910F03', r, g, b, a);
255
+ static getStringFromHashKey(labelHash) {
256
+ return inv('0xBD5DD5EAE2B6CE14', _h(labelHash), ras());
291
257
  }
292
258
  /**
259
+ * @param textBlock
293
260
  * @returns
294
261
  */
295
- static isRadarHiddenByScript() {
296
- return inv('0x66F35DD9D2B58579');
262
+ static textBlockIsLoaded(textBlock) {
263
+ return inv('0xD0976CC34002DB57', textBlock);
297
264
  }
298
- static hideHudAndRadarThisFrame() {
299
- inv('0x36CDD81627A6FCD2');
265
+ /**
266
+ * @param prompt
267
+ * @returns
268
+ */
269
+ static uiPromptHasMashMode(prompt) {
270
+ return inv('0xCD072523791DDC1B', prompt);
300
271
  }
301
272
  /**
302
- * @param ped
273
+ * @param player
303
274
  * @param username
304
275
  * @param pointedClanTag
305
276
  * @param isRockstarClan
@@ -307,203 +278,240 @@ export class Hud {
307
278
  * @param clanFlag
308
279
  * @returns
309
280
  */
310
- static createFakeMpGamerTag(ped, username, pointedClanTag, isRockstarClan, clanTag, clanFlag) {
311
- return inv('0x53CB4B502E1C57EA', ped.handle, username, pointedClanTag, isRockstarClan, clanTag, clanFlag, rai());
281
+ static createMpGamerTag(player, username, pointedClanTag, isRockstarClan, clanTag, clanFlag) {
282
+ return inv('0xD877AF112AD2B41B', player.handle, username, pointedClanTag, isRockstarClan, clanTag, clanFlag, rai());
312
283
  }
313
284
  /**
314
- * @param prompt
315
- * @returns
285
+ * @param state
316
286
  */
317
- static uiPromptHasHoldAutoFillMode(prompt) {
318
- return inv('0x8010BEBD0D5ED5BC', prompt, rai());
287
+ static showPlayerCores(state) {
288
+ inv('0x50C803A4CD5932C5', state);
319
289
  }
320
290
  /**
321
- * string1 is the only string used in the scripts, the others are null (0)
291
+ * Params: p2 is 304000 in R* SP Script coachrobberies
322
292
  *
323
- * @param active
324
- * @param string1
325
- * @param string2
326
- * @param string3
327
- * @param string4
293
+ * @param prompt
294
+ * @param holdTimeMs
328
295
  */
329
- static setCurrentUgcMissionDescription(active, string1, string2, string3, string4) {
330
- inv('0xCE0D2F5586627CCE', active, string1, string2, string3, string4);
296
+ static uiPromptSetHoldMode(prompt, holdTimeMs) {
297
+ inv('0x94073D5CA3F16B7B', prompt, holdTimeMs);
331
298
  }
332
299
  /**
333
- * @param name
334
- * @returns
300
+ * @param prompt
335
301
  */
336
- static getNamedRendertargetRenderId(name) {
337
- return inv('0xB6762A85EE29AA60', name, rai());
302
+ static uiPromptSetHoldIndefinitelyMode(prompt) {
303
+ inv('0xEA5CCF4EEB2F82D1', prompt);
304
+ }
305
+ static hideLoadingOnFadeThisFrame() {
306
+ inv('0xEA600AABAF4B9084');
338
307
  }
339
308
  /**
340
- * @param p0
309
+ * @param gamerTagId
310
+ * @param colour
341
311
  */
342
- static uiPromptDisablePromptTypeThisFrame(p0) {
343
- inv('0xFC094EF26DD153FA', p0);
312
+ static setMpGamerTagColour(gamerTagId, colour) {
313
+ inv('0x84BD27DDF9575816', gamerTagId, _h(colour));
314
+ }
315
+ static N_0x160825DADF1B04B3() {
316
+ inv('0x160825DADF1B04B3');
344
317
  }
345
318
  /**
346
- * @param entity
319
+ * @param prompt
347
320
  * @param p1
348
321
  * @param p2
349
322
  * @param p3
350
323
  * @param p4
351
- * @param name
352
- * @param p6
353
- * @returns
354
324
  */
355
- static uiPromptSetAmbientGroupThisFrame(entity, p1, p2, p3, p4, name, p6) {
356
- return inv('0x315C81D760609108', entity.handle, f(p1), p2, p3, _h(p4), name, p6);
325
+ static uiPromptSetMashManualMode(prompt, p1, p2, p3, p4) {
326
+ inv('0x32DF729D8BD3C1C6', prompt, f(p1), f(p2), f(p3), p4);
357
327
  }
358
328
  /**
329
+ * attribute: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eUIPromptAttribute
330
+ *
359
331
  * @param prompt
360
- * @returns
332
+ * @param attribute
333
+ * @param enabled
361
334
  */
362
- static uiPromptIsHoldModeRunning(prompt) {
363
- return inv('0xC7D70EAEF92EFF48', prompt, rai());
335
+ static uiPromptSetAttribute(prompt, attribute, enabled) {
336
+ inv('0x560E76D5E2E1803F', prompt, attribute, enabled);
364
337
  }
365
338
  /**
339
+ * priority: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePromptPriority
340
+ *
366
341
  * @param prompt
367
- * @returns Returns `true` if the mash mode has just been pressed.
342
+ * @param priority
368
343
  */
369
- static uiPromptHasMashModeJustPressed(prompt) {
370
- return inv('0xB0E8599243B3F568', prompt, rai());
344
+ static uiPromptSetPriority(prompt, priority) {
345
+ inv('0xCA24F528D0D16289', prompt, priority);
371
346
  }
372
347
  /**
373
- * @param prompt
374
- * @param autoFillTimeMs
375
- * @param holdTimeMs
348
+ * https://github.com/femga/rdr3_discoveries/tree/master/graphics/HUD/prompts/prompt_types
349
+ *
350
+ * @param p0
376
351
  */
377
- static uiPromptSetHoldAutoFillMode(prompt, autoFillTimeMs, holdTimeMs) {
378
- inv('0x3CE932E737C145D6', prompt, autoFillTimeMs, holdTimeMs);
352
+ static uiPromptEnablePromptTypeThisFrame(p0) {
353
+ inv('0x06565032897BA861', p0);
379
354
  }
380
355
  /**
381
- * @param prompt
356
+ * Returns the length of the string passed (much like strlen).
357
+ *
358
+ * @param string
382
359
  * @returns
383
360
  */
384
- static uiPromptHasHoldModeCompleted(prompt) {
385
- return inv('0xE0F65F0640EF0617', prompt, rai());
361
+ static getLengthOfLiteralString(string) {
362
+ return inv('0x481FBF588B0B76DB', string, rai());
386
363
  }
387
364
  /**
388
- * id is the return value from 0xD9459157EB22C895.
389
- *
390
- * @param id
365
+ * @param prompt
391
366
  */
392
- static uiPromptClearHorizontalOrientation(id) {
393
- inv('0x6095358C4142932A', id);
367
+ static uiPromptRegisterEnd(prompt) {
368
+ inv('0xF7AA2696A22AD8B9', prompt);
394
369
  }
395
370
  /**
396
- * @param p0
397
- * @param p1
398
- * @returns
371
+ * nullsub, doesn't do anything
399
372
  */
400
- static uiRequestScene(p0, p1) {
401
- return inv('0xB6857100F8FD433C', p0, p1);
373
+ static N_0x2F7BB105144ACF30() {
374
+ inv('0x2F7BB105144ACF30');
402
375
  }
403
376
  /**
404
- * @param entity
405
- * @param text
406
- * @returns
377
+ * Old name: _DISPLAY_HUD_COMPONENT
378
+ *
379
+ * @param component
407
380
  */
408
- static createMpGamerTagOnEntity(entity, text) {
409
- return inv('0xE961BF23EAB76B12', entity.handle, text, rai());
381
+ static disableHudContext(component) {
382
+ inv('0x8BC7C1F929D07BF3', _h(component));
383
+ }
384
+ static forceCloseTextInputBox() {
385
+ inv('0xFBBF5943E4C2C992');
410
386
  }
411
387
  /**
412
388
  * @param p0
413
389
  * @returns
414
390
  */
415
- static journalCanWriteEntry(p0) {
416
- return inv('0xCF782691D91F270E', p0);
391
+ static N_0x28AE29D909C8FDCE(p0) {
392
+ return inv('0x28AE29D909C8FDCE', p0);
417
393
  }
418
394
  /**
395
+ * @param p0
419
396
  * @param prompt
420
- * @param p1
421
397
  */
422
- static uiPromptSetManualResolved(prompt, p1) {
423
- inv('0xA520C7B05FA4EB2A', prompt, p1);
398
+ static uiPromptAddGroupReturnLink(p0, prompt) {
399
+ inv('0x837972ED28159536', p0, prompt);
424
400
  }
425
401
  /**
426
- * @param inputHash
427
- * @param labelName
428
- * @param p2
429
- * @param p3
430
- * @param p4
431
- * @param p5
432
- * @returns
402
+ * Params: type = mostly 0, 6 (net_mission_intro_story_gvo), 7 (fm_mission_controller), 14 (net_ugc_end_flow_transition_online), 15 (net_main_[tlg_]offline)
403
+ *
404
+ * @param prompt
405
+ * @param type
433
406
  */
434
- static uiPromptCreate(inputHash, labelName, p2, p3, p4, p5) {
435
- return inv('0x29FA7910726C3889', _h(inputHash), labelName, p2, p3, p4, p5, rai());
407
+ static uiPromptSetType(prompt, type) {
408
+ inv('0xF4A5C4509BF923B1', prompt, type);
436
409
  }
437
410
  /**
438
- * @param prompt
439
- * @param p1
411
+ * @param textBlock
440
412
  */
441
- static uiPromptSetSpinnerSpeed(prompt, p1) {
442
- inv('0xAC6586A7FDCD4B68', prompt, p1);
413
+ static textBlockRequest(textBlock) {
414
+ inv('0xF66090013DE648D5', textBlock);
443
415
  }
444
416
  /**
445
- * @param name
417
+ * Checks if the passed gxt name exists in the game files.
418
+ *
419
+ * @param label
446
420
  * @returns
447
421
  */
448
- static isNamedRendertargetRegistered(name) {
449
- return inv('0x3EE32F7964C40FE6', name, rai());
422
+ static doesTextLabelExist(label) {
423
+ return !!inv('0x73C258C68D6F55B6', label, rai());
450
424
  }
451
425
  /**
452
- * @param p0
453
- * @param p1
426
+ * @returns
454
427
  */
455
- static N_0x052D4AC0922AF91A(p0, p1) {
456
- inv('0x052D4AC0922AF91A', p0, p1);
428
+ static N_0x066725A9D52B3641() {
429
+ return inv('0x066725A9D52B3641');
430
+ }
431
+ /**
432
+ * standard (prompt not held) rate: (1f / 128f)
433
+ * fast (prompt held) rate: (1f / 64f)
434
+ * punitive (been hit) rate: (1f / 128f)
435
+ *
436
+ * @param prompt
437
+ * @param rate
438
+ */
439
+ static uiPromptSetMashManualModeIncreasePerPress(prompt, rate) {
440
+ inv('0xA0D1D79C6036A855', prompt, f(rate));
457
441
  }
458
442
  /**
459
443
  * @param prompt
444
+ * @param speed
460
445
  */
461
- static uiPromptDelete(prompt) {
462
- inv('0x00EDE88D4D13CF59', prompt);
446
+ static uiPromptSetMashManualModePressedGrowthSpeed(prompt, speed) {
447
+ inv('0x56DBB26F98582C29', prompt, f(speed));
463
448
  }
464
449
  /**
465
- * Gets a string literal from a label name. Old name: _GET_LABEL_TEXT
466
- *
467
- * @param labelName
450
+ * @param string
468
451
  * @returns
469
452
  */
470
- static getFilenameForAudioConversation(labelName) {
471
- return inv('0xCFEDCCAD3C5BA90D', labelName, ras());
453
+ static getLengthOfLiteralStringInBytes(string) {
454
+ return inv('0xDC5AD6B7AB8184F5', string, rai());
472
455
  }
473
- static N_0x5651516D947ABC53() {
474
- inv('0x5651516D947ABC53');
456
+ /**
457
+ * @param name
458
+ * @returns
459
+ */
460
+ static releaseNamedRendertarget(name) {
461
+ return !!inv('0x0E692EE61761361F', name, rai());
475
462
  }
476
463
  /**
477
- * @param renderId
464
+ * @param textDatabase
465
+ * @returns
478
466
  */
479
- static setTextRenderId(renderId) {
480
- inv('0xE550CDE128D56757', renderId);
467
+ static doesTextBlockExist(textDatabase) {
468
+ return inv('0x2C729F2B94CEA911', textDatabase);
481
469
  }
482
470
  /**
483
- * @param distance
484
- * @param r
485
- * @param g
486
- * @param b
487
- * @param a
471
+ * @param p0
472
+ * @param p1
473
+ * @returns
474
+ */
475
+ static journalGetEntryInfo(p0, p1) {
476
+ return inv('0x5514C3E60673530F', p0, p1);
477
+ }
478
+ /**
479
+ * @param p0
488
480
  */
489
- static setTextDropshadow(distance, r, g, b, a) {
490
- inv('0x1BE39DBAA7263CA5', distance, r, g, b, a);
481
+ static N_0x3FE4FB41EF7D2196(p0) {
482
+ inv('0x3FE4FB41EF7D2196', p0);
491
483
  }
492
484
  /**
493
- * @param label
494
- * @returns
485
+ * colorNameHash: https://alloc8or.re/rdr3/doc/enums/eColor.txt
486
+ *
487
+ * @param colorNameHash
488
+ * @returns red; green; blue; alpha
495
489
  */
496
- static getLabelText2(label) {
497
- return inv('0x3429670F9B9EF2D3', label, ras());
490
+ static getColorFromName(colorNameHash) {
491
+ const result = inv('0xB981DD2DFAF9B1C9', _h(colorNameHash), pvi(), pvi(), pvi(), pvi());
492
+ return [result[0], result[1], result[2], result[3]];
498
493
  }
499
494
  /**
500
- * @returns
495
+ * visibility:
496
+ * enum eUIGamertagVisibility
497
+ * {
498
+ * UIGAMERTAGVISIBILITY_NONE,
499
+ * UIGAMERTAGVISIBILITY_ICON,
500
+ * UIGAMERTAGVISIBILITY_SIMPLE,
501
+ * UIGAMERTAGVISIBILITY_COMPLEX
502
+ * };
503
+ *
504
+ * @param gamerTagId
505
+ * @param visibility
501
506
  */
502
- static journalGetEntryCount() {
503
- return inv('0xE65B5DE53351BE22');
507
+ static setMpGamerTagVisibility(gamerTagId, visibility) {
508
+ inv('0x93171DDDAB274EB8', gamerTagId, visibility);
504
509
  }
505
- static journalClearAllProgress() {
506
- inv('0xF402978DE6F88D6E');
510
+ /**
511
+ * @param component
512
+ */
513
+ static enableHudContextThisFrame(component) {
514
+ inv('0xC9CAEAEEC1256E54', _h(component));
507
515
  }
508
516
  /**
509
517
  * @param prompt
@@ -517,7 +525,7 @@ export class Hud {
517
525
  * @returns
518
526
  */
519
527
  static uiPromptIsJustReleased(prompt) {
520
- return inv('0x635CC82FA297A827', prompt, rai());
528
+ return !!inv('0x635CC82FA297A827', prompt, rai());
521
529
  }
522
530
  /**
523
531
  * Found icons: https://pastebin.com/xx6rEgiG
@@ -533,7 +541,7 @@ export class Hud {
533
541
  * @returns
534
542
  */
535
543
  static uiPromptIsReleased(prompt) {
536
- return inv('0xAFC887BA7A7756D6', prompt, rai());
544
+ return !!inv('0xAFC887BA7A7756D6', prompt, rai());
537
545
  }
538
546
  /**
539
547
  * @param active
@@ -547,7 +555,7 @@ export class Hud {
547
555
  * @returns
548
556
  */
549
557
  static registerNamedRendertarget(name, p1) {
550
- return inv('0x98AF2BB6F62BD588', name, p1, rai());
558
+ return !!inv('0x98AF2BB6F62BD588', name, p1, rai());
551
559
  }
552
560
  /**
553
561
  * @param prompt
@@ -628,711 +636,703 @@ export class Hud {
628
636
  inv('0xBE5261939FBECB8C', align);
629
637
  }
630
638
  /**
631
- * @param player
632
- * @param username
633
- * @param pointedClanTag
634
- * @param isRockstarClan
635
- * @param clanTag
636
- * @param clanFlag
639
+ * @param prompt
637
640
  * @returns
638
641
  */
639
- static createMpGamerTag(player, username, pointedClanTag, isRockstarClan, clanTag, clanFlag) {
640
- return inv('0xD877AF112AD2B41B', player.handle, username, pointedClanTag, isRockstarClan, clanTag, clanFlag, rai());
641
- }
642
- /**
643
- * @param state
644
- */
645
- static showPlayerCores(state) {
646
- inv('0x50C803A4CD5932C5', state);
642
+ static uiPromptHasMashModeFailed(prompt) {
643
+ return !!inv('0x25B18E530CF39D6F', prompt, rai());
647
644
  }
648
645
  /**
649
- * Params: p2 is 304000 in R* SP Script coachrobberies
650
- *
651
646
  * @param prompt
652
- * @param holdTimeMs
647
+ * @returns
653
648
  */
654
- static uiPromptSetHoldMode(prompt, holdTimeMs) {
655
- inv('0x94073D5CA3F16B7B', prompt, holdTimeMs);
649
+ static uiPromptHasManualMashMode(prompt) {
650
+ return inv('0xA6C6A4ADB3BAC409', prompt);
656
651
  }
657
652
  /**
658
653
  * @param prompt
654
+ * @returns
659
655
  */
660
- static uiPromptSetHoldIndefinitelyMode(prompt) {
661
- inv('0xEA5CCF4EEB2F82D1', prompt);
662
- }
663
- static hideLoadingOnFadeThisFrame() {
664
- inv('0xEA600AABAF4B9084');
665
- }
666
- /**
667
- * @param gamerTagId
668
- * @param colour
669
- */
670
- static setMpGamerTagColour(gamerTagId, colour) {
671
- inv('0x84BD27DDF9575816', gamerTagId, _h(colour));
672
- }
673
- static N_0x160825DADF1B04B3() {
674
- inv('0x160825DADF1B04B3');
656
+ static uiPromptHasMashModeCompleted(prompt) {
657
+ return !!inv('0x845CE958416DC473', prompt, rai());
675
658
  }
676
659
  /**
677
660
  * @param prompt
678
661
  * @param p1
679
- * @param p2
680
- * @param p3
681
- * @param p4
682
662
  */
683
- static uiPromptSetMashManualMode(prompt, p1, p2, p3, p4) {
684
- inv('0x32DF729D8BD3C1C6', prompt, f(p1), f(p2), f(p3), p4);
663
+ static uiPromptSetSpinnerPosition(prompt, p1) {
664
+ inv('0x832CB510DE546282', prompt, p1);
685
665
  }
686
666
  /**
687
- * attribute: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eUIPromptAttribute
688
- *
689
- * @param prompt
690
- * @param attribute
691
- * @param enabled
667
+ * @param p0
692
668
  */
693
- static uiPromptSetAttribute(prompt, attribute, enabled) {
694
- inv('0x560E76D5E2E1803F', prompt, attribute, enabled);
669
+ static journalWriteEntry(p0) {
670
+ inv('0x6DFDD665E416B093', p0);
695
671
  }
696
672
  /**
697
- * priority: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePromptPriority
698
- *
699
- * @param prompt
700
- * @param priority
673
+ * @param state
701
674
  */
702
- static uiPromptSetPriority(prompt, priority) {
703
- inv('0xCA24F528D0D16289', prompt, priority);
675
+ static showHorseCores(state) {
676
+ inv('0xD4EE21B7CC7FD350', state);
704
677
  }
705
678
  /**
706
- * https://github.com/femga/rdr3_discoveries/tree/master/graphics/HUD/prompts/prompt_types
679
+ * This native accepts 1 as parameter in the decompiles
680
+ * returns the nearest horse handle if within 2 3 meters of the player, if not close enough returns false NOTE: if type is 0 returns PlayerPedId always?
707
681
  *
708
682
  * @param p0
709
- */
710
- static uiPromptEnablePromptTypeThisFrame(p0) {
711
- inv('0x06565032897BA861', p0);
712
- }
713
- /**
714
- * Returns the length of the string passed (much like strlen).
715
- *
716
- * @param string
717
683
  * @returns
718
684
  */
719
- static getLengthOfLiteralString(string) {
720
- return inv('0x481FBF588B0B76DB', string, rai());
685
+ static getNearHorse(p0) {
686
+ return inv('0x0501D52D24EA8934', p0);
721
687
  }
722
688
  /**
723
689
  * @param prompt
724
690
  */
725
- static uiPromptRegisterEnd(prompt) {
726
- inv('0xF7AA2696A22AD8B9', prompt);
727
- }
728
- /**
729
- * nullsub, doesn't do anything
730
- */
731
- static N_0x2F7BB105144ACF30() {
732
- inv('0x2F7BB105144ACF30');
691
+ static uiPromptRestartModes(prompt) {
692
+ inv('0xDC6C55DFA2C24EE5', prompt);
733
693
  }
734
694
  /**
735
- * Old name: _DISPLAY_HUD_COMPONENT
736
- *
737
- * @param component
695
+ * @param prompt
696
+ * @param mashes
697
+ * @param p2
698
+ * @param p3
738
699
  */
739
- static disableHudContext(component) {
740
- inv('0x8BC7C1F929D07BF3', _h(component));
741
- }
742
- static forceCloseTextInputBox() {
743
- inv('0xFBBF5943E4C2C992');
700
+ static uiPromptSetMashWithResistanceMode(prompt, mashes, p2, p3) {
701
+ inv('0xCD1BDFF15EFA79F5', prompt, mashes, f(p2), f(p3));
744
702
  }
745
703
  /**
746
- * @param prompt
704
+ * @param p0
747
705
  * @param p1
706
+ * @param p2
707
+ * @returns
748
708
  */
749
- static N_0x53CE46C01A089DA1(prompt, p1) {
750
- inv('0x53CE46C01A089DA1', prompt, p1);
709
+ static N_0x806862E5D266CF38(p0, p1, p2) {
710
+ return inv('0x806862E5D266CF38', p0, p1, p2);
751
711
  }
752
712
  /**
753
- * @param p0
713
+ * @param gamerTagId
754
714
  * @returns
755
715
  */
756
- static uiGetSceneUiobject(p0) {
757
- return inv('0xBE1067CD1C9570F6', p0);
716
+ static isMpGamerTagActive(gamerTagId) {
717
+ return !!inv('0x6E1C31E14C7A5F97', gamerTagId, rai());
758
718
  }
759
719
  /**
760
- * @param p0
761
- * @param p1
720
+ * Hashes: SHORT_TIMED_EVENT_MP, SHORT_TIMED_EVENT, MEDIUM_TIMED_EVENT, LONG_TIMED_EVENT, RUSTLING_CALM_TIMING, PLAYER_FOCUS_TIMING, PLAYER_REACTION_TIMING
721
+ *
722
+ * @param prompt
723
+ * @param timedEventHash
762
724
  */
763
- static N_0x958278B97C4AFFD8(p0, p1) {
764
- inv('0x958278B97C4AFFD8', p0, p1);
725
+ static uiPromptSetStandardizedHoldMode(prompt, timedEventHash) {
726
+ inv('0x74C7D7B72ED0D3CF', prompt, _h(timedEventHash));
765
727
  }
766
728
  /**
767
- * @param prompt
729
+ * @param modelHash
768
730
  * @returns
769
731
  */
770
- static uiPromptGetProgress(prompt) {
771
- return inv('0x81801291806DBC50', prompt, raf());
732
+ static isNamedRendertargetLinked(modelHash) {
733
+ return !!inv('0x707032835FF09AE7', _h(modelHash), rai());
772
734
  }
773
735
  /**
774
736
  * @param prompt
775
737
  * @returns
776
738
  */
777
- static uiPromptIsPressed(prompt) {
778
- return inv('0x21E60E230086697F', prompt, rai());
739
+ static uiPromptWasBeatModePressedInTimeWindow(prompt) {
740
+ return !!inv('0x1FE4788AB1430C55', prompt, rai());
779
741
  }
780
742
  /**
781
- * Note: you must use VAR_STRING. Byte code very similar to TEXT_COMMAND_DISPLAY_TEXT in V
782
- * Old name: _GET_TEXT_SUBSTRING
783
- *
784
- * @param text
785
- * @param position
786
- * @param length
787
743
  * @returns
788
744
  */
789
- static getCharacterFromAudioConversationFilename(text, position, length) {
790
- return inv('0x9D7E12EC6A1EE4E5', text, position, length, ras());
745
+ static isHudHidden() {
746
+ return !!inv('0x71B72B478F8189DC', rai());
791
747
  }
792
748
  /**
793
749
  * @param p0
794
750
  * @param p1
751
+ * @returns
795
752
  */
796
- static N_0x9D37EB5003E0F2CF(p0, p1) {
797
- inv('0x9D37EB5003E0F2CF', p0, p1);
798
- }
799
- static uiPromptClearPromptPriorityPreference() {
800
- inv('0x51259AE5C72D4A1B');
753
+ static N_0x100157D6D7FE32CA(p0, p1) {
754
+ return inv('0x100157D6D7FE32CA', p0, p1);
801
755
  }
802
756
  /**
803
- * @param prompt
804
- * @param depletionTimeMs
757
+ * @param p0
758
+ * @returns
805
759
  */
806
- static uiPromptSetPressedTimedMode(prompt, depletionTimeMs) {
807
- inv('0x1473D3AF51D54276', prompt, depletionTimeMs);
760
+ static journalGetGrimeAtIndex(p0) {
761
+ return inv('0xCB5945E1B855852F', p0);
808
762
  }
809
763
  /**
810
764
  * @param prompt
811
- * @param toggle
765
+ * @param p1
812
766
  */
813
- static uiPromptSetEnabled(prompt, toggle) {
814
- inv('0x8A0FB4D03A630D21', prompt, toggle);
815
- }
816
- static uiPromptFilterClear() {
817
- inv('0x6A2F820452017EA2');
767
+ static uiPromptRemoveGroup(prompt, p1) {
768
+ inv('0x4E52C800A28F7BE8', prompt, p1);
818
769
  }
819
770
  /**
820
- * tabIndex: specifies tab of prompt
771
+ * This native does nothing since build 1436, use _BG_SET_TEXT_COLOR (0x16FA5CE47F184F1E) instead.
821
772
  *
822
- * @param prompt
823
- * @param groupId
824
- * @param tabIndex
773
+ * @param r
774
+ * @param g
775
+ * @param b
776
+ * @param a
825
777
  */
826
- static uiPromptSetGroup(prompt, groupId, tabIndex) {
827
- inv('0x2F11D3A254169EA4', prompt, groupId, tabIndex);
778
+ static setTextColor(r, g, b, a) {
779
+ inv('0x50A41AD966910F03', r, g, b, a);
828
780
  }
829
781
  /**
830
- * @param text
782
+ * @returns
831
783
  */
832
- static busyspinnerSetText(text) {
833
- inv('0x7F78CD75CC4539E4', text);
784
+ static isRadarHiddenByScript() {
785
+ return !!inv('0x66F35DD9D2B58579', rai());
786
+ }
787
+ static hideHudAndRadarThisFrame() {
788
+ inv('0x36CDD81627A6FCD2');
834
789
  }
835
790
  /**
836
- * Returns the hash of the currently highlighted item in the weapon wheel.
837
- * Only works while the wheel is open will return false Use in conjunction with IS_CONTROL_JUST_RELEASED(0, 'INPUT_OPEN_WHEEL_MENU') to detect item selection/usage.
838
- *
791
+ * @param ped
792
+ * @param username
793
+ * @param pointedClanTag
794
+ * @param isRockstarClan
795
+ * @param clanTag
796
+ * @param clanFlag
839
797
  * @returns
840
798
  */
841
- static weaponWheelGetSelectedItemHash() {
842
- return inv('0x9C409BBC492CB5B1');
799
+ static createFakeMpGamerTag(ped, username, pointedClanTag, isRockstarClan, clanTag, clanFlag) {
800
+ return inv('0x53CB4B502E1C57EA', ped.handle, username, pointedClanTag, isRockstarClan, clanTag, clanFlag, rai());
843
801
  }
844
802
  /**
803
+ * @param prompt
845
804
  * @returns
846
805
  */
847
- static isRadarPreferenceSwitchedOn() {
848
- return inv('0x81E47F0EE1F2B21E', rai());
806
+ static uiPromptHasHoldAutoFillMode(prompt) {
807
+ return !!inv('0x8010BEBD0D5ED5BC', prompt, rai());
849
808
  }
850
- static clearAllHelpMessages() {
851
- inv('0x916ED8321F087059');
809
+ /**
810
+ * string1 is the only string used in the scripts, the others are null (0)
811
+ *
812
+ * @param active
813
+ * @param string1
814
+ * @param string2
815
+ * @param string3
816
+ * @param string4
817
+ */
818
+ static setCurrentUgcMissionDescription(active, string1, string2, string3, string4) {
819
+ inv('0xCE0D2F5586627CCE', active, string1, string2, string3, string4);
852
820
  }
853
821
  /**
854
- * For startProgress, 0.0f - 1.0f is a percentage value, so 0.5f = 50% progress. Range: 0.0f - 1.0f
855
- * For decreaseSpeed, 0.0f will result in the prompt not showing the mash progress at all. 0.01f - ?.0f. At speeds around 7.0f to 8.0f the prompt basically fails immediately if you don't start mashing right away.
856
- *
857
- * @param prompt
858
- * @param mashes
859
- * @param decreaseSpeed
860
- * @param startProgress
822
+ * @param name
823
+ * @returns
861
824
  */
862
- static uiPromptSetMashWithResistanceCanFailMode(prompt, mashes, decreaseSpeed, startProgress) {
863
- inv('0xDC0CB602DEADBA53', prompt, mashes, f(decreaseSpeed), f(startProgress));
825
+ static getNamedRendertargetRenderId(name) {
826
+ return inv('0xB6762A85EE29AA60', name, rai());
864
827
  }
865
828
  /**
866
- * @param prompt
867
- * @param p1
868
- * @param p2
829
+ * @param p0
869
830
  */
870
- static uiPromptSetTargetModeTarget(prompt, p1, p2) {
871
- inv('0x5E019C45DD3B6A14', prompt, f(p1), f(p2));
831
+ static uiPromptDisablePromptTypeThisFrame(p0) {
832
+ inv('0xFC094EF26DD153FA', p0);
872
833
  }
873
834
  /**
874
- * @param prompt
835
+ * @param entity
875
836
  * @param p1
876
837
  * @param p2
877
838
  * @param p3
878
839
  * @param p4
840
+ * @param name
841
+ * @param p6
842
+ * @returns
879
843
  */
880
- static uiPromptSetMashManualCanFailMode(prompt, p1, p2, p3, p4) {
881
- inv('0x179DCF71F705DA20', prompt, f(p1), f(p2), f(p3), p4);
844
+ static uiPromptSetAmbientGroupThisFrame(entity, p1, p2, p3, p4, name, p6) {
845
+ return inv('0x315C81D760609108', entity.handle, f(p1), p2, p3, _h(p4), name, p6);
882
846
  }
883
847
  /**
884
848
  * @param prompt
885
- * @param p1
886
- * @param p2
887
- * @param p3
849
+ * @returns
888
850
  */
889
- static uiPromptSetTargetMode(prompt, p1, p2, p3) {
890
- inv('0x5F6503D9CD2754EB', prompt, f(p1), f(p2), p3);
851
+ static uiPromptIsHoldModeRunning(prompt) {
852
+ return !!inv('0xC7D70EAEF92EFF48', prompt, rai());
891
853
  }
892
854
  /**
893
855
  * @param prompt
894
- * @param autoFillTimeMs
895
- * @param mashes
856
+ * @returns Returns `true` if the mash mode has just been pressed.
896
857
  */
897
- static uiPromptSetMashAutoFillMode(prompt, autoFillTimeMs, mashes) {
898
- inv('0x6C39587D7CC66801', prompt, autoFillTimeMs, mashes);
858
+ static uiPromptHasMashModeJustPressed(prompt) {
859
+ return !!inv('0xB0E8599243B3F568', prompt, rai());
899
860
  }
900
861
  /**
901
862
  * @param prompt
902
- * @param toggle
863
+ * @param autoFillTimeMs
864
+ * @param holdTimeMs
903
865
  */
904
- static uiPromptSetBeatMode(prompt, toggle) {
905
- inv('0xF957A1654C6322FE', prompt, toggle);
866
+ static uiPromptSetHoldAutoFillMode(prompt, autoFillTimeMs, holdTimeMs) {
867
+ inv('0x3CE932E737C145D6', prompt, autoFillTimeMs, holdTimeMs);
906
868
  }
907
869
  /**
908
- * Similar to 0x9D7E12EC6A1EE4E5(GET_TEXT_SUBSTRING) but starts at the beginning of the string
909
- *
910
- * @param text
911
- * @param length
870
+ * @param prompt
912
871
  * @returns
913
872
  */
914
- static getTextSubstring2(text, length) {
915
- return inv('0xD8402B858F4DDD88', text, length, ras());
873
+ static uiPromptHasHoldModeCompleted(prompt) {
874
+ return !!inv('0xE0F65F0640EF0617', prompt, rai());
916
875
  }
917
876
  /**
918
- * @param p0
919
- * @param prompt
920
- * @param p2
877
+ * id is the return value from 0xD9459157EB22C895.
878
+ *
879
+ * @param id
921
880
  */
922
- static uiPromptAddGroupLink(p0, prompt, p2) {
923
- inv('0x684C96CC7C66E8EF', p0, prompt, p2);
881
+ static uiPromptClearHorizontalOrientation(id) {
882
+ inv('0x6095358C4142932A', id);
924
883
  }
925
884
  /**
926
885
  * @param gamerTagId
927
886
  */
928
- static mpGamerTagEnableReviveTopIcon(gamerTagId) {
929
- inv('0xFFF6579CF0139FCE', gamerTagId);
887
+ static mpGamerTagDisableReviveTopIcon(gamerTagId) {
888
+ inv('0x1F9A64C2804B3471', gamerTagId);
930
889
  }
931
890
  /**
932
- * @param p0
933
- * @param p1
891
+ * standard (prompt not held) rate: 0.035f
892
+ * fast (prompt held) rate: 0.015f
893
+ * punitive (been hit) rate: 0.14f
894
+ *
895
+ * @param prompt
896
+ * @param speed
934
897
  */
935
- static N_0x8A59D44189AF2BC5(p0, p1) {
936
- inv('0x8A59D44189AF2BC5', p0, p1);
898
+ static uiPromptSetMashManualModeDecaySpeed(prompt, speed) {
899
+ inv('0x7D393C247FB9B431', prompt, f(speed));
937
900
  }
938
901
  /**
939
- * @param prompt
940
- * @param p1
902
+ * @param hash
903
+ * @returns
941
904
  */
942
- static uiPromptSetOrderingAsInputType(prompt, p1) {
943
- inv('0x2F385ECC5200938D', prompt, p1);
905
+ static uiPromptDoesAmbientGroupExist(hash) {
906
+ return !!inv('0xEB550B927B34A1BB', _h(hash), rai());
944
907
  }
945
908
  /**
946
909
  * @param p0
910
+ * @returns
947
911
  */
948
- static journalMarkRead(p0) {
949
- inv('0xE4509BABE59BD24E', p0);
912
+ static N_0x7EC0D68233E391AC(p0) {
913
+ return inv('0x7EC0D68233E391AC', p0, rai());
950
914
  }
951
915
  /**
952
- * @param gamerTagId
953
- * @param entity
954
- * @returns
916
+ * nullsub, doesn't do anything
955
917
  */
956
- static isMpGamerTagActiveOnEntity(gamerTagId, entity) {
957
- return inv('0x502E1591A504F843', gamerTagId, entity.handle);
918
+ static N_0xBFFF81E12A745A5F() {
919
+ inv('0xBFFF81E12A745A5F');
958
920
  }
959
921
  /**
960
- * @param gamerTagId
961
- * @param string
922
+ * @param uiscene
962
923
  */
963
- static setMpGamerTagBigText(gamerTagId, string) {
964
- inv('0xA0D7CE5F83259663', gamerTagId, string);
924
+ static N_0xF1E6979C0B779985(uiscene) {
925
+ inv('0xF1E6979C0B779985', uiscene);
965
926
  }
966
927
  /**
967
- * @param prompt
968
- * @param radius
928
+ * nullsub, this native does nothing since build 1436, use _BG_DISPLAY_TEXT instead.
929
+ *
930
+ * @param text
931
+ * @param xPos
932
+ * @param yPos
969
933
  */
970
- static uiPromptContextSetRadius(prompt, radius) {
971
- inv('0x0C718001B77CA468', prompt, f(radius));
934
+ static displayText(text, xPos, yPos) {
935
+ inv('0xD79334A4BB99BAD1', text, f(xPos), f(yPos));
972
936
  }
973
937
  /**
974
938
  * @param prompt
975
- * @param toggle
939
+ * @returns
976
940
  */
977
- static uiPromptSetVisible(prompt, toggle) {
978
- inv('0x71215ACCFDE075EE', prompt, toggle);
941
+ static uiPromptIsJustPressed(prompt) {
942
+ return !!inv('0x2787CC611D3FACC5', prompt, rai());
979
943
  }
980
944
  /**
981
- * @param p0
982
- * @returns
945
+ * @param gamerTagId
946
+ * @param text
983
947
  */
984
- static N_0x28AE29D909C8FDCE(p0) {
985
- return inv('0x28AE29D909C8FDCE', p0);
948
+ static setMpGamerTagNamePosse(gamerTagId, text) {
949
+ inv('0x1EA716E0628A6F44', gamerTagId, text);
986
950
  }
987
951
  /**
988
- * @param p0
989
- * @param prompt
952
+ * @returns
990
953
  */
991
- static uiPromptAddGroupReturnLink(p0, prompt) {
992
- inv('0x837972ED28159536', p0, prompt);
954
+ static isSubtitlePreferenceSwitchedOn() {
955
+ return !!inv('0x7C4AC9573587F2DF', rai());
993
956
  }
994
957
  /**
995
- * Params: type = mostly 0, 6 (net_mission_intro_story_gvo), 7 (fm_mission_controller), 14 (net_ugc_end_flow_transition_online), 15 (net_main_[tlg_]offline)
996
- *
997
958
  * @param prompt
998
- * @param type
959
+ * @returns
999
960
  */
1000
- static uiPromptSetType(prompt, type) {
1001
- inv('0xF4A5C4509BF923B1', prompt, type);
961
+ static uiPromptIsActive(prompt) {
962
+ return !!inv('0x546E342E01DE71CF', prompt, rai());
1002
963
  }
1003
964
  /**
1004
- * @param textBlock
965
+ * @param prompt
966
+ * @param mashes
1005
967
  */
1006
- static textBlockRequest(textBlock) {
1007
- inv('0xF66090013DE648D5', textBlock);
968
+ static uiPromptSetMashMode(prompt, mashes) {
969
+ inv('0xDF6423BF071C7F71', prompt, mashes);
970
+ }
971
+ static hideHudThisFrame() {
972
+ inv('0xBF4F34A85CA2970D');
1008
973
  }
1009
974
  /**
1010
- * Checks if the passed gxt name exists in the game files.
1011
- *
1012
- * @param label
1013
- * @returns
975
+ * @param prompt
976
+ * @param releaseMode
1014
977
  */
1015
- static doesTextLabelExist(label) {
1016
- return inv('0x73C258C68D6F55B6', label, rai());
978
+ static uiPromptSetStandardMode(prompt, releaseMode) {
979
+ inv('0xCC6656799977741B', prompt, releaseMode);
1017
980
  }
1018
981
  /**
982
+ * @param hash
1019
983
  * @returns
1020
984
  */
1021
- static N_0x066725A9D52B3641() {
1022
- return inv('0x066725A9D52B3641');
985
+ static uiPromptGetGroupActivePage(hash) {
986
+ return inv('0xC1FCC36C3F7286C8', _h(hash), rai());
1023
987
  }
1024
988
  /**
1025
- * standard (prompt not held) rate: (1f / 128f)
1026
- * fast (prompt held) rate: (1f / 64f)
1027
- * punitive (been hit) rate: (1f / 128f)
1028
- *
1029
- * @param prompt
1030
- * @param rate
989
+ * Enables reduced time scale while menus such as weapon wheel and satchel are open.
1031
990
  */
1032
- static uiPromptSetMashManualModeIncreasePerPress(prompt, rate) {
1033
- inv('0xA0D1D79C6036A855', prompt, f(rate));
991
+ static enableReducedMenuTimeScale() {
992
+ inv('0x26F6BBEA2CE3E3DC');
1034
993
  }
1035
994
  /**
1036
- * @param prompt
1037
- * @param speed
995
+ * @param p0
996
+ * @returns
1038
997
  */
1039
- static uiPromptSetMashManualModePressedGrowthSpeed(prompt, speed) {
1040
- inv('0x56DBB26F98582C29', prompt, f(speed));
998
+ static N_0xD6BD313CFA41E57A(p0) {
999
+ return inv('0xD6BD313CFA41E57A', p0);
1041
1000
  }
1042
1001
  /**
1043
- * @param string
1044
1002
  * @returns
1045
1003
  */
1046
- static getLengthOfLiteralStringInBytes(string) {
1047
- return inv('0xDC5AD6B7AB8184F5', string, rai());
1004
+ static isMultiplayerChatActive() {
1005
+ return !!inv('0xBC19069D5FBB5C46', rai());
1006
+ }
1007
+ static disableFrontendThisFrame() {
1008
+ inv('0x56CE42A528156A67');
1048
1009
  }
1049
1010
  /**
1050
- * @param name
1011
+ * @param prompt
1051
1012
  * @returns
1052
1013
  */
1053
- static releaseNamedRendertarget(name) {
1054
- return inv('0x0E692EE61761361F', name, rai());
1014
+ static uiPromptGetMashModeProgress(prompt) {
1015
+ return inv('0x8A9585293863B8A5', prompt, raf());
1055
1016
  }
1056
1017
  /**
1057
- * @param textDatabase
1018
+ * @param groupId
1019
+ * @param volume
1020
+ * @param p2
1021
+ * @param p3
1022
+ * @param p4
1023
+ * @param p5
1058
1024
  * @returns
1059
1025
  */
1060
- static doesTextBlockExist(textDatabase) {
1061
- return inv('0x2C729F2B94CEA911', textDatabase);
1026
+ static N_0x8B55B324A9123F6B(groupId, volume, p2, p3, p4, p5) {
1027
+ return inv('0x8B55B324A9123F6B', groupId, volume.handle, p2, p3, p4, p5);
1062
1028
  }
1063
1029
  /**
1064
- * @param p0
1065
- * @param p1
1030
+ * @param entity
1066
1031
  * @returns
1067
1032
  */
1068
- static journalGetEntryInfo(p0, p1) {
1069
- return inv('0x5514C3E60673530F', p0, p1);
1033
+ static uiPromptGetGroupIdForTargetEntity(entity) {
1034
+ return inv('0xB796970BD125FCE8', entity.handle, rai());
1070
1035
  }
1071
1036
  /**
1072
- * @param p0
1037
+ * Old name: _ALLOW_PAUSE_MENU_WHEN_DEAD_THIS_FRAME
1073
1038
  */
1074
- static N_0x3FE4FB41EF7D2196(p0) {
1075
- inv('0x3FE4FB41EF7D2196', p0);
1039
+ static allowPauseWhenNotInStateOfPlayThisFrame() {
1040
+ inv('0x30996422DF1EE561');
1076
1041
  }
1077
1042
  /**
1078
- * colorNameHash: https://alloc8or.re/rdr3/doc/enums/eColor.txt
1079
- *
1080
- * @param colorNameHash
1081
- * @returns red; green; blue; alpha
1043
+ * @param p0
1044
+ * @param p1
1045
+ * @returns
1082
1046
  */
1083
- static getColorFromName(colorNameHash) {
1084
- const result = inv('0xB981DD2DFAF9B1C9', _h(colorNameHash), pvi(), pvi(), pvi(), pvi());
1085
- return [result[0], result[1], result[2], result[3]];
1047
+ static uiPromptGetGroupIdForScenarioPoint(p0, p1) {
1048
+ return inv('0xCB73D7521E7103F0', p0, p1, rai());
1086
1049
  }
1087
1050
  /**
1088
- * visibility:
1089
- * enum eUIGamertagVisibility
1090
- * {
1091
- * UIGAMERTAGVISIBILITY_NONE,
1092
- * UIGAMERTAGVISIBILITY_ICON,
1093
- * UIGAMERTAGVISIBILITY_SIMPLE,
1094
- * UIGAMERTAGVISIBILITY_COMPLEX
1095
- * };
1051
+ * nullsub, doesn't do anything
1096
1052
  *
1097
1053
  * @param gamerTagId
1098
- * @param visibility
1054
+ * @param allow
1099
1055
  */
1100
- static setMpGamerTagVisibility(gamerTagId, visibility) {
1101
- inv('0x93171DDDAB274EB8', gamerTagId, visibility);
1056
+ static setMpGamerTagUnkAllowLocalized(gamerTagId, allow) {
1057
+ inv('0xEF7AB1A0E8C86170', gamerTagId, allow);
1102
1058
  }
1103
1059
  /**
1104
- * @param component
1060
+ * @param ped
1105
1061
  */
1106
- static enableHudContextThisFrame(component) {
1107
- inv('0xC9CAEAEEC1256E54', _h(component));
1062
+ static uiPromptSetPromptPriorityPreference(ped) {
1063
+ inv('0x530A428705BE5DEF', ped.handle);
1108
1064
  }
1109
1065
  /**
1110
- * @param gamerTagId
1066
+ * @param textBlock
1111
1067
  */
1112
- static mpGamerTagDisableReviveTopIcon(gamerTagId) {
1113
- inv('0x1F9A64C2804B3471', gamerTagId);
1068
+ static textBlockDelete(textBlock) {
1069
+ inv('0xAA03F130A637D923', textBlock);
1114
1070
  }
1115
1071
  /**
1116
- * standard (prompt not held) rate: 0.035f
1117
- * fast (prompt held) rate: 0.015f
1118
- * punitive (been hit) rate: 0.14f
1072
+ * Returns true when either Pause Menu, a Frontend Menu, Online Policies menu or Social Club menu is active.
1119
1073
  *
1120
- * @param prompt
1121
- * @param speed
1074
+ * @returns
1122
1075
  */
1123
- static uiPromptSetMashManualModeDecaySpeed(prompt, speed) {
1124
- inv('0x7D393C247FB9B431', prompt, f(speed));
1076
+ static isPauseMenuActive() {
1077
+ return !!inv('0x535384D6067BA42E', rai());
1125
1078
  }
1126
1079
  /**
1127
- * @param hash
1080
+ * @param controlAction
1128
1081
  * @returns
1129
1082
  */
1130
- static uiPromptDoesAmbientGroupExist(hash) {
1131
- return inv('0xEB550B927B34A1BB', _h(hash), rai());
1083
+ static uiPromptIsControlActionActive(controlAction) {
1084
+ return inv('0x1BE19185B8AFE299', _h(controlAction));
1132
1085
  }
1133
1086
  /**
1134
- * @param p0
1087
+ * @param textBlock
1135
1088
  * @returns
1136
1089
  */
1137
- static N_0x7EC0D68233E391AC(p0) {
1138
- return inv('0x7EC0D68233E391AC', p0, rai());
1090
+ static textBlockIsStreamed(textBlock) {
1091
+ return inv('0x3CF96E16265B7DC8', textBlock);
1139
1092
  }
1140
1093
  /**
1141
- * nullsub, doesn't do anything
1094
+ * @param worldX
1095
+ * @param worldY
1096
+ * @param worldZ
1097
+ * @returns screenX; screenY
1142
1098
  */
1143
- static N_0xBFFF81E12A745A5F() {
1144
- inv('0xBFFF81E12A745A5F');
1099
+ static getHudScreenPositionFromWorldPosition(worldX, worldY, worldZ) {
1100
+ const result = inv('0xB39C81628EF10B42', f(worldX), f(worldY), f(worldZ), pvf(), pvf(), rai());
1101
+ return [!!result[0], result[1], result[2]];
1145
1102
  }
1146
1103
  /**
1147
- * @param uiscene
1104
+ * @param prompt
1105
+ * @returns
1148
1106
  */
1149
- static N_0xF1E6979C0B779985(uiscene) {
1150
- inv('0xF1E6979C0B779985', uiscene);
1107
+ static uiPromptHasHoldMode(prompt) {
1108
+ return inv('0xB60C9F9ED47ABB76', prompt);
1151
1109
  }
1152
1110
  /**
1153
- * nullsub, this native does nothing since build 1436, use _BG_DISPLAY_TEXT instead.
1154
- *
1155
- * @param text
1156
- * @param xPos
1157
- * @param yPos
1111
+ * @param p0
1112
+ * @param name
1158
1113
  */
1159
- static displayText(text, xPos, yPos) {
1160
- inv('0xD79334A4BB99BAD1', text, f(xPos), f(yPos));
1114
+ static setMissionNameForUgcMission(p0, name) {
1115
+ inv('0xD98630CE73C61E98', p0, name);
1161
1116
  }
1162
1117
  /**
1163
- * @param prompt
1164
1118
  * @returns
1165
1119
  */
1166
- static uiPromptIsJustPressed(prompt) {
1167
- return inv('0x2787CC611D3FACC5', prompt, rai());
1120
+ static busyspinnerIsOn() {
1121
+ return !!inv('0x823BF7B1DF613A21', rai());
1168
1122
  }
1169
1123
  /**
1170
- * @param gamerTagId
1171
- * @param text
1124
+ * @param prompt
1125
+ * @param p1
1172
1126
  */
1173
- static setMpGamerTagNamePosse(gamerTagId, text) {
1174
- inv('0x1EA716E0628A6F44', gamerTagId, text);
1127
+ static uiPromptSetTag(prompt, p1) {
1128
+ inv('0xDEC85C174751292B', prompt, p1);
1175
1129
  }
1176
1130
  /**
1177
- * @returns
1131
+ * @param gamerTagId
1132
+ * @param string
1178
1133
  */
1179
- static isSubtitlePreferenceSwitchedOn() {
1180
- return inv('0x7C4AC9573587F2DF', rai());
1134
+ static setMpGamerTagName(gamerTagId, string) {
1135
+ inv('0xEA6F4B8D4B4B5B3E', gamerTagId, string);
1181
1136
  }
1182
1137
  /**
1183
1138
  * @param prompt
1184
- * @returns
1139
+ * @param progress
1185
1140
  */
1186
- static uiPromptIsActive(prompt) {
1187
- return inv('0x546E342E01DE71CF', prompt, rai());
1141
+ static uiPromptSetTargetModeProgress(prompt, progress) {
1142
+ inv('0x00123054BEC8A30F', prompt, f(progress));
1188
1143
  }
1189
1144
  /**
1190
1145
  * @param prompt
1191
- * @param mashes
1192
1146
  */
1193
- static uiPromptSetMashMode(prompt, mashes) {
1194
- inv('0xDF6423BF071C7F71', prompt, mashes);
1147
+ static uiPromptSetMashIndefinitelyMode(prompt) {
1148
+ inv('0x7B66E89312727274', prompt);
1195
1149
  }
1196
- static hideHudThisFrame() {
1197
- inv('0xBF4F34A85CA2970D');
1150
+ static uiPromptDisablePromptsThisFrame() {
1151
+ inv('0xF1622CE88A1946FB');
1198
1152
  }
1199
1153
  /**
1200
1154
  * @param prompt
1201
- * @param releaseMode
1155
+ * @param toggle
1202
1156
  */
1203
- static uiPromptSetStandardMode(prompt, releaseMode) {
1204
- inv('0xCC6656799977741B', prompt, releaseMode);
1157
+ static uiPromptSetUrgentPulsingEnabled(prompt, toggle) {
1158
+ inv('0xC5F428EE08FA7F2C', prompt, toggle);
1205
1159
  }
1206
1160
  /**
1161
+ * Note: you must use VAR_STRING for p1 if string is not part of text database
1162
+ * tabAmount: specifies number of tabs in prompt group
1163
+ * tabDefaultIndex: specifies starting index
1164
+ * p3 if is set > 3 you can no longer press Q to change tab if there are more than one tab set in tabAmount
1165
+ *
1207
1166
  * @param hash
1167
+ * @param name
1168
+ * @param tabAmount
1169
+ * @param tabDefaultIndex
1170
+ * @param p4
1171
+ * @param prompt
1208
1172
  * @returns
1209
1173
  */
1210
- static uiPromptGetGroupActivePage(hash) {
1211
- return inv('0xC1FCC36C3F7286C8', _h(hash), rai());
1174
+ static uiPromptSetActiveGroupThisFrame(hash, name, tabAmount, tabDefaultIndex, p4, prompt) {
1175
+ return inv('0xC65A45D4453C2627', _h(hash), name, tabAmount, tabDefaultIndex, p4, prompt);
1212
1176
  }
1213
1177
  /**
1214
- * Enables reduced time scale while menus such as weapon wheel and satchel are open.
1178
+ * @param p0
1179
+ * @param p1
1180
+ * @param p2
1181
+ * @returns
1215
1182
  */
1216
- static enableReducedMenuTimeScale() {
1217
- inv('0x26F6BBEA2CE3E3DC');
1183
+ static journalGetTextureWithLayout(p0, p1, p2) {
1184
+ return inv('0x62CC549B3B8EA2AA', p0, p1, p2);
1218
1185
  }
1219
1186
  /**
1220
1187
  * @param prompt
1221
1188
  * @returns
1222
1189
  */
1223
- static uiPromptHasMashModeFailed(prompt) {
1224
- return inv('0x25B18E530CF39D6F', prompt, rai());
1190
+ static uiPromptIsEnabled(prompt) {
1191
+ return inv('0x0D00EDDFB58B7F28', prompt);
1225
1192
  }
1226
1193
  /**
1227
1194
  * @param prompt
1228
1195
  * @returns
1229
1196
  */
1230
- static uiPromptHasManualMashMode(prompt) {
1231
- return inv('0xA6C6A4ADB3BAC409', prompt);
1197
+ static uiPromptGetUrgentPulsingEnabled(prompt) {
1198
+ return !!inv('0x1FBA0DABECDDB52B', prompt, rai());
1199
+ }
1200
+ /**
1201
+ * @param scale
1202
+ * @param size
1203
+ */
1204
+ static setTextScale(scale, size) {
1205
+ inv('0x4170B650590B3B00', f(scale), f(size));
1206
+ }
1207
+ /**
1208
+ * Found icons: SPEAKER, THROPY
1209
+ *
1210
+ * @param gamerTagId
1211
+ * @param icon
1212
+ */
1213
+ static setMpGamerTagSecondaryIcon(gamerTagId, icon) {
1214
+ inv('0x95384C6CE1526EFF', gamerTagId, _h(icon));
1215
+ }
1216
+ /**
1217
+ * Disables reduced time scale while menus such as weapon wheel and satchel are open.
1218
+ */
1219
+ static disableReducedMenuTimeScale() {
1220
+ inv('0xC5C7A2F6567FCCBC');
1232
1221
  }
1233
1222
  /**
1234
1223
  * @param prompt
1235
- * @returns
1224
+ * @param p1
1236
1225
  */
1237
- static uiPromptHasMashModeCompleted(prompt) {
1238
- return inv('0x845CE958416DC473', prompt, rai());
1226
+ static uiPromptSetBeatModeGrayedOut(prompt, p1) {
1227
+ inv('0xB487A4936FBF40AC', prompt, p1);
1239
1228
  }
1240
1229
  /**
1241
1230
  * @param prompt
1242
1231
  * @param p1
1243
1232
  */
1244
- static uiPromptSetSpinnerPosition(prompt, p1) {
1245
- inv('0x832CB510DE546282', prompt, p1);
1233
+ static N_0x53CE46C01A089DA1(prompt, p1) {
1234
+ inv('0x53CE46C01A089DA1', prompt, p1);
1246
1235
  }
1247
1236
  /**
1248
1237
  * @param p0
1238
+ * @returns
1249
1239
  */
1250
- static journalWriteEntry(p0) {
1251
- inv('0x6DFDD665E416B093', p0);
1240
+ static uiGetSceneUiobject(p0) {
1241
+ return inv('0xBE1067CD1C9570F6', p0);
1252
1242
  }
1253
1243
  /**
1254
- * @param state
1244
+ * @param p0
1245
+ * @param p1
1255
1246
  */
1256
- static showHorseCores(state) {
1257
- inv('0xD4EE21B7CC7FD350', state);
1247
+ static N_0x958278B97C4AFFD8(p0, p1) {
1248
+ inv('0x958278B97C4AFFD8', p0, p1);
1258
1249
  }
1259
1250
  /**
1260
- * This native accepts 1 as parameter in the decompiles
1261
- * returns the nearest horse handle if within 2 3 meters of the player, if not close enough returns false NOTE: if type is 0 returns PlayerPedId always?
1262
- *
1263
- * @param p0
1251
+ * @param prompt
1264
1252
  * @returns
1265
1253
  */
1266
- static getNearHorse(p0) {
1267
- return inv('0x0501D52D24EA8934', p0);
1254
+ static uiPromptGetProgress(prompt) {
1255
+ return inv('0x81801291806DBC50', prompt, raf());
1268
1256
  }
1269
1257
  /**
1270
1258
  * @param prompt
1259
+ * @returns
1271
1260
  */
1272
- static uiPromptRestartModes(prompt) {
1273
- inv('0xDC6C55DFA2C24EE5', prompt);
1261
+ static uiPromptIsPressed(prompt) {
1262
+ return !!inv('0x21E60E230086697F', prompt, rai());
1274
1263
  }
1275
1264
  /**
1276
- * @param prompt
1277
- * @param mashes
1278
- * @param p2
1279
- * @param p3
1265
+ * Note: you must use VAR_STRING. Byte code very similar to TEXT_COMMAND_DISPLAY_TEXT in V
1266
+ * Old name: _GET_TEXT_SUBSTRING
1267
+ *
1268
+ * @param text
1269
+ * @param position
1270
+ * @param length
1271
+ * @returns
1280
1272
  */
1281
- static uiPromptSetMashWithResistanceMode(prompt, mashes, p2, p3) {
1282
- inv('0xCD1BDFF15EFA79F5', prompt, mashes, f(p2), f(p3));
1273
+ static getCharacterFromAudioConversationFilename(text, position, length) {
1274
+ return inv('0x9D7E12EC6A1EE4E5', text, position, length, ras());
1283
1275
  }
1284
1276
  /**
1285
1277
  * @param p0
1286
1278
  * @param p1
1287
- * @param p2
1288
- * @returns
1289
1279
  */
1290
- static N_0x806862E5D266CF38(p0, p1, p2) {
1291
- return inv('0x806862E5D266CF38', p0, p1, p2);
1280
+ static N_0x9D37EB5003E0F2CF(p0, p1) {
1281
+ inv('0x9D37EB5003E0F2CF', p0, p1);
1282
+ }
1283
+ static uiPromptClearPromptPriorityPreference() {
1284
+ inv('0x51259AE5C72D4A1B');
1292
1285
  }
1293
1286
  /**
1294
- * @param gamerTagId
1295
- * @returns
1287
+ * @param prompt
1288
+ * @param depletionTimeMs
1296
1289
  */
1297
- static isMpGamerTagActive(gamerTagId) {
1298
- return inv('0x6E1C31E14C7A5F97', gamerTagId, rai());
1290
+ static uiPromptSetPressedTimedMode(prompt, depletionTimeMs) {
1291
+ inv('0x1473D3AF51D54276', prompt, depletionTimeMs);
1299
1292
  }
1300
1293
  /**
1301
- * Hashes: SHORT_TIMED_EVENT_MP, SHORT_TIMED_EVENT, MEDIUM_TIMED_EVENT, LONG_TIMED_EVENT, RUSTLING_CALM_TIMING, PLAYER_FOCUS_TIMING, PLAYER_REACTION_TIMING
1302
- *
1303
1294
  * @param prompt
1304
- * @param timedEventHash
1295
+ * @param toggle
1305
1296
  */
1306
- static uiPromptSetStandardizedHoldMode(prompt, timedEventHash) {
1307
- inv('0x74C7D7B72ED0D3CF', prompt, _h(timedEventHash));
1297
+ static uiPromptSetEnabled(prompt, toggle) {
1298
+ inv('0x8A0FB4D03A630D21', prompt, toggle);
1299
+ }
1300
+ static uiPromptFilterClear() {
1301
+ inv('0x6A2F820452017EA2');
1308
1302
  }
1309
1303
  /**
1310
- * @param modelHash
1311
- * @returns
1304
+ * tabIndex: specifies tab of prompt
1305
+ *
1306
+ * @param prompt
1307
+ * @param groupId
1308
+ * @param tabIndex
1312
1309
  */
1313
- static isNamedRendertargetLinked(modelHash) {
1314
- return inv('0x707032835FF09AE7', _h(modelHash), rai());
1310
+ static uiPromptSetGroup(prompt, groupId, tabIndex) {
1311
+ inv('0x2F11D3A254169EA4', prompt, groupId, tabIndex);
1315
1312
  }
1316
1313
  /**
1317
- * @param prompt
1318
- * @returns
1314
+ * @param text
1319
1315
  */
1320
- static uiPromptWasBeatModePressedInTimeWindow(prompt) {
1321
- return inv('0x1FE4788AB1430C55', prompt, rai());
1316
+ static busyspinnerSetText(text) {
1317
+ inv('0x7F78CD75CC4539E4', text);
1322
1318
  }
1323
1319
  /**
1320
+ * Returns the hash of the currently highlighted item in the weapon wheel.
1321
+ * Only works while the wheel is open will return false Use in conjunction with IS_CONTROL_JUST_RELEASED(0, 'INPUT_OPEN_WHEEL_MENU') to detect item selection/usage.
1322
+ *
1324
1323
  * @returns
1325
1324
  */
1326
- static isHudHidden() {
1327
- return inv('0x71B72B478F8189DC', rai());
1325
+ static weaponWheelGetSelectedItemHash() {
1326
+ return inv('0x9C409BBC492CB5B1');
1328
1327
  }
1329
1328
  /**
1330
- * @param p0
1331
- * @param p1
1332
1329
  * @returns
1333
1330
  */
1334
- static N_0x100157D6D7FE32CA(p0, p1) {
1335
- return inv('0x100157D6D7FE32CA', p0, p1);
1331
+ static isRadarPreferenceSwitchedOn() {
1332
+ return !!inv('0x81E47F0EE1F2B21E', rai());
1333
+ }
1334
+ static clearAllHelpMessages() {
1335
+ inv('0x916ED8321F087059');
1336
1336
  }
1337
1337
  /**
1338
1338
  * TM_ANY = 0,
@@ -1397,14 +1397,14 @@ export class Hud {
1397
1397
  * @returns
1398
1398
  */
1399
1399
  static uiPromptHasStandardModeCompleted(prompt, p1) {
1400
- return inv('0xC92AC953F0A982AE', prompt, p1, rai());
1400
+ return !!inv('0xC92AC953F0A982AE', prompt, p1, rai());
1401
1401
  }
1402
1402
  /**
1403
1403
  * @param prompt
1404
1404
  * @returns
1405
1405
  */
1406
1406
  static uiPromptIsValid(prompt) {
1407
- return inv('0x347469FBDD1589A9', prompt, rai());
1407
+ return !!inv('0x347469FBDD1589A9', prompt, rai());
1408
1408
  }
1409
1409
  /**
1410
1410
  * If Hud should be displayed
@@ -1418,7 +1418,7 @@ export class Hud {
1418
1418
  * @returns
1419
1419
  */
1420
1420
  static isRadarHidden() {
1421
- return inv('0x1B82FD5FFA4D666E', rai());
1421
+ return !!inv('0x1B82FD5FFA4D666E', rai());
1422
1422
  }
1423
1423
  /**
1424
1424
  * @param gamerTagId