@nativewrappers/redm-codegen 0.0.5 → 0.0.6
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 +126 -126
- package/dist/classes/AnimScene.d.ts.map +1 -1
- package/dist/classes/AnimScene.js +184 -184
- package/dist/classes/BaseModel.d.ts +17 -17
- package/dist/classes/BaseModel.d.ts.map +1 -1
- package/dist/classes/BaseModel.js +25 -25
- package/dist/classes/BaseTask.d.ts +12 -12
- package/dist/classes/BaseTask.d.ts.map +1 -1
- package/dist/classes/BaseTask.js +14 -14
- package/dist/classes/Cam.d.ts +94 -94
- package/dist/classes/Cam.d.ts.map +1 -1
- package/dist/classes/Cam.js +126 -126
- package/dist/classes/Entity.d.ts +471 -471
- package/dist/classes/Entity.d.ts.map +1 -1
- package/dist/classes/Entity.js +672 -672
- package/dist/classes/PedTask.d.ts +155 -155
- package/dist/classes/PedTask.d.ts.map +1 -1
- package/dist/classes/PedTask.js +204 -204
- package/dist/classes/PersChar.d.ts +9 -9
- package/dist/classes/PersChar.d.ts.map +1 -1
- package/dist/classes/PersChar.js +21 -21
- package/dist/classes/Pickup.d.ts +5 -5
- package/dist/classes/Pickup.d.ts.map +1 -1
- package/dist/classes/Pickup.js +9 -9
- package/dist/classes/Player.d.ts +687 -687
- package/dist/classes/Player.d.ts.map +1 -1
- package/dist/classes/Player.js +1013 -1013
- package/dist/classes/Prop.d.ts +87 -87
- package/dist/classes/Prop.d.ts.map +1 -1
- package/dist/classes/Prop.js +121 -121
- package/dist/classes/PropSet.d.ts +4 -4
- package/dist/classes/PropSet.d.ts.map +1 -1
- package/dist/classes/PropSet.js +6 -6
- package/dist/classes/VehicleTask.d.ts +17 -17
- package/dist/classes/VehicleTask.d.ts.map +1 -1
- package/dist/classes/VehicleTask.js +21 -21
- package/dist/classes/Weapon.d.ts +306 -306
- package/dist/classes/Weapon.d.ts.map +1 -1
- package/dist/classes/Weapon.js +411 -411
- package/dist/namespaces/Animscene.d.ts +59 -59
- package/dist/namespaces/Animscene.d.ts.map +1 -1
- package/dist/namespaces/Animscene.js +77 -77
- package/dist/namespaces/Audio.d.ts +569 -569
- package/dist/namespaces/Audio.d.ts.map +1 -1
- package/dist/namespaces/Audio.js +728 -728
- package/dist/namespaces/Bounty.d.ts +70 -70
- package/dist/namespaces/Bounty.d.ts.map +1 -1
- package/dist/namespaces/Bounty.js +115 -115
- package/dist/namespaces/Brain.d.ts +15 -15
- package/dist/namespaces/Brain.d.ts.map +1 -1
- package/dist/namespaces/Brain.js +20 -20
- package/dist/namespaces/CamStatics.d.ts +399 -399
- package/dist/namespaces/CamStatics.d.ts.map +1 -1
- package/dist/namespaces/CamStatics.js +574 -574
- package/dist/namespaces/Clock.d.ts +51 -51
- package/dist/namespaces/Clock.d.ts.map +1 -1
- package/dist/namespaces/Clock.js +73 -73
- package/dist/namespaces/Collection.d.ts +76 -76
- package/dist/namespaces/Collection.d.ts.map +1 -1
- package/dist/namespaces/Collection.js +108 -108
- 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/Compendium.d.ts +38 -38
- package/dist/namespaces/Compendium.d.ts.map +1 -1
- package/dist/namespaces/Compendium.js +52 -52
- package/dist/namespaces/Crashlog.d.ts +10 -10
- package/dist/namespaces/Crashlog.d.ts.map +1 -1
- package/dist/namespaces/Crashlog.js +14 -14
- package/dist/namespaces/Crew.d.ts +9 -9
- package/dist/namespaces/Crew.d.ts.map +1 -1
- package/dist/namespaces/Crew.js +14 -14
- package/dist/namespaces/Databinding.d.ts +177 -177
- package/dist/namespaces/Databinding.d.ts.map +1 -1
- package/dist/namespaces/Databinding.js +271 -271
- 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 +193 -193
- package/dist/namespaces/EntityStatics.d.ts.map +1 -1
- package/dist/namespaces/EntityStatics.js +263 -263
- package/dist/namespaces/Fire.d.ts +7 -7
- package/dist/namespaces/Fire.d.ts.map +1 -1
- package/dist/namespaces/Fire.js +9 -9
- package/dist/namespaces/Graphics.d.ts +820 -820
- package/dist/namespaces/Graphics.d.ts.map +1 -1
- package/dist/namespaces/Graphics.js +1118 -1118
- package/dist/namespaces/Hud.d.ts +494 -494
- package/dist/namespaces/Hud.d.ts.map +1 -1
- package/dist/namespaces/Hud.js +789 -789
- package/dist/namespaces/Inventory.d.ts +180 -180
- package/dist/namespaces/Inventory.d.ts.map +1 -1
- package/dist/namespaces/Inventory.js +239 -239
- package/dist/namespaces/Itemdatabase.d.ts +78 -78
- package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
- package/dist/namespaces/Itemdatabase.js +106 -106
- package/dist/namespaces/Map.d.ts +156 -156
- package/dist/namespaces/Map.d.ts.map +1 -1
- package/dist/namespaces/Map.js +207 -207
- package/dist/namespaces/Minigame.d.ts +78 -78
- package/dist/namespaces/Minigame.d.ts.map +1 -1
- package/dist/namespaces/Minigame.js +116 -116
- package/dist/namespaces/Missiondata.d.ts +15 -15
- package/dist/namespaces/Missiondata.d.ts.map +1 -1
- package/dist/namespaces/Missiondata.js +23 -23
- package/dist/namespaces/Network.d.ts +636 -636
- package/dist/namespaces/Network.d.ts.map +1 -1
- package/dist/namespaces/Network.js +915 -915
- package/dist/namespaces/Object.d.ts +121 -121
- package/dist/namespaces/Object.d.ts.map +1 -1
- package/dist/namespaces/Object.js +162 -162
- package/dist/namespaces/Pad.d.ts +94 -94
- package/dist/namespaces/Pad.d.ts.map +1 -1
- package/dist/namespaces/Pad.js +127 -127
- package/dist/namespaces/Perschar.d.ts +44 -44
- package/dist/namespaces/Perschar.d.ts.map +1 -1
- package/dist/namespaces/Perschar.js +68 -68
- package/dist/namespaces/Physics.d.ts +158 -158
- package/dist/namespaces/Physics.d.ts.map +1 -1
- package/dist/namespaces/Physics.js +207 -207
- package/dist/namespaces/PlayerStatics.d.ts +127 -127
- package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
- package/dist/namespaces/PlayerStatics.js +177 -177
- package/dist/namespaces/Population.d.ts +75 -75
- package/dist/namespaces/Population.d.ts.map +1 -1
- package/dist/namespaces/Population.js +101 -101
- package/dist/namespaces/Posse.d.ts +38 -38
- package/dist/namespaces/Posse.d.ts.map +1 -1
- package/dist/namespaces/Posse.js +62 -62
- package/dist/namespaces/Propset.d.ts +30 -30
- package/dist/namespaces/Propset.d.ts.map +1 -1
- package/dist/namespaces/Propset.js +38 -38
- 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/Stats.d.ts +88 -88
- package/dist/namespaces/Stats.d.ts.map +1 -1
- package/dist/namespaces/Stats.js +123 -123
- package/dist/namespaces/Streaming.d.ts +58 -58
- package/dist/namespaces/Streaming.d.ts.map +1 -1
- package/dist/namespaces/Streaming.js +92 -92
- package/dist/namespaces/Task.d.ts +62 -62
- package/dist/namespaces/Task.d.ts.map +1 -1
- package/dist/namespaces/Task.js +90 -90
- package/dist/namespaces/Telemetry.d.ts +172 -172
- package/dist/namespaces/Telemetry.d.ts.map +1 -1
- package/dist/namespaces/Telemetry.js +240 -240
- package/dist/namespaces/Uifeed.d.ts +15 -15
- package/dist/namespaces/Uifeed.d.ts.map +1 -1
- package/dist/namespaces/Uifeed.js +24 -24
- package/dist/namespaces/Voice.d.ts +38 -38
- package/dist/namespaces/Voice.d.ts.map +1 -1
- package/dist/namespaces/Voice.js +56 -56
- package/dist/namespaces/Water.d.ts +27 -27
- package/dist/namespaces/Water.d.ts.map +1 -1
- package/dist/namespaces/Water.js +41 -41
- package/dist/namespaces/WeaponStatics.d.ts +250 -250
- package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
- package/dist/namespaces/WeaponStatics.js +346 -346
- package/package.json +1 -1
- package/src/classes/AnimScene.ts +199 -199
- package/src/classes/BaseModel.ts +29 -29
- package/src/classes/BaseTask.ts +15 -15
- package/src/classes/Cam.ts +135 -135
- package/src/classes/Entity.ts +687 -687
- package/src/classes/PedTask.ts +223 -223
- package/src/classes/PersChar.ts +24 -24
- package/src/classes/Pickup.ts +10 -10
- package/src/classes/Player.ts +1024 -1024
- package/src/classes/Prop.ts +136 -136
- package/src/classes/PropSet.ts +7 -7
- package/src/classes/VehicleTask.ts +23 -23
- package/src/classes/Weapon.ts +429 -429
- package/src/namespaces/Animscene.ts +86 -86
- package/src/namespaces/Audio.ts +804 -804
- package/src/namespaces/Bounty.ts +131 -131
- package/src/namespaces/Brain.ts +22 -22
- package/src/namespaces/CamStatics.ts +599 -599
- package/src/namespaces/Clock.ts +82 -82
- package/src/namespaces/Collection.ts +109 -109
- package/src/namespaces/Companion.ts +34 -34
- package/src/namespaces/Compendium.ts +59 -59
- package/src/namespaces/Crashlog.ts +16 -16
- package/src/namespaces/Crew.ts +16 -16
- package/src/namespaces/Databinding.ts +286 -286
- package/src/namespaces/Dlc.ts +9 -9
- package/src/namespaces/EntityStatics.ts +279 -279
- package/src/namespaces/Fire.ts +10 -10
- package/src/namespaces/Graphics.ts +1196 -1196
- package/src/namespaces/Hud.ts +799 -799
- package/src/namespaces/Inventory.ts +245 -245
- package/src/namespaces/Itemdatabase.ts +118 -118
- package/src/namespaces/Map.ts +215 -215
- package/src/namespaces/Minigame.ts +132 -132
- package/src/namespaces/Missiondata.ts +27 -27
- package/src/namespaces/Network.ts +951 -951
- package/src/namespaces/Object.ts +171 -171
- package/src/namespaces/Pad.ts +127 -127
- package/src/namespaces/Perschar.ts +72 -72
- package/src/namespaces/Physics.ts +231 -231
- package/src/namespaces/PlayerStatics.ts +202 -202
- package/src/namespaces/Population.ts +114 -114
- package/src/namespaces/Posse.ts +62 -62
- package/src/namespaces/Propset.ts +42 -42
- package/src/namespaces/Shapetest.ts +14 -14
- package/src/namespaces/Stats.ts +139 -139
- package/src/namespaces/Streaming.ts +104 -104
- package/src/namespaces/Task.ts +100 -100
- package/src/namespaces/Telemetry.ts +265 -265
- package/src/namespaces/Uifeed.ts +27 -27
- package/src/namespaces/Voice.ts +65 -65
- package/src/namespaces/Water.ts +47 -47
- package/src/namespaces/WeaponStatics.ts +365 -365
|
@@ -570,247 +570,217 @@ export class Network {
|
|
|
570
570
|
return !!inv('0x273E04A3A7AD1F2D', rai());
|
|
571
571
|
}
|
|
572
572
|
/**
|
|
573
|
-
*
|
|
573
|
+
* Old name: _NETWORK_GET_AVERAGE_PACKET_LOSS_FOR_PLAYER
|
|
574
574
|
*
|
|
575
|
-
* @param
|
|
576
|
-
* @returns
|
|
575
|
+
* @param player
|
|
576
|
+
* @returns
|
|
577
577
|
*/
|
|
578
|
-
static
|
|
579
|
-
return
|
|
578
|
+
static getAveragePacketLoss(player) {
|
|
579
|
+
return inv('0x350C23949E43686C', player.handle, raf());
|
|
580
580
|
}
|
|
581
581
|
/**
|
|
582
|
-
*
|
|
583
|
-
*
|
|
584
|
-
* @param ctx
|
|
585
|
-
* @param ec
|
|
586
|
-
* @param ex
|
|
587
|
-
* @param ro
|
|
582
|
+
* @returns hour; minute; second
|
|
588
583
|
*/
|
|
589
|
-
static
|
|
590
|
-
inv('
|
|
584
|
+
static getGlobalClock() {
|
|
585
|
+
const result = inv('0x11A7ADCD629E170F', pvi(), pvi(), pvi(), rai());
|
|
586
|
+
return [!!result[0], result[1], result[2], result[3]];
|
|
591
587
|
}
|
|
592
588
|
/**
|
|
593
|
-
*
|
|
594
|
-
*
|
|
589
|
+
* @param player
|
|
595
590
|
* @returns
|
|
596
591
|
*/
|
|
597
|
-
static
|
|
598
|
-
return inv('
|
|
599
|
-
}
|
|
600
|
-
/**
|
|
601
|
-
* @param waterDepthLevel
|
|
602
|
-
*/
|
|
603
|
-
static spawnConfigSetLevelWaterDepth(waterDepthLevel) {
|
|
604
|
-
inv('0xBDCC671B911040F9', waterDepthLevel);
|
|
592
|
+
static isPlayerAParticipant(player) {
|
|
593
|
+
return !!inv('0x3CA58F6CB7CBD784', player.handle, rai());
|
|
605
594
|
}
|
|
606
595
|
/**
|
|
607
596
|
* @returns
|
|
608
597
|
*/
|
|
609
|
-
static
|
|
610
|
-
return inv('
|
|
598
|
+
static getXp() {
|
|
599
|
+
return inv('0xDB438CC9BC6F4022', rai());
|
|
611
600
|
}
|
|
612
601
|
/**
|
|
613
|
-
*
|
|
614
|
-
*
|
|
602
|
+
* @param p0
|
|
603
|
+
* @param index
|
|
615
604
|
* @returns
|
|
616
605
|
*/
|
|
617
|
-
static
|
|
618
|
-
return
|
|
606
|
+
static ugcQueryGetPlaylistName(p0, index) {
|
|
607
|
+
return inv('0xCAF50048C8D0FBA0', p0, index, ras());
|
|
619
608
|
}
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
*/
|
|
623
|
-
static N_0xA6F1BAABFF6AD7B9() {
|
|
624
|
-
const result = inv('0xA6F1BAABFF6AD7B9', pvi());
|
|
625
|
-
return result;
|
|
609
|
+
static N_0xD39A72AE5EBD57E5() {
|
|
610
|
+
inv('0xD39A72AE5EBD57E5');
|
|
626
611
|
}
|
|
627
612
|
/**
|
|
628
|
-
* @
|
|
613
|
+
* @param p0
|
|
629
614
|
*/
|
|
630
|
-
static
|
|
631
|
-
|
|
615
|
+
static N_0xD42C543F73233041(p0) {
|
|
616
|
+
inv('0xD42C543F73233041', p0);
|
|
617
|
+
}
|
|
618
|
+
static N_0xE5FF65CFF5160752() {
|
|
619
|
+
inv('0xE5FF65CFF5160752');
|
|
632
620
|
}
|
|
633
621
|
/**
|
|
634
|
-
* @param
|
|
622
|
+
* @param player
|
|
623
|
+
* @param reportType
|
|
624
|
+
* @param description
|
|
625
|
+
* @param horseName
|
|
635
626
|
*/
|
|
636
|
-
static
|
|
637
|
-
inv('
|
|
627
|
+
static reportPlayer(player, reportType, description, horseName) {
|
|
628
|
+
inv('0xA197C35F73AC0F12', player.handle, reportType, description, horseName);
|
|
638
629
|
}
|
|
639
630
|
/**
|
|
640
|
-
*
|
|
641
|
-
*
|
|
642
|
-
* @param p0
|
|
643
|
-
* @returns
|
|
631
|
+
* @returns p0
|
|
644
632
|
*/
|
|
645
|
-
static
|
|
646
|
-
|
|
633
|
+
static getSizeOfPlayerBroadcastDataStorage() {
|
|
634
|
+
const result = inv('0x690806BC83BC8CA2', pvi(), rai());
|
|
635
|
+
return [result[0], result[1]];
|
|
647
636
|
}
|
|
648
637
|
/**
|
|
649
|
-
* @param p0
|
|
650
|
-
* @param p1
|
|
651
|
-
* @param p2
|
|
652
638
|
* @returns
|
|
653
639
|
*/
|
|
654
|
-
static
|
|
655
|
-
return inv('
|
|
640
|
+
static N_0x3E4A16BC669E71B3() {
|
|
641
|
+
return !!inv('0x3E4A16BC669E71B3', rai());
|
|
656
642
|
}
|
|
657
643
|
/**
|
|
658
|
-
* @
|
|
644
|
+
* @returns
|
|
659
645
|
*/
|
|
660
|
-
static
|
|
661
|
-
inv('
|
|
646
|
+
static getNumParticipants() {
|
|
647
|
+
return inv('0x18D0456E86604654', rai());
|
|
662
648
|
}
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
*
|
|
666
|
-
* @param p0
|
|
667
|
-
*/
|
|
668
|
-
static N_0xD3B6EBC6C3D77D44(p0) {
|
|
669
|
-
inv('0xD3B6EBC6C3D77D44', p0);
|
|
649
|
+
static autoSessionFinishInstance() {
|
|
650
|
+
inv('0xBB51299166B844F3');
|
|
670
651
|
}
|
|
671
652
|
/**
|
|
672
|
-
* @
|
|
673
|
-
* @param p2
|
|
674
|
-
* @param p3
|
|
675
|
-
* @param p5
|
|
676
|
-
* @returns p0; p4
|
|
653
|
+
* @returns
|
|
677
654
|
*/
|
|
678
|
-
static
|
|
679
|
-
|
|
680
|
-
return [result[0], result[1], result[2]];
|
|
655
|
+
static getThisScriptIsNetworkScript() {
|
|
656
|
+
return !!inv('0x2910669969E9535E', rai());
|
|
681
657
|
}
|
|
682
658
|
/**
|
|
683
|
-
* p0 appears to be for MP
|
|
684
|
-
*
|
|
685
659
|
* @param p0
|
|
686
|
-
* @
|
|
660
|
+
* @param index
|
|
661
|
+
* @returns p2
|
|
687
662
|
*/
|
|
688
|
-
static
|
|
689
|
-
|
|
663
|
+
static ugcQueryGetDate(p0, index) {
|
|
664
|
+
const result = inv('0xE0CB4AB15CB32710', p0, index, pvi());
|
|
665
|
+
return result;
|
|
690
666
|
}
|
|
691
667
|
/**
|
|
692
|
-
* @
|
|
668
|
+
* @param amount
|
|
693
669
|
*/
|
|
694
|
-
static
|
|
695
|
-
|
|
670
|
+
static reserveNetworkMissionVehicles(amount) {
|
|
671
|
+
inv('0x76B02E21ED27A469', amount);
|
|
696
672
|
}
|
|
697
673
|
/**
|
|
674
|
+
* @param player1
|
|
675
|
+
* @param player2
|
|
698
676
|
* @returns
|
|
699
677
|
*/
|
|
700
|
-
static
|
|
701
|
-
return !!inv('
|
|
678
|
+
static N_0x862C5040F4888741(player1, player2) {
|
|
679
|
+
return !!inv('0x862C5040F4888741', player1.handle, player2.handle, rai());
|
|
702
680
|
}
|
|
703
681
|
/**
|
|
704
|
-
* Old name: _NETWORK_IS_CONNECTION_ENDPOINT_RELAY_SERVER
|
|
705
|
-
*
|
|
706
682
|
* @param player
|
|
707
|
-
* @
|
|
683
|
+
* @param damageMultiplier
|
|
708
684
|
*/
|
|
709
|
-
static
|
|
710
|
-
|
|
685
|
+
static setLocalPlayerDamageMultiplierForPlayer(player, damageMultiplier) {
|
|
686
|
+
inv('0xD041A32992A55F84', player.handle, f(damageMultiplier));
|
|
711
687
|
}
|
|
712
688
|
/**
|
|
713
|
-
* @param p0
|
|
714
689
|
* @param toggle
|
|
715
690
|
*/
|
|
716
|
-
static
|
|
717
|
-
inv('
|
|
691
|
+
static disableLeaveRemotePedBehind(toggle) {
|
|
692
|
+
inv('0xC505036A35AFD01B', toggle);
|
|
718
693
|
}
|
|
719
694
|
/**
|
|
720
|
-
* @param
|
|
721
|
-
* @param
|
|
722
|
-
* @param p4
|
|
723
|
-
* @param p5
|
|
724
|
-
* @param p6
|
|
725
|
-
* @param p7
|
|
695
|
+
* @param netHandle
|
|
696
|
+
* @param p1
|
|
726
697
|
*/
|
|
727
|
-
static
|
|
728
|
-
inv('
|
|
698
|
+
static N_0x894B5ECAB45D2342(netHandle, p1) {
|
|
699
|
+
inv('0x894B5ECAB45D2342', netHandle, p1);
|
|
729
700
|
}
|
|
730
701
|
/**
|
|
731
|
-
* @
|
|
702
|
+
* @param name
|
|
732
703
|
*/
|
|
733
|
-
static
|
|
734
|
-
|
|
735
|
-
return [result[0], result[1]];
|
|
704
|
+
static textureDownloadReleaseByName(name) {
|
|
705
|
+
inv('0x7A17B7981560FFA5', name);
|
|
736
706
|
}
|
|
737
707
|
/**
|
|
738
|
-
* @param
|
|
708
|
+
* @param ugcRequestId
|
|
739
709
|
* @returns
|
|
740
710
|
*/
|
|
741
|
-
static
|
|
742
|
-
return inv('
|
|
711
|
+
static ugcIsRequestPending(ugcRequestId) {
|
|
712
|
+
return inv('0xF4AC4FA844FD559A', ugcRequestId);
|
|
743
713
|
}
|
|
744
714
|
/**
|
|
745
|
-
*
|
|
715
|
+
* Only used in fm_race_controller R* Script (PROCESS_LOCAL_PLAYER_INIT)
|
|
716
|
+
*
|
|
717
|
+
* @param p0
|
|
746
718
|
*/
|
|
747
|
-
static
|
|
748
|
-
|
|
719
|
+
static N_0xBC7D36946D19E60E(p0) {
|
|
720
|
+
inv('0xBC7D36946D19E60E', p0);
|
|
749
721
|
}
|
|
750
722
|
/**
|
|
751
|
-
* @param
|
|
752
|
-
* @returns
|
|
723
|
+
* @param setting
|
|
753
724
|
*/
|
|
754
|
-
static
|
|
755
|
-
|
|
725
|
+
static N_0x704F92B3AF20D857(setting) {
|
|
726
|
+
inv('0x704F92B3AF20D857', setting);
|
|
756
727
|
}
|
|
757
728
|
/**
|
|
729
|
+
* @param p0
|
|
730
|
+
* @param p1
|
|
758
731
|
* @returns
|
|
759
732
|
*/
|
|
760
|
-
static
|
|
761
|
-
return inv('
|
|
733
|
+
static ugcQueryGetPosixPublishedDate(p0, p1) {
|
|
734
|
+
return inv('0x104080CA9E519B00', p0, p1, rai());
|
|
762
735
|
}
|
|
763
736
|
/**
|
|
764
|
-
* Same Native Handler as VEH_TO_NET, PED_TO_NET, OBJ_TO_NET and NETWORK_GET_NETWORK_ID_FROM_ENTITY
|
|
765
|
-
*
|
|
766
|
-
* @param handle
|
|
767
737
|
* @returns
|
|
768
738
|
*/
|
|
769
|
-
static
|
|
770
|
-
return inv('
|
|
739
|
+
static getSocialMatchmakingAllowed() {
|
|
740
|
+
return inv('0xD0541EF28E9C4783');
|
|
771
741
|
}
|
|
772
742
|
/**
|
|
773
|
-
* @
|
|
743
|
+
* @param toggle
|
|
774
744
|
*/
|
|
775
|
-
static
|
|
776
|
-
|
|
745
|
+
static setSocialMatchmakingAllowed(toggle) {
|
|
746
|
+
inv('0x777D0571A466B520', toggle);
|
|
777
747
|
}
|
|
778
748
|
/**
|
|
779
749
|
* @param p0
|
|
750
|
+
* @param p1
|
|
751
|
+
* @param p2
|
|
780
752
|
* @returns
|
|
781
753
|
*/
|
|
782
|
-
static
|
|
783
|
-
return inv('
|
|
754
|
+
static N_0x77B299E8799B1332(p0, p1, p2) {
|
|
755
|
+
return inv('0x77B299E8799B1332', p0, p1, p2);
|
|
784
756
|
}
|
|
785
757
|
/**
|
|
786
|
-
* @param
|
|
758
|
+
* @param p0
|
|
759
|
+
* @returns
|
|
787
760
|
*/
|
|
788
|
-
static
|
|
789
|
-
inv('
|
|
761
|
+
static N_0xE59F4924BD3A718D(p0) {
|
|
762
|
+
return inv('0xE59F4924BD3A718D', p0, ras());
|
|
790
763
|
}
|
|
791
764
|
/**
|
|
792
|
-
* @param
|
|
765
|
+
* @param p0
|
|
766
|
+
* @returns
|
|
793
767
|
*/
|
|
794
|
-
static
|
|
795
|
-
inv('
|
|
768
|
+
static checkUserContentPrivileges(p0) {
|
|
769
|
+
return !!inv('0x595F028698072DD9', p0, rai());
|
|
796
770
|
}
|
|
797
771
|
/**
|
|
798
|
-
*
|
|
799
|
-
*
|
|
772
|
+
* @param player
|
|
800
773
|
* @returns
|
|
801
774
|
*/
|
|
802
|
-
static
|
|
803
|
-
return
|
|
775
|
+
static getPlayerFastInstanceId(player) {
|
|
776
|
+
return inv('0xD9267375834C5EAB', player.handle, rai());
|
|
804
777
|
}
|
|
805
778
|
/**
|
|
806
|
-
* @
|
|
807
|
-
* @param vehicle_amt
|
|
808
|
-
* @param object_amt
|
|
809
|
-
* @param pickup_amt
|
|
810
|
-
* @returns
|
|
779
|
+
* @returns hours; minutes; seconds
|
|
811
780
|
*/
|
|
812
|
-
static
|
|
813
|
-
|
|
781
|
+
static getGlobalMultiplayerClock() {
|
|
782
|
+
const result = inv('0x6D03BFBD643B2A02', pvi(), pvi(), pvi());
|
|
783
|
+
return [result[0], result[1], result[2]];
|
|
814
784
|
}
|
|
815
785
|
/**
|
|
816
786
|
* @param description
|
|
@@ -931,382 +901,236 @@ export class Network {
|
|
|
931
901
|
static N_0x4538EE7C321590BC(networkId) {
|
|
932
902
|
return createFromHandle('Entity', inv('0x4538EE7C321590BC', networkId, rai()));
|
|
933
903
|
}
|
|
904
|
+
static N_0x9B39B0555CC692B5() {
|
|
905
|
+
inv('0x9B39B0555CC692B5');
|
|
906
|
+
}
|
|
934
907
|
/**
|
|
935
|
-
* @param
|
|
908
|
+
* @param p0
|
|
936
909
|
* @returns
|
|
937
910
|
*/
|
|
938
|
-
static
|
|
939
|
-
return
|
|
940
|
-
}
|
|
911
|
+
static N_0xE79BA3BC265895DA(p0) {
|
|
912
|
+
return inv('0xE79BA3BC265895DA', p0, ras());
|
|
913
|
+
}
|
|
941
914
|
/**
|
|
942
|
-
*
|
|
943
|
-
* {
|
|
944
|
-
* int year;
|
|
945
|
-
* int PADDING1;
|
|
946
|
-
* int month;
|
|
947
|
-
* int PADDING2;
|
|
948
|
-
* int day;
|
|
949
|
-
* int PADDING3;
|
|
950
|
-
* int hour;
|
|
951
|
-
* int PADDING4;
|
|
952
|
-
* int minute;
|
|
953
|
-
* int PADDING5;
|
|
954
|
-
* int second;
|
|
955
|
-
* int PADDING6;
|
|
956
|
-
* };
|
|
957
|
-
*
|
|
958
|
-
* @param posixTime
|
|
959
|
-
* @returns timeStructure
|
|
915
|
+
* @param netPlaylistActivity
|
|
960
916
|
*/
|
|
961
|
-
static
|
|
962
|
-
|
|
963
|
-
return result;
|
|
917
|
+
static activitySetCurrent(netPlaylistActivity) {
|
|
918
|
+
inv('0x9ADAC065D9F6706F', netPlaylistActivity);
|
|
964
919
|
}
|
|
965
920
|
/**
|
|
966
|
-
* @param
|
|
921
|
+
* @param queueGroup
|
|
967
922
|
* @returns
|
|
968
923
|
*/
|
|
969
|
-
static
|
|
970
|
-
return
|
|
924
|
+
static sessionIsRequestInProgressByQueueGroup(queueGroup) {
|
|
925
|
+
return inv('0x9E762A595CF88E4A', queueGroup);
|
|
971
926
|
}
|
|
972
927
|
/**
|
|
973
|
-
* @param p0
|
|
974
|
-
* @param index
|
|
975
928
|
* @returns
|
|
976
929
|
*/
|
|
977
|
-
static
|
|
978
|
-
return
|
|
930
|
+
static pedmugshotGetStatus() {
|
|
931
|
+
return inv('0xCBAC13F065C47596', rai());
|
|
979
932
|
}
|
|
980
933
|
/**
|
|
981
|
-
*
|
|
982
|
-
*
|
|
983
|
-
* @param p0
|
|
934
|
+
* @returns
|
|
984
935
|
*/
|
|
985
|
-
static
|
|
986
|
-
inv('
|
|
936
|
+
static getTunableCloudCrc() {
|
|
937
|
+
return inv('0x10BD227A753B0D84', rai());
|
|
987
938
|
}
|
|
988
939
|
/**
|
|
989
|
-
*
|
|
940
|
+
* Returns true if the passed value is less than 32.
|
|
941
|
+
*
|
|
942
|
+
* @param player
|
|
990
943
|
* @returns
|
|
991
944
|
*/
|
|
992
|
-
static
|
|
993
|
-
return inv('
|
|
945
|
+
static isPlayerIndexValid(player) {
|
|
946
|
+
return inv('0x255A5EF65EDA9167', player.handle);
|
|
994
947
|
}
|
|
995
948
|
/**
|
|
996
|
-
*
|
|
949
|
+
* @param entity
|
|
950
|
+
* @returns
|
|
997
951
|
*/
|
|
998
|
-
static
|
|
999
|
-
inv('
|
|
952
|
+
static getEntityIsNetworked(entity) {
|
|
953
|
+
return !!inv('0xC7827959479DCC78', entity.handle, rai());
|
|
1000
954
|
}
|
|
1001
955
|
/**
|
|
1002
|
-
*
|
|
1003
|
-
*
|
|
1004
|
-
* @returns
|
|
956
|
+
* @param vehicle
|
|
957
|
+
* @returns Returns the network id for the specified `vehicle`, or `0` if the vehicle isn't networked.
|
|
1005
958
|
*/
|
|
1006
|
-
static
|
|
1007
|
-
return inv('
|
|
959
|
+
static vehToNet(vehicle) {
|
|
960
|
+
return inv('0xB4C94523F023419C', vehicle.handle, rai());
|
|
1008
961
|
}
|
|
1009
962
|
/**
|
|
1010
|
-
*
|
|
963
|
+
* Only used in R* SP Scripts
|
|
1011
964
|
*
|
|
1012
965
|
* @param player
|
|
966
|
+
* @param personaPhotoLocalCacheType
|
|
1013
967
|
* @returns
|
|
1014
968
|
*/
|
|
1015
|
-
static
|
|
1016
|
-
return inv('
|
|
969
|
+
static requestPedshotTextureLocalBackupDownload(player, personaPhotoLocalCacheType) {
|
|
970
|
+
return inv('0x356F9FB0698C1FEB', player, personaPhotoLocalCacheType, ras());
|
|
1017
971
|
}
|
|
1018
972
|
/**
|
|
1019
|
-
* @param
|
|
1020
|
-
* @param toggle
|
|
973
|
+
* @param p0
|
|
1021
974
|
*/
|
|
1022
|
-
static
|
|
1023
|
-
inv('
|
|
975
|
+
static N_0xE5634491A58C2703(p0) {
|
|
976
|
+
inv('0xE5634491A58C2703', f(p0));
|
|
1024
977
|
}
|
|
1025
978
|
/**
|
|
1026
|
-
* @param
|
|
979
|
+
* @param p0
|
|
980
|
+
* @param p1
|
|
981
|
+
* @param p2
|
|
982
|
+
* @param p3
|
|
1027
983
|
* @returns
|
|
1028
984
|
*/
|
|
1029
|
-
static
|
|
1030
|
-
return inv('
|
|
985
|
+
static N_0x64A36BA85CE01A81(p0, p1, p2, p3) {
|
|
986
|
+
return inv('0x64A36BA85CE01A81', p0, p1, p2, p3);
|
|
1031
987
|
}
|
|
1032
988
|
/**
|
|
1033
|
-
*
|
|
1034
|
-
*
|
|
1035
|
-
* @param p1
|
|
1036
|
-
* @returns gamerHandle
|
|
989
|
+
* @returns sessionRequestId
|
|
1037
990
|
*/
|
|
1038
|
-
static
|
|
1039
|
-
const result = inv('
|
|
991
|
+
static sessionIsSessionRequestIdValid() {
|
|
992
|
+
const result = inv('0x2F54B146D3EDCE4D', pvi());
|
|
1040
993
|
return [result[0], result[1]];
|
|
1041
994
|
}
|
|
1042
995
|
/**
|
|
1043
996
|
* @returns
|
|
1044
997
|
*/
|
|
1045
|
-
static
|
|
1046
|
-
return inv('
|
|
1047
|
-
}
|
|
1048
|
-
/**
|
|
1049
|
-
* @returns
|
|
1050
|
-
*/
|
|
1051
|
-
static N_0x1413B6BF27AB7A95() {
|
|
1052
|
-
return inv('0x1413B6BF27AB7A95', rai());
|
|
998
|
+
static isResettingPopulation() {
|
|
999
|
+
return inv('0x1BB50CD340A996E6');
|
|
1053
1000
|
}
|
|
1054
1001
|
/**
|
|
1055
|
-
*
|
|
1002
|
+
* Note: this native was added in build 1311.23
|
|
1056
1003
|
*
|
|
1057
|
-
* @param
|
|
1004
|
+
* @param p0
|
|
1005
|
+
* @returns
|
|
1058
1006
|
*/
|
|
1059
|
-
static
|
|
1060
|
-
inv('
|
|
1007
|
+
static N_0x039B692B3318FAB6(p0) {
|
|
1008
|
+
return inv('0x039B692B3318FAB6', p0, rai());
|
|
1061
1009
|
}
|
|
1062
1010
|
/**
|
|
1063
|
-
*
|
|
1011
|
+
* Always returns 60
|
|
1064
1012
|
*
|
|
1065
|
-
* @param texture
|
|
1066
|
-
* @param personaPhotoType
|
|
1067
|
-
* @param formatIndex
|
|
1068
1013
|
* @returns
|
|
1069
1014
|
*/
|
|
1070
|
-
static
|
|
1071
|
-
return inv('
|
|
1015
|
+
static getMaxNumNetworkObjects() {
|
|
1016
|
+
return inv('0xC7BE335216B5EC7C', rai());
|
|
1072
1017
|
}
|
|
1073
1018
|
/**
|
|
1074
|
-
*
|
|
1075
|
-
*
|
|
1019
|
+
* Checks if the user has ROS privilege 14.
|
|
1020
|
+
*
|
|
1076
1021
|
* @returns
|
|
1077
1022
|
*/
|
|
1078
|
-
static
|
|
1079
|
-
return inv('
|
|
1023
|
+
static ugcHasPrivilege() {
|
|
1024
|
+
return inv('0x6506BFA755FB209C');
|
|
1080
1025
|
}
|
|
1081
1026
|
/**
|
|
1082
|
-
* @
|
|
1027
|
+
* @param networkId
|
|
1028
|
+
* @param bStopCloning
|
|
1083
1029
|
*/
|
|
1084
|
-
static
|
|
1085
|
-
|
|
1030
|
+
static setNetworkIdStopCloning(networkId, bStopCloning) {
|
|
1031
|
+
inv('0x9ED3108D6847760A', networkId, bStopCloning);
|
|
1086
1032
|
}
|
|
1087
1033
|
/**
|
|
1088
|
-
*
|
|
1034
|
+
* Returns CGameConfig->ConfigOnlineServices->RosTitleName (see gameconfig.xml)
|
|
1089
1035
|
*
|
|
1090
1036
|
* @returns
|
|
1091
1037
|
*/
|
|
1092
|
-
static
|
|
1093
|
-
return inv('
|
|
1038
|
+
static getRosTitleName() {
|
|
1039
|
+
return inv('0xAC6153A0722F524C', ras());
|
|
1094
1040
|
}
|
|
1095
1041
|
/**
|
|
1096
|
-
* Old name: _NETWORK_GET_NUM_UNACKED_FOR_PLAYER
|
|
1097
|
-
*
|
|
1098
|
-
* @param player
|
|
1099
1042
|
* @returns
|
|
1100
1043
|
*/
|
|
1101
|
-
static
|
|
1102
|
-
return inv('
|
|
1044
|
+
static getScriptStatus() {
|
|
1045
|
+
return inv('0x57D158647A6BFABF', rai());
|
|
1103
1046
|
}
|
|
1104
1047
|
/**
|
|
1105
|
-
* @param
|
|
1106
|
-
* @param
|
|
1048
|
+
* @param p0
|
|
1049
|
+
* @param p1
|
|
1050
|
+
* @param p2
|
|
1051
|
+
* @param p3
|
|
1107
1052
|
*/
|
|
1108
|
-
static
|
|
1109
|
-
inv('
|
|
1053
|
+
static setNetworkIdVisibleInCutscene(p0, p1, p2, p3) {
|
|
1054
|
+
inv('0xA6928482543022B4', p0, p1, p2, p3);
|
|
1110
1055
|
}
|
|
1111
1056
|
/**
|
|
1112
|
-
*
|
|
1057
|
+
* @param amount
|
|
1113
1058
|
*/
|
|
1114
|
-
static
|
|
1115
|
-
inv('
|
|
1059
|
+
static reserveNetworkMissionObjects(amount) {
|
|
1060
|
+
inv('0x4E5C93BD0C32FBF8', amount);
|
|
1116
1061
|
}
|
|
1117
1062
|
/**
|
|
1063
|
+
* @param entity
|
|
1118
1064
|
* @param player
|
|
1119
|
-
* @
|
|
1065
|
+
* @returns p2
|
|
1120
1066
|
*/
|
|
1121
|
-
static
|
|
1122
|
-
inv('
|
|
1067
|
+
static N_0x75FC34A2BA345BD1(entity, player) {
|
|
1068
|
+
const result = inv('0x75FC34A2BA345BD1', entity.handle, player.handle, pvi(), rai());
|
|
1069
|
+
return [!!result[0], result[1]];
|
|
1123
1070
|
}
|
|
1124
1071
|
/**
|
|
1125
|
-
* @param p0
|
|
1126
1072
|
* @returns
|
|
1127
1073
|
*/
|
|
1128
|
-
static
|
|
1129
|
-
return inv('
|
|
1074
|
+
static autoSessionIsAllowedToMerge() {
|
|
1075
|
+
return inv('0xAADED99A6B268A27');
|
|
1130
1076
|
}
|
|
1131
1077
|
/**
|
|
1132
1078
|
* @param p0
|
|
1133
|
-
* @param
|
|
1079
|
+
* @param p1
|
|
1080
|
+
* @param p2
|
|
1134
1081
|
* @returns
|
|
1135
1082
|
*/
|
|
1136
|
-
static
|
|
1137
|
-
return inv('
|
|
1083
|
+
static N_0x7A8E8DF782B47EB0(p0, p1, p2) {
|
|
1084
|
+
return inv('0x7A8E8DF782B47EB0', p0, p1, p2);
|
|
1138
1085
|
}
|
|
1139
1086
|
/**
|
|
1140
|
-
*
|
|
1141
|
-
*
|
|
1087
|
+
* Hardcoded to return false.
|
|
1088
|
+
*
|
|
1142
1089
|
* @returns
|
|
1143
1090
|
*/
|
|
1144
|
-
static
|
|
1145
|
-
return inv('
|
|
1146
|
-
}
|
|
1147
|
-
/**
|
|
1148
|
-
* @param entity
|
|
1149
|
-
* @param timer
|
|
1150
|
-
* @param p2
|
|
1151
|
-
*/
|
|
1152
|
-
static setNetworkRespotTimer(entity, timer, p2) {
|
|
1153
|
-
inv('0x442B4347B6EC36E8', entity.handle, timer, p2);
|
|
1091
|
+
static shouldShowPromotionDlg() {
|
|
1092
|
+
return inv('0xDA4B1A479C414FB2');
|
|
1154
1093
|
}
|
|
1155
1094
|
/**
|
|
1156
|
-
* @
|
|
1095
|
+
* @param amount
|
|
1157
1096
|
*/
|
|
1158
|
-
static
|
|
1159
|
-
|
|
1160
|
-
return [result[0], result[1]];
|
|
1097
|
+
static reserveNetworkMissionPeds(amount) {
|
|
1098
|
+
inv('0xB60FEBA45333D36F', amount);
|
|
1161
1099
|
}
|
|
1162
1100
|
/**
|
|
1163
|
-
* @param
|
|
1164
|
-
* @
|
|
1101
|
+
* @param pos
|
|
1102
|
+
* @param heading
|
|
1165
1103
|
*/
|
|
1166
|
-
static
|
|
1167
|
-
|
|
1104
|
+
static spawnConfigAddSpawnPoint(pos, heading) {
|
|
1105
|
+
inv('0xFD1AC0B3858F224C', f(pos.x), f(pos.y), f(pos.z), f(heading));
|
|
1168
1106
|
}
|
|
1169
1107
|
/**
|
|
1170
|
-
* @param
|
|
1171
|
-
* @
|
|
1108
|
+
* @param paramName
|
|
1109
|
+
* @param value
|
|
1172
1110
|
*/
|
|
1173
|
-
static
|
|
1174
|
-
|
|
1111
|
+
static setLaunchParamValue(paramName, value) {
|
|
1112
|
+
inv('0x668AF6E4933AC13F', paramName, value);
|
|
1175
1113
|
}
|
|
1176
1114
|
/**
|
|
1177
|
-
* @
|
|
1115
|
+
* @returns gamerHandle
|
|
1178
1116
|
*/
|
|
1179
|
-
static
|
|
1180
|
-
inv('
|
|
1117
|
+
static canViewGamerUserContent() {
|
|
1118
|
+
const result = inv('0x246545C37C27A717', pvi());
|
|
1119
|
+
return [result[0], result[1]];
|
|
1181
1120
|
}
|
|
1182
1121
|
/**
|
|
1183
1122
|
* @param p0
|
|
1184
|
-
* @
|
|
1185
|
-
* @param dataSize
|
|
1186
|
-
* @returns outData
|
|
1123
|
+
* @returns
|
|
1187
1124
|
*/
|
|
1188
|
-
static
|
|
1189
|
-
|
|
1190
|
-
return [result[0], result[1]];
|
|
1125
|
+
static isParticipantActive(p0) {
|
|
1126
|
+
return !!inv('0x6FF8FF40B6357D45', p0, rai());
|
|
1191
1127
|
}
|
|
1192
1128
|
/**
|
|
1129
|
+
* @param p0
|
|
1193
1130
|
* @returns
|
|
1194
1131
|
*/
|
|
1195
|
-
static
|
|
1196
|
-
return
|
|
1197
|
-
}
|
|
1198
|
-
/**
|
|
1199
|
-
* @param tunableContext
|
|
1200
|
-
* @param tunableName
|
|
1201
|
-
* @returns value
|
|
1202
|
-
*/
|
|
1203
|
-
static accessTunableInt(tunableContext, tunableName) {
|
|
1204
|
-
const result = inv('0x8BE1146DFD5D4468', _h(tunableContext), _h(tunableName), pvi(), rai());
|
|
1205
|
-
return [!!result[0], result[1]];
|
|
1206
|
-
}
|
|
1207
|
-
/**
|
|
1208
|
-
* @param tunableContext
|
|
1209
|
-
* @param tunableName
|
|
1210
|
-
* @param defaultValue
|
|
1211
|
-
* @returns
|
|
1212
|
-
*/
|
|
1213
|
-
static tryAccessTunableIntHash(tunableContext, tunableName, defaultValue) {
|
|
1214
|
-
return inv('0xA25E006B36719774', _h(tunableContext), _h(tunableName), defaultValue, rai());
|
|
1215
|
-
}
|
|
1216
|
-
/**
|
|
1217
|
-
* @param tunableContext
|
|
1218
|
-
* @param tunableName
|
|
1219
|
-
* @param defaultValue
|
|
1220
|
-
* @returns
|
|
1221
|
-
*/
|
|
1222
|
-
static tryAccessTunableBoolHash(tunableContext, tunableName, defaultValue) {
|
|
1223
|
-
return !!inv('0xB2AD5D29A99D4B26', _h(tunableContext), _h(tunableName), defaultValue, rai());
|
|
1224
|
-
}
|
|
1225
|
-
/**
|
|
1226
|
-
* @param seed
|
|
1227
|
-
*/
|
|
1228
|
-
static seedRandomNumberGenerator(seed) {
|
|
1229
|
-
inv('0xF1B84178F8674195', seed);
|
|
1230
|
-
}
|
|
1231
|
-
/**
|
|
1232
|
-
* @param netId
|
|
1233
|
-
* @returns
|
|
1234
|
-
*/
|
|
1235
|
-
static isNetworkIdOwnedByParticipant(netId) {
|
|
1236
|
-
return !!inv('0xA1607996431332DF', netId, rai());
|
|
1237
|
-
}
|
|
1238
|
-
/**
|
|
1239
|
-
* @param scriptName
|
|
1240
|
-
* @param p1
|
|
1241
|
-
* @param p2
|
|
1242
|
-
* @returns
|
|
1243
|
-
*/
|
|
1244
|
-
static getHostOfScript(scriptName, p1, p2) {
|
|
1245
|
-
return createFromHandle('Player', inv('0x1D6A14F1F9A736FC', scriptName, p1, p2, rai()));
|
|
1246
|
-
}
|
|
1247
|
-
static spawnConfigSetCancelSearch() {
|
|
1248
|
-
inv('0x765E60A1DCB8B1CE');
|
|
1249
|
-
}
|
|
1250
|
-
/**
|
|
1251
|
-
* @param player
|
|
1252
|
-
* @returns
|
|
1253
|
-
*/
|
|
1254
|
-
static getPlayerIndex(player) {
|
|
1255
|
-
return inv('0x24FB80D107371267', player.handle, rai());
|
|
1256
|
-
}
|
|
1257
|
-
/**
|
|
1258
|
-
* @param ugcRequestId
|
|
1259
|
-
* @returns
|
|
1260
|
-
*/
|
|
1261
|
-
static ugcQueryGetContentNum(ugcRequestId) {
|
|
1262
|
-
return inv('0x76160E0396142765', ugcRequestId, rai());
|
|
1263
|
-
}
|
|
1264
|
-
/**
|
|
1265
|
-
* @param ctx
|
|
1266
|
-
* @param lh
|
|
1267
|
-
* @param ec
|
|
1268
|
-
* @param h
|
|
1269
|
-
*/
|
|
1270
|
-
static alert(ctx, lh, ec, h) {
|
|
1271
|
-
inv('0x1BAA028F52EED310', _h(ctx), _h(lh), ec, h);
|
|
1272
|
-
}
|
|
1273
|
-
/**
|
|
1274
|
-
* @param contentId
|
|
1275
|
-
* @returns
|
|
1276
|
-
*/
|
|
1277
|
-
static ugcIsBookMarked(contentId) {
|
|
1278
|
-
return !!inv('0xE42D1042F09865FE', contentId, rai());
|
|
1279
|
-
}
|
|
1280
|
-
/**
|
|
1281
|
-
* @returns p0
|
|
1282
|
-
*/
|
|
1283
|
-
static autoSessionCanSplitSession() {
|
|
1284
|
-
const result = inv('0xE404BFF0ABA23CDC', pvi());
|
|
1285
|
-
return [result[0], result[1]];
|
|
1286
|
-
}
|
|
1287
|
-
/**
|
|
1288
|
-
* _NETWORK_A* - _NETWORK_C*
|
|
1289
|
-
*
|
|
1290
|
-
* @param p0
|
|
1291
|
-
*/
|
|
1292
|
-
static N_0x34BC1E79546BA543(p0) {
|
|
1293
|
-
inv('0x34BC1E79546BA543', p0);
|
|
1294
|
-
}
|
|
1295
|
-
/**
|
|
1296
|
-
* @param count
|
|
1297
|
-
* @returns data
|
|
1298
|
-
*/
|
|
1299
|
-
static getGamerSessionFromHandle(count) {
|
|
1300
|
-
const result = inv('0xFBDFE1C1356E12E8', pvi(), count);
|
|
1301
|
-
return [result[0], result[1]];
|
|
1302
|
-
}
|
|
1303
|
-
/**
|
|
1304
|
-
* @param p0
|
|
1305
|
-
* @param p1
|
|
1306
|
-
* @param p2
|
|
1307
|
-
*/
|
|
1308
|
-
static registerHostBroadcastVariables(p0, p1, p2) {
|
|
1309
|
-
inv('0x3E9B2F01C50DF595', p0, p1, p2);
|
|
1132
|
+
static getNumCreatedMissionPeds(p0) {
|
|
1133
|
+
return inv('0xCB215C4B56A7FAE7', p0, rai());
|
|
1310
1134
|
}
|
|
1311
1135
|
/**
|
|
1312
1136
|
* _NETWORK_GET_A* - _NETWORK_GET_D*
|
|
@@ -1433,261 +1257,137 @@ export class Network {
|
|
|
1433
1257
|
return inv('0xA21E3BAD0A42D199');
|
|
1434
1258
|
}
|
|
1435
1259
|
/**
|
|
1436
|
-
*
|
|
1260
|
+
* _NETWORK_GET_A* - _NETWORK_GET_D*
|
|
1261
|
+
*
|
|
1262
|
+
* @param ped
|
|
1263
|
+
* @returns p1
|
|
1437
1264
|
*/
|
|
1438
|
-
static
|
|
1439
|
-
|
|
1265
|
+
static N_0x6CF82A7F65A5AD5F(ped) {
|
|
1266
|
+
const result = inv('0x6CF82A7F65A5AD5F', ped.handle, pvi(), rai());
|
|
1267
|
+
return [createFromHandle('Player', result[0]), result[1]];
|
|
1440
1268
|
}
|
|
1441
1269
|
/**
|
|
1442
|
-
*
|
|
1443
|
-
*
|
|
1444
|
-
* @param p0
|
|
1445
|
-
* @returns
|
|
1270
|
+
* @param p1
|
|
1271
|
+
* @returns gamerHandle
|
|
1446
1272
|
*/
|
|
1447
|
-
static
|
|
1448
|
-
|
|
1273
|
+
static getGamerStatus(p1) {
|
|
1274
|
+
const result = inv('0xDDAEB478E58F8DEA', pvi(), p1, rai());
|
|
1275
|
+
return [result[0], result[1]];
|
|
1449
1276
|
}
|
|
1450
1277
|
/**
|
|
1451
|
-
*
|
|
1278
|
+
* Returns result of session request:
|
|
1279
|
+
* 0 - NOT_FOUND
|
|
1280
|
+
* 1 - IN_PROGRESS
|
|
1281
|
+
* 2 - TIMEOUT
|
|
1282
|
+
* 3 - PLAYER_OFFLINE
|
|
1283
|
+
* 4 - GANG_MEMBERS_CHANGED
|
|
1284
|
+
* 5 - PLAYER_CANCELLED
|
|
1285
|
+
* 6 - PLAYER_SET_TOO_LARGE
|
|
1286
|
+
* 7 - MATCH_ACCEPTED
|
|
1287
|
+
* 8 - OTHER
|
|
1288
|
+
*
|
|
1289
|
+
* @returns sessionRequestId; p1
|
|
1452
1290
|
*/
|
|
1453
|
-
static
|
|
1454
|
-
|
|
1291
|
+
static sessionGetSessionRequestResult() {
|
|
1292
|
+
const result = inv('0x0DD051B1BF4B8BD6', pvi(), pvi(), rai());
|
|
1293
|
+
return [result[0], result[1], result[2]];
|
|
1294
|
+
}
|
|
1295
|
+
static N_0xA63E4F050F20021F() {
|
|
1296
|
+
inv('0xA63E4F050F20021F');
|
|
1455
1297
|
}
|
|
1456
1298
|
/**
|
|
1457
|
-
* @param
|
|
1458
|
-
* @returns
|
|
1299
|
+
* @param amount
|
|
1300
|
+
* @returns
|
|
1459
1301
|
*/
|
|
1460
|
-
static
|
|
1461
|
-
return
|
|
1302
|
+
static canRegisterMissionObjects(amount) {
|
|
1303
|
+
return !!inv('0x800DD4721A8B008B', amount, rai());
|
|
1462
1304
|
}
|
|
1463
1305
|
/**
|
|
1464
|
-
*
|
|
1465
|
-
* 1 = pending
|
|
1466
|
-
* 2 = failed
|
|
1467
|
-
*
|
|
1468
|
-
* @param textureDownloadId
|
|
1306
|
+
* @param description
|
|
1469
1307
|
* @returns
|
|
1470
1308
|
*/
|
|
1471
|
-
static
|
|
1472
|
-
return inv('
|
|
1309
|
+
static ugcReleaseCachedDescription(description) {
|
|
1310
|
+
return !!inv('0x5A34CD9C3C5BEC44', _h(description), rai());
|
|
1473
1311
|
}
|
|
1474
1312
|
/**
|
|
1475
|
-
* @
|
|
1313
|
+
* @param toggle
|
|
1476
1314
|
*/
|
|
1477
|
-
static
|
|
1478
|
-
|
|
1479
|
-
return [!!result[0], result[1]];
|
|
1315
|
+
static setFriendlyFireOption(toggle) {
|
|
1316
|
+
inv('0xF808475FA571D823', toggle);
|
|
1480
1317
|
}
|
|
1481
1318
|
/**
|
|
1482
|
-
*
|
|
1483
|
-
*
|
|
1484
|
-
* @returns
|
|
1319
|
+
* @returns sessionRequestId
|
|
1485
1320
|
*/
|
|
1486
|
-
static
|
|
1487
|
-
|
|
1321
|
+
static sessionTransitionToSession() {
|
|
1322
|
+
const result = inv('0xF20B18A330E6DB5C', pvi());
|
|
1323
|
+
return [result[0], result[1]];
|
|
1488
1324
|
}
|
|
1489
1325
|
/**
|
|
1490
|
-
*
|
|
1491
|
-
*
|
|
1492
|
-
* @
|
|
1326
|
+
* Hardcoded to return false.
|
|
1327
|
+
*
|
|
1328
|
+
* @returns
|
|
1493
1329
|
*/
|
|
1494
|
-
static
|
|
1495
|
-
inv('
|
|
1330
|
+
static isPromotionEnabled() {
|
|
1331
|
+
return inv('0x8FF6059DA26E688A');
|
|
1496
1332
|
}
|
|
1497
1333
|
/**
|
|
1498
|
-
* @
|
|
1334
|
+
* @param playersToTake
|
|
1335
|
+
* @param maxInstancePlayers
|
|
1336
|
+
* @param sessionFlags
|
|
1337
|
+
* @param bucketId
|
|
1338
|
+
* @returns
|
|
1499
1339
|
*/
|
|
1500
|
-
static
|
|
1501
|
-
|
|
1502
|
-
return [!!result[0], result[1]];
|
|
1340
|
+
static autoSessionSplitSession(playersToTake, maxInstancePlayers, sessionFlags, bucketId) {
|
|
1341
|
+
return inv('0xC223D299C670413D', playersToTake, maxInstancePlayers, sessionFlags, bucketId);
|
|
1503
1342
|
}
|
|
1504
1343
|
/**
|
|
1505
1344
|
* @param p0
|
|
1506
|
-
* @returns
|
|
1345
|
+
* @returns
|
|
1507
1346
|
*/
|
|
1508
|
-
static
|
|
1509
|
-
|
|
1510
|
-
return result;
|
|
1347
|
+
static N_0x923346025512DFB7(p0) {
|
|
1348
|
+
return inv('0x923346025512DFB7', p0);
|
|
1511
1349
|
}
|
|
1512
1350
|
/**
|
|
1513
|
-
* @
|
|
1514
|
-
* @returns
|
|
1351
|
+
* @returns args
|
|
1515
1352
|
*/
|
|
1516
|
-
static
|
|
1517
|
-
|
|
1353
|
+
static resurrectLocalPlayer2() {
|
|
1354
|
+
const result = inv('0x4154B7D8C75E5DCF', pvi());
|
|
1355
|
+
return result;
|
|
1518
1356
|
}
|
|
1519
1357
|
/**
|
|
1520
|
-
* Only used in
|
|
1358
|
+
* Only used in R* Script net_stable_manager
|
|
1521
1359
|
*
|
|
1522
|
-
* @param
|
|
1523
|
-
* @
|
|
1360
|
+
* @param threadId
|
|
1361
|
+
* @returns pedMax; vehicleMax; unkMax; pedMin; vehicleMin; unkMin
|
|
1524
1362
|
*/
|
|
1525
|
-
static
|
|
1526
|
-
inv('
|
|
1363
|
+
static getReservedMissionEntitiesForThread(threadId) {
|
|
1364
|
+
const result = inv('0x99AAC89C510DEB0D', threadId, pvi(), pvi(), pvi(), pvi(), pvi(), pvi());
|
|
1365
|
+
return [result[0], result[1], result[2], result[3], result[4], result[5]];
|
|
1527
1366
|
}
|
|
1528
1367
|
/**
|
|
1368
|
+
* @param p0
|
|
1529
1369
|
* @returns
|
|
1530
1370
|
*/
|
|
1531
|
-
static
|
|
1532
|
-
return !!inv('
|
|
1371
|
+
static N_0xD7BAD4062074B9C1(p0) {
|
|
1372
|
+
return !!inv('0xD7BAD4062074B9C1', p0, rai());
|
|
1533
1373
|
}
|
|
1534
1374
|
/**
|
|
1535
|
-
* @param
|
|
1536
|
-
* @
|
|
1375
|
+
* @param hour
|
|
1376
|
+
* @param minute
|
|
1377
|
+
* @param second
|
|
1378
|
+
* @param transitionTime
|
|
1379
|
+
* @param pauseClock
|
|
1537
1380
|
*/
|
|
1538
|
-
static
|
|
1539
|
-
|
|
1381
|
+
static clockTimeOverride(hour, minute, second, transitionTime, pauseClock) {
|
|
1382
|
+
inv('0x669E223E64B1903C', hour, minute, second, transitionTime, pauseClock);
|
|
1540
1383
|
}
|
|
1541
1384
|
/**
|
|
1542
|
-
* @
|
|
1385
|
+
* @param netId
|
|
1386
|
+
* @param player
|
|
1387
|
+
* @param toggle
|
|
1543
1388
|
*/
|
|
1544
|
-
static
|
|
1545
|
-
|
|
1546
|
-
}
|
|
1547
|
-
/**
|
|
1548
|
-
* @param message
|
|
1549
|
-
* @returns gamerHandle
|
|
1550
|
-
*/
|
|
1551
|
-
static addFriend(message) {
|
|
1552
|
-
const result = inv('0x8E02D73914064223', pvi(), message, rai());
|
|
1553
|
-
return [!!result[0], result[1]];
|
|
1554
|
-
}
|
|
1555
|
-
/**
|
|
1556
|
-
* @returns
|
|
1557
|
-
*/
|
|
1558
|
-
static N_0xB389289F031F059A() {
|
|
1559
|
-
return inv('0xB389289F031F059A', rai());
|
|
1560
|
-
}
|
|
1561
|
-
/**
|
|
1562
|
-
* Subtracts the first argument from the second, then returns whether the result is negative.
|
|
1563
|
-
*
|
|
1564
|
-
* @param timeA
|
|
1565
|
-
* @param timeB
|
|
1566
|
-
* @returns
|
|
1567
|
-
*/
|
|
1568
|
-
static isTimeMoreThan(timeA, timeB) {
|
|
1569
|
-
return !!inv('0xDE350F8651E4346C', timeA, timeB, rai());
|
|
1570
|
-
}
|
|
1571
|
-
/**
|
|
1572
|
-
* @returns
|
|
1573
|
-
*/
|
|
1574
|
-
static pedmugshotRequestSend() {
|
|
1575
|
-
return inv('0xFBC30B70B3CDB87E');
|
|
1576
|
-
}
|
|
1577
|
-
/**
|
|
1578
|
-
* Old name: _NETWORK_SET_PASSIVE_MODE_OPTION
|
|
1579
|
-
*
|
|
1580
|
-
* @param toggle
|
|
1581
|
-
*/
|
|
1582
|
-
static setPlayerIsPassive(toggle) {
|
|
1583
|
-
inv('0x9C25E8EC4C535FBD', toggle);
|
|
1584
|
-
}
|
|
1585
|
-
/**
|
|
1586
|
-
* Seems to always return 0, but it's used in quite a few loops. for (num3 = 0; num3 < NETWORK::0xCCD8C02D(); num3++)
|
|
1587
|
-
* {
|
|
1588
|
-
* if (NETWORK::NETWORK_IS_PARTICIPANT_ACTIVE(PLAYER::0x98F3B274(num3)) != 0)
|
|
1589
|
-
* {
|
|
1590
|
-
* var num5 = NETWORK::NETWORK_GET_PLAYER_INDEX(PLAYER::0x98F3B274(num3));
|
|
1591
|
-
*
|
|
1592
|
-
* @returns
|
|
1593
|
-
*/
|
|
1594
|
-
static getMaxNumParticipants() {
|
|
1595
|
-
return inv('0xA6C90FBC38E395EE', rai());
|
|
1596
|
-
}
|
|
1597
|
-
/**
|
|
1598
|
-
* @param ropeId
|
|
1599
|
-
* @returns
|
|
1600
|
-
*/
|
|
1601
|
-
static getNetworkIdFromRopeId(ropeId) {
|
|
1602
|
-
return inv('0x42871327315EDAE8', ropeId, rai());
|
|
1603
|
-
}
|
|
1604
|
-
/**
|
|
1605
|
-
* @param ugcRequestId
|
|
1606
|
-
* @returns
|
|
1607
|
-
*/
|
|
1608
|
-
static ugcQueryWasForceCancelled(ugcRequestId) {
|
|
1609
|
-
return inv('0xF8F0705E77A0E705', ugcRequestId);
|
|
1610
|
-
}
|
|
1611
|
-
/**
|
|
1612
|
-
* @param p0
|
|
1613
|
-
*/
|
|
1614
|
-
static ugcSetQueryDataFromOffline(p0) {
|
|
1615
|
-
inv('0xF98DDE0A8ED09323', p0);
|
|
1616
|
-
}
|
|
1617
|
-
/**
|
|
1618
|
-
* @returns gamerHandle
|
|
1619
|
-
*/
|
|
1620
|
-
static isFriendHandleInSameTitle() {
|
|
1621
|
-
const result = inv('0x665161D250850A9F', pvi(), rai());
|
|
1622
|
-
return [!!result[0], result[1]];
|
|
1623
|
-
}
|
|
1624
|
-
/**
|
|
1625
|
-
* @param p0
|
|
1626
|
-
* @returns
|
|
1627
|
-
*/
|
|
1628
|
-
static N_0xE8E633215471BB5D(p0) {
|
|
1629
|
-
return inv('0xE8E633215471BB5D', p0, rai());
|
|
1630
|
-
}
|
|
1631
|
-
/**
|
|
1632
|
-
* Note: this native was added in build 1311.23
|
|
1633
|
-
*
|
|
1634
|
-
* @param p0
|
|
1635
|
-
* @returns
|
|
1636
|
-
*/
|
|
1637
|
-
static N_0x917AD74BDCF8B6E9(p0) {
|
|
1638
|
-
return inv('0x917AD74BDCF8B6E9', p0, rai());
|
|
1639
|
-
}
|
|
1640
|
-
/**
|
|
1641
|
-
* nullsub, doesn't do anything
|
|
1642
|
-
*
|
|
1643
|
-
* @param p0
|
|
1644
|
-
*/
|
|
1645
|
-
static N_0x0CC28C08613BA9E5(p0) {
|
|
1646
|
-
inv('0x0CC28C08613BA9E5', p0);
|
|
1647
|
-
}
|
|
1648
|
-
/**
|
|
1649
|
-
* Old name: _IS_ENTITY_GHOSTED_TO_LOCAL_PLAYER
|
|
1650
|
-
*
|
|
1651
|
-
* @param entity
|
|
1652
|
-
* @returns
|
|
1653
|
-
*/
|
|
1654
|
-
static isEntityAGhost(entity) {
|
|
1655
|
-
return !!inv('0x21D04D7BC538C146', entity.handle, rai());
|
|
1656
|
-
}
|
|
1657
|
-
static clearGetGamerStatus() {
|
|
1658
|
-
inv('0x86E0660E4F5C956D');
|
|
1659
|
-
}
|
|
1660
|
-
/**
|
|
1661
|
-
* @param player
|
|
1662
|
-
* @param entity
|
|
1663
|
-
* @returns p2
|
|
1664
|
-
*/
|
|
1665
|
-
static getAssistedDamageOfEntity(player, entity) {
|
|
1666
|
-
const result = inv('0x4CACA84440FA26F6', player.handle, entity.handle, pvi(), rai());
|
|
1667
|
-
return [!!result[0], result[1]];
|
|
1668
|
-
}
|
|
1669
|
-
/**
|
|
1670
|
-
* flags:
|
|
1671
|
-
* enum eSessionRequestOptionFlags
|
|
1672
|
-
* {
|
|
1673
|
-
* SESSION_REQUEST_OPTION_FLAG_INCLUDE_GANG_MEMBERS = (1 << 1),
|
|
1674
|
-
* SESSION_REQUEST_OPTION_FLAG_LEADER_KEEPS_GANG = (1 << 7),
|
|
1675
|
-
* }; seamlessType:
|
|
1676
|
-
* enum eSeamlessType
|
|
1677
|
-
* {
|
|
1678
|
-
* SEAMLESS_TYPE_NORMAL,
|
|
1679
|
-
* SEAMLESS_TYPE_PVE,
|
|
1680
|
-
* SEAMLESS_TYPE_DEV,
|
|
1681
|
-
* SEAMLESS_TYPE_NO_SEAMLESS
|
|
1682
|
-
* };
|
|
1683
|
-
*
|
|
1684
|
-
* @param flags
|
|
1685
|
-
* @param seamlessType
|
|
1686
|
-
* @returns sessionRequestId
|
|
1687
|
-
*/
|
|
1688
|
-
static requestSessionSeamless(flags, seamlessType) {
|
|
1689
|
-
const result = inv('0x04019AE4956D4393', flags, seamlessType, pvi());
|
|
1690
|
-
return [result[0], result[1]];
|
|
1389
|
+
static setNetworkIdAlwaysExistsForPlayer(netId, player, toggle) {
|
|
1390
|
+
inv('0xA8A024587329F36A', netId, player.handle, toggle);
|
|
1691
1391
|
}
|
|
1692
1392
|
/**
|
|
1693
1393
|
* @param p0
|
|
@@ -2874,217 +2574,247 @@ export class Network {
|
|
|
2874
2574
|
return [result[0], result[1]];
|
|
2875
2575
|
}
|
|
2876
2576
|
/**
|
|
2877
|
-
*
|
|
2577
|
+
* gets the object id of a network id
|
|
2878
2578
|
*
|
|
2879
|
-
* @param
|
|
2880
|
-
* @returns
|
|
2579
|
+
* @param netHandle
|
|
2580
|
+
* @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist.
|
|
2881
2581
|
*/
|
|
2882
|
-
static
|
|
2883
|
-
return inv('
|
|
2582
|
+
static netToObj(netHandle) {
|
|
2583
|
+
return createFromHandle('Prop', inv('0xD8515F5FEA14CB3F', netHandle, rai()));
|
|
2884
2584
|
}
|
|
2885
2585
|
/**
|
|
2886
|
-
*
|
|
2586
|
+
* Note: this native was added in build 1311.23
|
|
2587
|
+
*
|
|
2588
|
+
* @param ctx
|
|
2589
|
+
* @param ec
|
|
2590
|
+
* @param ex
|
|
2591
|
+
* @param ro
|
|
2887
2592
|
*/
|
|
2888
|
-
static
|
|
2889
|
-
|
|
2890
|
-
return [!!result[0], result[1], result[2], result[3]];
|
|
2593
|
+
static N_0x19447FCAE97704DC(ctx, ec, ex, ro) {
|
|
2594
|
+
inv('0x19447FCAE97704DC', _h(ctx), ec, ex, ro);
|
|
2891
2595
|
}
|
|
2892
2596
|
/**
|
|
2893
|
-
*
|
|
2597
|
+
* Hardcoded to return zero.
|
|
2598
|
+
*
|
|
2894
2599
|
* @returns
|
|
2895
2600
|
*/
|
|
2896
|
-
static
|
|
2897
|
-
return
|
|
2601
|
+
static getPromotionDlgSeenCount() {
|
|
2602
|
+
return inv('0x2FB53C631A49BE92', rai());
|
|
2898
2603
|
}
|
|
2899
2604
|
/**
|
|
2900
|
-
* @
|
|
2605
|
+
* @param waterDepthLevel
|
|
2901
2606
|
*/
|
|
2902
|
-
static
|
|
2903
|
-
|
|
2607
|
+
static spawnConfigSetLevelWaterDepth(waterDepthLevel) {
|
|
2608
|
+
inv('0xBDCC671B911040F9', waterDepthLevel);
|
|
2904
2609
|
}
|
|
2905
2610
|
/**
|
|
2906
|
-
* @param p0
|
|
2907
|
-
* @param index
|
|
2908
2611
|
* @returns
|
|
2909
2612
|
*/
|
|
2910
|
-
static
|
|
2911
|
-
return inv('
|
|
2912
|
-
}
|
|
2913
|
-
static N_0xD39A72AE5EBD57E5() {
|
|
2914
|
-
inv('0xD39A72AE5EBD57E5');
|
|
2915
|
-
}
|
|
2916
|
-
/**
|
|
2917
|
-
* @param p0
|
|
2918
|
-
*/
|
|
2919
|
-
static N_0xD42C543F73233041(p0) {
|
|
2920
|
-
inv('0xD42C543F73233041', p0);
|
|
2921
|
-
}
|
|
2922
|
-
static N_0xE5FF65CFF5160752() {
|
|
2923
|
-
inv('0xE5FF65CFF5160752');
|
|
2613
|
+
static N_0x41452E8A3B9C0C4B() {
|
|
2614
|
+
return inv('0x41452E8A3B9C0C4B', rai());
|
|
2924
2615
|
}
|
|
2925
2616
|
/**
|
|
2926
|
-
*
|
|
2927
|
-
*
|
|
2928
|
-
* @
|
|
2929
|
-
* @param horseName
|
|
2617
|
+
* If you are host, returns true else returns false.
|
|
2618
|
+
*
|
|
2619
|
+
* @returns
|
|
2930
2620
|
*/
|
|
2931
|
-
static
|
|
2932
|
-
inv('
|
|
2621
|
+
static isHost() {
|
|
2622
|
+
return !!inv('0x8DB296B814EDDA07', rai());
|
|
2933
2623
|
}
|
|
2934
2624
|
/**
|
|
2935
2625
|
* @returns p0
|
|
2936
2626
|
*/
|
|
2937
|
-
static
|
|
2938
|
-
const result = inv('
|
|
2939
|
-
return
|
|
2627
|
+
static N_0xA6F1BAABFF6AD7B9() {
|
|
2628
|
+
const result = inv('0xA6F1BAABFF6AD7B9', pvi());
|
|
2629
|
+
return result;
|
|
2940
2630
|
}
|
|
2941
2631
|
/**
|
|
2942
2632
|
* @returns
|
|
2943
2633
|
*/
|
|
2944
|
-
static
|
|
2945
|
-
return
|
|
2634
|
+
static spawnConfigSearchInProgress() {
|
|
2635
|
+
return inv('0x89EC2FC89ECB1005');
|
|
2946
2636
|
}
|
|
2947
2637
|
/**
|
|
2948
|
-
* @
|
|
2638
|
+
* @param pos
|
|
2949
2639
|
*/
|
|
2950
|
-
static
|
|
2951
|
-
|
|
2952
|
-
}
|
|
2953
|
-
static autoSessionFinishInstance() {
|
|
2954
|
-
inv('0xBB51299166B844F3');
|
|
2640
|
+
static N_0x2686BD9566B65EDA(pos) {
|
|
2641
|
+
inv('0x2686BD9566B65EDA', f(pos.x), f(pos.y), f(pos.z));
|
|
2955
2642
|
}
|
|
2956
2643
|
/**
|
|
2644
|
+
* Note: this native was added in build 1311.23
|
|
2645
|
+
*
|
|
2646
|
+
* @param p0
|
|
2957
2647
|
* @returns
|
|
2958
2648
|
*/
|
|
2959
|
-
static
|
|
2960
|
-
return !!inv('
|
|
2649
|
+
static N_0x9E5A47744C0F0376(p0) {
|
|
2650
|
+
return !!inv('0x9E5A47744C0F0376', p0, rai());
|
|
2961
2651
|
}
|
|
2962
2652
|
/**
|
|
2963
2653
|
* @param p0
|
|
2964
|
-
* @param
|
|
2965
|
-
* @
|
|
2654
|
+
* @param p1
|
|
2655
|
+
* @param p2
|
|
2656
|
+
* @returns
|
|
2966
2657
|
*/
|
|
2967
|
-
static
|
|
2968
|
-
|
|
2969
|
-
return result;
|
|
2658
|
+
static N_0xC0CFFDA87C2C163D(p0, p1, p2) {
|
|
2659
|
+
return inv('0xC0CFFDA87C2C163D', p0, p1, p2);
|
|
2970
2660
|
}
|
|
2971
2661
|
/**
|
|
2972
2662
|
* @param amount
|
|
2973
2663
|
*/
|
|
2974
|
-
static
|
|
2975
|
-
inv('
|
|
2664
|
+
static reserveNetworkMissionPickups(amount) {
|
|
2665
|
+
inv('0x4D40E7D749BC6E6D', amount);
|
|
2976
2666
|
}
|
|
2977
2667
|
/**
|
|
2978
|
-
*
|
|
2979
|
-
*
|
|
2980
|
-
* @
|
|
2981
|
-
*/
|
|
2982
|
-
static
|
|
2983
|
-
|
|
2668
|
+
* Note: this native was added in build 1311.23
|
|
2669
|
+
*
|
|
2670
|
+
* @param p0
|
|
2671
|
+
*/
|
|
2672
|
+
static N_0xD3B6EBC6C3D77D44(p0) {
|
|
2673
|
+
inv('0xD3B6EBC6C3D77D44', p0);
|
|
2984
2674
|
}
|
|
2985
2675
|
/**
|
|
2986
|
-
* @param
|
|
2987
|
-
* @param
|
|
2676
|
+
* @param p1
|
|
2677
|
+
* @param p2
|
|
2678
|
+
* @param p3
|
|
2679
|
+
* @param p5
|
|
2680
|
+
* @returns p0; p4
|
|
2988
2681
|
*/
|
|
2989
|
-
static
|
|
2990
|
-
inv('
|
|
2682
|
+
static ugcTextureDownloadRequest(p1, p2, p3, p5) {
|
|
2683
|
+
const result = inv('0x308F96458B7087CC', pvi(), p1, p2, p3, pvi(), p5, rai());
|
|
2684
|
+
return [result[0], result[1], result[2]];
|
|
2991
2685
|
}
|
|
2992
2686
|
/**
|
|
2993
|
-
*
|
|
2687
|
+
* p0 appears to be for MP
|
|
2688
|
+
*
|
|
2689
|
+
* @param p0
|
|
2690
|
+
* @returns
|
|
2994
2691
|
*/
|
|
2995
|
-
static
|
|
2996
|
-
inv('
|
|
2692
|
+
static getNumReservedMissionPeds(p0) {
|
|
2693
|
+
return inv('0x1F13D5AE5CB17E17', p0, rai());
|
|
2997
2694
|
}
|
|
2998
2695
|
/**
|
|
2999
|
-
* @
|
|
3000
|
-
* @param p1
|
|
2696
|
+
* @returns
|
|
3001
2697
|
*/
|
|
3002
|
-
static
|
|
3003
|
-
inv('
|
|
2698
|
+
static isInSession() {
|
|
2699
|
+
return !!inv('0xCA97246103B63917', rai());
|
|
3004
2700
|
}
|
|
3005
2701
|
/**
|
|
3006
|
-
* @
|
|
2702
|
+
* @returns
|
|
3007
2703
|
*/
|
|
3008
|
-
static
|
|
3009
|
-
inv('
|
|
2704
|
+
static isTunableCloudRequestPending() {
|
|
2705
|
+
return !!inv('0x0467C11ED88B7D28', rai());
|
|
3010
2706
|
}
|
|
3011
2707
|
/**
|
|
3012
|
-
*
|
|
2708
|
+
* Old name: _NETWORK_IS_CONNECTION_ENDPOINT_RELAY_SERVER
|
|
2709
|
+
*
|
|
2710
|
+
* @param player
|
|
3013
2711
|
* @returns
|
|
3014
2712
|
*/
|
|
3015
|
-
static
|
|
3016
|
-
return inv('
|
|
2713
|
+
static isConnectedViaRelay(player) {
|
|
2714
|
+
return !!inv('0x16D3D49902F697BB', player.handle, rai());
|
|
3017
2715
|
}
|
|
3018
2716
|
/**
|
|
3019
|
-
* Only used in fm_race_controller R* Script (PROCESS_LOCAL_PLAYER_INIT)
|
|
3020
|
-
*
|
|
3021
2717
|
* @param p0
|
|
2718
|
+
* @param toggle
|
|
3022
2719
|
*/
|
|
3023
|
-
static
|
|
3024
|
-
inv('
|
|
2720
|
+
static setDoorUnnetworked(p0, toggle) {
|
|
2721
|
+
inv('0xC1E1A3D5ED7617B8', p0, toggle);
|
|
3025
2722
|
}
|
|
3026
2723
|
/**
|
|
3027
|
-
* @param
|
|
2724
|
+
* @param pos
|
|
2725
|
+
* @param heading
|
|
2726
|
+
* @param p4
|
|
2727
|
+
* @param p5
|
|
2728
|
+
* @param p6
|
|
2729
|
+
* @param p7
|
|
3028
2730
|
*/
|
|
3029
|
-
static
|
|
3030
|
-
inv('
|
|
2731
|
+
static resurrectLocalPlayer(pos, heading, p4, p5, p6, p7) {
|
|
2732
|
+
inv('0xEA23C49EAA83ACFB', f(pos.x), f(pos.y), f(pos.z), f(heading), p4, p5, p6, p7);
|
|
3031
2733
|
}
|
|
3032
2734
|
/**
|
|
3033
|
-
* @
|
|
3034
|
-
* @param p1
|
|
3035
|
-
* @returns
|
|
2735
|
+
* @returns sessionRequestId
|
|
3036
2736
|
*/
|
|
3037
|
-
static
|
|
3038
|
-
|
|
2737
|
+
static sessionLeftQueueOrRequestedSession() {
|
|
2738
|
+
const result = inv('0xECE6A0C1B59CD8BE', pvi());
|
|
2739
|
+
return [result[0], result[1]];
|
|
3039
2740
|
}
|
|
3040
2741
|
/**
|
|
2742
|
+
* @param flags Refer to [enum: eSessionFlags]
|
|
3041
2743
|
* @returns
|
|
3042
2744
|
*/
|
|
3043
|
-
static
|
|
3044
|
-
return inv('
|
|
2745
|
+
static sessionRemoveSessionFlags(flags) {
|
|
2746
|
+
return inv('0x78335E12DB0BF961', flags);
|
|
3045
2747
|
}
|
|
3046
2748
|
/**
|
|
3047
|
-
* @
|
|
2749
|
+
* @returns
|
|
3048
2750
|
*/
|
|
3049
|
-
static
|
|
3050
|
-
inv('
|
|
2751
|
+
static haveRosBannedPriv() {
|
|
2752
|
+
return !!inv('0x8020A73847E0CA7D', rai());
|
|
3051
2753
|
}
|
|
3052
2754
|
/**
|
|
3053
2755
|
* @param p0
|
|
3054
|
-
* @param p1
|
|
3055
|
-
* @param p2
|
|
3056
2756
|
* @returns
|
|
3057
2757
|
*/
|
|
3058
|
-
static
|
|
3059
|
-
return inv('
|
|
2758
|
+
static N_0xCA58D4FD20D70F24(p0) {
|
|
2759
|
+
return inv('0xCA58D4FD20D70F24', p0, rai());
|
|
3060
2760
|
}
|
|
3061
2761
|
/**
|
|
3062
|
-
* @param p0
|
|
3063
2762
|
* @returns
|
|
3064
2763
|
*/
|
|
3065
|
-
static
|
|
3066
|
-
return inv('
|
|
2764
|
+
static refreshCurrentFriendPage() {
|
|
2765
|
+
return inv('0x1F51F367B710A832');
|
|
2766
|
+
}
|
|
2767
|
+
/**
|
|
2768
|
+
* Same Native Handler as VEH_TO_NET, PED_TO_NET, OBJ_TO_NET and NETWORK_GET_NETWORK_ID_FROM_ENTITY
|
|
2769
|
+
*
|
|
2770
|
+
* @param handle
|
|
2771
|
+
* @returns
|
|
2772
|
+
*/
|
|
2773
|
+
static N_0xF260AF6F43953316(handle) {
|
|
2774
|
+
return inv('0xF260AF6F43953316', handle, rai());
|
|
2775
|
+
}
|
|
2776
|
+
/**
|
|
2777
|
+
* @returns
|
|
2778
|
+
*/
|
|
2779
|
+
static N_0xA94ECE191D90637A() {
|
|
2780
|
+
return inv('0xA94ECE191D90637A', rai());
|
|
3067
2781
|
}
|
|
3068
2782
|
/**
|
|
3069
2783
|
* @param p0
|
|
3070
2784
|
* @returns
|
|
3071
2785
|
*/
|
|
3072
|
-
static
|
|
3073
|
-
return
|
|
2786
|
+
static getNumReservedMissionPickups(p0) {
|
|
2787
|
+
return inv('0x62BE3ECC79FBD004', p0, rai());
|
|
3074
2788
|
}
|
|
3075
2789
|
/**
|
|
3076
|
-
* @param
|
|
2790
|
+
* @param toggle
|
|
2791
|
+
*/
|
|
2792
|
+
static allowAllEntityFadingForInstances(toggle) {
|
|
2793
|
+
inv('0x4B05B97BA46F419D', toggle);
|
|
2794
|
+
}
|
|
2795
|
+
/**
|
|
2796
|
+
* @param netId
|
|
2797
|
+
*/
|
|
2798
|
+
static preventNetworkIdMigration(netId) {
|
|
2799
|
+
inv('0x7182EDDA1EE7DB5A', netId);
|
|
2800
|
+
}
|
|
2801
|
+
/**
|
|
2802
|
+
* Returns whether the signed-in user has valid Rockstar Online Services (ROS) credentials.
|
|
2803
|
+
*
|
|
3077
2804
|
* @returns
|
|
3078
2805
|
*/
|
|
3079
|
-
static
|
|
3080
|
-
return inv('
|
|
2806
|
+
static hasValidRosCredentials() {
|
|
2807
|
+
return !!inv('0x85443FF4C328F53B', rai());
|
|
3081
2808
|
}
|
|
3082
2809
|
/**
|
|
3083
|
-
* @
|
|
2810
|
+
* @param ped_amt
|
|
2811
|
+
* @param vehicle_amt
|
|
2812
|
+
* @param object_amt
|
|
2813
|
+
* @param pickup_amt
|
|
2814
|
+
* @returns
|
|
3084
2815
|
*/
|
|
3085
|
-
static
|
|
3086
|
-
|
|
3087
|
-
return [result[0], result[1], result[2]];
|
|
2816
|
+
static canRegisterMissionEntities(ped_amt, vehicle_amt, object_amt, pickup_amt) {
|
|
2817
|
+
return !!inv('0x69778E7564BADE6D', ped_amt, vehicle_amt, object_amt, pickup_amt, rai());
|
|
3088
2818
|
}
|
|
3089
2819
|
/**
|
|
3090
2820
|
* @returns
|
|
@@ -3202,369 +2932,639 @@ export class Network {
|
|
|
3202
2932
|
static getPlayerTutorialSessionInstance(player) {
|
|
3203
2933
|
return inv('0x3B39236746714134', player.handle, rai());
|
|
3204
2934
|
}
|
|
3205
|
-
static N_0x9B39B0555CC692B5() {
|
|
3206
|
-
inv('0x9B39B0555CC692B5');
|
|
3207
|
-
}
|
|
3208
2935
|
/**
|
|
3209
|
-
* @param
|
|
2936
|
+
* @param amount
|
|
3210
2937
|
* @returns
|
|
3211
2938
|
*/
|
|
3212
|
-
static
|
|
3213
|
-
return inv('
|
|
2939
|
+
static canRegisterMissionVehicles(amount) {
|
|
2940
|
+
return !!inv('0x7277F1F2E085EE74', amount, rai());
|
|
3214
2941
|
}
|
|
3215
2942
|
/**
|
|
3216
|
-
*
|
|
2943
|
+
* Takes the specified time and writes it to the structure specified in the second argument. struct date_time
|
|
2944
|
+
* {
|
|
2945
|
+
* int year;
|
|
2946
|
+
* int PADDING1;
|
|
2947
|
+
* int month;
|
|
2948
|
+
* int PADDING2;
|
|
2949
|
+
* int day;
|
|
2950
|
+
* int PADDING3;
|
|
2951
|
+
* int hour;
|
|
2952
|
+
* int PADDING4;
|
|
2953
|
+
* int minute;
|
|
2954
|
+
* int PADDING5;
|
|
2955
|
+
* int second;
|
|
2956
|
+
* int PADDING6;
|
|
2957
|
+
* };
|
|
2958
|
+
*
|
|
2959
|
+
* @param posixTime
|
|
2960
|
+
* @returns timeStructure
|
|
3217
2961
|
*/
|
|
3218
|
-
static
|
|
3219
|
-
inv('
|
|
2962
|
+
static convertPosixTime(posixTime) {
|
|
2963
|
+
const result = inv('0xAC97AF97FA68E5D5', posixTime, pvi());
|
|
2964
|
+
return result;
|
|
3220
2965
|
}
|
|
3221
2966
|
/**
|
|
3222
|
-
* @param
|
|
2967
|
+
* @param ugcRequestId
|
|
3223
2968
|
* @returns
|
|
3224
2969
|
*/
|
|
3225
|
-
static
|
|
3226
|
-
return inv('
|
|
2970
|
+
static N_0xCD53E6CBF609C012(ugcRequestId) {
|
|
2971
|
+
return !!inv('0xCD53E6CBF609C012', ugcRequestId, rai());
|
|
3227
2972
|
}
|
|
3228
2973
|
/**
|
|
2974
|
+
* @param p0
|
|
2975
|
+
* @param index
|
|
3229
2976
|
* @returns
|
|
3230
2977
|
*/
|
|
3231
|
-
static
|
|
3232
|
-
return inv('
|
|
2978
|
+
static ugcQueryGetMissionDescHash(p0, index) {
|
|
2979
|
+
return (inv('0xA6BF569956C60A60', p0, index, rai())) & 0xFFFFFFFF;
|
|
3233
2980
|
}
|
|
3234
2981
|
/**
|
|
3235
|
-
*
|
|
2982
|
+
* Note: this native was added in build 1311.23
|
|
2983
|
+
*
|
|
2984
|
+
* @param p0
|
|
3236
2985
|
*/
|
|
3237
|
-
static
|
|
3238
|
-
|
|
2986
|
+
static N_0x335AF56613CA0F49(p0) {
|
|
2987
|
+
inv('0x335AF56613CA0F49', p0);
|
|
3239
2988
|
}
|
|
3240
2989
|
/**
|
|
3241
|
-
*
|
|
3242
|
-
*
|
|
3243
|
-
* @param player
|
|
2990
|
+
* @param p0
|
|
3244
2991
|
* @returns
|
|
3245
2992
|
*/
|
|
3246
|
-
static
|
|
3247
|
-
return inv('
|
|
2993
|
+
static N_0xE10F2D7715ABABEC(p0) {
|
|
2994
|
+
return inv('0xE10F2D7715ABABEC', p0);
|
|
3248
2995
|
}
|
|
3249
2996
|
/**
|
|
3250
|
-
*
|
|
3251
|
-
* @returns
|
|
2997
|
+
* Note: this native was added in build 1311.23
|
|
3252
2998
|
*/
|
|
3253
|
-
static
|
|
3254
|
-
|
|
2999
|
+
static N_0xFD8112109A96877C() {
|
|
3000
|
+
inv('0xFD8112109A96877C');
|
|
3255
3001
|
}
|
|
3256
3002
|
/**
|
|
3257
|
-
*
|
|
3258
|
-
*
|
|
3003
|
+
* Always returns 80
|
|
3004
|
+
*
|
|
3005
|
+
* @returns
|
|
3259
3006
|
*/
|
|
3260
|
-
static
|
|
3261
|
-
return inv('
|
|
3007
|
+
static getMaxNumNetworkPickups() {
|
|
3008
|
+
return inv('0xA72835064DD63E4C', rai());
|
|
3262
3009
|
}
|
|
3263
3010
|
/**
|
|
3264
|
-
*
|
|
3011
|
+
* Old name: _NETWORK_GET_AVERAGE_LATENCY_FOR_PLAYER
|
|
3265
3012
|
*
|
|
3266
3013
|
* @param player
|
|
3267
|
-
* @param personaPhotoLocalCacheType
|
|
3268
3014
|
* @returns
|
|
3269
3015
|
*/
|
|
3270
|
-
static
|
|
3271
|
-
return inv('
|
|
3016
|
+
static getAverageLatency(player) {
|
|
3017
|
+
return inv('0xD414BE129BB81B32', player.handle, raf());
|
|
3272
3018
|
}
|
|
3273
3019
|
/**
|
|
3274
|
-
* @param
|
|
3020
|
+
* @param netId
|
|
3021
|
+
* @param toggle
|
|
3275
3022
|
*/
|
|
3276
|
-
static
|
|
3277
|
-
inv('
|
|
3023
|
+
static setNetworkIdExistsOnAllMachines(netId, toggle) {
|
|
3024
|
+
inv('0xE05E81A888FA63C8', netId, toggle);
|
|
3278
3025
|
}
|
|
3279
3026
|
/**
|
|
3280
|
-
* @param
|
|
3281
|
-
* @param p1
|
|
3282
|
-
* @param p2
|
|
3283
|
-
* @param p3
|
|
3027
|
+
* @param completed
|
|
3284
3028
|
* @returns
|
|
3285
3029
|
*/
|
|
3286
|
-
static
|
|
3287
|
-
return inv('
|
|
3030
|
+
static setCompletedMpIntroFlowOnCurrentSlot(completed) {
|
|
3031
|
+
return inv('0x2C5BD9A43987AA27', completed);
|
|
3288
3032
|
}
|
|
3289
3033
|
/**
|
|
3290
|
-
*
|
|
3034
|
+
* Only used in R* SP Script map_app_event_handler
|
|
3035
|
+
*
|
|
3036
|
+
* @param p1
|
|
3037
|
+
* @returns gamerHandle
|
|
3291
3038
|
*/
|
|
3292
|
-
static
|
|
3293
|
-
const result = inv('
|
|
3294
|
-
return [result[0], result[1]];
|
|
3039
|
+
static requestPedshotTextureLocalDownload(p1) {
|
|
3040
|
+
const result = inv('0xCAF4CA2F87779F8F', pvi(), p1, ras());
|
|
3041
|
+
return [result[0], result[1]];
|
|
3295
3042
|
}
|
|
3296
3043
|
/**
|
|
3297
3044
|
* @returns
|
|
3298
3045
|
*/
|
|
3299
|
-
static
|
|
3300
|
-
return inv('
|
|
3046
|
+
static autoSessionIsProcessingSessionSplit() {
|
|
3047
|
+
return inv('0xA021095C983F20D8');
|
|
3301
3048
|
}
|
|
3302
3049
|
/**
|
|
3303
|
-
* Note: this native was added in build 1311.23
|
|
3304
|
-
*
|
|
3305
|
-
* @param p0
|
|
3306
3050
|
* @returns
|
|
3307
3051
|
*/
|
|
3308
|
-
static
|
|
3309
|
-
return inv('
|
|
3052
|
+
static N_0x1413B6BF27AB7A95() {
|
|
3053
|
+
return inv('0x1413B6BF27AB7A95', rai());
|
|
3310
3054
|
}
|
|
3311
3055
|
/**
|
|
3312
|
-
*
|
|
3056
|
+
* nullsub, doesn't do anything
|
|
3313
3057
|
*
|
|
3314
|
-
* @
|
|
3058
|
+
* @param player
|
|
3315
3059
|
*/
|
|
3316
|
-
static
|
|
3317
|
-
|
|
3060
|
+
static showChatRestrictionMsc(player) {
|
|
3061
|
+
inv('0x6BFF5F84102DF80A', player.handle);
|
|
3318
3062
|
}
|
|
3319
3063
|
/**
|
|
3320
|
-
*
|
|
3064
|
+
* Returns false if pedshot push failed
|
|
3321
3065
|
*
|
|
3066
|
+
* @param texture
|
|
3067
|
+
* @param personaPhotoType
|
|
3068
|
+
* @param formatIndex
|
|
3322
3069
|
* @returns
|
|
3323
3070
|
*/
|
|
3324
|
-
static
|
|
3325
|
-
return inv('
|
|
3071
|
+
static personaPhotoWriteScProfile(texture, personaPhotoType, formatIndex) {
|
|
3072
|
+
return inv('0xB72999D3120599DF', texture, personaPhotoType, formatIndex);
|
|
3326
3073
|
}
|
|
3327
3074
|
/**
|
|
3328
|
-
* @param
|
|
3329
|
-
* @param
|
|
3075
|
+
* @param p0
|
|
3076
|
+
* @param p1
|
|
3077
|
+
* @returns
|
|
3330
3078
|
*/
|
|
3331
|
-
static
|
|
3332
|
-
inv('
|
|
3079
|
+
static N_0x271F95E55C663B8B(p0, p1) {
|
|
3080
|
+
return inv('0x271F95E55C663B8B', p0, p1);
|
|
3333
3081
|
}
|
|
3334
3082
|
/**
|
|
3335
|
-
* Returns CGameConfig->ConfigOnlineServices->RosTitleName (see gameconfig.xml)
|
|
3336
|
-
*
|
|
3337
3083
|
* @returns
|
|
3338
3084
|
*/
|
|
3339
|
-
static
|
|
3340
|
-
return inv('
|
|
3085
|
+
static sessionGetSessionFlags() {
|
|
3086
|
+
return inv('0x51F33DBC1A41CBFD', rai());
|
|
3341
3087
|
}
|
|
3342
3088
|
/**
|
|
3089
|
+
* Note: this native was added in build 1311.23
|
|
3090
|
+
*
|
|
3343
3091
|
* @returns
|
|
3344
3092
|
*/
|
|
3345
|
-
static
|
|
3346
|
-
return inv('
|
|
3093
|
+
static N_0x039AD6B57D5179FF() {
|
|
3094
|
+
return inv('0x039AD6B57D5179FF', rai());
|
|
3347
3095
|
}
|
|
3348
3096
|
/**
|
|
3349
|
-
*
|
|
3350
|
-
*
|
|
3351
|
-
* @param
|
|
3352
|
-
* @
|
|
3097
|
+
* Old name: _NETWORK_GET_NUM_UNACKED_FOR_PLAYER
|
|
3098
|
+
*
|
|
3099
|
+
* @param player
|
|
3100
|
+
* @returns
|
|
3353
3101
|
*/
|
|
3354
|
-
static
|
|
3355
|
-
inv('
|
|
3102
|
+
static getNumUnackedReliables(player) {
|
|
3103
|
+
return inv('0xFF8FCF9FFC458A1C', player.handle, rai());
|
|
3356
3104
|
}
|
|
3357
3105
|
/**
|
|
3358
|
-
* @param
|
|
3106
|
+
* @param entity
|
|
3107
|
+
* @param toggle
|
|
3359
3108
|
*/
|
|
3360
|
-
static
|
|
3361
|
-
inv('
|
|
3109
|
+
static allowEntityFadingForInstances(entity, toggle) {
|
|
3110
|
+
inv('0xF3354D6CA46F419D', entity.handle, toggle);
|
|
3362
3111
|
}
|
|
3363
3112
|
/**
|
|
3364
|
-
*
|
|
3365
|
-
* @param player
|
|
3366
|
-
* @returns p2
|
|
3113
|
+
* Only used in R* Script startup_clip
|
|
3367
3114
|
*/
|
|
3368
|
-
static
|
|
3369
|
-
|
|
3370
|
-
return [!!result[0], result[1]];
|
|
3115
|
+
static N_0xFD4272A137703449() {
|
|
3116
|
+
inv('0xFD4272A137703449');
|
|
3371
3117
|
}
|
|
3372
3118
|
/**
|
|
3373
|
-
* @
|
|
3119
|
+
* @param player
|
|
3120
|
+
* @param type
|
|
3374
3121
|
*/
|
|
3375
|
-
static
|
|
3376
|
-
|
|
3122
|
+
static N_0x51951DE06C0D1C40(player, type) {
|
|
3123
|
+
inv('0x51951DE06C0D1C40', player.handle, type);
|
|
3377
3124
|
}
|
|
3378
3125
|
/**
|
|
3379
3126
|
* @param p0
|
|
3380
|
-
* @param p1
|
|
3381
|
-
* @param p2
|
|
3382
3127
|
* @returns
|
|
3383
3128
|
*/
|
|
3384
|
-
static
|
|
3385
|
-
return inv('
|
|
3129
|
+
static N_0x5ED39DA62BEB1330(p0) {
|
|
3130
|
+
return inv('0x5ED39DA62BEB1330', p0);
|
|
3386
3131
|
}
|
|
3387
3132
|
/**
|
|
3388
|
-
*
|
|
3389
|
-
*
|
|
3133
|
+
* @param p0
|
|
3134
|
+
* @param index
|
|
3390
3135
|
* @returns
|
|
3391
3136
|
*/
|
|
3392
|
-
static
|
|
3393
|
-
return inv('
|
|
3394
|
-
}
|
|
3395
|
-
/**
|
|
3396
|
-
* @param amount
|
|
3397
|
-
*/
|
|
3398
|
-
static reserveNetworkMissionPeds(amount) {
|
|
3399
|
-
inv('0xB60FEBA45333D36F', amount);
|
|
3137
|
+
static ugcQueryGetName(p0, index) {
|
|
3138
|
+
return inv('0x2D053EA815702DD1', p0, index, ras());
|
|
3400
3139
|
}
|
|
3401
3140
|
/**
|
|
3402
|
-
* @param
|
|
3403
|
-
* @param
|
|
3141
|
+
* @param p0
|
|
3142
|
+
* @param index
|
|
3143
|
+
* @returns
|
|
3404
3144
|
*/
|
|
3405
|
-
static
|
|
3406
|
-
inv('
|
|
3145
|
+
static ugcQueryGetBookMarked(p0, index) {
|
|
3146
|
+
return inv('0x98539FC453AEA639', p0, index);
|
|
3407
3147
|
}
|
|
3408
3148
|
/**
|
|
3409
|
-
* @param
|
|
3410
|
-
* @param
|
|
3149
|
+
* @param entity
|
|
3150
|
+
* @param timer
|
|
3151
|
+
* @param p2
|
|
3411
3152
|
*/
|
|
3412
|
-
static
|
|
3413
|
-
inv('
|
|
3153
|
+
static setNetworkRespotTimer(entity, timer, p2) {
|
|
3154
|
+
inv('0x442B4347B6EC36E8', entity.handle, timer, p2);
|
|
3414
3155
|
}
|
|
3415
3156
|
/**
|
|
3416
3157
|
* @returns gamerHandle
|
|
3417
3158
|
*/
|
|
3418
|
-
static
|
|
3419
|
-
const result = inv('
|
|
3159
|
+
static getGamertagFromFriend() {
|
|
3160
|
+
const result = inv('0x5659D87BE674AB17', pvi(), ras());
|
|
3420
3161
|
return [result[0], result[1]];
|
|
3421
3162
|
}
|
|
3422
3163
|
/**
|
|
3423
|
-
* @param
|
|
3164
|
+
* @param player
|
|
3424
3165
|
* @returns
|
|
3425
3166
|
*/
|
|
3426
|
-
static
|
|
3427
|
-
return
|
|
3167
|
+
static getPlayerWaypointIsActive(player) {
|
|
3168
|
+
return inv('0xDCC4B7F7112E8AB7', player.handle);
|
|
3428
3169
|
}
|
|
3429
3170
|
/**
|
|
3430
|
-
* @param
|
|
3171
|
+
* @param inviteIndex
|
|
3431
3172
|
* @returns
|
|
3432
3173
|
*/
|
|
3433
|
-
static
|
|
3434
|
-
return inv('
|
|
3174
|
+
static N_0x981146E5C9CE9250(inviteIndex) {
|
|
3175
|
+
return !!inv('0x981146E5C9CE9250', inviteIndex, rai());
|
|
3435
3176
|
}
|
|
3436
3177
|
/**
|
|
3437
|
-
*
|
|
3438
|
-
*
|
|
3439
|
-
* @param ped
|
|
3440
|
-
* @returns p1
|
|
3178
|
+
* @param netID
|
|
3441
3179
|
*/
|
|
3442
|
-
static
|
|
3443
|
-
|
|
3444
|
-
return [createFromHandle('Player', result[0]), result[1]];
|
|
3180
|
+
static disableProximityMigration(netID) {
|
|
3181
|
+
inv('0x407091CF6037118E', netID);
|
|
3445
3182
|
}
|
|
3446
3183
|
/**
|
|
3184
|
+
* @param p0
|
|
3447
3185
|
* @param p1
|
|
3448
|
-
* @
|
|
3186
|
+
* @param dataSize
|
|
3187
|
+
* @returns outData
|
|
3449
3188
|
*/
|
|
3450
|
-
static
|
|
3451
|
-
const result = inv('
|
|
3189
|
+
static getRecentGamerNames(p0, p1, dataSize) {
|
|
3190
|
+
const result = inv('0xFEFCC345CE357453', p0, p1, pvi(), dataSize);
|
|
3452
3191
|
return [result[0], result[1]];
|
|
3453
3192
|
}
|
|
3454
3193
|
/**
|
|
3455
|
-
*
|
|
3456
|
-
* 0 - NOT_FOUND
|
|
3457
|
-
* 1 - IN_PROGRESS
|
|
3458
|
-
* 2 - TIMEOUT
|
|
3459
|
-
* 3 - PLAYER_OFFLINE
|
|
3460
|
-
* 4 - GANG_MEMBERS_CHANGED
|
|
3461
|
-
* 5 - PLAYER_CANCELLED
|
|
3462
|
-
* 6 - PLAYER_SET_TOO_LARGE
|
|
3463
|
-
* 7 - MATCH_ACCEPTED
|
|
3464
|
-
* 8 - OTHER
|
|
3465
|
-
*
|
|
3466
|
-
* @returns sessionRequestId; p1
|
|
3194
|
+
* @returns
|
|
3467
3195
|
*/
|
|
3468
|
-
static
|
|
3469
|
-
|
|
3470
|
-
return [result[0], result[1], result[2]];
|
|
3196
|
+
static isInTutorialSession() {
|
|
3197
|
+
return !!inv('0xADA24309FE08DACF', rai());
|
|
3471
3198
|
}
|
|
3472
|
-
|
|
3473
|
-
|
|
3199
|
+
/**
|
|
3200
|
+
* @param tunableContext
|
|
3201
|
+
* @param tunableName
|
|
3202
|
+
* @returns value
|
|
3203
|
+
*/
|
|
3204
|
+
static accessTunableInt(tunableContext, tunableName) {
|
|
3205
|
+
const result = inv('0x8BE1146DFD5D4468', _h(tunableContext), _h(tunableName), pvi(), rai());
|
|
3206
|
+
return [!!result[0], result[1]];
|
|
3474
3207
|
}
|
|
3475
3208
|
/**
|
|
3476
|
-
* @param
|
|
3209
|
+
* @param tunableContext
|
|
3210
|
+
* @param tunableName
|
|
3211
|
+
* @param defaultValue
|
|
3477
3212
|
* @returns
|
|
3478
3213
|
*/
|
|
3479
|
-
static
|
|
3480
|
-
return
|
|
3214
|
+
static tryAccessTunableIntHash(tunableContext, tunableName, defaultValue) {
|
|
3215
|
+
return inv('0xA25E006B36719774', _h(tunableContext), _h(tunableName), defaultValue, rai());
|
|
3481
3216
|
}
|
|
3482
3217
|
/**
|
|
3483
|
-
* @param
|
|
3218
|
+
* @param tunableContext
|
|
3219
|
+
* @param tunableName
|
|
3220
|
+
* @param defaultValue
|
|
3484
3221
|
* @returns
|
|
3485
3222
|
*/
|
|
3486
|
-
static
|
|
3487
|
-
return !!inv('
|
|
3223
|
+
static tryAccessTunableBoolHash(tunableContext, tunableName, defaultValue) {
|
|
3224
|
+
return !!inv('0xB2AD5D29A99D4B26', _h(tunableContext), _h(tunableName), defaultValue, rai());
|
|
3488
3225
|
}
|
|
3489
3226
|
/**
|
|
3490
|
-
* @param
|
|
3227
|
+
* @param seed
|
|
3491
3228
|
*/
|
|
3492
|
-
static
|
|
3493
|
-
inv('
|
|
3229
|
+
static seedRandomNumberGenerator(seed) {
|
|
3230
|
+
inv('0xF1B84178F8674195', seed);
|
|
3494
3231
|
}
|
|
3495
3232
|
/**
|
|
3496
|
-
* @
|
|
3233
|
+
* @param netId
|
|
3234
|
+
* @returns
|
|
3497
3235
|
*/
|
|
3498
|
-
static
|
|
3499
|
-
|
|
3500
|
-
return [result[0], result[1]];
|
|
3236
|
+
static isNetworkIdOwnedByParticipant(netId) {
|
|
3237
|
+
return !!inv('0xA1607996431332DF', netId, rai());
|
|
3501
3238
|
}
|
|
3502
3239
|
/**
|
|
3503
|
-
*
|
|
3504
|
-
*
|
|
3240
|
+
* @param scriptName
|
|
3241
|
+
* @param p1
|
|
3242
|
+
* @param p2
|
|
3505
3243
|
* @returns
|
|
3506
3244
|
*/
|
|
3507
|
-
static
|
|
3508
|
-
return inv('
|
|
3245
|
+
static getHostOfScript(scriptName, p1, p2) {
|
|
3246
|
+
return createFromHandle('Player', inv('0x1D6A14F1F9A736FC', scriptName, p1, p2, rai()));
|
|
3247
|
+
}
|
|
3248
|
+
static spawnConfigSetCancelSearch() {
|
|
3249
|
+
inv('0x765E60A1DCB8B1CE');
|
|
3509
3250
|
}
|
|
3510
3251
|
/**
|
|
3511
|
-
* @param
|
|
3512
|
-
* @param maxInstancePlayers
|
|
3513
|
-
* @param sessionFlags
|
|
3514
|
-
* @param bucketId
|
|
3252
|
+
* @param player
|
|
3515
3253
|
* @returns
|
|
3516
3254
|
*/
|
|
3517
|
-
static
|
|
3518
|
-
return inv('
|
|
3255
|
+
static getPlayerIndex(player) {
|
|
3256
|
+
return inv('0x24FB80D107371267', player.handle, rai());
|
|
3519
3257
|
}
|
|
3520
3258
|
/**
|
|
3521
|
-
* @param
|
|
3259
|
+
* @param ugcRequestId
|
|
3522
3260
|
* @returns
|
|
3523
3261
|
*/
|
|
3524
|
-
static
|
|
3525
|
-
return inv('
|
|
3262
|
+
static ugcQueryGetContentNum(ugcRequestId) {
|
|
3263
|
+
return inv('0x76160E0396142765', ugcRequestId, rai());
|
|
3526
3264
|
}
|
|
3527
3265
|
/**
|
|
3528
|
-
* @
|
|
3266
|
+
* @param ctx
|
|
3267
|
+
* @param lh
|
|
3268
|
+
* @param ec
|
|
3269
|
+
* @param h
|
|
3529
3270
|
*/
|
|
3530
|
-
static
|
|
3531
|
-
|
|
3532
|
-
return result;
|
|
3271
|
+
static alert(ctx, lh, ec, h) {
|
|
3272
|
+
inv('0x1BAA028F52EED310', _h(ctx), _h(lh), ec, h);
|
|
3533
3273
|
}
|
|
3534
3274
|
/**
|
|
3535
|
-
*
|
|
3536
|
-
*
|
|
3537
|
-
* @param threadId
|
|
3538
|
-
* @returns pedMax; vehicleMax; unkMax; pedMin; vehicleMin; unkMin
|
|
3275
|
+
* @param contentId
|
|
3276
|
+
* @returns
|
|
3539
3277
|
*/
|
|
3540
|
-
static
|
|
3541
|
-
|
|
3542
|
-
|
|
3278
|
+
static ugcIsBookMarked(contentId) {
|
|
3279
|
+
return !!inv('0xE42D1042F09865FE', contentId, rai());
|
|
3280
|
+
}
|
|
3281
|
+
/**
|
|
3282
|
+
* @returns p0
|
|
3283
|
+
*/
|
|
3284
|
+
static autoSessionCanSplitSession() {
|
|
3285
|
+
const result = inv('0xE404BFF0ABA23CDC', pvi());
|
|
3286
|
+
return [result[0], result[1]];
|
|
3287
|
+
}
|
|
3288
|
+
/**
|
|
3289
|
+
* _NETWORK_A* - _NETWORK_C*
|
|
3290
|
+
*
|
|
3291
|
+
* @param p0
|
|
3292
|
+
*/
|
|
3293
|
+
static N_0x34BC1E79546BA543(p0) {
|
|
3294
|
+
inv('0x34BC1E79546BA543', p0);
|
|
3295
|
+
}
|
|
3296
|
+
/**
|
|
3297
|
+
* @param count
|
|
3298
|
+
* @returns data
|
|
3299
|
+
*/
|
|
3300
|
+
static getGamerSessionFromHandle(count) {
|
|
3301
|
+
const result = inv('0xFBDFE1C1356E12E8', pvi(), count);
|
|
3302
|
+
return [result[0], result[1]];
|
|
3303
|
+
}
|
|
3304
|
+
/**
|
|
3305
|
+
* @param p0
|
|
3306
|
+
* @param p1
|
|
3307
|
+
* @param p2
|
|
3308
|
+
*/
|
|
3309
|
+
static registerHostBroadcastVariables(p0, p1, p2) {
|
|
3310
|
+
inv('0x3E9B2F01C50DF595', p0, p1, p2);
|
|
3311
|
+
}
|
|
3312
|
+
/**
|
|
3313
|
+
* @returns
|
|
3314
|
+
*/
|
|
3315
|
+
static N_0x18B94666CF610AEB() {
|
|
3316
|
+
return !!inv('0x18B94666CF610AEB', rai());
|
|
3543
3317
|
}
|
|
3544
3318
|
/**
|
|
3319
|
+
* p0 appears to be for MP
|
|
3320
|
+
*
|
|
3545
3321
|
* @param p0
|
|
3546
3322
|
* @returns
|
|
3547
3323
|
*/
|
|
3548
|
-
static
|
|
3549
|
-
return
|
|
3324
|
+
static getNumReservedMissionObjects(p0) {
|
|
3325
|
+
return inv('0xAA81B5F10BC43AC2', p0, rai());
|
|
3550
3326
|
}
|
|
3551
3327
|
/**
|
|
3552
|
-
* @
|
|
3553
|
-
* @param minute
|
|
3554
|
-
* @param second
|
|
3555
|
-
* @param transitionTime
|
|
3556
|
-
* @param pauseClock
|
|
3328
|
+
* @returns
|
|
3557
3329
|
*/
|
|
3558
|
-
static
|
|
3559
|
-
inv('
|
|
3330
|
+
static hasSocialClubAccount() {
|
|
3331
|
+
return !!inv('0x67A5589628E0CFF6', rai());
|
|
3332
|
+
}
|
|
3333
|
+
/**
|
|
3334
|
+
* @param netHandle
|
|
3335
|
+
* @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist.
|
|
3336
|
+
*/
|
|
3337
|
+
static netToPed(netHandle) {
|
|
3338
|
+
return createFromHandle('Ped', inv('0xBDCD95FC216A8B3E', netHandle, rai()));
|
|
3339
|
+
}
|
|
3340
|
+
/**
|
|
3341
|
+
* 0 = succeeded
|
|
3342
|
+
* 1 = pending
|
|
3343
|
+
* 2 = failed
|
|
3344
|
+
*
|
|
3345
|
+
* @param textureDownloadId
|
|
3346
|
+
* @returns
|
|
3347
|
+
*/
|
|
3348
|
+
static getStatusOfTextureDownload(textureDownloadId) {
|
|
3349
|
+
return inv('0x8BD6C6DEA20E82C6', textureDownloadId, rai());
|
|
3350
|
+
}
|
|
3351
|
+
/**
|
|
3352
|
+
* @returns gamerHandle
|
|
3353
|
+
*/
|
|
3354
|
+
static N_0xF23A6D6C11D8EC15() {
|
|
3355
|
+
const result = inv('0xF23A6D6C11D8EC15', pvi(), rai());
|
|
3356
|
+
return [!!result[0], result[1]];
|
|
3357
|
+
}
|
|
3358
|
+
/**
|
|
3359
|
+
* Always returns 40
|
|
3360
|
+
*
|
|
3361
|
+
* @returns
|
|
3362
|
+
*/
|
|
3363
|
+
static getMaxNumNetworkVehicles() {
|
|
3364
|
+
return inv('0x0AFCE529F69B21FF', rai());
|
|
3560
3365
|
}
|
|
3561
3366
|
/**
|
|
3562
3367
|
* @param netId
|
|
3368
|
+
* @param p1
|
|
3369
|
+
* @param p2
|
|
3370
|
+
*/
|
|
3371
|
+
static keepNetworkIdInFastInstance(netId, p1, p2) {
|
|
3372
|
+
inv('0xE1BC73D6815BA361', netId, p1, p2);
|
|
3373
|
+
}
|
|
3374
|
+
/**
|
|
3375
|
+
* @returns gamerHandle
|
|
3376
|
+
*/
|
|
3377
|
+
static isHandleValid() {
|
|
3378
|
+
const result = inv('0x6F79B93B0A8E4133', pvi(), rai());
|
|
3379
|
+
return [!!result[0], result[1]];
|
|
3380
|
+
}
|
|
3381
|
+
/**
|
|
3382
|
+
* @param p0
|
|
3383
|
+
* @returns p1
|
|
3384
|
+
*/
|
|
3385
|
+
static N_0x691E4DE5309EAEFC(p0) {
|
|
3386
|
+
const result = inv('0x691E4DE5309EAEFC', p0, pvi());
|
|
3387
|
+
return result;
|
|
3388
|
+
}
|
|
3389
|
+
/**
|
|
3390
|
+
* @param entity
|
|
3391
|
+
* @returns
|
|
3392
|
+
*/
|
|
3393
|
+
static getNetworkIdFromEntity(entity) {
|
|
3394
|
+
return inv('0xA11700682F3AD45C', entity.handle, rai());
|
|
3395
|
+
}
|
|
3396
|
+
/**
|
|
3397
|
+
* Only used in SP R* Script dominoes_sp: p1 = 0
|
|
3398
|
+
*
|
|
3563
3399
|
* @param player
|
|
3400
|
+
* @param p1
|
|
3401
|
+
*/
|
|
3402
|
+
static N_0x02C4C6C2900D84DF(player, p1) {
|
|
3403
|
+
inv('0x02C4C6C2900D84DF', player.handle, p1);
|
|
3404
|
+
}
|
|
3405
|
+
/**
|
|
3406
|
+
* @returns
|
|
3407
|
+
*/
|
|
3408
|
+
static isSessionActive() {
|
|
3409
|
+
return !!inv('0xD83C2B94E7508980', rai());
|
|
3410
|
+
}
|
|
3411
|
+
/**
|
|
3412
|
+
* @param animScene
|
|
3413
|
+
* @returns
|
|
3414
|
+
*/
|
|
3415
|
+
static animSceneToNet(animScene) {
|
|
3416
|
+
return inv('0xE0D73CDDEA79DDCD', animScene.handle, rai());
|
|
3417
|
+
}
|
|
3418
|
+
/**
|
|
3419
|
+
* @returns
|
|
3420
|
+
*/
|
|
3421
|
+
static getRank() {
|
|
3422
|
+
return inv('0x32C90CDFAF40514C', rai());
|
|
3423
|
+
}
|
|
3424
|
+
/**
|
|
3425
|
+
* @param message
|
|
3426
|
+
* @returns gamerHandle
|
|
3427
|
+
*/
|
|
3428
|
+
static addFriend(message) {
|
|
3429
|
+
const result = inv('0x8E02D73914064223', pvi(), message, rai());
|
|
3430
|
+
return [!!result[0], result[1]];
|
|
3431
|
+
}
|
|
3432
|
+
/**
|
|
3433
|
+
* @returns
|
|
3434
|
+
*/
|
|
3435
|
+
static N_0xB389289F031F059A() {
|
|
3436
|
+
return inv('0xB389289F031F059A', rai());
|
|
3437
|
+
}
|
|
3438
|
+
/**
|
|
3439
|
+
* Subtracts the first argument from the second, then returns whether the result is negative.
|
|
3440
|
+
*
|
|
3441
|
+
* @param timeA
|
|
3442
|
+
* @param timeB
|
|
3443
|
+
* @returns
|
|
3444
|
+
*/
|
|
3445
|
+
static isTimeMoreThan(timeA, timeB) {
|
|
3446
|
+
return !!inv('0xDE350F8651E4346C', timeA, timeB, rai());
|
|
3447
|
+
}
|
|
3448
|
+
/**
|
|
3449
|
+
* @returns
|
|
3450
|
+
*/
|
|
3451
|
+
static pedmugshotRequestSend() {
|
|
3452
|
+
return inv('0xFBC30B70B3CDB87E');
|
|
3453
|
+
}
|
|
3454
|
+
/**
|
|
3455
|
+
* Old name: _NETWORK_SET_PASSIVE_MODE_OPTION
|
|
3456
|
+
*
|
|
3564
3457
|
* @param toggle
|
|
3565
3458
|
*/
|
|
3566
|
-
static
|
|
3567
|
-
inv('
|
|
3459
|
+
static setPlayerIsPassive(toggle) {
|
|
3460
|
+
inv('0x9C25E8EC4C535FBD', toggle);
|
|
3461
|
+
}
|
|
3462
|
+
/**
|
|
3463
|
+
* Seems to always return 0, but it's used in quite a few loops. for (num3 = 0; num3 < NETWORK::0xCCD8C02D(); num3++)
|
|
3464
|
+
* {
|
|
3465
|
+
* if (NETWORK::NETWORK_IS_PARTICIPANT_ACTIVE(PLAYER::0x98F3B274(num3)) != 0)
|
|
3466
|
+
* {
|
|
3467
|
+
* var num5 = NETWORK::NETWORK_GET_PLAYER_INDEX(PLAYER::0x98F3B274(num3));
|
|
3468
|
+
*
|
|
3469
|
+
* @returns
|
|
3470
|
+
*/
|
|
3471
|
+
static getMaxNumParticipants() {
|
|
3472
|
+
return inv('0xA6C90FBC38E395EE', rai());
|
|
3473
|
+
}
|
|
3474
|
+
/**
|
|
3475
|
+
* @param ropeId
|
|
3476
|
+
* @returns
|
|
3477
|
+
*/
|
|
3478
|
+
static getNetworkIdFromRopeId(ropeId) {
|
|
3479
|
+
return inv('0x42871327315EDAE8', ropeId, rai());
|
|
3480
|
+
}
|
|
3481
|
+
/**
|
|
3482
|
+
* @param ugcRequestId
|
|
3483
|
+
* @returns
|
|
3484
|
+
*/
|
|
3485
|
+
static ugcQueryWasForceCancelled(ugcRequestId) {
|
|
3486
|
+
return inv('0xF8F0705E77A0E705', ugcRequestId);
|
|
3487
|
+
}
|
|
3488
|
+
/**
|
|
3489
|
+
* @param p0
|
|
3490
|
+
*/
|
|
3491
|
+
static ugcSetQueryDataFromOffline(p0) {
|
|
3492
|
+
inv('0xF98DDE0A8ED09323', p0);
|
|
3493
|
+
}
|
|
3494
|
+
/**
|
|
3495
|
+
* @returns gamerHandle
|
|
3496
|
+
*/
|
|
3497
|
+
static isFriendHandleInSameTitle() {
|
|
3498
|
+
const result = inv('0x665161D250850A9F', pvi(), rai());
|
|
3499
|
+
return [!!result[0], result[1]];
|
|
3500
|
+
}
|
|
3501
|
+
/**
|
|
3502
|
+
* @param p0
|
|
3503
|
+
* @returns
|
|
3504
|
+
*/
|
|
3505
|
+
static N_0xE8E633215471BB5D(p0) {
|
|
3506
|
+
return inv('0xE8E633215471BB5D', p0, rai());
|
|
3507
|
+
}
|
|
3508
|
+
/**
|
|
3509
|
+
* Note: this native was added in build 1311.23
|
|
3510
|
+
*
|
|
3511
|
+
* @param p0
|
|
3512
|
+
* @returns
|
|
3513
|
+
*/
|
|
3514
|
+
static N_0x917AD74BDCF8B6E9(p0) {
|
|
3515
|
+
return inv('0x917AD74BDCF8B6E9', p0, rai());
|
|
3516
|
+
}
|
|
3517
|
+
/**
|
|
3518
|
+
* nullsub, doesn't do anything
|
|
3519
|
+
*
|
|
3520
|
+
* @param p0
|
|
3521
|
+
*/
|
|
3522
|
+
static N_0x0CC28C08613BA9E5(p0) {
|
|
3523
|
+
inv('0x0CC28C08613BA9E5', p0);
|
|
3524
|
+
}
|
|
3525
|
+
/**
|
|
3526
|
+
* Old name: _IS_ENTITY_GHOSTED_TO_LOCAL_PLAYER
|
|
3527
|
+
*
|
|
3528
|
+
* @param entity
|
|
3529
|
+
* @returns
|
|
3530
|
+
*/
|
|
3531
|
+
static isEntityAGhost(entity) {
|
|
3532
|
+
return !!inv('0x21D04D7BC538C146', entity.handle, rai());
|
|
3533
|
+
}
|
|
3534
|
+
static clearGetGamerStatus() {
|
|
3535
|
+
inv('0x86E0660E4F5C956D');
|
|
3536
|
+
}
|
|
3537
|
+
/**
|
|
3538
|
+
* @param player
|
|
3539
|
+
* @param entity
|
|
3540
|
+
* @returns p2
|
|
3541
|
+
*/
|
|
3542
|
+
static getAssistedDamageOfEntity(player, entity) {
|
|
3543
|
+
const result = inv('0x4CACA84440FA26F6', player.handle, entity.handle, pvi(), rai());
|
|
3544
|
+
return [!!result[0], result[1]];
|
|
3545
|
+
}
|
|
3546
|
+
/**
|
|
3547
|
+
* flags:
|
|
3548
|
+
* enum eSessionRequestOptionFlags
|
|
3549
|
+
* {
|
|
3550
|
+
* SESSION_REQUEST_OPTION_FLAG_INCLUDE_GANG_MEMBERS = (1 << 1),
|
|
3551
|
+
* SESSION_REQUEST_OPTION_FLAG_LEADER_KEEPS_GANG = (1 << 7),
|
|
3552
|
+
* }; seamlessType:
|
|
3553
|
+
* enum eSeamlessType
|
|
3554
|
+
* {
|
|
3555
|
+
* SEAMLESS_TYPE_NORMAL,
|
|
3556
|
+
* SEAMLESS_TYPE_PVE,
|
|
3557
|
+
* SEAMLESS_TYPE_DEV,
|
|
3558
|
+
* SEAMLESS_TYPE_NO_SEAMLESS
|
|
3559
|
+
* };
|
|
3560
|
+
*
|
|
3561
|
+
* @param flags
|
|
3562
|
+
* @param seamlessType
|
|
3563
|
+
* @returns sessionRequestId
|
|
3564
|
+
*/
|
|
3565
|
+
static requestSessionSeamless(flags, seamlessType) {
|
|
3566
|
+
const result = inv('0x04019AE4956D4393', flags, seamlessType, pvi());
|
|
3567
|
+
return [result[0], result[1]];
|
|
3568
3568
|
}
|
|
3569
3569
|
/**
|
|
3570
3570
|
* Note: this native was added in build 1311.16
|