@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
@@ -5,95 +5,109 @@ import type { Volume } from '../classes/Volume';
5
5
  import { Vector3 } from '../types/Vector3';
6
6
  export declare class Hud {
7
7
  /**
8
- * @param prompt
9
- * @param text
8
+ * @param modelHash
10
9
  */
11
- static uiPromptSetText(prompt: number, text: string | null): void;
10
+ static linkNamedRendertarget(modelHash: string | number): void;
12
11
  /**
13
- * @param prompt
12
+ * Returns the label text given the hash. Old name: _GET_LABEL_TEXT_BY_HASH
13
+ *
14
+ * @param labelHash
14
15
  * @returns
15
16
  */
16
- static uiPromptIsJustReleased(prompt: number): boolean;
17
+ static getStringFromHashKey(labelHash: string | number): string | null;
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: number, icon: string | number): void;
22
+ static textBlockIsLoaded(textBlock: string | null): any;
24
23
  /**
25
24
  * @param prompt
26
25
  * @returns
27
26
  */
28
- static uiPromptIsReleased(prompt: number): boolean;
27
+ static uiPromptHasMashMode(prompt: number): any;
29
28
  /**
30
- * @param active
29
+ * @param p0
30
+ * @returns
31
31
  */
32
- static setFrontendActive(active: boolean): void;
32
+ static N_0xD6BD313CFA41E57A(p0: any): any;
33
33
  /**
34
- * @param name
35
- * @param p1
36
34
  * @returns
37
35
  */
38
- static registerNamedRendertarget(name: string | null, p1: boolean): boolean;
36
+ static isMultiplayerChatActive(): boolean;
37
+ static disableFrontendThisFrame(): void;
39
38
  /**
40
39
  * @param prompt
41
- * @param autoFillTimeMs
42
- * @param holdTimeMs
40
+ * @returns
43
41
  */
44
- static uiPromptSetHoldAutoFillWithDecayMode(prompt: number, autoFillTimeMs: number, holdTimeMs: number): void;
42
+ static uiPromptGetMashModeProgress(prompt: number): number;
45
43
  /**
46
- * @param p0
47
- * @param p1
44
+ * @param groupId
45
+ * @param volume
46
+ * @param p2
47
+ * @param p3
48
+ * @param p4
49
+ * @param p5
48
50
  * @returns
49
51
  */
50
- static N_0xF1AD3DD218E6558A(p0: any, p1: any): any;
52
+ static N_0x8B55B324A9123F6B(groupId: number, volume: Volume, p2: string | null, p3: any, p4: any, p5: any): any;
51
53
  /**
52
- * Used for controllers
53
- *
54
- * @param prompt
54
+ * @param entity
55
+ * @returns
56
+ */
57
+ static uiPromptGetGroupIdForTargetEntity(entity: Entity): number;
58
+ /**
59
+ * Old name: _ALLOW_PAUSE_MENU_WHEN_DEAD_THIS_FRAME
60
+ */
61
+ static allowPauseWhenNotInStateOfPlayThisFrame(): void;
62
+ /**
63
+ * @param p0
55
64
  * @param p1
56
- * @param counterclockwise
65
+ * @returns
57
66
  */
58
- static uiPromptSetRotateMode(prompt: number, p1: number, counterclockwise: boolean): void;
67
+ static uiPromptGetGroupIdForScenarioPoint(p0: any, p1: number): number;
59
68
  /**
60
- * Found types: GENERIC_PLAYER, DEADDROP, HOTPROPERTY, MINIGAMES
69
+ * nullsub, doesn't do anything
61
70
  *
62
71
  * @param gamerTagId
63
- * @param type
72
+ * @param allow
64
73
  */
65
- static setMpGamerTagType(gamerTagId: number, type: string | number): void;
74
+ static setMpGamerTagUnkAllowLocalized(gamerTagId: number, allow: boolean): void;
66
75
  /**
67
- * @param prompt
68
- * @param action
69
- * @returns
76
+ * @param ped
70
77
  */
71
- static uiPromptSetControlAction(prompt: number, action: string | number): any;
78
+ static uiPromptSetPromptPriorityPreference(ped: Ped): void;
72
79
  /**
73
- * https://github.com/femga/rdr3_discoveries/tree/master/graphics/HUD/hud_presets
74
- * Old name: _HIDE_HUD_COMPONENT
80
+ * @param textBlock
81
+ */
82
+ static textBlockDelete(textBlock: string | null): void;
83
+ /**
84
+ * Returns true when either Pause Menu, a Frontend Menu, Online Policies menu or Social Club menu is active.
75
85
  *
76
- * @param component
86
+ * @returns
77
87
  */
