@nativewrappers/redm-codegen 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/classes/AnimScene.d.ts +82 -82
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +124 -124
  4. package/dist/classes/BaseModel.d.ts +29 -29
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +43 -43
  7. package/dist/classes/BaseTask.d.ts +43 -43
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +53 -53
  10. package/dist/classes/Cam.d.ts +82 -82
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +115 -115
  13. package/dist/classes/Entity.d.ts +250 -250
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +350 -350
  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/Ped.d.ts +55 -55
  20. package/dist/classes/Ped.d.ts.map +1 -1
  21. package/dist/classes/Ped.js +76 -76
  22. package/dist/classes/PedTask.d.ts +797 -797
  23. package/dist/classes/PedTask.d.ts.map +1 -1
  24. package/dist/classes/PedTask.js +1023 -1023
  25. package/dist/classes/PersChar.d.ts +13 -13
  26. package/dist/classes/PersChar.d.ts.map +1 -1
  27. package/dist/classes/PersChar.js +27 -27
  28. package/dist/classes/Pickup.d.ts +8 -8
  29. package/dist/classes/Pickup.d.ts.map +1 -1
  30. package/dist/classes/Pickup.js +15 -15
  31. package/dist/classes/Player.d.ts +185 -185
  32. package/dist/classes/Player.d.ts.map +1 -1
  33. package/dist/classes/Player.js +251 -251
  34. package/dist/classes/Prop.d.ts +130 -130
  35. package/dist/classes/Prop.d.ts.map +1 -1
  36. package/dist/classes/Prop.js +188 -188
  37. package/dist/classes/PropSet.d.ts +17 -17
  38. package/dist/classes/PropSet.d.ts.map +1 -1
  39. package/dist/classes/PropSet.js +25 -25
  40. package/dist/classes/VehicleTask.d.ts +23 -23
  41. package/dist/classes/VehicleTask.d.ts.map +1 -1
  42. package/dist/classes/VehicleTask.js +30 -30
  43. package/dist/classes/Volume.d.ts +39 -39
  44. package/dist/classes/Volume.d.ts.map +1 -1
  45. package/dist/classes/Volume.js +54 -54
  46. package/dist/classes/Weapon.d.ts +291 -291
  47. package/dist/classes/Weapon.d.ts.map +1 -1
  48. package/dist/classes/Weapon.js +414 -414
  49. package/dist/namespaces/Animscene.d.ts +63 -63
  50. package/dist/namespaces/Animscene.d.ts.map +1 -1
  51. package/dist/namespaces/Animscene.js +83 -83
  52. package/dist/namespaces/Audio.d.ts +464 -464
  53. package/dist/namespaces/Audio.d.ts.map +1 -1
  54. package/dist/namespaces/Audio.js +650 -650
  55. package/dist/namespaces/Bounty.d.ts +57 -57
  56. package/dist/namespaces/Bounty.d.ts.map +1 -1
  57. package/dist/namespaces/Bounty.js +90 -90
  58. package/dist/namespaces/CamStatics.d.ts +426 -426
  59. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  60. package/dist/namespaces/CamStatics.js +609 -609
  61. package/dist/namespaces/Collection.d.ts +81 -81
  62. package/dist/namespaces/Collection.d.ts.map +1 -1
  63. package/dist/namespaces/Collection.js +113 -113
  64. package/dist/namespaces/Compendium.d.ts +38 -38
  65. package/dist/namespaces/Compendium.d.ts.map +1 -1
  66. package/dist/namespaces/Compendium.js +52 -52
  67. package/dist/namespaces/Crashlog.d.ts +10 -10
  68. package/dist/namespaces/Crashlog.d.ts.map +1 -1
  69. package/dist/namespaces/Crashlog.js +14 -14
  70. package/dist/namespaces/Databinding.d.ts +174 -174
  71. package/dist/namespaces/Databinding.d.ts.map +1 -1
  72. package/dist/namespaces/Databinding.js +266 -266
  73. package/dist/namespaces/EntityStatics.d.ts +110 -110
  74. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  75. package/dist/namespaces/EntityStatics.js +146 -146
  76. package/dist/namespaces/Graphics.d.ts +547 -547
  77. package/dist/namespaces/Graphics.d.ts.map +1 -1
  78. package/dist/namespaces/Graphics.js +731 -731
  79. package/dist/namespaces/Hud.d.ts +395 -395
  80. package/dist/namespaces/Hud.d.ts.map +1 -1
  81. package/dist/namespaces/Hud.js +564 -564
  82. package/dist/namespaces/InteriorStatics.d.ts +40 -40
  83. package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
  84. package/dist/namespaces/InteriorStatics.js +56 -56
  85. package/dist/namespaces/Inventory.d.ts +107 -107
  86. package/dist/namespaces/Inventory.d.ts.map +1 -1
  87. package/dist/namespaces/Inventory.js +149 -149
  88. package/dist/namespaces/Itemdatabase.d.ts +5 -5
  89. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  90. package/dist/namespaces/Itemdatabase.js +7 -7
  91. package/dist/namespaces/Map.d.ts +173 -173
  92. package/dist/namespaces/Map.d.ts.map +1 -1
  93. package/dist/namespaces/Map.js +240 -240
  94. package/dist/namespaces/Minigame.d.ts +56 -56
  95. package/dist/namespaces/Minigame.d.ts.map +1 -1
  96. package/dist/namespaces/Minigame.js +80 -80
  97. package/dist/namespaces/Network.d.ts +964 -964
  98. package/dist/namespaces/Network.d.ts.map +1 -1
  99. package/dist/namespaces/Network.js +1333 -1333
  100. package/dist/namespaces/Object.d.ts +240 -240
  101. package/dist/namespaces/Object.d.ts.map +1 -1
  102. package/dist/namespaces/Object.js +337 -337
  103. package/dist/namespaces/Pad.d.ts +95 -95
  104. package/dist/namespaces/Pad.d.ts.map +1 -1
  105. package/dist/namespaces/Pad.js +127 -127
  106. package/dist/namespaces/PedStatics.d.ts +18 -18
  107. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  108. package/dist/namespaces/PedStatics.js +26 -26
  109. package/dist/namespaces/Perschar.d.ts +46 -46
  110. package/dist/namespaces/Perschar.d.ts.map +1 -1
  111. package/dist/namespaces/Perschar.js +66 -66
  112. package/dist/namespaces/Physics.d.ts +207 -207
  113. package/dist/namespaces/Physics.d.ts.map +1 -1
  114. package/dist/namespaces/Physics.js +315 -315
  115. package/dist/namespaces/PlayerStatics.d.ts +68 -68
  116. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  117. package/dist/namespaces/PlayerStatics.js +95 -95
  118. package/dist/namespaces/Population.d.ts +86 -86
  119. package/dist/namespaces/Population.d.ts.map +1 -1
  120. package/dist/namespaces/Population.js +116 -116
  121. package/dist/namespaces/Posse.d.ts +43 -43
  122. package/dist/namespaces/Posse.d.ts.map +1 -1
  123. package/dist/namespaces/Posse.js +67 -67
  124. package/dist/namespaces/Propset.d.ts +59 -59
  125. package/dist/namespaces/Propset.d.ts.map +1 -1
  126. package/dist/namespaces/Propset.js +81 -81
  127. package/dist/namespaces/Shapetest.d.ts +11 -11
  128. package/dist/namespaces/Shapetest.d.ts.map +1 -1
  129. package/dist/namespaces/Shapetest.js +13 -13
  130. package/dist/namespaces/Stats.d.ts +90 -90
  131. package/dist/namespaces/Stats.d.ts.map +1 -1
  132. package/dist/namespaces/Stats.js +127 -127
  133. package/dist/namespaces/Streaming.d.ts +127 -127
  134. package/dist/namespaces/Streaming.d.ts.map +1 -1
  135. package/dist/namespaces/Streaming.js +193 -193
  136. package/dist/namespaces/Task.d.ts +346 -346
  137. package/dist/namespaces/Task.d.ts.map +1 -1
  138. package/dist/namespaces/Task.js +525 -525
  139. package/dist/namespaces/Telemetry.d.ts +176 -176
  140. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  141. package/dist/namespaces/Telemetry.js +255 -255
  142. package/dist/namespaces/VolumeStatics.d.ts +64 -64
  143. package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
  144. package/dist/namespaces/VolumeStatics.js +85 -85
  145. package/dist/namespaces/Water.d.ts +27 -27
  146. package/dist/namespaces/Water.d.ts.map +1 -1
  147. package/dist/namespaces/Water.js +41 -41
  148. package/dist/namespaces/WeaponStatics.d.ts +234 -234
  149. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  150. package/dist/namespaces/WeaponStatics.js +320 -320
  151. package/dist/namespaces/Zone.d.ts +7 -7
  152. package/dist/namespaces/Zone.d.ts.map +1 -1
  153. package/dist/namespaces/Zone.js +9 -9
  154. package/package.json +1 -1
  155. package/src/classes/AnimScene.ts +133 -133
  156. package/src/classes/BaseModel.ts +50 -50
  157. package/src/classes/BaseTask.ts +55 -55
  158. package/src/classes/Cam.ts +126 -126
  159. package/src/classes/Entity.ts +365 -365
  160. package/src/classes/Interior.ts +43 -43
  161. package/src/classes/Ped.ts +86 -86
  162. package/src/classes/PedTask.ts +2067 -2067
  163. package/src/classes/PersChar.ts +34 -34
  164. package/src/classes/Pickup.ts +16 -16
  165. package/src/classes/Player.ts +296 -296
  166. package/src/classes/Prop.ts +203 -203
  167. package/src/classes/PropSet.ts +29 -29
  168. package/src/classes/VehicleTask.ts +32 -32
  169. package/src/classes/Volume.ts +61 -61
  170. package/src/classes/Weapon.ts +427 -427
  171. package/src/namespaces/Animscene.ts +86 -86
  172. package/src/namespaces/Audio.ts +760 -760
  173. package/src/namespaces/Bounty.ts +102 -102
  174. package/src/namespaces/CamStatics.ts +631 -631
  175. package/src/namespaces/Collection.ts +114 -114
  176. package/src/namespaces/Compendium.ts +59 -59
  177. package/src/namespaces/Crashlog.ts +16 -16
  178. package/src/namespaces/Databinding.ts +282 -282
  179. package/src/namespaces/EntityStatics.ts +158 -158
  180. package/src/namespaces/Graphics.ts +1140 -1140
  181. package/src/namespaces/Hud.ts +592 -592
  182. package/src/namespaces/InteriorStatics.ts +64 -64
  183. package/src/namespaces/Inventory.ts +165 -165
  184. package/src/namespaces/Itemdatabase.ts +8 -8
  185. package/src/namespaces/Map.ts +256 -256
  186. package/src/namespaces/Minigame.ts +92 -92
  187. package/src/namespaces/Network.ts +1392 -1392
  188. package/src/namespaces/Object.ts +350 -350
  189. package/src/namespaces/Pad.ts +127 -127
  190. package/src/namespaces/PedStatics.ts +30 -30
  191. package/src/namespaces/Perschar.ts +76 -76
  192. package/src/namespaces/Physics.ts +327 -327
  193. package/src/namespaces/PlayerStatics.ts +103 -103
  194. package/src/namespaces/Population.ts +131 -131
  195. package/src/namespaces/Posse.ts +67 -67
  196. package/src/namespaces/Propset.ts +92 -92
  197. package/src/namespaces/Shapetest.ts +14 -14
  198. package/src/namespaces/Stats.ts +143 -143
  199. package/src/namespaces/Streaming.ts +226 -226
  200. package/src/namespaces/Task.ts +498 -498
  201. package/src/namespaces/Telemetry.ts +261 -261
  202. package/src/namespaces/VolumeStatics.ts +87 -87
  203. package/src/namespaces/Water.ts +47 -47
  204. package/src/namespaces/WeaponStatics.ts +325 -325
  205. package/src/namespaces/Zone.ts +10 -10
