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