78
- static enableHudContext(component: string | number): void;
88
+ static isPauseMenuActive(): boolean;
79
89
  /**
80
- * @param prompt
90
+ * @param controlAction
81
91
  * @returns
82
92
  */
83
- static uiPromptHasPressedTimedModeFailed(prompt: number): any;
93
+ static uiPromptIsControlActionActive(controlAction: string | number): any;
84
94
  /**
85
- * Removes the loading prompt at the bottom right of the screen.
95
+ * @param textBlock
96
+ * @returns
86
97
  */
87
- static busyspinnerOff(): void;
98
+ static textBlockIsStreamed(textBlock: string | null): any;
88
99
  /**
89
- * @param prompt
90
- * @param pos
100
+ * @param worldX
101
+ * @param worldY
102
+ * @param worldZ
103
+ * @returns screenX; screenY
91
104
  */
92
- static uiPromptContextSetPoint(prompt: number, pos: Vector3): void;
105
+ static getHudScreenPositionFromWorldPosition(worldX: number, worldY: number, worldZ: number): [boolean, number, number];
93
106
  /**
94
- * @param align
107
+ * @param prompt
108
+ * @returns
95
109
  */
96
- static setTextCentre(align: boolean): void;
110
+ static uiPromptHasHoldMode(prompt: number): any;
97
111
  /**
98
112
  * @param p0
99
113
  * @param name
@@ -181,6 +195,102 @@ export declare class Hud {
181
195
  * @param p1
182
196
  */
183
197
  static uiPromptSetBeatModeGrayedOut(prompt: number, p1: any): void;
198
+ /**
199
+ * @param p0
200
+ * @returns
201
+ */
202
+ static journalGetGrimeAtIndex(p0: any): any;
203
+ /**
204
+ * @param prompt
205
+ * @param p1
206
+ */
207
+ static uiPromptRemoveGroup(prompt: number, p1: any): void;
208
+ /**
209
+ * This native does nothing since build 1436, use _BG_SET_TEXT_COLOR (0x16FA5CE47F184F1E) instead.
210
+ *
211
+ * @param r
212
+ * @param g
213
+ * @param b
214
+ * @param a
215
+ */
216
+ static setTextColor(r: number, g: number, b: number, a: number): void;
217
+ /**
218
+ * @returns
219
+ */
220
+ static isRadarHiddenByScript(): any;
221
+ static hideHudAndRadarThisFrame(): void;
222
+ /**
223
+ * @param ped
224
+ * @param username
225
+ * @param pointedClanTag
226
+ * @param isRockstarClan
227
+ * @param clanTag
228
+ * @param clanFlag
229
+ * @returns
230
+ */
231
+ static createFakeMpGamerTag(ped: Ped, username: string | null, pointedClanTag: boolean, isRockstarClan: boolean, clanTag: string | null, clanFlag: number): number;
232
+ /**
233
+ * @param prompt
234
+ * @returns
235
+ */
236
+ static uiPromptHasHoldAutoFillMode(prompt: number): boolean;
237
+ /**
238
+ * string1 is the only string used in the scripts, the others are null (0)
239
+ *
240
+ * @param active
241
+ * @param string1
242
+ * @param string2
243
+ * @param string3
244
+ * @param string4
245
+ */
246
+ static setCurrentUgcMissionDescription(active: boolean, string1: string | null, string2: string | null, string3: string | null, string4: string | null): void;
247
+ /**
248
+ * @param name
249
+ * @returns
250
+ */
251
+ static getNamedRendertargetRenderId(name: string | null): number;
252
+ /**
253
+ * @param p0
254
+ */
255
+ static uiPromptDisablePromptTypeThisFrame(p0: number): void;
256
+ /**
257
+ * @param entity
258
+ * @param p1
259
+ * @param p2
260
+ * @param p3
261
+ * @param p4
262
+ * @param name
263
+ * @param p6
264
+ * @returns
265
+ */
266
+ static uiPromptSetAmbientGroupThisFrame(entity: Entity, p1: number, p2: number, p3: number, p4: string | number, name: string | null, p6: number): any;
267
+ /**
268
+ * @param prompt
269
+ * @returns
270
+ */
271
+ static uiPromptIsHoldModeRunning(prompt: number): boolean;
272
+ /**
273
+ * @param prompt
274
+ * @returns Returns `true` if the mash mode has just been pressed.
275
+ */
276
+ static uiPromptHasMashModeJustPressed(prompt: number): boolean;
277
+ /**
278
+ * @param prompt
279
+ * @param autoFillTimeMs
280
+ * @param holdTimeMs
281
+ */
282
+ static uiPromptSetHoldAutoFillMode(prompt: number, autoFillTimeMs: number, holdTimeMs: number): void;
283
+ /**
284
+ * @param prompt
285
+ * @returns
286
+ */
287
+ static uiPromptHasHoldModeCompleted(prompt: number): boolean;
288
+ /**
289
+ * id is the return value from 0xD9459157EB22C895.
290
+ *
291
+ * @param id
292
+ */
293
+ static uiPromptClearHorizontalOrientation(id: number): void;
184
294
  /**
185
295
  * @param p0
186
296
  * @param p1
@@ -263,263 +373,95 @@ export declare class Hud {
263
373
  static journalGetEntryCount(): any;
264
374
  static journalClearAllProgress(): void;
265
375
  /**
266
- * @param p0
267
- * @returns
376
+ * @param prompt
377
+ * @param text
268
378
  */
