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