@@ -1,126 +1,149 @@
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
4
+ * @param modelHash
6
5
  */
7
- static uiPromptSetText(prompt, text) {
8
- inv('0x5DD02A8318420DD7', prompt, text);
6
+ static linkNamedRendertarget(modelHash) {
7
+ inv('0x2F506B8556242DDB', _h(modelHash));
9
8
  }
10
9
  /**
11
- * @param prompt
10
+ * Returns the label text given the hash. Old name: _GET_LABEL_TEXT_BY_HASH
11
+ *
12
+ * @param labelHash
12
13
  * @returns
13
14
  */
14
- static uiPromptIsJustReleased(prompt) {
15
- return inv('0x635CC82FA297A827', prompt, rai());
15
+ static getStringFromHashKey(labelHash) {
16
+ return inv('0xBD5DD5EAE2B6CE14', _h(labelHash), ras());
16
17
  }
17
18
  /**
18
- * Found icons: https://pastebin.com/xx6rEgiG
19
- *
20
- * @param gamerTagId
21
- * @param icon
19
+ * @param textBlock
20
+ * @returns
22
21
  */
23
- static setMpGamerTagTopIcon(gamerTagId, icon) {
24
- inv('0x5F57522BC1EB9D9D', gamerTagId, _h(icon));
22
+ static textBlockIsLoaded(textBlock) {
23
+ return inv('0xD0976CC34002DB57', textBlock);
25
24
  }
26
25
  /**
27
26
  * @param prompt
28
27
  * @returns
29
28
  */
30
- static uiPromptIsReleased(prompt) {
31
- return inv('0xAFC887BA7A7756D6', prompt, rai());
29
+ static uiPromptHasMashMode(prompt) {
30
+ return inv('0xCD072523791DDC1B', prompt);
32
31
  }
33
32
  /**
34
- * @param active
33
+ * @param p0
34
+ * @returns
35
35
  */
36
- static setFrontendActive(active) {
37
- inv('0xCE47C21C0687EBC2', active);
36
+ static N_0xD6BD313CFA41E57A(p0) {
37
+ return inv('0xD6BD313CFA41E57A', p0);
38
38
  }
39
39
  /**
40
- * @param name
41
- * @param p1
42
40
  * @returns
43
41
  */
44
- static registerNamedRendertarget(name, p1) {
45
- return inv('0x98AF2BB6F62BD588', name, p1, rai());
42
+ static isMultiplayerChatActive() {
43
+ return inv('0xBC19069D5FBB5C46', rai());
44
+ }
45
+ static disableFrontendThisFrame() {
46
+ inv('0x56CE42A528156A67');
46
47
  }
47
48
  /**
48
49
  * @param prompt
49
- * @param autoFillTimeMs
50
- * @param holdTimeMs
50
+ * @returns
51
51
  */
52
- static uiPromptSetHoldAutoFillWithDecayMode(prompt, autoFillTimeMs, holdTimeMs) {
53
- inv('0xA3F2149AA24F3D8E', prompt, autoFillTimeMs, holdTimeMs);
52
+ static uiPromptGetMashModeProgress(prompt) {
53
+ return inv('0x8A9585293863B8A5', prompt, raf());
54
54
  }
55
55
  /**
56
- * @param p0
57
- * @param p1
56
+ * @param groupId
57
+ * @param volume
58
+ * @param p2
59
+ * @param p3
60
+ * @param p4
61
+ * @param p5
58
62
  * @returns
59
63
  */
60
- static N_0xF1AD3DD218E6558A(p0, p1) {
61
- return inv('0xF1AD3DD218E6558A', p0, p1);
64
+ static N_0x8B55B324A9123F6B(groupId, volume, p2, p3, p4, p5) {
65
+ return inv('0x8B55B324A9123F6B', groupId, volume.handle, p2, p3, p4, p5);
62
66
  }
63
67
  /**
64
- * Used for controllers
65
- *
66
- * @param prompt
68
+ * @param entity
69
+ * @returns
70
+ */
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');
79
+ }
80
+ /**
81
+ * @param p0
67
82
  * @param p1
68
- * @param counterclockwise
83
+ * @returns
69
84
  */
70
- static uiPromptSetRotateMode(prompt, p1, counterclockwise) {
71
- inv('0x7ABE7095FB3D2581', prompt, f(p1), counterclockwise);
85
+ static uiPromptGetGroupIdForScenarioPoint(p0, p1) {
86
+ return inv('0xCB73D7521E7103F0', p0, p1, rai());
72
87
  }
73
88
  /**
74
- * Found types: GENERIC_PLAYER, DEADDROP, HOTPROPERTY, MINIGAMES
89
+ * nullsub, doesn't do anything
75
90
  *
76
91
  * @param gamerTagId
77
- * @param type
92
+ * @param allow
78
93
  */
79
- static setMpGamerTagType(gamerTagId, type) {
80
- inv('0x25B9C78A25105C35', gamerTagId, _h(type));
94
+ static setMpGamerTagUnkAllowLocalized(gamerTagId, allow) {
95
+ inv('0xEF7AB1A0E8C86170', gamerTagId, allow);
81
96
  }
82
97
  /**
83
- * @param prompt
84
- * @param action
85
- * @returns
98
+ * @param ped
86
99
  */
87
- static uiPromptSetControlAction(prompt, action) {
88
- return inv('0xB5352B7494A08258', prompt, _h(action));
100
+ static uiPromptSetPromptPriorityPreference(ped) {
101
+ inv('0x530A428705BE5DEF', ped.handle);
89
102
  }
90
103
  /**
91
- * https://github.com/femga/rdr3_discoveries/tree/master/graphics/HUD/hud_presets
92
- * Old name: _HIDE_HUD_COMPONENT
104
+ * @param textBlock
105
+ */
106
+ static textBlockDelete(textBlock) {
107
+ inv('0xAA03F130A637D923', textBlock);
108
+ }
109
+ /**
110
+ * Returns true when either Pause Menu, a Frontend Menu, Online Policies menu or Social Club menu is active.
93
111
  *
94
- * @param component
112
+ * @returns
95
113
  */
96
- static enableHudContext(component) {
97
- inv('0x4CC5F2FC1332577F', _h(component));
114
+ static isPauseMenuActive() {
115
+ return inv('0x535384D6067BA42E', rai());
98
116
  }
99
117
  /**
100
- * @param prompt
118
+ * @param controlAction
101
119
  * @returns
102
120
  */
103
- static uiPromptHasPressedTimedModeFailed(prompt) {
104
- return inv('0x1A17B9ECFF617562', prompt);
121
+ static uiPromptIsControlActionActive(controlAction) {
122
+ return inv('0x1BE19185B8AFE299', _h(controlAction));
105
123
  }
106
124
  /**
107
- * Removes the loading prompt at the bottom right of the screen.
125
+ * @param textBlock
126
+ * @returns
108
127
  */
109
- static busyspinnerOff() {
110
- inv('0x58F441B90EA84D06');
128
+ static textBlockIsStreamed(textBlock) {
129
+ return inv('0x3CF96E16265B7DC8', textBlock);
111
130
  }
112
131
  /**
113
- * @param prompt
114
- * @param pos
132
+ * @param worldX
133
+ * @param worldY
134
+ * @param worldZ
135
+ * @returns screenX; screenY
115
136
  */
116
- static uiPromptContextSetPoint(prompt, pos) {
117
- inv('0xAE84C5EE2C384FB3', prompt, f(pos.x), f(pos.y), f(pos.z));
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]];
118
140
  }
119
141
  /**
120
- * @param align
142
+ * @param prompt
143
+ * @returns
121
144
  */
122
- static setTextCentre(align) {
123
- inv('0xBE5261939FBECB8C', align);
145
+ static uiPromptHasHoldMode(prompt) {
146
+ return inv('0xB60C9F9ED47ABB76', prompt);
124
147
  }
125
148
  /**
126
149
  * @param p0
@@ -243,479 +266,366 @@ export class Hud {
243
266
  }
244
267
  /**
245
268
  * @param p0
246
- * @param p1
247
269
  * @returns
248
270
  */
249
- static uiRequestScene(p0, p1) {
250
- return inv('0xB6857100F8FD433C', p0, p1);
271
+ static journalGetGrimeAtIndex(p0) {
272
+ return inv('0xCB5945E1B855852F', p0);
251
273
  }
252
274
  /**
253
- * @param entity
254
- * @param text
255
- * @returns
275
+ * @param prompt
276
+ * @param p1
256
277
  */
257
- static createMpGamerTagOnEntity(entity, text) {
258
- return inv('0xE961BF23EAB76B12', entity.handle, text, rai());
278
+ static uiPromptRemoveGroup(prompt, p1) {
279
+ inv('0x4E52C800A28F7BE8', prompt, p1);
259
280
  }
260
281
  /**
261
- * @param p0
262
- * @returns
282
+ * This native does nothing since build 1436, use _BG_SET_TEXT_COLOR (0x16FA5CE47F184F1E) instead.
283
+ *
284
+ * @param r
285
+ * @param g
286
+ * @param b
287
+ * @param a
263
288
  */
264
- static journalCanWriteEntry(p0) {
265
- return inv('0xCF782691D91F270E', p0);
289
+ static setTextColor(r, g, b, a) {
290
+ inv('0x50A41AD966910F03', r, g, b, a);
266
291
  }
267
292
  /**
268
- * @param prompt
269
- * @param p1
293
+ * @returns
270
294
  */
271
- static uiPromptSetManualResolved(prompt, p1) {
272
- inv('0xA520C7B05FA4EB2A', prompt, p1);
295
+ static isRadarHiddenByScript() {
296
+ return inv('0x66F35DD9D2B58579');
297
+ }
298
+ static hideHudAndRadarThisFrame() {
299
+ inv('0x36CDD81627A6FCD2');
273
300
  }
274
301
  /**
275
- * @param inputHash
276
- * @param labelName
277
- * @param p2
278
- * @param p3
279
- * @param p4
280
- * @param p5
302
+ * @param ped
303
+ * @param username
304
+ * @param pointedClanTag
305
+ * @param isRockstarClan
306
+ * @param clanTag
307
+ * @param clanFlag
281
308
  * @returns
282
309
  */
283
- static uiPromptCreate(inputHash, labelName, p2, p3, p4, p5) {
284
- return inv('0x29FA7910726C3889', _h(inputHash), labelName, p2, p3, p4, p5, rai());
310
+ static createFakeMpGamerTag(ped, username, pointedClanTag, isRockstarClan, clanTag, clanFlag) {
311
+ return inv('0x53CB4B502E1C57EA', ped.handle, username, pointedClanTag, isRockstarClan, clanTag, clanFlag, rai());
285
312
  }
286
313
  /**
287
314
  * @param prompt
288
- * @param p1
315
+ * @returns
289
316
  */
290
- static uiPromptSetSpinnerSpeed(prompt, p1) {
291
- inv('0xAC6586A7FDCD4B68', prompt, p1);
317
+ static uiPromptHasHoldAutoFillMode(prompt) {
318
+ return inv('0x8010BEBD0D5ED5BC', prompt, rai());
319
+ }
320
+ /**
321
+ * string1 is the only string used in the scripts, the others are null (0)
322
+ *
323
+ * @param active
324
+ * @param string1
325
+ * @param string2
326
+ * @param string3
327
+ * @param string4
328
+ */
329
+ static setCurrentUgcMissionDescription(active, string1, string2, string3, string4) {
330
+ inv('0xCE0D2F5586627CCE', active, string1, string2, string3, string4);
292
331
  }
293
332
  /**
294
333
  * @param name
295
334
  * @returns
296
335
  */
297
- static isNamedRendertargetRegistered(name) {
298
- return inv('0x3EE32F7964C40FE6', name, rai());
336
+ static getNamedRendertargetRenderId(name) {
337
+ return inv('0xB6762A85EE29AA60', name, rai());
299
338
  }
300
339
  /**
301
340
  * @param p0
302
- * @param p1
303
341
  */
304
- static N_0x052D4AC0922AF91A(p0, p1) {
305
- inv('0x052D4AC0922AF91A', p0, p1);
342
+ static uiPromptDisablePromptTypeThisFrame(p0) {
343
+ inv('0xFC094EF26DD153FA', p0);
306
344
  }
307
345
  /**
308
- * @param prompt
346
+ * @param entity
347
+ * @param p1
348
+ * @param p2
349
+ * @param p3
350
+ * @param p4
351
+ * @param name
352
+ * @param p6
353
+ * @returns
309
354
  */
310
- static uiPromptDelete(prompt) {
311
- inv('0x00EDE88D4D13CF59', prompt);
355
+ static uiPromptSetAmbientGroupThisFrame(entity, p1, p2, p3, p4, name, p6) {
356
+ return inv('0x315C81D760609108', entity.handle, f(p1), p2, p3, _h(p4), name, p6);
312
357
  }
313
358
  /**
314
- * Gets a string literal from a label name. Old name: _GET_LABEL_TEXT
315
- *
316
- * @param labelName
359
+ * @param prompt
317
360
  * @returns
318
361
  */
319
- static getFilenameForAudioConversation(labelName) {
320
- return inv('0xCFEDCCAD3C5BA90D', labelName, ras());
321
- }
322
- static N_0x5651516D947ABC53() {
323
- inv('0x5651516D947ABC53');
362
+ static uiPromptIsHoldModeRunning(prompt) {
363
+ return inv('0xC7D70EAEF92EFF48', prompt, rai());
324
364
  }
325
365
  /**
326
- * @param renderId
366
+ * @param prompt
367
+ * @returns Returns `true` if the mash mode has just been pressed.
327
368
  */
328
- static setTextRenderId(renderId) {
329
- inv('0xE550CDE128D56757', renderId);
369
+ static uiPromptHasMashModeJustPressed(prompt) {
370
+ return inv('0xB0E8599243B3F568', prompt, rai());
330
371
  }
331
372
  /**
332
- * @param distance
333
- * @param r
334
- * @param g
335
- * @param b
336
- * @param a
373
+ * @param prompt
374
+ * @param autoFillTimeMs
375
+ * @param holdTimeMs
337
376
  */
338
- static setTextDropshadow(distance, r, g, b, a) {
339
- inv('0x1BE39DBAA7263CA5', distance, r, g, b, a);
377
+ static uiPromptSetHoldAutoFillMode(prompt, autoFillTimeMs, holdTimeMs) {
378
+ inv('0x3CE932E737C145D6', prompt, autoFillTimeMs, holdTimeMs);
340
379
  }
341
380
  /**
342
- * @param label
381
+ * @param prompt
343
382
  * @returns
344
383
  */
345
- static getLabelText2(label) {
346
- return inv('0x3429670F9B9EF2D3', label, ras());
384
+ static uiPromptHasHoldModeCompleted(prompt) {
385
+ return inv('0xE0F65F0640EF0617', prompt, rai());
347
386
  }
348
387
  /**
349
- * @returns
388
+ * id is the return value from 0xD9459157EB22C895.
389
+ *
390
+ * @param id
350
391
  */
351
- static journalGetEntryCount() {
352
- return inv('0xE65B5DE53351BE22');
353
- }
354
- static journalClearAllProgress() {
355
- inv('0xF402978DE6F88D6E');
392
+ static uiPromptClearHorizontalOrientation(id) {
393
+ inv('0x6095358C4142932A', id);
356
394
  }
357
395
  /**
358
396
  * @param p0
397
+ * @param p1
359
398
  * @returns
360
399
  */
361
- static N_0xD6BD313CFA41E57A(p0) {
362
- return inv('0xD6BD313CFA41E57A', p0);
400
+ static uiRequestScene(p0, p1) {
401
+ return inv('0xB6857100F8FD433C', p0, p1);
363
402
  }
364
403
  /**
404
+ * @param entity
405
+ * @param text
365
406
  * @returns
366
407
  */
367
- static isMultiplayerChatActive() {
368
- return inv('0xBC19069D5FBB5C46', rai());
408
+ static createMpGamerTagOnEntity(entity, text) {
409
+ return inv('0xE961BF23EAB76B12', entity.handle, text, rai());
369
410
  }
370
- static disableFrontendThisFrame() {
371
- inv('0x56CE42A528156A67');
411
+ /**
412
+ * @param p0
413
+ * @returns
414
+ */
415
+ static journalCanWriteEntry(p0) {
416
+ return inv('0xCF782691D91F270E', p0);
372
417
  }
373
418
  /**
374
419
  * @param prompt
375
- * @returns
420
+ * @param p1
376
421
  */
377
- static uiPromptGetMashModeProgress(prompt) {
378
- return inv('0x8A9585293863B8A5', prompt, raf());
422
+ static uiPromptSetManualResolved(prompt, p1) {
423
+ inv('0xA520C7B05FA4EB2A', prompt, p1);
379
424
  }
380
425
  /**
381
- * @param groupId
382
- * @param volume
426
+ * @param inputHash
427
+ * @param labelName
383
428
  * @param p2
384
429
  * @param p3
385
430
  * @param p4
386
431
  * @param p5
387
432
  * @returns
388
433
  */
389
- static N_0x8B55B324A9123F6B(groupId, volume, p2, p3, p4, p5) {
390
- return inv('0x8B55B324A9123F6B', groupId, volume.handle, p2, p3, p4, p5);
434
+ static uiPromptCreate(inputHash, labelName, p2, p3, p4, p5) {
435
+ return inv('0x29FA7910726C3889', _h(inputHash), labelName, p2, p3, p4, p5, rai());
391
436
  }
392
437
  /**
393
- * @param entity
394
- * @returns
438
+ * @param prompt
439
+ * @param p1
395
440
  */
396
- static uiPromptGetGroupIdForTargetEntity(entity) {
397
- return inv('0xB796970BD125FCE8', entity.handle, rai());
441
+ static uiPromptSetSpinnerSpeed(prompt, p1) {
442
+ inv('0xAC6586A7FDCD4B68', prompt, p1);
398
443
  }
399
444
  /**
400
- * Old name: _ALLOW_PAUSE_MENU_WHEN_DEAD_THIS_FRAME
445
+ * @param name
446
+ * @returns
401
447
  */
402
- static allowPauseWhenNotInStateOfPlayThisFrame() {
403
- inv('0x30996422DF1EE561');
448
+ static isNamedRendertargetRegistered(name) {
449
+ return inv('0x3EE32F7964C40FE6', name, rai());
404
450
  }
405
451
  /**
406
452
  * @param p0
407
453
  * @param p1
408
- * @returns
409
- */
410
- static uiPromptGetGroupIdForScenarioPoint(p0, p1) {
411
- return inv('0xCB73D7521E7103F0', p0, p1, rai());
412
- }
413
- /**
414
- * nullsub, doesn't do anything
415
- *
416
- * @param gamerTagId
417
- * @param allow
418
454
  */
419
- static setMpGamerTagUnkAllowLocalized(gamerTagId, allow) {
420
- inv('0xEF7AB1A0E8C86170', gamerTagId, allow);
421
- }
422
- /**
423
- * @param ped
424
- */
425
- static uiPromptSetPromptPriorityPreference(ped) {
426
- inv('0x530A428705BE5DEF', ped.handle);
455
+ static N_0x052D4AC0922AF91A(p0, p1) {
456
+ inv('0x052D4AC0922AF91A', p0, p1);
427
457
  }
428
458
  /**
429
- * @param textBlock
459
+ * @param prompt
430
460
  */
431
- static textBlockDelete(textBlock) {
432
- inv('0xAA03F130A637D923', textBlock);
461
+ static uiPromptDelete(prompt) {
462
+ inv('0x00EDE88D4D13CF59', prompt);
433
463
  }
434
464
  /**
435
- * Returns true when either Pause Menu, a Frontend Menu, Online Policies menu or Social Club menu is active.
465
+ * Gets a string literal from a label name. Old name: _GET_LABEL_TEXT
436
466
  *
467
+ * @param labelName
437
468
  * @returns
438
469
  */
439
- static isPauseMenuActive() {
440
- return inv('0x535384D6067BA42E', rai());
470
+ static getFilenameForAudioConversation(labelName) {
471
+ return inv('0xCFEDCCAD3C5BA90D', labelName, ras());
441
472
  }
442
- /**
443
- * @param controlAction
444
- * @returns
445
- */
446
- static uiPromptIsControlActionActive(controlAction) {
447
- return inv('0x1BE19185B8AFE299', _h(controlAction));
473
+ static N_0x5651516D947ABC53() {
474
+ inv('0x5651516D947ABC53');
448
475
  }
449
476
  /**
450
- * @param textBlock
451
- * @returns
477
+ * @param renderId
452
478
  */
453
- static textBlockIsStreamed(textBlock) {
454
- return inv('0x3CF96E16265B7DC8', textBlock);
479
+ static setTextRenderId(renderId) {
480
+ inv('0xE550CDE128D56757', renderId);
455
481
  }
456
482
  /**
457
- * @param worldX
458
- * @param worldY
459
- * @param worldZ
460
- * @returns screenX; screenY
483
+ * @param distance
484
+ * @param r
485
+ * @param g
486
+ * @param b
487
+ * @param a
461
488
  */
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]];
489
+ static setTextDropshadow(distance, r, g, b, a) {
490
+ inv('0x1BE39DBAA7263CA5', distance, r, g, b, a);
465
491
  }
466
492
  /**
467
- * @param prompt
493
+ * @param label
468
494
  * @returns
469
495
  */
470
- static uiPromptHasHoldMode(prompt) {
471
- return inv('0xB60C9F9ED47ABB76', prompt);
472
- }
473
- /**
474
- * @param prompt
475
- * @param p1
476
- */
477
- static N_0x53CE46C01A089DA1(prompt, p1) {
478
- inv('0x53CE46C01A089DA1', prompt, p1);
496
+ static getLabelText2(label) {
497
+ return inv('0x3429670F9B9EF2D3', label, ras());
479
498
  }
480
499
  /**
481
- * @param p0
482
500
  * @returns
483
501
  */
484
- static uiGetSceneUiobject(p0) {
485
- return inv('0xBE1067CD1C9570F6', p0);
502
+ static journalGetEntryCount() {
503
+ return inv('0xE65B5DE53351BE22');
486
504
  }
487
- /**
488
- * @param p0
489
- * @param p1
490
- */
491
- static N_0x958278B97C4AFFD8(p0, p1) {
492
- inv('0x958278B97C4AFFD8', p0, p1);
505
+ static journalClearAllProgress() {
506
+ inv('0xF402978DE6F88D6E');
493
507
  }
494
508
  /**
495
509
  * @param prompt
496
- * @returns
510
+ * @param text
497
511
  */
498
- static uiPromptGetProgress(prompt) {
499
- return inv('0x81801291806DBC50', prompt, raf());
512
+ static uiPromptSetText(prompt, text) {
513
+ inv('0x5DD02A8318420DD7', prompt, text);
500
514
  }
501
515
  /**
502
516
  * @param prompt
503
517
  * @returns
504
518
  */
505
- static uiPromptIsPressed(prompt) {
506
- return inv('0x21E60E230086697F', prompt, rai());
519
+ static uiPromptIsJustReleased(prompt) {
520
+ return inv('0x635CC82FA297A827', prompt, rai());
507
521
  }
508
522
  /**
509
- * Note: you must use VAR_STRING. Byte code very similar to TEXT_COMMAND_DISPLAY_TEXT in V
510
- * Old name: _GET_TEXT_SUBSTRING
523
+ * Found icons: https://pastebin.com/xx6rEgiG
511
524
  *
512
- * @param text
513
- * @param position
514
- * @param length
515
- * @returns
516
- */
517
- static getCharacterFromAudioConversationFilename(text, position, length) {
518
- return inv('0x9D7E12EC6A1EE4E5', text, position, length, ras());
519
- }
520
- /**
521
- * @param p0
522
- * @param p1
523
- */
524
- static N_0x9D37EB5003E0F2CF(p0, p1) {
525
- inv('0x9D37EB5003E0F2CF', p0, p1);
526
- }
527
- static uiPromptClearPromptPriorityPreference() {
528
- inv('0x51259AE5C72D4A1B');
529
- }
530
- /**
531
- * @param prompt
532
- * @param depletionTimeMs
533
- */
534
- static uiPromptSetPressedTimedMode(prompt, depletionTimeMs) {
535
- inv('0x1473D3AF51D54276', prompt, depletionTimeMs);
536
- }
537
- /**
538
- * @param prompt
539
- * @param toggle
525
+ * @param gamerTagId
526
+ * @param icon
540
527
  */
541
- static uiPromptSetEnabled(prompt, toggle) {
542
- inv('0x8A0FB4D03A630D21', prompt, toggle);
543
- }
544
- static uiPromptFilterClear() {
545
- inv('0x6A2F820452017EA2');
528
+ static setMpGamerTagTopIcon(gamerTagId, icon) {
529
+ inv('0x5F57522BC1EB9D9D', gamerTagId, _h(icon));
546
530
  }
547
531
  /**
548
- * tabIndex: specifies tab of prompt
549
- *
550
532
  * @param prompt
551
- * @param groupId
552
- * @param tabIndex
553
- */
554
- static uiPromptSetGroup(prompt, groupId, tabIndex) {
555
- inv('0x2F11D3A254169EA4', prompt, groupId, tabIndex);
556
- }
557
- /**
558
- * @param text
559
- */
560
- static busyspinnerSetText(text) {
561
- inv('0x7F78CD75CC4539E4', text);
562
- }
563
- /**
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
- *
567
533
  * @returns
568
534
  */
569
- static weaponWheelGetSelectedItemHash() {
570
- return inv('0x9C409BBC492CB5B1');
571
- }
572
- /**
573
- * @returns
574
- */
575
- static isRadarPreferenceSwitchedOn() {
576
- return inv('0x81E47F0EE1F2B21E', rai());
577
- }
578
- static clearAllHelpMessages() {
579
- inv('0x916ED8321F087059');
580
- }
581
- /**
582
- * @param modelHash
583
- */
584
- static linkNamedRendertarget(modelHash) {
585
- inv('0x2F506B8556242DDB', _h(modelHash));
586
- }
587
- /**
588
- * Returns the label text given the hash. Old name: _GET_LABEL_TEXT_BY_HASH
589
- *
590
- * @param labelHash
591
- * @returns
592
- */
593
- static getStringFromHashKey(labelHash) {
594
- return inv('0xBD5DD5EAE2B6CE14', _h(labelHash), ras());
535
+ static uiPromptIsReleased(prompt) {
536
+ return inv('0xAFC887BA7A7756D6', prompt, rai());
595
537
  }
596
538
  /**
597
- * @param textBlock
598
- * @returns
539
+ * @param active
599
540
  */
600
- static textBlockIsLoaded(textBlock) {
601
- return inv('0xD0976CC34002DB57', textBlock);
541
+ static setFrontendActive(active) {
542
+ inv('0xCE47C21C0687EBC2', active);
602
543
  }
603
544
  /**
604
- * @param prompt
545
+ * @param name
546
+ * @param p1
605
547
  * @returns
606
548
  */
607
- static uiPromptHasMashMode(prompt) {
608
- return inv('0xCD072523791DDC1B', prompt);
609
- }
610
- /**
611
- * @param gamerTagId
612
- */
613
- static mpGamerTagDisableReviveTopIcon(gamerTagId) {
614
- inv('0x1F9A64C2804B3471', gamerTagId);
549
+ static registerNamedRendertarget(name, p1) {
550
+ return inv('0x98AF2BB6F62BD588', name, p1, rai());
615
551
  }
616
552
  /**
617
- * standard (prompt not held) rate: 0.035f
618
- * fast (prompt held) rate: 0.015f
619
- * punitive (been hit) rate: 0.14f
620
- *
621
553
  * @param prompt
622
- * @param speed
623
- */
624
- static uiPromptSetMashManualModeDecaySpeed(prompt, speed) {
625
- inv('0x7D393C247FB9B431', prompt, f(speed));
626
- }
627
- /**
628
- * @param hash
629
- * @returns
554
+ * @param autoFillTimeMs
555
+ * @param holdTimeMs
630
556
  */
631
- static uiPromptDoesAmbientGroupExist(hash) {
632
- return inv('0xEB550B927B34A1BB', _h(hash), rai());
557
+ static uiPromptSetHoldAutoFillWithDecayMode(prompt, autoFillTimeMs, holdTimeMs) {
558
+ inv('0xA3F2149AA24F3D8E', prompt, autoFillTimeMs, holdTimeMs);
633
559
  }
634
560
  /**
635
561
  * @param p0
562
+ * @param p1
636
563
  * @returns
637
564
  */
638
- static N_0x7EC0D68233E391AC(p0) {
639
- return inv('0x7EC0D68233E391AC', p0, rai());
640
- }
641
- /**
642
- * nullsub, doesn't do anything
643
- */
644
- static N_0xBFFF81E12A745A5F() {
645
- inv('0xBFFF81E12A745A5F');
646
- }
647
- /**
648
- * @param uiscene
649
- */
650
- static N_0xF1E6979C0B779985(uiscene) {
651
- inv('0xF1E6979C0B779985', uiscene);
565
+ static N_0xF1AD3DD218E6558A(p0, p1) {
566
+ return inv('0xF1AD3DD218E6558A', p0, p1);
652
567
  }
653
568
  /**
654
- * nullsub, this native does nothing since build 1436, use _BG_DISPLAY_TEXT instead.
569
+ * Used for controllers
655
570
  *
656
- * @param text
657
- * @param xPos
658
- * @param yPos
659
- */
660
- static displayText(text, xPos, yPos) {
661
- inv('0xD79334A4BB99BAD1', text, f(xPos), f(yPos));
662
- }
663
- /**
664
571
  * @param prompt
665
- * @returns
572
+ * @param p1
573
+ * @param counterclockwise
666
574
  */
667
- static uiPromptIsJustPressed(prompt) {
668
- return inv('0x2787CC611D3FACC5', prompt, rai());
575
+ static uiPromptSetRotateMode(prompt, p1, counterclockwise) {
576
+ inv('0x7ABE7095FB3D2581', prompt, f(p1), counterclockwise);
669
577
  }
670
578
  /**
579
+ * Found types: GENERIC_PLAYER, DEADDROP, HOTPROPERTY, MINIGAMES
580
+ *
671
581
  * @param gamerTagId
672
- * @param text
582
+ * @param type
673
583
  */
674
- static setMpGamerTagNamePosse(gamerTagId, text) {
675
- inv('0x1EA716E0628A6F44', gamerTagId, text);
584
+ static setMpGamerTagType(gamerTagId, type) {
585
+ inv('0x25B9C78A25105C35', gamerTagId, _h(type));
676
586
  }
677
587
  /**
588
+ * @param prompt
589
+ * @param action
678
590
  * @returns
679
591
  */
680
- static isSubtitlePreferenceSwitchedOn() {
681
- return inv('0x7C4AC9573587F2DF', rai());
592
+ static uiPromptSetControlAction(prompt, action) {
593
+ return inv('0xB5352B7494A08258', prompt, _h(action));
682
594
  }
683
595
  /**
684
- * @param prompt
685
- * @returns
596
+ * https://github.com/femga/rdr3_discoveries/tree/master/graphics/HUD/hud_presets
597
+ * Old name: _HIDE_HUD_COMPONENT
598
+ *
599
+ * @param component
686
600
  */
687
- static uiPromptIsActive(prompt) {
688
- return inv('0x546E342E01DE71CF', prompt, rai());
601
+ static enableHudContext(component) {
602
+ inv('0x4CC5F2FC1332577F', _h(component));
689
603
  }
690
604
  /**
691
605
  * @param prompt
692
- * @param mashes
606
+ * @returns
693
607
  */
694
- static uiPromptSetMashMode(prompt, mashes) {
695
- inv('0xDF6423BF071C7F71', prompt, mashes);
696
- }
697
- static hideHudThisFrame() {
698
- inv('0xBF4F34A85CA2970D');
608
+ static uiPromptHasPressedTimedModeFailed(prompt) {
609
+ return inv('0x1A17B9ECFF617562', prompt);
699
610
  }
700
611
  /**
701
- * @param prompt
702
- * @param releaseMode
612
+ * Removes the loading prompt at the bottom right of the screen.
703
613
  */
704
- static uiPromptSetStandardMode(prompt, releaseMode) {
705
- inv('0xCC6656799977741B', prompt, releaseMode);
614
+ static busyspinnerOff() {
615
+ inv('0x58F441B90EA84D06');
706
616
  }
707
617
  /**
708
- * @param hash
709
- * @returns
618
+ * @param prompt
619
+ * @param pos
710
620
  */
711
- static uiPromptGetGroupActivePage(hash) {
712
- return inv('0xC1FCC36C3F7286C8', _h(hash), rai());
621
+ static uiPromptContextSetPoint(prompt, pos) {
622
+ inv('0xAE84C5EE2C384FB3', prompt, f(pos.x), f(pos.y), f(pos.z));
713
623
  }
714
624
  /**
715
- * Enables reduced time scale while menus such as weapon wheel and satchel are open.
625
+ * @param align
716
626
  */
717
- static enableReducedMenuTimeScale() {
718
- inv('0x26F6BBEA2CE3E3DC');
627
+ static setTextCentre(align) {
628
+ inv('0xBE5261939FBECB8C', align);
719
629
  }
720
630
  /**
721
631
  * @param player
@@ -832,6 +742,114 @@ export class Hud {
832
742
  static forceCloseTextInputBox() {
833
743
  inv('0xFBBF5943E4C2C992');
834
744
  }
745
+ /**
746
+ * @param prompt
747
+ * @param p1
748
+ */
749
+ static N_0x53CE46C01A089DA1(prompt, p1) {
750
+ inv('0x53CE46C01A089DA1', prompt, p1);
751
+ }
752
+ /**
753
+ * @param p0
754
+ * @returns
755
+ */
756
+ static uiGetSceneUiobject(p0) {
757
+ return inv('0xBE1067CD1C9570F6', p0);
758
+ }
759
+ /**
760
+ * @param p0
761
+ * @param p1
762
+ */
763
+ static N_0x958278B97C4AFFD8(p0, p1) {
764
+ inv('0x958278B97C4AFFD8', p0, p1);
765
+ }
766
+ /**
767
+ * @param prompt
768
+ * @returns
769
+ */
770
+ static uiPromptGetProgress(prompt) {
771
+ return inv('0x81801291806DBC50', prompt, raf());
772
+ }
773
+ /**
774
+ * @param prompt
775
+ * @returns
776
+ */
777
+ static uiPromptIsPressed(prompt) {
778
+ return inv('0x21E60E230086697F', prompt, rai());
779
+ }
780
+ /**
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
+ * @returns
788
+ */
789
+ static getCharacterFromAudioConversationFilename(text, position, length) {
790
+ return inv('0x9D7E12EC6A1EE4E5', text, position, length, ras());
791
+ }
792
+ /**
793
+ * @param p0
794
+ * @param p1
795
+ */
796
+ static N_0x9D37EB5003E0F2CF(p0, p1) {
797
+ inv('0x9D37EB5003E0F2CF', p0, p1);
798
+ }
799
+ static uiPromptClearPromptPriorityPreference() {
800
+ inv('0x51259AE5C72D4A1B');
801
+ }
802
+ /**
803
+ * @param prompt
804
+ * @param depletionTimeMs
805
+ */
806
+ static uiPromptSetPressedTimedMode(prompt, depletionTimeMs) {
807
+ inv('0x1473D3AF51D54276', prompt, depletionTimeMs);
808
+ }
809
+ /**
810
+ * @param prompt
811
+ * @param toggle
812
+ */
813
+ static uiPromptSetEnabled(prompt, toggle) {
814
+ inv('0x8A0FB4D03A630D21', prompt, toggle);
815
+ }
816
+ static uiPromptFilterClear() {
817
+ inv('0x6A2F820452017EA2');
818
+ }
819
+ /**
820
+ * tabIndex: specifies tab of prompt
821
+ *
822
+ * @param prompt
823
+ * @param groupId
824
+ * @param tabIndex
825
+ */
826
+ static uiPromptSetGroup(prompt, groupId, tabIndex) {
827
+ inv('0x2F11D3A254169EA4', prompt, groupId, tabIndex);
828
+ }
829
+ /**
830
+ * @param text
831
+ */
832
+ static busyspinnerSetText(text) {
833
+ inv('0x7F78CD75CC4539E4', text);
834
+ }
835
+ /**
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
+ *
839
+ * @returns
840
+ */
841
+ static weaponWheelGetSelectedItemHash() {
842
+ return inv('0x9C409BBC492CB5B1');
843
+ }
844
+ /**
845
+ * @returns
846
+ */
847
+ static isRadarPreferenceSwitchedOn() {
848
+ return inv('0x81E47F0EE1F2B21E', rai());
849
+ }
850
+ static clearAllHelpMessages() {
851
+ inv('0x916ED8321F087059');
852
+ }
835
853
  /**
836
854
  * For startProgress, 0.0f - 1.0f is a percentage value, so 0.5f = 50% progress. Range: 0.0f - 1.0f
837
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.
@@ -939,143 +957,25 @@ export class Hud {
939
957
  return inv('0x502E1591A504F843', gamerTagId, entity.handle);
940
958
  }
941
959
  /**
942
- * @param gamerTagId
943
- * @param string
944
- */
945
- static setMpGamerTagBigText(gamerTagId, string) {
946
- inv('0xA0D7CE5F83259663', gamerTagId, string);
947
- }
948
- /**
949
- * @param prompt
950
- * @param radius
951
- */
952
- static uiPromptContextSetRadius(prompt, radius) {
953
- inv('0x0C718001B77CA468', prompt, f(radius));
954
- }
955
- /**
956
- * @param prompt
957
- * @param toggle
958
- */
959
- static uiPromptSetVisible(prompt, toggle) {
960
- inv('0x71215ACCFDE075EE', prompt, toggle);
961
- }
962
- /**
963
- * @param prompt
964
- * @returns
965
- */
966
- static uiPromptHasMashModeFailed(prompt) {
967
- return inv('0x25B18E530CF39D6F', prompt, rai());
968
- }
969
- /**
970
- * @param prompt
971
- * @returns
972
- */
973
- static uiPromptHasManualMashMode(prompt) {
974
- return inv('0xA6C6A4ADB3BAC409', prompt);
975
- }
976
- /**
977
- * @param prompt
978
- * @returns
979
- */
980
- static uiPromptHasMashModeCompleted(prompt) {
981
- return inv('0x845CE958416DC473', prompt, rai());
982
- }
983
- /**
984
- * @param prompt
985
- * @param p1
986
- */
987
- static uiPromptSetSpinnerPosition(prompt, p1) {
988
- inv('0x832CB510DE546282', prompt, p1);
989
- }
990
- /**
991
- * @param p0
992
- */
993
- static journalWriteEntry(p0) {
994
- inv('0x6DFDD665E416B093', p0);
995
- }
996
- /**
997
- * @param state
998
- */
999
- static showHorseCores(state) {
1000
- inv('0xD4EE21B7CC7FD350', state);
1001
- }
1002
- /**
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
- * @param p0
1007
- * @returns
1008
- */
1009
- static getNearHorse(p0) {
1010
- return inv('0x0501D52D24EA8934', p0);
1011
- }
1012
- /**
1013
- * @param prompt
1014
- */
1015
- static uiPromptRestartModes(prompt) {
1016
- inv('0xDC6C55DFA2C24EE5', prompt);
1017
- }
1018
- /**
1019
- * @param prompt
1020
- * @param mashes
1021
- * @param p2
1022
- * @param p3
1023
- */
1024
- static uiPromptSetMashWithResistanceMode(prompt, mashes, p2, p3) {
1025
- inv('0xCD1BDFF15EFA79F5', prompt, mashes, f(p2), f(p3));
1026
- }
1027
- /**
1028
- * @param p0
1029
- * @param p1
1030
- * @param p2
1031
- * @returns
1032
- */
1033
- static N_0x806862E5D266CF38(p0, p1, p2) {
1034
- return inv('0x806862E5D266CF38', p0, p1, p2);
1035
- }
1036
- /**
1037
- * @param gamerTagId
1038
- * @returns
1039
- */
1040
- static isMpGamerTagActive(gamerTagId) {
1041
- return inv('0x6E1C31E14C7A5F97', gamerTagId, rai());
1042
- }
1043
- /**
1044
- * Hashes: SHORT_TIMED_EVENT_MP, SHORT_TIMED_EVENT, MEDIUM_TIMED_EVENT, LONG_TIMED_EVENT, RUSTLING_CALM_TIMING, PLAYER_FOCUS_TIMING, PLAYER_REACTION_TIMING
1045
- *
1046
- * @param prompt
1047
- * @param timedEventHash
1048
- */
1049
- static uiPromptSetStandardizedHoldMode(prompt, timedEventHash) {
1050
- inv('0x74C7D7B72ED0D3CF', prompt, _h(timedEventHash));
1051
- }
1052
- /**
1053
- * @param modelHash
1054
- * @returns
1055
- */
1056
- static isNamedRendertargetLinked(modelHash) {
1057
- return inv('0x707032835FF09AE7', _h(modelHash), rai());
1058
- }
1059
- /**
1060
- * @param prompt
1061
- * @returns
960
+ * @param gamerTagId
961
+ * @param string
1062
962
  */
1063
- static uiPromptWasBeatModePressedInTimeWindow(prompt) {
1064
- return inv('0x1FE4788AB1430C55', prompt, rai());
963
+ static setMpGamerTagBigText(gamerTagId, string) {
964
+ inv('0xA0D7CE5F83259663', gamerTagId, string);
1065
965
  }
1066
966
  /**
1067
- * @returns
967
+ * @param prompt
968
+ * @param radius
1068
969
  */
1069
- static isHudHidden() {
1070
- return inv('0x71B72B478F8189DC', rai());
970
+ static uiPromptContextSetRadius(prompt, radius) {
971
+ inv('0x0C718001B77CA468', prompt, f(radius));
1071
972
  }
1072
973
  /**
1073
- * @param p0
1074
- * @param p1
1075
- * @returns
974
+ * @param prompt
975
+ * @param toggle
1076
976
  */
1077
- static N_0x100157D6D7FE32CA(p0, p1) {
1078
- return inv('0x100157D6D7FE32CA', p0, p1);
977
+ static uiPromptSetVisible(prompt, toggle) {
978
+ inv('0x71215ACCFDE075EE', prompt, toggle);
1079
979
  }
1080
980
  /**
1081
981
  * @param p0
@@ -1206,133 +1106,233 @@ export class Hud {
1206
1106
  static enableHudContextThisFrame(component) {
1207
1107
  inv('0xC9CAEAEEC1256E54', _h(component));
1208
1108
  }
1109
+ /**
1110
+ * @param gamerTagId
1111
+ */
1112
+ static mpGamerTagDisableReviveTopIcon(gamerTagId) {
1113
+ inv('0x1F9A64C2804B3471', gamerTagId);
1114
+ }
1115
+ /**
1116
+ * standard (prompt not held) rate: 0.035f
1117
+ * fast (prompt held) rate: 0.015f
1118
+ * punitive (been hit) rate: 0.14f
1119
+ *
1120
+ * @param prompt
1121
+ * @param speed
1122
+ */
1123
+ static uiPromptSetMashManualModeDecaySpeed(prompt, speed) {
1124
+ inv('0x7D393C247FB9B431', prompt, f(speed));
1125
+ }
1126
+ /**
1127
+ * @param hash
1128
+ * @returns
1129
+ */
1130
+ static uiPromptDoesAmbientGroupExist(hash) {
1131
+ return inv('0xEB550B927B34A1BB', _h(hash), rai());
1132
+ }
1209
1133
  /**
1210
1134
  * @param p0
1211
1135
  * @returns
1212
1136
  */
1213
- static journalGetGrimeAtIndex(p0) {
1214
- return inv('0xCB5945E1B855852F', p0);
1137
+ static N_0x7EC0D68233E391AC(p0) {
1138
+ return inv('0x7EC0D68233E391AC', p0, rai());
1215
1139
  }
1216
1140
  /**
1217
- * @param prompt
1218
- * @param p1
1141
+ * nullsub, doesn't do anything
1219
1142
  */
1220
- static uiPromptRemoveGroup(prompt, p1) {
1221
- inv('0x4E52C800A28F7BE8', prompt, p1);
1143
+ static N_0xBFFF81E12A745A5F() {
1144
+ inv('0xBFFF81E12A745A5F');
1222
1145
  }
1223
1146
  /**
1224
- * This native does nothing since build 1436, use _BG_SET_TEXT_COLOR (0x16FA5CE47F184F1E) instead.
1147
+ * @param uiscene
1148
+ */
1149
+ static N_0xF1E6979C0B779985(uiscene) {
1150
+ inv('0xF1E6979C0B779985', uiscene);
1151
+ }
1152
+ /**
1153
+ * nullsub, this native does nothing since build 1436, use _BG_DISPLAY_TEXT instead.
1225
1154
  *
1226
- * @param r
1227
- * @param g
1228
- * @param b
1229
- * @param a
1155
+ * @param text
1156
+ * @param xPos
1157
+ * @param yPos
1230
1158
  */
1231
- static setTextColor(r, g, b, a) {
1232
- inv('0x50A41AD966910F03', r, g, b, a);
1159
+ static displayText(text, xPos, yPos) {
1160
+ inv('0xD79334A4BB99BAD1', text, f(xPos), f(yPos));
1233
1161
  }
1234
1162
  /**
1163
+ * @param prompt
1235
1164
  * @returns
1236
1165
  */
1237
- static isRadarHiddenByScript() {
1238
- return inv('0x66F35DD9D2B58579');
1166
+ static uiPromptIsJustPressed(prompt) {
1167
+ return inv('0x2787CC611D3FACC5', prompt, rai());
1239
1168
  }
1240
- static hideHudAndRadarThisFrame() {
1241
- inv('0x36CDD81627A6FCD2');
1169
+ /**
1170
+ * @param gamerTagId
1171
+ * @param text
1172
+ */
1173
+ static setMpGamerTagNamePosse(gamerTagId, text) {
1174
+ inv('0x1EA716E0628A6F44', gamerTagId, text);
1242
1175
  }
1243
1176
  /**
1244
- * @param ped
1245
- * @param username
1246
- * @param pointedClanTag
1247
- * @param isRockstarClan
1248
- * @param clanTag
1249
- * @param clanFlag
1250
1177
  * @returns
1251
1178
  */
1252
- static createFakeMpGamerTag(ped, username, pointedClanTag, isRockstarClan, clanTag, clanFlag) {
1253
- return inv('0x53CB4B502E1C57EA', ped.handle, username, pointedClanTag, isRockstarClan, clanTag, clanFlag, rai());
1179
+ static isSubtitlePreferenceSwitchedOn() {
1180
+ return inv('0x7C4AC9573587F2DF', rai());
1254
1181
  }
1255
1182
  /**
1256
1183
  * @param prompt
1257
1184
  * @returns
1258
1185
  */
1259
- static uiPromptHasHoldAutoFillMode(prompt) {
1260
- return inv('0x8010BEBD0D5ED5BC', prompt, rai());
1186
+ static uiPromptIsActive(prompt) {
1187
+ return inv('0x546E342E01DE71CF', prompt, rai());
1261
1188
  }
1262
1189
  /**
1263
- * string1 is the only string used in the scripts, the others are null (0)
1264
- *
1265
- * @param active
1266
- * @param string1
1267
- * @param string2
1268
- * @param string3
1269
- * @param string4
1190
+ * @param prompt
1191
+ * @param mashes
1270
1192
  */
1271
- static setCurrentUgcMissionDescription(active, string1, string2, string3, string4) {
1272
- inv('0xCE0D2F5586627CCE', active, string1, string2, string3, string4);
1193
+ static uiPromptSetMashMode(prompt, mashes) {
1194
+ inv('0xDF6423BF071C7F71', prompt, mashes);
1195
+ }
1196
+ static hideHudThisFrame() {
1197
+ inv('0xBF4F34A85CA2970D');
1273
1198
  }
1274
1199
  /**
1275
- * @param name
1200
+ * @param prompt
1201
+ * @param releaseMode
1202
+ */
1203
+ static uiPromptSetStandardMode(prompt, releaseMode) {
1204
+ inv('0xCC6656799977741B', prompt, releaseMode);
1205
+ }
1206
+ /**
1207
+ * @param hash
1276
1208
  * @returns
1277
1209
  */
1278
- static getNamedRendertargetRenderId(name) {
1279
- return inv('0xB6762A85EE29AA60', name, rai());
1210
+ static uiPromptGetGroupActivePage(hash) {
1211
+ return inv('0xC1FCC36C3F7286C8', _h(hash), rai());
1280
1212
  }
1281
1213
  /**
1282
- * @param p0
1214
+ * Enables reduced time scale while menus such as weapon wheel and satchel are open.
1283
1215
  */
1284
- static uiPromptDisablePromptTypeThisFrame(p0) {
1285
- inv('0xFC094EF26DD153FA', p0);
1216
+ static enableReducedMenuTimeScale() {
1217
+ inv('0x26F6BBEA2CE3E3DC');
1286
1218
  }
1287
1219
  /**
1288
- * @param entity
1289
- * @param p1
1290
- * @param p2
1291
- * @param p3
1292
- * @param p4
1293
- * @param name
1294
- * @param p6
1220
+ * @param prompt
1295
1221
  * @returns
1296
1222
  */
1297
- static uiPromptSetAmbientGroupThisFrame(entity, p1, p2, p3, p4, name, p6) {
1298
- return inv('0x315C81D760609108', entity.handle, f(p1), p2, p3, _h(p4), name, p6);
1223
+ static uiPromptHasMashModeFailed(prompt) {
1224
+ return inv('0x25B18E530CF39D6F', prompt, rai());
1299
1225
  }
1300
1226
  /**
1301
1227
  * @param prompt
1302
1228
  * @returns
1303
1229
  */
1304
- static uiPromptIsHoldModeRunning(prompt) {
1305
- return inv('0xC7D70EAEF92EFF48', prompt, rai());
1230
+ static uiPromptHasManualMashMode(prompt) {
1231
+ return inv('0xA6C6A4ADB3BAC409', prompt);
1306
1232
  }
1307
1233
  /**
1308
1234
  * @param prompt
1309
- * @returns Returns `true` if the mash mode has just been pressed.
1235
+ * @returns
1310
1236
  */
1311
- static uiPromptHasMashModeJustPressed(prompt) {
1312
- return inv('0xB0E8599243B3F568', prompt, rai());
1237
+ static uiPromptHasMashModeCompleted(prompt) {
1238
+ return inv('0x845CE958416DC473', prompt, rai());
1313
1239
  }
1314
1240
  /**
1315
1241
  * @param prompt
1316
- * @param autoFillTimeMs
1317
- * @param holdTimeMs
1242
+ * @param p1
1318
1243
  */
1319
- static uiPromptSetHoldAutoFillMode(prompt, autoFillTimeMs, holdTimeMs) {
1320
- inv('0x3CE932E737C145D6', prompt, autoFillTimeMs, holdTimeMs);
1244
+ static uiPromptSetSpinnerPosition(prompt, p1) {
1245
+ inv('0x832CB510DE546282', prompt, p1);
1246
+ }
1247
+ /**
1248
+ * @param p0
1249
+ */
1250
+ static journalWriteEntry(p0) {
1251
+ inv('0x6DFDD665E416B093', p0);
1252
+ }
1253
+ /**
1254
+ * @param state
1255
+ */
1256
+ static showHorseCores(state) {
1257
+ inv('0xD4EE21B7CC7FD350', state);
1258
+ }
1259
+ /**
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
1264
+ * @returns
1265
+ */
1266
+ static getNearHorse(p0) {
1267
+ return inv('0x0501D52D24EA8934', p0);
1268
+ }
1269
+ /**
1270
+ * @param prompt
1271
+ */
1272
+ static uiPromptRestartModes(prompt) {
1273
+ inv('0xDC6C55DFA2C24EE5', prompt);
1321
1274
  }
1322
1275
  /**
1323
1276
  * @param prompt
1277
+ * @param mashes
1278
+ * @param p2
1279
+ * @param p3
1280
+ */
1281
+ static uiPromptSetMashWithResistanceMode(prompt, mashes, p2, p3) {
1282
+ inv('0xCD1BDFF15EFA79F5', prompt, mashes, f(p2), f(p3));
1283
+ }
1284
+ /**
1285
+ * @param p0
1286
+ * @param p1
1287
+ * @param p2
1324
1288
  * @returns
1325
1289
  */
1326
- static uiPromptHasHoldModeCompleted(prompt) {
1327
- return inv('0xE0F65F0640EF0617', prompt, rai());
1290
+ static N_0x806862E5D266CF38(p0, p1, p2) {
1291
+ return inv('0x806862E5D266CF38', p0, p1, p2);
1328
1292
  }
1329
1293
  /**
1330
- * id is the return value from 0xD9459157EB22C895.
1294
+ * @param gamerTagId
1295
+ * @returns
1296
+ */
1297
+ static isMpGamerTagActive(gamerTagId) {
1298
+ return inv('0x6E1C31E14C7A5F97', gamerTagId, rai());
1299
+ }
1300
+ /**
1301
+ * Hashes: SHORT_TIMED_EVENT_MP, SHORT_TIMED_EVENT, MEDIUM_TIMED_EVENT, LONG_TIMED_EVENT, RUSTLING_CALM_TIMING, PLAYER_FOCUS_TIMING, PLAYER_REACTION_TIMING
1331
1302
  *
1332
- * @param id
1303
+ * @param prompt
1304
+ * @param timedEventHash
1333
1305
  */
1334
- static uiPromptClearHorizontalOrientation(id) {
1335
- inv('0x6095358C4142932A', id);
1306
+ static uiPromptSetStandardizedHoldMode(prompt, timedEventHash) {
1307
+ inv('0x74C7D7B72ED0D3CF', prompt, _h(timedEventHash));
1308
+ }
1309
+ /**
1310
+ * @param modelHash
1311
+ * @returns
1312
+ */
1313
+ static isNamedRendertargetLinked(modelHash) {
1314
+ return inv('0x707032835FF09AE7', _h(modelHash), rai());
1315
+ }
1316
+ /**
1317
+ * @param prompt
1318
+ * @returns
1319
+ */
1320
+ static uiPromptWasBeatModePressedInTimeWindow(prompt) {
1321
+ return inv('0x1FE4788AB1430C55', prompt, rai());
1322
+ }
1323
+ /**
1324
+ * @returns
1325
+ */
1326
+ static isHudHidden() {
1327
+ return inv('0x71B72B478F8189DC', rai());
1328
+ }
1329
+ /**
1330
+ * @param p0
1331
+ * @param p1
1332
+ * @returns
1333
+ */
1334
+ static N_0x100157D6D7FE32CA(p0, p1) {
1335
+ return inv('0x100157D6D7FE32CA', p0, p1);
1336
1336
  }
1337
1337
  /**
1338
1338
  * TM_ANY = 0,