269
- static N_0xD6BD313CFA41E57A(p0: any): any;
379
+ static uiPromptSetText(prompt: number, text: string | null): void;
270
380
  /**
381
+ * @param prompt
271
382
  * @returns
272
383
  */
273
- static isMultiplayerChatActive(): boolean;
274
- static disableFrontendThisFrame(): void;
384
+ static uiPromptIsJustReleased(prompt: number): boolean;
385
+ /**
386
+ * Found icons: https://pastebin.com/xx6rEgiG
387
+ *
388
+ * @param gamerTagId
389
+ * @param icon
390
+ */
391
+ static setMpGamerTagTopIcon(gamerTagId: number, icon: string | number): void;
275
392
  /**
276
393
  * @param prompt
277
394
  * @returns
278
395
  */
279
- static uiPromptGetMashModeProgress(prompt: number): number;
396
+ static uiPromptIsReleased(prompt: number): boolean;
280
397
  /**
281
- * @param groupId
282
- * @param volume
283
- * @param p2
284
- * @param p3
285
- * @param p4
286
- * @param p5
287
- * @returns
398
+ * @param active
288
399
  */
289
- static N_0x8B55B324A9123F6B(groupId: number, volume: Volume, p2: string | null, p3: any, p4: any, p5: any): any;
400
+ static setFrontendActive(active: boolean): void;
290
401
  /**
291
- * @param entity
402
+ * @param name
403
+ * @param p1
292
404
  * @returns
293
405
  */
294
- static uiPromptGetGroupIdForTargetEntity(entity: Entity): number;
406
+ static registerNamedRendertarget(name: string | null, p1: boolean): boolean;
295
407
  /**
296
- * Old name: _ALLOW_PAUSE_MENU_WHEN_DEAD_THIS_FRAME
408
+ * @param prompt
409
+ * @param autoFillTimeMs
410
+ * @param holdTimeMs
297
411
  */
298
- static allowPauseWhenNotInStateOfPlayThisFrame(): void;
412
+ static uiPromptSetHoldAutoFillWithDecayMode(prompt: number, autoFillTimeMs: number, holdTimeMs: number): void;
299
413
  /**
300
414
  * @param p0
301
415
  * @param p1
302
416
  * @returns
303
417
  */
304
- static uiPromptGetGroupIdForScenarioPoint(p0: any, p1: number): number;
418
+ static N_0xF1AD3DD218E6558A(p0: any, p1: any): any;
305
419
  /**
306
- * nullsub, doesn't do anything
420
+ * Used for controllers
307
421
  *
308
- * @param gamerTagId
309
- * @param allow
422
+ * @param prompt
423
+ * @param p1
424
+ * @param counterclockwise
310
425
  */
