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