311
- static setMpGamerTagUnkAllowLocalized(gamerTagId: number, allow: boolean): void;
426
+ static uiPromptSetRotateMode(prompt: number, p1: number, counterclockwise: boolean): void;
312
427
  /**
313
- * @param ped
314
- */
315
- static uiPromptSetPromptPriorityPreference(ped: Ped): void;
316
- /**
317
- * @param textBlock
318
- */
319
- static textBlockDelete(textBlock: string | null): void;
320
- /**
321
- * Returns true when either Pause Menu, a Frontend Menu, Online Policies menu or Social Club menu is active.
322
- *
323
- * @returns
324
- */
325
- static isPauseMenuActive(): boolean;
326
- /**
327
- * @param controlAction
328
- * @returns
329
- */
330
- static uiPromptIsControlActionActive(controlAction: string | number): any;
331
- /**
332
- * @param textBlock
333
- * @returns
334
- */
335
- static textBlockIsStreamed(textBlock: string | null): any;
336
- /**
337
- * @param worldX
338
- * @param worldY
339
- * @param worldZ
340
- * @returns screenX; screenY
341
- */
342
- static getHudScreenPositionFromWorldPosition(worldX: number, worldY: number, worldZ: number): [boolean, number, number];
343
- /**
344
- * @param prompt
345
- * @returns
346
- */
347
- static uiPromptHasHoldMode(prompt: number): any;
348
- /**
349
- * @param prompt
350
- * @param p1
351
- */
352
- static N_0x53CE46C01A089DA1(prompt: number, p1: boolean): void;
353
- /**
354
- * @param p0
355
- * @returns
356
- */
357
- static uiGetSceneUiobject(p0: any): any;
358
- /**
359
- * @param p0
360
- * @param p1
361
- */
362
- static N_0x958278B97C4AFFD8(p0: any, p1: any): void;
363
- /**
364
- * @param prompt
365
- * @returns
366
- */
367
- static uiPromptGetProgress(prompt: number): number;
368
- /**
369
- * @param prompt
370
- * @returns
371
- */
372
- static uiPromptIsPressed(prompt: number): boolean;
373
- /**
374
- * Note: you must use VAR_STRING. Byte code very similar to TEXT_COMMAND_DISPLAY_TEXT in V
375
- * Old name: _GET_TEXT_SUBSTRING
376
- *
377
- * @param text
378
- * @param position
379
- * @param length
380
- * @returns
381
- */
382
- static getCharacterFromAudioConversationFilename(text: string | null, position: number, length: number): string | null;
383
- /**
384
- * @param p0
385
- * @param p1
386
- */
387
- static N_0x9D37EB5003E0F2CF(p0: any, p1: any): void;
388
- static uiPromptClearPromptPriorityPreference(): void;
389
- /**
390
- * @param prompt
391
- * @param depletionTimeMs
392
- */
393
- static uiPromptSetPressedTimedMode(prompt: number, depletionTimeMs: number): void;
394
- /**
395
- * @param prompt
396
- * @param toggle
397
- */
398
- static uiPromptSetEnabled(prompt: number, toggle: boolean): void;
399
- static uiPromptFilterClear(): void;
400
- /**
401
- * tabIndex: specifies tab of prompt
402
- *
403
- * @param prompt
404
- * @param groupId
405
- * @param tabIndex
406
- */
407
- static uiPromptSetGroup(prompt: number, groupId: number, tabIndex: number): void;
408
- /**
409
- * @param text
410
- */
411
- static busyspinnerSetText(text: string | null): void;
412
- /**
413
- * Returns the hash of the currently highlighted item in the weapon wheel.
414
- * 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.
415
- *
416
- * @returns
417
- */
418
- static weaponWheelGetSelectedItemHash(): any;
419
- /**
420
- * @returns
421
- */
422
- static isRadarPreferenceSwitchedOn(): boolean;
423
- static clearAllHelpMessages(): void;
424
- /**
425
- * @param modelHash
426
- */
427
- static linkNamedRendertarget(modelHash: string | number): void;
428
- /**
429
- * Returns the label text given the hash. Old name: _GET_LABEL_TEXT_BY_HASH
428
+ * Found types: GENERIC_PLAYER, DEADDROP, HOTPROPERTY, MINIGAMES
430
429
  *
431
- * @param labelHash
432
- * @returns
433
- */
434
- static getStringFromHashKey(labelHash: string | number): string | null;
435
- /**
436
- * @param textBlock
437
- * @returns
438
- */
439
- static textBlockIsLoaded(textBlock: string | null): any;
440
- /**
441
- * @param prompt
442
- * @returns
443
- */
444
- static uiPromptHasMashMode(prompt: number): any;
445
- /**
446
430
  * @param gamerTagId
431
+ * @param type
447
432
  */
448
- static mpGamerTagDisableReviveTopIcon(gamerTagId: number): void;
433
+ static setMpGamerTagType(gamerTagId: number, type: string | number): void;
449
434
  /**
450
- * standard (prompt not held) rate: 0.035f
451
- * fast (prompt held) rate: 0.015f
452
- * punitive (been hit) rate: 0.14f
453
- *
454
435
  * @param prompt
455
- * @param speed
456
- */
457
- static uiPromptSetMashManualModeDecaySpeed(prompt: number, speed: number): void;
458
- /**
459
- * @param hash
460
- * @returns
461
- */
462
- static uiPromptDoesAmbientGroupExist(hash: string | number): boolean;
463
- /**
464
- * @param p0
436
+ * @param action
465
437
  * @returns
466
438
  */
467
- static N_0x7EC0D68233E391AC(p0: number): number;
468
- /**
469
- * nullsub, doesn't do anything
470
- */
471
- static N_0xBFFF81E12A745A5F(): void;
472
- /**
473
- * @param uiscene
474
- */
475
- static N_0xF1E6979C0B779985(uiscene: number): void;
439
+ static uiPromptSetControlAction(prompt: number, action: string | number): any;
476
440
  /**
477
- * nullsub, this native does nothing since build 1436, use _BG_DISPLAY_TEXT instead.
441
+ * https://github.com/femga/rdr3_discoveries/tree/master/graphics/HUD/hud_presets
442
+ * Old name: _HIDE_HUD_COMPONENT
478
443
  *
479
- * @param text
480
- * @param xPos
481
- * @param yPos
482
- */
483
- static displayText(text: string | null, xPos: number, yPos: number): void;
484
- /**
485
- * @param prompt
486
- * @returns
487
- */
488
- static uiPromptIsJustPressed(prompt: number): boolean;
489
- /**
490
- * @param gamerTagId
491
- * @param text
492
- */
493
- static setMpGamerTagNamePosse(gamerTagId: number, text: string | null): void;
494
- /**
495
- * @returns
444
+ * @param component
496
445
  */
497
- static isSubtitlePreferenceSwitchedOn(): boolean;
446
+ static enableHudContext(component: string | number): void;
498
447
  /**
499
448
  * @param prompt
500
449
  * @returns
501
450
  */
502
- static uiPromptIsActive(prompt: number): boolean;
451
+ static uiPromptHasPressedTimedModeFailed(prompt: number): any;
503
452
  /**
504
- * @param prompt
505
- * @param mashes
453
+ * Removes the loading prompt at the bottom right of the screen.
506
454
  */
507
- static uiPromptSetMashMode(prompt: number, mashes: number): void;
508
- static hideHudThisFrame(): void;
455
+ static busyspinnerOff(): void;
509
456
  /**
510
457
  * @param prompt
511
- * @param releaseMode
512
- */
513
- static uiPromptSetStandardMode(prompt: number, releaseMode: boolean): void;
514
- /**
515
- * @param hash
516
- * @returns
458
+ * @param pos
517
459
  */
518
- static uiPromptGetGroupActivePage(hash: string | number): number;
460
+ static uiPromptContextSetPoint(prompt: number, pos: Vector3): void;
519
461
  /**
520
- * Enables reduced time scale while menus such as weapon wheel and satchel are open.
462
+ * @param align
521
463
  */
522
- static enableReducedMenuTimeScale(): void;
464
+ static setTextCentre(align: boolean): void;
523
465
  /**
524
466
  * @param player
525
467
  * @param username
@@ -603,6 +545,82 @@ export declare class Hud {
603
545
  */
604
546
  static disableHudContext(component: string | number): void;
605
547
  static forceCloseTextInputBox(): void;
548
+ /**
549
+ * @param prompt
550
+ * @param p1
551
+ */
552
+ static N_0x53CE46C01A089DA1(prompt: number, p1: boolean): void;
553
+ /**
554
+ * @param p0
555
+ * @returns
556
+ */
557
+ static uiGetSceneUiobject(p0: any): any;
558
+ /**
559
+ * @param p0
560
+ * @param p1
561
+ */
562
+ static N_0x958278B97C4AFFD8(p0: any, p1: any): void;
563
+ /**
564
+ * @param prompt
565
+ * @returns
566
+ */
567
+ static uiPromptGetProgress(prompt: number): number;
568
+ /**
569
+ * @param prompt
570
+ * @returns
571
+ */
572
+ static uiPromptIsPressed(prompt: number): boolean;
573
+ /**
574
+ * Note: you must use VAR_STRING. Byte code very similar to TEXT_COMMAND_DISPLAY_TEXT in V
575
+ * Old name: _GET_TEXT_SUBSTRING
576
+ *
577
+ * @param text
578
+ * @param position
579
+ * @param length
580
+ * @returns
581
+ */
582
+ static getCharacterFromAudioConversationFilename(text: string | null, position: number, length: number): string | null;
583
+ /**
584
+ * @param p0
585
+ * @param p1
586
+ */
587
+ static N_0x9D37EB5003E0F2CF(p0: any, p1: any): void;
588
+ static uiPromptClearPromptPriorityPreference(): void;
589
+ /**
590
+ * @param prompt
591
+ * @param depletionTimeMs
592
+ */
593
+ static uiPromptSetPressedTimedMode(prompt: number, depletionTimeMs: number): void;
594
+ /**
595
+ * @param prompt
596
+ * @param toggle
597
+ */
598
+ static uiPromptSetEnabled(prompt: number, toggle: boolean): void;
599
+ static uiPromptFilterClear(): void;
600
+ /**
601
+ * tabIndex: specifies tab of prompt
602
+ *
603
+ * @param prompt
604
+ * @param groupId
605
+ * @param tabIndex
606
+ */
607
+ static uiPromptSetGroup(prompt: number, groupId: number, tabIndex: number): void;
608
+ /**
609
+ * @param text
610
+ */
611
+ static busyspinnerSetText(text: string | null): void;
612
+ /**
613
+ * Returns the hash of the currently highlighted item in the weapon wheel.
614
+ * 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.
615
+ *
616
+ * @returns
617
+ */
618
+ static weaponWheelGetSelectedItemHash(): any;
619
+ /**
620
+ * @returns
621
+ */
622
+ static isRadarPreferenceSwitchedOn(): boolean;
623
+ static clearAllHelpMessages(): void;
606
624
  /**
607
625
  * For startProgress, 0.0f - 1.0f is a percentage value, so 0.5f = 50% progress. Range: 0.0f - 1.0f
608
626
  * 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.
@@ -698,92 +716,6 @@ export declare class Hud {
698
716
  * @param toggle
699
717
  */
700
718
  static uiPromptSetVisible(prompt: number, toggle: boolean): void;
701
- /**
702
- * @param prompt
703
- * @returns
704
- */
705
- static uiPromptHasMashModeFailed(prompt: number): boolean;
706
- /**
707
- * @param prompt
708
- * @returns
709
- */
710
- static uiPromptHasManualMashMode(prompt: number): any;
711
- /**
712
- * @param prompt
713
- * @returns
714
- */
715
- static uiPromptHasMashModeCompleted(prompt: number): boolean;
716
- /**
717
- * @param prompt
718
- * @param p1
719
- */
720
- static uiPromptSetSpinnerPosition(prompt: number, p1: any): void;
721
- /**
722
- * @param p0
723
- */
724
- static journalWriteEntry(p0: any): void;
725
- /**
726
- * @param state
727
- */
728
- static showHorseCores(state: boolean): void;
729
- /**
730
- * This native accepts 1 as parameter in the decompiles
731
- * 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?
732
- *
733
- * @param p0
734
- * @returns
735
- */
736
- static getNearHorse(p0: number): any;
737
- /**
738
- * @param prompt
739
- */
740
- static uiPromptRestartModes(prompt: number): void;
741
- /**
742
- * @param prompt
743
- * @param mashes
744
- * @param p2
745
- * @param p3
746
- */
747
- static uiPromptSetMashWithResistanceMode(prompt: number, mashes: number, p2: number, p3: number): void;
748
- /**
749
- * @param p0
750
- * @param p1
751
- * @param p2
752
- * @returns
753
- */
754
- static N_0x806862E5D266CF38(p0: any, p1: any, p2: any): any;
755
- /**
756
- * @param gamerTagId
757
- * @returns
758
- */
759
- static isMpGamerTagActive(gamerTagId: number): boolean;
760
- /**
761
- * Hashes: SHORT_TIMED_EVENT_MP, SHORT_TIMED_EVENT, MEDIUM_TIMED_EVENT, LONG_TIMED_EVENT, RUSTLING_CALM_TIMING, PLAYER_FOCUS_TIMING, PLAYER_REACTION_TIMING
762
- *
763
- * @param prompt
764
- * @param timedEventHash
765
- */
766
- static uiPromptSetStandardizedHoldMode(prompt: number, timedEventHash: string | number): void;
767
- /**
768
- * @param modelHash
769
- * @returns
770
- */
771
- static isNamedRendertargetLinked(modelHash: string | number): boolean;
772
- /**
773
- * @param prompt
774
- * @returns
775
- */
776
- static uiPromptWasBeatModePressedInTimeWindow(prompt: number): boolean;
777
- /**
778
- * @returns
779
- */
780
- static isHudHidden(): boolean;
781
- /**
782
- * @param p0
783
- * @param p1
784
- * @returns
785
- */
786
- static N_0x100157D6D7FE32CA(p0: any, p1: any): any;
787
719
  /**
788
720
  * @param p0
789
721
  * @returns
@@ -880,102 +812,170 @@ export declare class Hud {
880
812
  * @param component
881
813
  */
882
814
  static enableHudContextThisFrame(component: string | number): void;
815
+ /**
816
+ * @param gamerTagId
817
+ */
818
+ static mpGamerTagDisableReviveTopIcon(gamerTagId: number): void;
819
+ /**
820
+ * standard (prompt not held) rate: 0.035f
821
+ * fast (prompt held) rate: 0.015f
822
+ * punitive (been hit) rate: 0.14f
823
+ *
824
+ * @param prompt
825
+ * @param speed
826
+ */
827
+ static uiPromptSetMashManualModeDecaySpeed(prompt: number, speed: number): void;
828
+ /**
829
+ * @param hash
830
+ * @returns
831
+ */
832
+ static uiPromptDoesAmbientGroupExist(hash: string | number): boolean;
883
833
  /**
884
834
  * @param p0
885
835
  * @returns
886
836
  */
887
- static journalGetGrimeAtIndex(p0: any): any;
837
+ static N_0x7EC0D68233E391AC(p0: number): number;
888
838
  /**
889
- * @param prompt
890
- * @param p1
839
+ * nullsub, doesn't do anything
891
840
  */
892
- static uiPromptRemoveGroup(prompt: number, p1: any): void;
841
+ static N_0xBFFF81E12A745A5F(): void;
893
842
  /**
894
- * This native does nothing since build 1436, use _BG_SET_TEXT_COLOR (0x16FA5CE47F184F1E) instead.
843
+ * @param uiscene
844
+ */
845
+ static N_0xF1E6979C0B779985(uiscene: number): void;
846
+ /**
847
+ * nullsub, this native does nothing since build 1436, use _BG_DISPLAY_TEXT instead.
895
848
  *
896
- * @param r
897
- * @param g
898
- * @param b
899
- * @param a
849
+ * @param text
850
+ * @param xPos
851
+ * @param yPos
900
852
  */
901
- static setTextColor(r: number, g: number, b: number, a: number): void;
853
+ static displayText(text: string | null, xPos: number, yPos: number): void;
902
854
  /**
855
+ * @param prompt
903
856
  * @returns
904
857
  */
905
- static isRadarHiddenByScript(): any;
906
- static hideHudAndRadarThisFrame(): void;
858
+ static uiPromptIsJustPressed(prompt: number): boolean;
859
+ /**
860
+ * @param gamerTagId
861
+ * @param text
862
+ */
863
+ static setMpGamerTagNamePosse(gamerTagId: number, text: string | null): void;
907
864
  /**
908
- * @param ped
909
- * @param username
910
- * @param pointedClanTag
911
- * @param isRockstarClan
912
- * @param clanTag
913
- * @param clanFlag
914
865
  * @returns
915
866
  */
916
- static createFakeMpGamerTag(ped: Ped, username: string | null, pointedClanTag: boolean, isRockstarClan: boolean, clanTag: string | null, clanFlag: number): number;
867
+ static isSubtitlePreferenceSwitchedOn(): boolean;
917
868
  /**
918
869
  * @param prompt
919
870
  * @returns
920
871
  */
921
- static uiPromptHasHoldAutoFillMode(prompt: number): boolean;
872
+ static uiPromptIsActive(prompt: number): boolean;
922
873
  /**
923
- * string1 is the only string used in the scripts, the others are null (0)
924
- *
925
- * @param active
926
- * @param string1
927
- * @param string2
928
- * @param string3
929
- * @param string4
874
+ * @param prompt
875
+ * @param mashes
930
876
  */
931
- static setCurrentUgcMissionDescription(active: boolean, string1: string | null, string2: string | null, string3: string | null, string4: string | null): void;
877
+ static uiPromptSetMashMode(prompt: number, mashes: number): void;
878
+ static hideHudThisFrame(): void;
932
879
  /**
933
- * @param name
880
+ * @param prompt
881
+ * @param releaseMode
882
+ */
883
+ static uiPromptSetStandardMode(prompt: number, releaseMode: boolean): void;
884
+ /**
885
+ * @param hash
934
886
  * @returns
935
887
  */
936
- static getNamedRendertargetRenderId(name: string | null): number;
888
+ static uiPromptGetGroupActivePage(hash: string | number): number;
937
889
  /**
938
- * @param p0
890
+ * Enables reduced time scale while menus such as weapon wheel and satchel are open.
939
891
  */
940
- static uiPromptDisablePromptTypeThisFrame(p0: number): void;
892
+ static enableReducedMenuTimeScale(): void;
941
893
  /**
942
- * @param entity
943
- * @param p1
944
- * @param p2
945
- * @param p3
946
- * @param p4
947
- * @param name
948
- * @param p6
894
+ * @param prompt
949
895
  * @returns
950
896
  */
951
- static uiPromptSetAmbientGroupThisFrame(entity: Entity, p1: number, p2: number, p3: number, p4: string | number, name: string | null, p6: number): any;
897
+ static uiPromptHasMashModeFailed(prompt: number): boolean;
952
898
  /**
953
899
  * @param prompt
954
900
  * @returns
955
901
  */
956
- static uiPromptIsHoldModeRunning(prompt: number): boolean;
902
+ static uiPromptHasManualMashMode(prompt: number): any;
957
903
  /**
958
904
  * @param prompt
959
- * @returns Returns `true` if the mash mode has just been pressed.
905
+ * @returns
960
906
  */
961
- static uiPromptHasMashModeJustPressed(prompt: number): boolean;
907
+ static uiPromptHasMashModeCompleted(prompt: number): boolean;
962
908
  /**
963
909
  * @param prompt
964
- * @param autoFillTimeMs
965
- * @param holdTimeMs
910
+ * @param p1
966
911
  */
967
- static uiPromptSetHoldAutoFillMode(prompt: number, autoFillTimeMs: number, holdTimeMs: number): void;
912
+ static uiPromptSetSpinnerPosition(prompt: number, p1: any): void;
913
+ /**
914
+ * @param p0
915
+ */
916
+ static journalWriteEntry(p0: any): void;
917
+ /**
918
+ * @param state
919
+ */
920
+ static showHorseCores(state: boolean): void;
921
+ /**
922
+ * This native accepts 1 as parameter in the decompiles
923
+ * 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?
924
+ *
925
+ * @param p0
926
+ * @returns
927
+ */
928
+ static getNearHorse(p0: number): any;
929
+ /**
930
+ * @param prompt
931
+ */
932
+ static uiPromptRestartModes(prompt: number): void;
968
933
  /**
969
934
  * @param prompt
935
+ * @param mashes
936
+ * @param p2
937
+ * @param p3
938
+ */
939
+ static uiPromptSetMashWithResistanceMode(prompt: number, mashes: number, p2: number, p3: number): void;
940
+ /**
941
+ * @param p0
942
+ * @param p1
943
+ * @param p2
970
944
  * @returns
971
945
  */
972
- static uiPromptHasHoldModeCompleted(prompt: number): boolean;
946
+ static N_0x806862E5D266CF38(p0: any, p1: any, p2: any): any;
973
947
  /**
974
- * id is the return value from 0xD9459157EB22C895.
948
+ * @param gamerTagId
949
+ * @returns
950
+ */
951
+ static isMpGamerTagActive(gamerTagId: number): boolean;
952
+ /**
953
+ * Hashes: SHORT_TIMED_EVENT_MP, SHORT_TIMED_EVENT, MEDIUM_TIMED_EVENT, LONG_TIMED_EVENT, RUSTLING_CALM_TIMING, PLAYER_FOCUS_TIMING, PLAYER_REACTION_TIMING
975
954
  *
976
- * @param id
955
+ * @param prompt
956
+ * @param timedEventHash
977
957
  */
978
- static uiPromptClearHorizontalOrientation(id: number): void;
958
+ static uiPromptSetStandardizedHoldMode(prompt: number, timedEventHash: string | number): void;
959
+ /**
960
+ * @param modelHash
961
+ * @returns
962
+ */
963
+ static isNamedRendertargetLinked(modelHash: string | number): boolean;
964
+ /**
965
+ * @param prompt
966
+ * @returns
967
+ */
968
+ static uiPromptWasBeatModePressedInTimeWindow(prompt: number): boolean;
969
+ /**
970
+ * @returns
971
+ */
972
+ static isHudHidden(): boolean;
973
+ /**
974
+ * @param p0
975
+ * @param p1
976
+ * @returns
977
+ */
978
+ static N_0x100157D6D7FE32CA(p0: any, p1: any): any;
979
979
  /**
980
980
  * TM_ANY = 0,
981
981
  * TM_ON_FOOT,