@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
|
@@ -9,75 +9,68 @@ import type { Vehicle } from '../classes/Vehicle';
|
|
|
9
9
|
import type { Volume } from '../classes/Volume';
|
|
10
10
|
import { Vector3 } from '../types/Vector3';
|
|
11
11
|
export declare class Network {
|
|
12
|
-
static disableRealtimeMultiplayer(): void;
|
|
13
12
|
/**
|
|
14
|
-
* @param
|
|
13
|
+
* @param description
|
|
14
|
+
* @returns
|
|
15
15
|
*/
|
|
16
|
-
static
|
|
16
|
+
static ugcDidDescriptionRequestSucceed(description: string | number): boolean;
|
|
17
17
|
/**
|
|
18
|
-
* @param tunableContext
|
|
19
|
-
* @param tunableName
|
|
20
18
|
* @returns
|
|
21
19
|
*/
|
|
22
|
-
static
|
|
20
|
+
static getGameMode(): number;
|
|
23
21
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* @param p0
|
|
27
|
-
* @returns
|
|
22
|
+
* @param amount
|
|
28
23
|
*/
|
|
29
|
-
static
|
|
30
|
-
static startSoloTutorialSession(): void;
|
|
24
|
+
static reserveNetworkClientMissionPeds(amount: number): void;
|
|
31
25
|
/**
|
|
32
26
|
* @param p0
|
|
27
|
+
* @param p1
|
|
33
28
|
* @param p2
|
|
34
29
|
* @param p3
|
|
35
|
-
* @returns p1
|
|
36
30
|
*/
|
|
37
|
-
static
|
|
31
|
+
static setInMpCutscene(p0: boolean, p1: boolean, p2: number, p3: boolean): void;
|
|
38
32
|
/**
|
|
39
|
-
* @
|
|
33
|
+
* @param toggle
|
|
34
|
+
* @param playerPed
|
|
40
35
|
*/
|
|
41
|
-
static
|
|
36
|
+
static setInSpectatorMode(toggle: boolean, playerPed: Ped): void;
|
|
42
37
|
/**
|
|
43
|
-
* @param
|
|
38
|
+
* @param p0
|
|
44
39
|
*/
|
|
45
|
-
static
|
|
40
|
+
static N_0x3E74A687A73979C6(p0: boolean): void;
|
|
46
41
|
/**
|
|
47
|
-
* @returns
|
|
42
|
+
* @returns sessionRequestId
|
|
48
43
|
*/
|
|
49
|
-
static
|
|
44
|
+
static sessionIsRequestPendingTransition(): [any, number];
|
|
50
45
|
/**
|
|
51
|
-
* @param
|
|
52
|
-
* @param index
|
|
53
|
-
* @returns
|
|
46
|
+
* @param offset
|
|
54
47
|
*/
|
|
55
|
-
static
|
|
48
|
+
static spawnConfigSetGroundToRootOffset(offset: number): void;
|
|
56
49
|
/**
|
|
57
50
|
* @returns
|
|
58
51
|
*/
|
|
59
|
-
static
|
|
60
|
-
static N_0x0BF90CBB6B72977B(): void;
|
|
52
|
+
static checkAccessAndAlertIfFail(): any;
|
|
61
53
|
/**
|
|
62
|
-
*
|
|
54
|
+
* Note: this native was added in build 1311.23
|
|
55
|
+
*
|
|
56
|
+
* @returns
|
|
63
57
|
*/
|
|
64
|
-
static
|
|
58
|
+
static N_0xFB3205788F8AFA3F(): number;
|
|
65
59
|
/**
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* @param p0
|
|
60
|
+
* @returns
|
|
69
61
|
*/
|
|
70
|
-
static
|
|
62
|
+
static getNumRecentGamers(): number;
|
|
71
63
|
/**
|
|
72
|
-
* @param entity
|
|
73
64
|
* @returns
|
|
74
65
|
*/
|
|
75
|
-
static
|
|
66
|
+
static N_0xD3A3C8B9F3BDEF81(): any;
|
|
76
67
|
/**
|
|
77
|
-
*
|
|
68
|
+
* Returns the entity's network ID.
|
|
69
|
+
*
|
|
70
|
+
* @param entity
|
|
78
71
|
* @returns
|
|
79
72
|
*/
|
|
80
|
-
static
|
|
73
|
+
static N_0xF302AB9D978352EE(entity: Entity): number;
|
|
81
74
|
/**
|
|
82
75
|
* @param contentTypeName
|
|
83
76
|
* @param contentId
|
|
@@ -169,171 +162,260 @@ export declare class Network {
|
|
|
169
162
|
*/
|
|
170
163
|
static getEntityFromNetworkId(netId: number): Entity | null;
|
|
171
164
|
/**
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
* @param p0
|
|
175
|
-
* @param p1
|
|
176
|
-
* @param p2
|
|
177
|
-
* @returns
|
|
165
|
+
* Note: this native was added in build 1311.23, but was only used after build 1436.25
|
|
178
166
|
*/
|
|
179
|
-
static
|
|
167
|
+
static requestCloudTunables(): void;
|
|
180
168
|
/**
|
|
181
169
|
* @param toggle
|
|
182
170
|
*/
|
|
183
|
-
static
|
|
171
|
+
static setScriptReadyForEvents(toggle: boolean): void;
|
|
184
172
|
/**
|
|
173
|
+
* @param amount
|
|
185
174
|
* @returns
|
|
186
175
|
*/
|
|
187
|
-
static
|
|
176
|
+
static canRegisterMissionPeds(amount: number): boolean;
|
|
188
177
|
/**
|
|
189
|
-
* @
|
|
178
|
+
* @returns gamerHandle1; gamerHandle2
|
|
179
|
+
*/
|
|
180
|
+
static areHandlesTheSame(): [boolean, number, number];
|
|
181
|
+
/**
|
|
182
|
+
* Old name: _SET_LOCAL_PLAYER_AS_GHOST
|
|
183
|
+
*
|
|
190
184
|
* @param toggle
|
|
191
185
|
*/
|
|
192
|
-
static
|
|
186
|
+
static setLocalPlayerAsGhost(toggle: boolean): void;
|
|
193
187
|
/**
|
|
194
|
-
*
|
|
195
|
-
*
|
|
188
|
+
* Example: char displayName[64];
|
|
189
|
+
* if (_NETWORK_GET_DISPLAY_NAME_FROM_HANDLE(handle, displayName))
|
|
190
|
+
* {
|
|
191
|
+
* // use displayName
|
|
192
|
+
* }
|
|
193
|
+
*
|
|
194
|
+
* @param displayName
|
|
195
|
+
* @returns gamerHandle
|
|
196
|
+
*/
|
|
197
|
+
static getDisplayNameFromHandle(displayName: string | null): [any, number];
|
|
198
|
+
static endTutorialSession(): void;
|
|
199
|
+
/**
|
|
200
|
+
* @param p0
|
|
196
201
|
* @param p2
|
|
197
|
-
* @returns
|
|
202
|
+
* @returns p1
|
|
198
203
|
*/
|
|
199
|
-
static
|
|
204
|
+
static isPlayerAParticipantOnScript(p0: Player, p2: any): [boolean, number];
|
|
200
205
|
/**
|
|
201
|
-
* @param description
|
|
202
206
|
* @returns
|
|
203
207
|
*/
|
|
204
|
-
static
|
|
208
|
+
static getTotalNumFriends(): number;
|
|
205
209
|
/**
|
|
206
|
-
*
|
|
210
|
+
* Returns ugcRequestId
|
|
211
|
+
*
|
|
212
|
+
* @param p0
|
|
213
|
+
* @param maxGet
|
|
214
|
+
* @param contentTypeName
|
|
215
|
+
* @param p3
|
|
216
|
+
* @param p4
|
|
217
|
+
* @param p5
|
|
218
|
+
* @returns
|
|
207
219
|
*/
|
|
208
|
-
static
|
|
220
|
+
static ugcQueryByContentType(p0: number, maxGet: number, contentTypeName: string | null, p3: number, p4: number, p5: number): number;
|
|
209
221
|
/**
|
|
210
|
-
* @param
|
|
222
|
+
* @param p0
|
|
223
|
+
* @param index
|
|
224
|
+
* @param p2
|
|
211
225
|
* @returns
|
|
212
226
|
*/
|
|
213
|
-
static
|
|
227
|
+
static ugcQueryGetRating(p0: any, index: number, p2: number): number;
|
|
214
228
|
/**
|
|
215
|
-
* @
|
|
229
|
+
* @param player
|
|
216
230
|
*/
|
|
217
|
-
static
|
|
231
|
+
static N_0xD78A26024BB13E08(player: Player): void;
|
|
218
232
|
/**
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
* @
|
|
233
|
+
* Only used in R* Script fm_race_controller
|
|
234
|
+
*
|
|
235
|
+
* @param p0
|
|
222
236
|
*/
|
|
223
|
-
static
|
|
237
|
+
static N_0x71FA2D1880C48032(p0: boolean): void;
|
|
224
238
|
/**
|
|
239
|
+
* Note: this native was added in build 1311.23
|
|
240
|
+
*
|
|
225
241
|
* @param p0
|
|
242
|
+
* @param p1
|
|
243
|
+
* @param p2
|
|
244
|
+
* @param p3
|
|
226
245
|
* @returns
|
|
227
246
|
*/
|
|
228
|
-
static
|
|
247
|
+
static N_0x5F328FC909F0E0FF(p0: number, p1: number, p2: number, p3: number): boolean;
|
|
229
248
|
/**
|
|
230
|
-
*
|
|
231
|
-
*
|
|
249
|
+
* Old name: _NETWORK_SET_VEHICLE_WHEELS_DESTRUCTIBLE
|
|
250
|
+
*
|
|
251
|
+
* @param entity
|
|
252
|
+
* @param p1
|
|
232
253
|
*/
|
|
233
|
-
static
|
|
254
|
+
static triggerDamageEventForZeroDamage(entity: Entity, p1: boolean): void;
|
|
234
255
|
/**
|
|
235
|
-
*
|
|
256
|
+
* nullsub, doesn't do anything
|
|
236
257
|
*
|
|
237
|
-
* @
|
|
238
|
-
* @param toggle
|
|
258
|
+
* @returns
|
|
239
259
|
*/
|
|
240
|
-
static
|
|
260
|
+
static getNetStatisticsInfo(): any;
|
|
241
261
|
/**
|
|
242
|
-
*
|
|
262
|
+
* nullsub, doesn't do anything
|
|
243
263
|
*/
|
|
244
|
-
static
|
|
264
|
+
static N_0xFC6FCF4C03F1BBF6(): void;
|
|
265
|
+
static N_0x43CF999205084B4B(): void;
|
|
245
266
|
/**
|
|
267
|
+
* p0 appears to be for MP
|
|
268
|
+
*
|
|
246
269
|
* @param p0
|
|
247
|
-
* @
|
|
248
|
-
* @returns gamerHandle
|
|
270
|
+
* @returns
|
|
249
271
|
*/
|
|
250
|
-
static
|
|
272
|
+
static getNumReservedMissionVehicles(p0: boolean): number;
|
|
251
273
|
/**
|
|
252
|
-
* @param
|
|
274
|
+
* @param name
|
|
253
275
|
* @returns
|
|
254
276
|
*/
|
|
255
|
-
static
|
|
277
|
+
static textureDownloadTextureNameIsValid(name: string | null): any;
|
|
256
278
|
/**
|
|
257
|
-
* @
|
|
279
|
+
* @param scriptName
|
|
280
|
+
* @param p1
|
|
281
|
+
* @param p2
|
|
282
|
+
* @param p3
|
|
283
|
+
* @returns
|
|
258
284
|
*/
|
|
259
|
-
static
|
|
285
|
+
static isScriptActive(scriptName: string | null, p1: number, p2: boolean, p3: number): boolean;
|
|
260
286
|
/**
|
|
261
|
-
* @param
|
|
262
|
-
* @param p1
|
|
287
|
+
* @param p0
|
|
263
288
|
*/
|
|
264
|
-
static
|
|
289
|
+
static N_0x5CB8B0C846D0F30B(p0: any): void;
|
|
265
290
|
/**
|
|
266
|
-
* @returns
|
|
291
|
+
* @returns loadingState
|
|
267
292
|
*/
|
|
268
|
-
static
|
|
293
|
+
static canAccessMultiplayer(): [boolean, number];
|
|
269
294
|
/**
|
|
270
|
-
*
|
|
271
|
-
*
|
|
272
|
-
* @returns sessionId1; sessionId2
|
|
295
|
+
* @returns p0
|
|
273
296
|
*/
|
|
274
|
-
static
|
|
297
|
+
static getCurrentFriendPageData(): [any, number];
|
|
275
298
|
/**
|
|
276
|
-
* @returns
|
|
299
|
+
* @returns p0
|
|
277
300
|
*/
|
|
278
|
-
static
|
|
279
|
-
static ugcReleaseAllCachedDescriptions(): void;
|
|
301
|
+
static getSizeOfHostBroadcastDataStorage(): [number, number];
|
|
280
302
|
/**
|
|
281
|
-
* @param animScene
|
|
282
303
|
* @returns
|
|
283
304
|
*/
|
|
284
|
-
static
|
|
285
|
-
static setMissionFinished(): void;
|
|
305
|
+
static getInstanceIdOfThisScript(): number;
|
|
286
306
|
/**
|
|
287
|
-
* Note: this native was added in build 1311.23
|
|
288
|
-
*
|
|
289
307
|
* @param p0
|
|
290
308
|
* @returns
|
|
291
309
|
*/
|
|
292
|
-
static
|
|
310
|
+
static awardHasReachedMaxclaim(p0: any): any;
|
|
293
311
|
/**
|
|
294
|
-
* Note: this native was added in build 1311.23
|
|
295
|
-
*
|
|
296
312
|
* @param p0
|
|
313
|
+
* @returns
|
|
297
314
|
*/
|
|
298
|
-
static
|
|
315
|
+
static N_0xBB697756309D77EE(p0: boolean): any;
|
|
299
316
|
/**
|
|
300
|
-
*
|
|
317
|
+
* @returns
|
|
301
318
|
*/
|
|
302
|
-
static
|
|
319
|
+
static autoSessionIsInstancedSession(): any;
|
|
303
320
|
/**
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
* @
|
|
307
|
-
* @param toggle
|
|
321
|
+
* @param p0
|
|
322
|
+
* @param p1
|
|
323
|
+
* @returns
|
|
308
324
|
*/
|
|
309
|
-
static
|
|
325
|
+
static resetPopulation(p0: boolean, p1: number): any;
|
|
310
326
|
/**
|
|
311
|
-
* @param
|
|
327
|
+
* @param ped
|
|
328
|
+
* @returns Returns the network id for the specified `ped` or `0` if the entity isn't networked.
|
|
312
329
|
*/
|
|
313
|
-
static
|
|
330
|
+
static pedToNet(ped: Ped): number;
|
|
314
331
|
/**
|
|
315
|
-
* Note: this native was added in build 1436.31
|
|
316
|
-
*
|
|
317
332
|
* @param p0
|
|
318
333
|
* @returns
|
|
319
334
|
*/
|
|
320
|
-
static
|
|
335
|
+
static N_0x27B1AE4D8C652F08(p0: number): number;
|
|
321
336
|
/**
|
|
322
|
-
* @param
|
|
337
|
+
* @param entity
|
|
323
338
|
* @returns
|
|
324
339
|
*/
|
|
325
|
-
static
|
|
340
|
+
static hasEntityBeenRegisteredWithThisThread(entity: Entity): boolean;
|
|
326
341
|
/**
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
* @returns gamerHandle
|
|
342
|
+
* @param entity
|
|
343
|
+
* @param toggle
|
|
330
344
|
*/
|
|
331
|
-
static
|
|
345
|
+
static setEntityGhostedToLocalPlayer(entity: Entity, toggle: boolean): void;
|
|
332
346
|
/**
|
|
333
|
-
*
|
|
334
|
-
*
|
|
335
|
-
|
|
336
|
-
|
|
347
|
+
* @param player
|
|
348
|
+
* @returns weaponHash: Refer to [enum: eWeaponHash]
|
|
349
|
+
*/
|
|
350
|
+
static getEntityKillerOfPlayer(player: Player): [Entity | null, number];
|
|
351
|
+
/**
|
|
352
|
+
* @param p0
|
|
353
|
+
* @returns
|
|
354
|
+
*/
|
|
355
|
+
static getNumCreatedMissionPickups(p0: boolean): number;
|
|
356
|
+
/**
|
|
357
|
+
* @param entity
|
|
358
|
+
* @param p1
|
|
359
|
+
* @param p2
|
|
360
|
+
* @param p3
|
|
361
|
+
*/
|
|
362
|
+
static setEntityVisibleInCutscene(entity: Entity, p1: boolean, p2: boolean, p3: number): void;
|
|
363
|
+
/**
|
|
364
|
+
* Hardcoded to return -1.
|
|
365
|
+
*
|
|
366
|
+
* @param p1
|
|
367
|
+
* @returns p0
|
|
368
|
+
*/
|
|
369
|
+
static displaynamesFromHandlesStart(p1: any): [number, number];
|
|
370
|
+
/**
|
|
371
|
+
* @returns
|
|
372
|
+
*/
|
|
373
|
+
static N_0xCC4E72C339461ED1(): any;
|
|
374
|
+
/**
|
|
375
|
+
* nullsub, doesn't do anything
|
|
376
|
+
*
|
|
377
|
+
* @returns
|
|
378
|
+
*/
|
|
379
|
+
static N_0x160F0CE6D76A39C9(): any;
|
|
380
|
+
/**
|
|
381
|
+
* Old name: _NETWORK_GET_OLDEST_RESEND_COUNT_FOR_PLAYER
|
|
382
|
+
*
|
|
383
|
+
* @param player
|
|
384
|
+
* @returns
|
|
385
|
+
*/
|
|
386
|
+
static getHighestReliableResendCount(player: Player): number;
|
|
387
|
+
/**
|
|
388
|
+
* Checks for session flag 'SF_PRIVATE'
|
|
389
|
+
*
|
|
390
|
+
* @returns
|
|
391
|
+
*/
|
|
392
|
+
static sessionIsPrivate(): boolean;
|
|
393
|
+
/**
|
|
394
|
+
* @param toggle
|
|
395
|
+
*/
|
|
396
|
+
static autoSessionSetAllowedToSplit(toggle: boolean): void;
|
|
397
|
+
static N_0x19B52C20B5C4757C(): void;
|
|
398
|
+
/**
|
|
399
|
+
* @returns sessionRequestId
|
|
400
|
+
*/
|
|
401
|
+
static sessionIsNsrrSuccess(): [any, number];
|
|
402
|
+
/**
|
|
403
|
+
* @returns
|
|
404
|
+
*/
|
|
405
|
+
static isPlatformInvitePending(): any;
|
|
406
|
+
/**
|
|
407
|
+
* @returns
|
|
408
|
+
*/
|
|
409
|
+
static isInMpCutscene(): boolean;
|
|
410
|
+
/**
|
|
411
|
+
* @returns
|
|
412
|
+
*/
|
|
413
|
+
static N_0x273E04A3A7AD1F2D(): boolean;
|
|
414
|
+
/**
|
|
415
|
+
* gets the object id of a network id
|
|
416
|
+
*
|
|
417
|
+
* @param netHandle
|
|
418
|
+
* @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist.
|
|
337
419
|
*/
|
|
338
420
|
static netToObj(netHandle: number): Prop | null;
|
|
339
421
|
/**
|
|
@@ -506,87 +588,90 @@ export declare class Network {
|
|
|
506
588
|
*/
|
|
507
589
|
static canRegisterMissionEntities(ped_amt: number, vehicle_amt: number, object_amt: number, pickup_amt: number): boolean;
|
|
508
590
|
/**
|
|
591
|
+
* @param description
|
|
592
|
+
* @param length
|
|
509
593
|
* @returns
|
|
510
594
|
*/
|
|
511
|
-
static
|
|
595
|
+
static ugcGetCachedDescription(description: string | number, length: number): string | null;
|
|
512
596
|
/**
|
|
513
|
-
* @
|
|
597
|
+
* @param toggle
|
|
514
598
|
*/
|
|
515
|
-
static
|
|
599
|
+
static N_0x780A13F780A13F1B(toggle: boolean): void;
|
|
516
600
|
/**
|
|
517
|
-
* @param
|
|
601
|
+
* @param p1
|
|
518
602
|
* @returns gamerHandle
|
|
519
603
|
*/
|
|
520
|
-
static
|
|
604
|
+
static requestPedshotTextureMultiplayerDownload(p1: number): [string | null, number];
|
|
521
605
|
/**
|
|
522
|
-
* @param
|
|
523
|
-
* @returns
|
|
606
|
+
* @param setting
|
|
524
607
|
*/
|
|
525
|
-
static
|
|
608
|
+
static N_0xE3AB5EEFCB6671A2(setting: number): void;
|
|
526
609
|
/**
|
|
527
|
-
*
|
|
610
|
+
* @param p0
|
|
611
|
+
* @returns
|
|
528
612
|
*/
|
|
529
|
-
static
|
|
613
|
+
static N_0x3AA0CDC63696166D(p0: number): boolean;
|
|
530
614
|
/**
|
|
531
|
-
*
|
|
532
|
-
*
|
|
533
|
-
* 0 = REASON_OTHER
|
|
534
|
-
* 1 = REASON_SYSTEM_UPDATE
|
|
535
|
-
* 2 = REASON_GAME_UPDATE
|
|
536
|
-
* 3 = REASON_SIGNED_OUT
|
|
537
|
-
* 4 = REASON_AGE
|
|
538
|
-
* 5 = REASON_CONNECTION =================================
|
|
539
|
-
*
|
|
615
|
+
* @param p0
|
|
616
|
+
* @param p1
|
|
540
617
|
* @returns
|
|
541
618
|
*/
|
|
542
|
-
static
|
|
619
|
+
static N_0xE39600E50D608693(p0: any, p1: any): boolean;
|
|
543
620
|
/**
|
|
544
|
-
* @param
|
|
621
|
+
* @param flags Refer to [enum: eSessionFlags]
|
|
545
622
|
* @returns
|
|
546
623
|
*/
|
|
547
|
-
static
|
|
624
|
+
static sessionAddSessionFlags(flags: number): any;
|
|
548
625
|
/**
|
|
549
|
-
* @param
|
|
626
|
+
* @param p0
|
|
627
|
+
* @param playerCount
|
|
628
|
+
* @returns
|
|
550
629
|
*/
|
|
551
|
-
static
|
|
630
|
+
static requestRecentGamerNames(p0: number, playerCount: number): any;
|
|
552
631
|
/**
|
|
553
|
-
* @
|
|
632
|
+
* @returns
|
|
554
633
|
*/
|
|
555
|
-
static
|
|
634
|
+
static getHostOfThisScript(): Player | null;
|
|
556
635
|
/**
|
|
557
|
-
* @param
|
|
636
|
+
* @param animScene
|
|
558
637
|
* @returns
|
|
559
638
|
*/
|
|
560
|
-
static
|
|
639
|
+
static hasControlOfAnimScene(animScene: AnimScene): any;
|
|
561
640
|
/**
|
|
562
|
-
*
|
|
641
|
+
* Equivalent to NETWORK_REQUEST_SESSION_SEAMLESS if userHash == 0.
|
|
642
|
+
* Otherwise it is equivalent to NETWORK_SESSION_REQUEST_SESSION_COMPETITIVE(flags, MATCHTYPE_SEAMLESS, userHash, 0, sessionRequestId); p1 is unused
|
|
563
643
|
*
|
|
564
|
-
* @param
|
|
644
|
+
* @param flags
|
|
645
|
+
* @param seamlessType
|
|
646
|
+
* @param userHash
|
|
647
|
+
* @returns sessionRequestId
|
|
648
|
+
*/
|
|
649
|
+
static sessionRequestSessionSeamless(flags: number, seamlessType: number, userHash: number): [any, number];
|
|
650
|
+
/**
|
|
565
651
|
* @returns
|
|
566
652
|
*/
|
|
567
|
-
static
|
|
653
|
+
static hasCompletedMpIntroFlowOnCurrentSlot(): any;
|
|
568
654
|
/**
|
|
569
|
-
* @param
|
|
655
|
+
* @param configProperty
|
|
656
|
+
* @param include
|
|
570
657
|
*/
|
|
571
|
-
static
|
|
658
|
+
static spawnConfigAddPropertyScripted(configProperty: number, include: boolean): void;
|
|
572
659
|
/**
|
|
573
660
|
* @param p0
|
|
574
661
|
* @returns
|
|
575
662
|
*/
|
|
576
|
-
static
|
|
577
|
-
/**
|
|
578
|
-
* @param player
|
|
579
|
-
*/
|
|
580
|
-
static N_0x7B3FF2D193628126(player: Player): void;
|
|
663
|
+
static N_0xA2837A5E21FB5A58(p0: any): boolean;
|
|
581
664
|
/**
|
|
582
|
-
* @
|
|
665
|
+
* @returns
|
|
583
666
|
*/
|
|
584
|
-
static
|
|
667
|
+
static N_0x0E54D4DA6018FF8E(): boolean;
|
|
585
668
|
/**
|
|
586
|
-
*
|
|
669
|
+
* Returns the entity associated with the given network ID.
|
|
670
|
+
*
|
|
671
|
+
* @param networkId
|
|
587
672
|
* @returns
|
|
588
673
|
*/
|
|
589
|
-
static
|
|
674
|
+
static N_0x4538EE7C321590BC(networkId: number): Entity | null;
|
|
590
675
|
/**
|
|
591
676
|
* @param amount
|
|
592
677
|
* @returns
|
|
@@ -692,180 +777,101 @@ export declare class Network {
|
|
|
692
777
|
* @returns
|
|
693
778
|
*/
|
|
694
779
|
static personaPhotoWriteScProfile(texture: string | null, personaPhotoType: number, formatIndex: number): any;
|
|
695
|
-
static N_0x9B39B0555CC692B5(): void;
|
|
696
780
|
/**
|
|
697
781
|
* @param p0
|
|
782
|
+
* @param p1
|
|
698
783
|
* @returns
|
|
699
784
|
*/
|
|
700
|
-
static
|
|
701
|
-
/**
|
|
702
|
-
* @param netPlaylistActivity
|
|
703
|
-
*/
|
|
704
|
-
static activitySetCurrent(netPlaylistActivity: number): void;
|
|
705
|
-
/**
|
|
706
|
-
* @param queueGroup
|
|
707
|
-
* @returns
|
|
708
|
-
*/
|
|
709
|
-
static sessionIsRequestInProgressByQueueGroup(queueGroup: number): any;
|
|
785
|
+
static N_0x271F95E55C663B8B(p0: any, p1: any): any;
|
|
710
786
|
/**
|
|
711
787
|
* @returns
|
|
712
788
|
*/
|
|
713
|
-
static
|
|
789
|
+
static sessionGetSessionFlags(): number;
|
|
714
790
|
/**
|
|
791
|
+
* Note: this native was added in build 1311.23
|
|
792
|
+
*
|
|
715
793
|
* @returns
|
|
716
794
|
*/
|
|
717
|
-
static
|
|
795
|
+
static N_0x039AD6B57D5179FF(): number;
|
|
718
796
|
/**
|
|
719
|
-
*
|
|
797
|
+
* Old name: _NETWORK_GET_NUM_UNACKED_FOR_PLAYER
|
|
720
798
|
*
|
|
721
799
|
* @param player
|
|
722
800
|
* @returns
|
|
723
801
|
*/
|
|
724
|
-
static
|
|
802
|
+
static getNumUnackedReliables(player: Player): number;
|
|
725
803
|
/**
|
|
726
804
|
* @param entity
|
|
727
|
-
* @
|
|
805
|
+
* @param toggle
|
|
728
806
|
*/
|
|
729
|
-
static
|
|
807
|
+
static allowEntityFadingForInstances(entity: Entity, toggle: boolean): void;
|
|
730
808
|
/**
|
|
731
|
-
*
|
|
732
|
-
* @returns Returns the network id for the specified `vehicle`, or `0` if the vehicle isn't networked.
|
|
809
|
+
* Only used in R* Script startup_clip
|
|
733
810
|
*/
|
|
734
|
-
static
|
|
811
|
+
static N_0xFD4272A137703449(): void;
|
|
735
812
|
/**
|
|
736
|
-
* Only used in R* SP Scripts
|
|
737
|
-
*
|
|
738
813
|
* @param player
|
|
739
|
-
* @param
|
|
814
|
+
* @param type
|
|
815
|
+
*/
|
|
816
|
+
static N_0x51951DE06C0D1C40(player: Player, type: number): void;
|
|
817
|
+
/**
|
|
818
|
+
* @param p0
|
|
740
819
|
* @returns
|
|
741
820
|
*/
|
|
742
|
-
static
|
|
821
|
+
static N_0x5ED39DA62BEB1330(p0: number): any;
|
|
743
822
|
/**
|
|
744
823
|
* @param p0
|
|
824
|
+
* @param index
|
|
825
|
+
* @returns
|
|
745
826
|
*/
|
|
746
|
-
static
|
|
827
|
+
static ugcQueryGetName(p0: any, index: number): string | null;
|
|
747
828
|
/**
|
|
748
829
|
* @param p0
|
|
749
|
-
* @param
|
|
750
|
-
* @param p2
|
|
751
|
-
* @param p3
|
|
830
|
+
* @param index
|
|
752
831
|
* @returns
|
|
753
832
|
*/
|
|
754
|
-
static
|
|
833
|
+
static ugcQueryGetBookMarked(p0: any, index: number): any;
|
|
755
834
|
/**
|
|
756
|
-
* @
|
|
835
|
+
* @param entity
|
|
836
|
+
* @param timer
|
|
837
|
+
* @param p2
|
|
757
838
|
*/
|
|
758
|
-
static
|
|
839
|
+
static setNetworkRespotTimer(entity: Entity, timer: number, p2: boolean): void;
|
|
759
840
|
/**
|
|
760
|
-
* @returns
|
|
841
|
+
* @returns gamerHandle
|
|
761
842
|
*/
|
|
762
|
-
static
|
|
843
|
+
static getGamertagFromFriend(): [string | null, number];
|
|
763
844
|
/**
|
|
764
|
-
*
|
|
765
|
-
*
|
|
766
|
-
* @param p0
|
|
845
|
+
* @param player
|
|
767
846
|
* @returns
|
|
768
847
|
*/
|
|
769
|
-
static
|
|
848
|
+
static getPlayerWaypointIsActive(player: Player): any;
|
|
770
849
|
/**
|
|
771
|
-
*
|
|
772
|
-
*
|
|
850
|
+
* @param inviteIndex
|
|
773
851
|
* @returns
|
|
774
852
|
*/
|
|
775
|
-
static
|
|
853
|
+
static N_0x981146E5C9CE9250(inviteIndex: number): boolean;
|
|
776
854
|
/**
|
|
777
|
-
*
|
|
778
|
-
*
|
|
779
|
-
* @returns
|
|
855
|
+
* @param netID
|
|
780
856
|
*/
|
|
781
|
-
static
|
|
857
|
+
static disableProximityMigration(netID: number): void;
|
|
782
858
|
/**
|
|
783
|
-
* @param
|
|
784
|
-
* @param
|
|
859
|
+
* @param p0
|
|
860
|
+
* @param p1
|
|
861
|
+
* @param dataSize
|
|
862
|
+
* @returns outData
|
|
785
863
|
*/
|
|
786
|
-
static
|
|
864
|
+
static getRecentGamerNames(p0: number, p1: number, dataSize: number): [any, number];
|
|
787
865
|
/**
|
|
788
|
-
* Returns CGameConfig->ConfigOnlineServices->RosTitleName (see gameconfig.xml)
|
|
789
|
-
*
|
|
790
866
|
* @returns
|
|
791
867
|
*/
|
|
792
|
-
static
|
|
868
|
+
static isInTutorialSession(): boolean;
|
|
793
869
|
/**
|
|
794
|
-
* @
|
|
870
|
+
* @param tunableContext
|
|
871
|
+
* @param tunableName
|
|
872
|
+
* @returns value
|
|
795
873
|
*/
|
|
796
|
-
static
|
|
797
|
-
/**
|
|
798
|
-
* @param p0
|
|
799
|
-
* @param p1
|
|
800
|
-
* @param p2
|
|
801
|
-
* @param p3
|
|
802
|
-
*/
|
|
803
|
-
static setNetworkIdVisibleInCutscene(p0: any, p1: any, p2: any, p3: any): void;
|
|
804
|
-
/**
|
|
805
|
-
* @param amount
|
|
806
|
-
*/
|
|
807
|
-
static reserveNetworkMissionObjects(amount: number): void;
|
|
808
|
-
/**
|
|
809
|
-
* @param entity
|
|
810
|
-
* @param player
|
|
811
|
-
* @returns p2
|
|
812
|
-
*/
|
|
813
|
-
static N_0x75FC34A2BA345BD1(entity: Entity, player: Player): [boolean, number];
|
|
814
|
-
/**
|
|
815
|
-
* @returns
|
|
816
|
-
*/
|
|
817
|
-
static autoSessionIsAllowedToMerge(): any;
|
|
818
|
-
/**
|
|
819
|
-
* @param p0
|
|
820
|
-
* @param p1
|
|
821
|
-
* @param p2
|
|
822
|
-
* @returns
|
|
823
|
-
*/
|
|
824
|
-
static N_0x7A8E8DF782B47EB0(p0: any, p1: any, p2: any): any;
|
|
825
|
-
/**
|
|
826
|
-
* Hardcoded to return false.
|
|
827
|
-
*
|
|
828
|
-
* @returns
|
|
829
|
-
*/
|
|
830
|
-
static shouldShowPromotionDlg(): any;
|
|
831
|
-
/**
|
|
832
|
-
* @param amount
|
|
833
|
-
*/
|
|
834
|
-
static reserveNetworkMissionPeds(amount: number): void;
|
|
835
|
-
/**
|
|
836
|
-
* @param pos
|
|
837
|
-
* @param heading
|
|
838
|
-
*/
|
|
839
|
-
static spawnConfigAddSpawnPoint(pos: Vector3, heading: number): void;
|
|
840
|
-
/**
|
|
841
|
-
* @param paramName
|
|
842
|
-
* @param value
|
|
843
|
-
*/
|
|
844
|
-
static setLaunchParamValue(paramName: string | null, value: string | null): void;
|
|
845
|
-
/**
|
|
846
|
-
* @returns gamerHandle
|
|
847
|
-
*/
|
|
848
|
-
static canViewGamerUserContent(): [any, number];
|
|
849
|
-
/**
|
|
850
|
-
* @param p0
|
|
851
|
-
* @returns
|
|
852
|
-
*/
|
|
853
|
-
static isParticipantActive(p0: number): boolean;
|
|
854
|
-
/**
|
|
855
|
-
* @param p0
|
|
856
|
-
* @returns
|
|
857
|
-
*/
|
|
858
|
-
static getNumCreatedMissionPeds(p0: boolean): number;
|
|
859
|
-
/**
|
|
860
|
-
* @returns
|
|
861
|
-
*/
|
|
862
|
-
static isInTutorialSession(): boolean;
|
|
863
|
-
/**
|
|
864
|
-
* @param tunableContext
|
|
865
|
-
* @param tunableName
|
|
866
|
-
* @returns value
|
|
867
|
-
*/
|
|
868
|
-
static accessTunableInt(tunableContext: string | number, tunableName: string | number): [boolean, number];
|
|
874
|
+
static accessTunableInt(tunableContext: string | number, tunableName: string | number): [boolean, number];
|
|
869
875
|
/**
|
|
870
876
|
* @param tunableContext
|
|
871
877
|
* @param tunableName
|
|
@@ -1031,100 +1037,89 @@ export declare class Network {
|
|
|
1031
1037
|
*/
|
|
1032
1038
|
static isPreviousUploadPending(): any;
|
|
1033
1039
|
/**
|
|
1034
|
-
*
|
|
1035
|
-
*
|
|
1036
|
-
* @param ped
|
|
1037
|
-
* @returns p1
|
|
1038
|
-
*/
|
|
1039
|
-
static N_0x6CF82A7F65A5AD5F(ped: Ped): [Player | null, number];
|
|
1040
|
-
/**
|
|
1041
|
-
* @param p1
|
|
1042
|
-
* @returns gamerHandle
|
|
1040
|
+
* @returns
|
|
1043
1041
|
*/
|
|
1044
|
-
static
|
|
1042
|
+
static N_0x18B94666CF610AEB(): boolean;
|
|
1045
1043
|
/**
|
|
1046
|
-
*
|
|
1047
|
-
* 0 - NOT_FOUND
|
|
1048
|
-
* 1 - IN_PROGRESS
|
|
1049
|
-
* 2 - TIMEOUT
|
|
1050
|
-
* 3 - PLAYER_OFFLINE
|
|
1051
|
-
* 4 - GANG_MEMBERS_CHANGED
|
|
1052
|
-
* 5 - PLAYER_CANCELLED
|
|
1053
|
-
* 6 - PLAYER_SET_TOO_LARGE
|
|
1054
|
-
* 7 - MATCH_ACCEPTED
|
|
1055
|
-
* 8 - OTHER
|
|
1044
|
+
* p0 appears to be for MP
|
|
1056
1045
|
*
|
|
1057
|
-
* @
|
|
1046
|
+
* @param p0
|
|
1047
|
+
* @returns
|
|
1058
1048
|
*/
|
|
1059
|
-
static
|
|
1060
|
-
static N_0xA63E4F050F20021F(): void;
|
|
1049
|
+
static getNumReservedMissionObjects(p0: boolean): number;
|
|
1061
1050
|
/**
|
|
1062
|
-
* @param amount
|
|
1063
1051
|
* @returns
|
|
1064
1052
|
*/
|
|
1065
|
-
static
|
|
1053
|
+
static hasSocialClubAccount(): boolean;
|
|
1066
1054
|
/**
|
|
1067
|
-
* @param
|
|
1068
|
-
* @returns
|
|
1055
|
+
* @param netHandle
|
|
1056
|
+
* @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist.
|
|
1069
1057
|
*/
|
|
1070
|
-
static
|
|
1058
|
+
static netToPed(netHandle: number): Ped | null;
|
|
1071
1059
|
/**
|
|
1072
|
-
*
|
|
1060
|
+
* 0 = succeeded
|
|
1061
|
+
* 1 = pending
|
|
1062
|
+
* 2 = failed
|
|
1063
|
+
*
|
|
1064
|
+
* @param textureDownloadId
|
|
1065
|
+
* @returns
|
|
1073
1066
|
*/
|
|
1074
|
-
static
|
|
1067
|
+
static getStatusOfTextureDownload(textureDownloadId: number): number;
|
|
1075
1068
|
/**
|
|
1076
|
-
* @returns
|
|
1069
|
+
* @returns gamerHandle
|
|
1077
1070
|
*/
|
|
1078
|
-
static
|
|
1071
|
+
static N_0xF23A6D6C11D8EC15(): [boolean, number];
|
|
1079
1072
|
/**
|
|
1080
|
-
*
|
|
1073
|
+
* Always returns 40
|
|
1081
1074
|
*
|
|
1082
1075
|
* @returns
|
|
1083
1076
|
*/
|
|
1084
|
-
static
|
|
1077
|
+
static getMaxNumNetworkVehicles(): number;
|
|
1085
1078
|
/**
|
|
1086
|
-
* @param
|
|
1087
|
-
* @param
|
|
1088
|
-
* @param
|
|
1089
|
-
* @param bucketId
|
|
1090
|
-
* @returns
|
|
1079
|
+
* @param netId
|
|
1080
|
+
* @param p1
|
|
1081
|
+
* @param p2
|
|
1091
1082
|
*/
|
|
1092
|
-
static
|
|
1083
|
+
static keepNetworkIdInFastInstance(netId: number, p1: boolean, p2: number): void;
|
|
1084
|
+
/**
|
|
1085
|
+
* @returns gamerHandle
|
|
1086
|
+
*/
|
|
1087
|
+
static isHandleValid(): [boolean, number];
|
|
1093
1088
|
/**
|
|
1094
1089
|
* @param p0
|
|
1095
|
-
* @returns
|
|
1090
|
+
* @returns p1
|
|
1096
1091
|
*/
|
|
1097
|
-
static
|
|
1092
|
+
static N_0x691E4DE5309EAEFC(p0: any): number;
|
|
1098
1093
|
/**
|
|
1099
|
-
* @
|
|
1094
|
+
* @param entity
|
|
1095
|
+
* @returns
|
|
1100
1096
|
*/
|
|
1101
|
-
static
|
|
1097
|
+
static getNetworkIdFromEntity(entity: Entity): number;
|
|
1102
1098
|
/**
|
|
1103
|
-
* Only used in R* Script
|
|
1099
|
+
* Only used in SP R* Script dominoes_sp: p1 = 0
|
|
1104
1100
|
*
|
|
1105
|
-
* @param
|
|
1106
|
-
* @
|
|
1101
|
+
* @param player
|
|
1102
|
+
* @param p1
|
|
1107
1103
|
*/
|
|
1108
|
-
static
|
|
1104
|
+
static N_0x02C4C6C2900D84DF(player: Player, p1: any): void;
|
|
1109
1105
|
/**
|
|
1110
|
-
* @param p0
|
|
1111
1106
|
* @returns
|
|
1112
1107
|
*/
|
|
1113
|
-
static
|
|
1108
|
+
static isSessionActive(): boolean;
|
|
1114
1109
|
/**
|
|
1115
|
-
* @param
|
|
1116
|
-
* @
|
|
1117
|
-
* @param second
|
|
1118
|
-
* @param transitionTime
|
|
1119
|
-
* @param pauseClock
|
|
1110
|
+
* @param animScene
|
|
1111
|
+
* @returns
|
|
1120
1112
|
*/
|
|
1121
|
-
static
|
|
1113
|
+
static animSceneToNet(animScene: AnimScene): number;
|
|
1122
1114
|
/**
|
|
1123
|
-
* @
|
|
1124
|
-
* @param player
|
|
1125
|
-
* @param toggle
|
|
1115
|
+
* @returns
|
|
1126
1116
|
*/
|
|
1127
|
-
static
|
|
1117
|
+
static getRank(): number;
|
|
1118
|
+
/**
|
|
1119
|
+
* @param message
|
|
1120
|
+
* @returns gamerHandle
|
|
1121
|
+
*/
|
|
1122
|
+
static addFriend(message: string | null): [boolean, number];
|
|
1128
1123
|
/**
|
|
1129
1124
|
* @returns
|
|
1130
1125
|
*/
|
|
@@ -1228,87 +1223,179 @@ export declare class Network {
|
|
|
1228
1223
|
*/
|
|
1229
1224
|
static requestSessionSeamless(flags: number, seamlessType: number): [any, number];
|
|
1230
1225
|
/**
|
|
1231
|
-
*
|
|
1232
|
-
*
|
|
1233
|
-
* @returns
|
|
1234
|
-
*/
|
|
1235
|
-
static isObjectReassignmentInProgress(): boolean;
|
|
1236
|
-
/**
|
|
1237
|
-
* @param scriptName
|
|
1238
|
-
* @param instanceId
|
|
1239
|
-
* @param position
|
|
1240
|
-
* @returns
|
|
1226
|
+
* @param p0
|
|
1227
|
+
* @returns gamerHandle
|
|
1241
1228
|
*/
|
|
1242
|
-
static
|
|
1229
|
+
static N_0x16EFB123C4451032(p0: number): [boolean, number];
|
|
1243
1230
|
/**
|
|
1244
|
-
*
|
|
1231
|
+
* Return the local Participant ID
|
|
1232
|
+
*
|
|
1245
1233
|
* @returns
|
|
1246
1234
|
*/
|
|
1247
|
-
static
|
|
1235
|
+
static participantId(): Player | null;
|
|
1236
|
+
static N_0x97BCE4C4B3191228(): void;
|
|
1248
1237
|
/**
|
|
1249
|
-
* @param
|
|
1238
|
+
* @param volume
|
|
1250
1239
|
* @param p1
|
|
1240
|
+
* @param originalWeight
|
|
1241
|
+
* @param p3
|
|
1242
|
+
* @param p4
|
|
1251
1243
|
*/
|
|
1252
|
-
static
|
|
1244
|
+
static N_0x13F592FC3BF0EA84(volume: Volume, p1: boolean, originalWeight: number, p3: any, p4: any): void;
|
|
1253
1245
|
/**
|
|
1254
|
-
* @
|
|
1255
|
-
* @returns outData
|
|
1246
|
+
* @returns
|
|
1256
1247
|
*/
|
|
1257
|
-
static
|
|
1248
|
+
static N_0xBF8276E51761F9DA(): number;
|
|
1258
1249
|
/**
|
|
1259
|
-
*
|
|
1250
|
+
* Note: this native was added in build 1311.23
|
|
1260
1251
|
*
|
|
1261
|
-
* @param p0
|
|
1262
|
-
* @param p1
|
|
1263
|
-
* @param p2
|
|
1264
1252
|
* @returns
|
|
1265
1253
|
*/
|
|
1266
|
-
static
|
|
1254
|
+
static N_0x316FD416C432C761(): boolean;
|
|
1267
1255
|
/**
|
|
1256
|
+
* nullsub, doesn't do anything
|
|
1257
|
+
*
|
|
1268
1258
|
* @returns
|
|
1269
1259
|
*/
|
|
1270
|
-
static
|
|
1260
|
+
static N_0xEC089F84A9C16C62(): any;
|
|
1271
1261
|
/**
|
|
1272
|
-
* @param
|
|
1273
|
-
* @param index
|
|
1262
|
+
* @param netId
|
|
1274
1263
|
* @returns
|
|
1275
1264
|
*/
|
|
1276
|
-
static
|
|
1277
|
-
/**
|
|
1278
|
-
* Note: this native was added in build 1355.30
|
|
1279
|
-
*
|
|
1280
|
-
* @param p0
|
|
1281
|
-
*/
|
|
1282
|
-
static N_0x422F9D6D6C7BC290(p0: number): void;
|
|
1265
|
+
static getRopeIdFromNetworkId(netId: number): number;
|
|
1283
1266
|
/**
|
|
1284
|
-
* @param
|
|
1267
|
+
* @param ugcRequestId
|
|
1285
1268
|
* @returns
|
|
1286
1269
|
*/
|
|
1287
|
-
static
|
|
1288
|
-
/**
|
|
1289
|
-
* @param p0
|
|
1290
|
-
*/
|
|
1291
|
-
static N_0x5CD3AAD8FF9ED121(p0: any): void;
|
|
1270
|
+
static ugcDidRequestSucceed(ugcRequestId: number): any;
|
|
1292
1271
|
/**
|
|
1293
|
-
* @param netId
|
|
1294
1272
|
* @returns
|
|
1295
1273
|
*/
|
|
1296
|
-
static
|
|
1274
|
+
static getNetworkTimeAccurate(): number;
|
|
1297
1275
|
/**
|
|
1298
1276
|
* @param p0
|
|
1299
|
-
* @param index
|
|
1300
1277
|
* @returns
|
|
1301
1278
|
*/
|
|
1302
|
-
static
|
|
1303
|
-
static
|
|
1279
|
+
static getNumCreatedMissionVehicles(p0: boolean): number;
|
|
1280
|
+
static showAccountUpgradeUi(): void;
|
|
1304
1281
|
/**
|
|
1282
|
+
* Hardcoded to return false.
|
|
1283
|
+
*
|
|
1305
1284
|
* @returns
|
|
1306
1285
|
*/
|
|
1307
|
-
static
|
|
1286
|
+
static isInSessionLobby(): any;
|
|
1308
1287
|
/**
|
|
1309
|
-
*
|
|
1288
|
+
* Always returns a null string.
|
|
1289
|
+
*
|
|
1290
|
+
* @returns gamerHandle
|
|
1310
1291
|
*/
|
|
1311
|
-
static
|
|
1292
|
+
static getGamertagFromHandle(): [string | null, number];
|
|
1293
|
+
/**
|
|
1294
|
+
* Returns the network ID of the given object.
|
|
1295
|
+
*
|
|
1296
|
+
* @param object
|
|
1297
|
+
* @returns Returns the network id for the specified `object`, or `0` if the entity isn't networked.
|
|
1298
|
+
*/
|
|
1299
|
+
static objToNet(object: Prop): number;
|
|
1300
|
+
/**
|
|
1301
|
+
* @param p0
|
|
1302
|
+
* @returns
|
|
1303
|
+
*/
|
|
1304
|
+
static requestJoin(p0: any): number;
|
|
1305
|
+
/**
|
|
1306
|
+
* Note: this native was added in build 1311.23
|
|
1307
|
+
*
|
|
1308
|
+
* @param p0
|
|
1309
|
+
* @returns
|
|
1310
|
+
*/
|
|
1311
|
+
static N_0x4835413EA6F9C9CD(p0: boolean): number;
|
|
1312
|
+
/**
|
|
1313
|
+
* Returns ugcRequestId
|
|
1314
|
+
*
|
|
1315
|
+
* @param contentId
|
|
1316
|
+
* @param latestVersion
|
|
1317
|
+
* @param contentTypeName
|
|
1318
|
+
* @returns
|
|
1319
|
+
*/
|
|
1320
|
+
static ugcQueryByContentId(contentId: string | null, latestVersion: boolean, contentTypeName: string | null): number;
|
|
1321
|
+
/**
|
|
1322
|
+
* @param p0
|
|
1323
|
+
*/
|
|
1324
|
+
static N_0x3034C77C79A58880(p0: boolean): void;
|
|
1325
|
+
/**
|
|
1326
|
+
* @param paramName
|
|
1327
|
+
* @returns
|
|
1328
|
+
*/
|
|
1329
|
+
static getLaunchParamValue(paramName: string | null): string | null;
|
|
1330
|
+
/**
|
|
1331
|
+
* @param p0
|
|
1332
|
+
*/
|
|
1333
|
+
static N_0xCF23AB5BD47B384D(p0: any): void;
|
|
1334
|
+
/**
|
|
1335
|
+
* Note: this native was added in build 1311.23
|
|
1336
|
+
*
|
|
1337
|
+
* @param p0
|
|
1338
|
+
* @param p1
|
|
1339
|
+
* @param p2
|
|
1340
|
+
*/
|
|
1341
|
+
static N_0x3CBD6565D9C3B133(p0: number, p1: number, p2: number): void;
|
|
1342
|
+
/**
|
|
1343
|
+
* @returns
|
|
1344
|
+
*/
|
|
1345
|
+
static hasReceivedHostBroadcastData(): boolean;
|
|
1346
|
+
/**
|
|
1347
|
+
* @param languageId
|
|
1348
|
+
* @returns
|
|
1349
|
+
*/
|
|
1350
|
+
static ugcIsLanguageSupported(languageId: number): boolean;
|
|
1351
|
+
/**
|
|
1352
|
+
* @returns
|
|
1353
|
+
*/
|
|
1354
|
+
static actionPlatformInvite(): any;
|
|
1355
|
+
/**
|
|
1356
|
+
* nullsub, doesn't do anything
|
|
1357
|
+
*
|
|
1358
|
+
* @returns
|
|
1359
|
+
*/
|
|
1360
|
+
static dumpNetIfConfig(): any;
|
|
1361
|
+
/**
|
|
1362
|
+
* @returns
|
|
1363
|
+
*/
|
|
1364
|
+
static sessionIsTransitioning(): any;
|
|
1365
|
+
/**
|
|
1366
|
+
* @param p0
|
|
1367
|
+
* @param index
|
|
1368
|
+
* @param p2
|
|
1369
|
+
* @returns
|
|
1370
|
+
*/
|
|
1371
|
+
static ugcQueryGetVersion(p0: any, index: number, p2: number): number;
|
|
1372
|
+
/**
|
|
1373
|
+
* @param p0
|
|
1374
|
+
* @param p1
|
|
1375
|
+
*/
|
|
1376
|
+
static N_0x3F0ABAE38A0515AD(p0: number, p1: number): void;
|
|
1377
|
+
/**
|
|
1378
|
+
* Subtracts the second argument from the first, then returns whether the result is negative.
|
|
1379
|
+
*
|
|
1380
|
+
* @param timeA
|
|
1381
|
+
* @param timeB
|
|
1382
|
+
* @returns
|
|
1383
|
+
*/
|
|
1384
|
+
static isTimeLessThan(timeA: number, timeB: number): boolean;
|
|
1385
|
+
/**
|
|
1386
|
+
* Old name: _NETWORK_GET_UNRELIABLE_RESEND_COUNT_FOR_PLAYER
|
|
1387
|
+
*
|
|
1388
|
+
* @param player
|
|
1389
|
+
* @returns
|
|
1390
|
+
*/
|
|
1391
|
+
static getUnreliableResendCount(player: Player): number;
|
|
1392
|
+
/**
|
|
1393
|
+
* Note: this native was added in build 1311.23
|
|
1394
|
+
*
|
|
1395
|
+
* @param p0
|
|
1396
|
+
* @returns
|
|
1397
|
+
*/
|
|
1398
|
+
static N_0x106CBDD5077DEDE1(p0: boolean): number;
|
|
1312
1399
|
static N_0x49CF17A564918E8D(): void;
|
|
1313
1400
|
/**
|
|
1314
1401
|
* Returns ugcRequestId
|
|
@@ -1411,269 +1498,337 @@ export declare class Network {
|
|
|
1411
1498
|
* @returns
|
|
1412
1499
|
*/
|
|
1413
1500
|
static commerceStoreIsOpen(): boolean;
|
|
1414
|
-
static clearClockTimeOverride(): void;
|
|
1415
|
-
static N_0xC8B6D18E22484643(): void;
|
|
1416
|
-
/**
|
|
1417
|
-
* @param p0
|
|
1418
|
-
* @param p1
|
|
1419
|
-
*/
|
|
1420
|
-
static N_0xDC6AD5C046F33AB4(p0: boolean, p1: boolean): void;
|
|
1421
1501
|
/**
|
|
1422
|
-
* @param
|
|
1502
|
+
* @param flags
|
|
1423
1503
|
* @returns
|
|
1424
1504
|
*/
|
|
1425
|
-
static
|
|
1505
|
+
static sessionRemovePlayerFlags(flags: number): any;
|
|
1426
1506
|
/**
|
|
1427
|
-
* @param player
|
|
1428
1507
|
* @returns
|
|
1429
1508
|
*/
|
|
1430
|
-
static
|
|
1509
|
+
static getTimeoutTime(): number;
|
|
1431
1510
|
/**
|
|
1432
|
-
* @param
|
|
1433
|
-
* @param tunableName
|
|
1434
|
-
* @returns
|
|
1511
|
+
* @param p0
|
|
1435
1512
|
*/
|
|
1436
|
-
static
|
|
1513
|
+
static setLocalPlayerInvisibleLocally(p0: boolean): void;
|
|
1437
1514
|
/**
|
|
1438
|
-
* @
|
|
1515
|
+
* @param threadId
|
|
1516
|
+
* @returns
|
|
1439
1517
|
*/
|
|
1440
|
-
static
|
|
1441
|
-
static N_0x6C7E04E9DE451789(): void;
|
|
1518
|
+
static isThreadActive(threadId: number): any;
|
|
1442
1519
|
/**
|
|
1520
|
+
* Returns false if pedshot push failed
|
|
1521
|
+
*
|
|
1522
|
+
* @param texture
|
|
1523
|
+
* @param playerSlot
|
|
1524
|
+
* @param p2
|
|
1525
|
+
* @param personaPhotoLocalCacheType
|
|
1443
1526
|
* @returns
|
|
1444
1527
|
*/
|
|
1445
|
-
static
|
|
1528
|
+
static personaPhotoWriteLocal(texture: string | null, playerSlot: number, p2: number, personaPhotoLocalCacheType: number): any;
|
|
1446
1529
|
/**
|
|
1447
|
-
* @param
|
|
1448
|
-
* @
|
|
1530
|
+
* @param index
|
|
1531
|
+
* @returns
|
|
1449
1532
|
*/
|
|
1450
|
-
static
|
|
1533
|
+
static getParticipantIndex(index: number): number;
|
|
1451
1534
|
/**
|
|
1452
|
-
*
|
|
1535
|
+
* @param p0
|
|
1453
1536
|
*/
|
|
1454
|
-
static
|
|
1455
|
-
static N_0x5B9C6AC118FD4774(): void;
|
|
1537
|
+
static N_0xD637D327080CD86E(p0: number): void;
|
|
1456
1538
|
/**
|
|
1457
|
-
* @param player
|
|
1458
|
-
* @param trackedPlayer
|
|
1459
1539
|
* @returns
|
|
1460
1540
|
*/
|
|
1461
|
-
static
|
|
1462
|
-
static activityResetToIdle(): void;
|
|
1541
|
+
static sessionIsAnyRequestInProgress(): any;
|
|
1463
1542
|
/**
|
|
1464
1543
|
* @param p0
|
|
1544
|
+
* @param p1
|
|
1545
|
+
* @param p2
|
|
1546
|
+
* @param p3
|
|
1547
|
+
* @param p4
|
|
1548
|
+
* @param p5
|
|
1465
1549
|
* @returns
|
|
1466
1550
|
*/
|
|
1467
|
-
static
|
|
1551
|
+
static isSphereVisibleToPlayer(p0: any, p1: any, p2: any, p3: any, p4: any, p5: any): boolean;
|
|
1468
1552
|
/**
|
|
1469
|
-
*
|
|
1470
|
-
*
|
|
1471
|
-
* @param entity The entity to un-network
|
|
1553
|
+
* @param netHandle
|
|
1554
|
+
* @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist.
|
|
1472
1555
|
*/
|
|
1473
|
-
static
|
|
1556
|
+
static netToEnt(netHandle: number): Entity | null;
|
|
1474
1557
|
/**
|
|
1475
|
-
*
|
|
1558
|
+
* Note: this native was added in build 1311.23
|
|
1559
|
+
*
|
|
1560
|
+
* @returns
|
|
1476
1561
|
*/
|
|
1477
|
-
static
|
|
1562
|
+
static N_0x062842D61D0D53FD(): boolean;
|
|
1478
1563
|
/**
|
|
1479
1564
|
* @param p0
|
|
1480
|
-
|
|
1565
|
+
*/
|
|
1566
|
+
static N_0xFF36F36B07E69059(p0: any): void;
|
|
1567
|
+
/**
|
|
1568
|
+
* @param flags
|
|
1481
1569
|
* @returns
|
|
1482
1570
|
*/
|
|
1483
|
-
static
|
|
1571
|
+
static sessionSetPlayerFlags(flags: number): any;
|
|
1484
1572
|
/**
|
|
1485
|
-
* @param
|
|
1573
|
+
* @param contentId
|
|
1574
|
+
* @param dataSize
|
|
1575
|
+
* @param p4
|
|
1576
|
+
* @param flags
|
|
1577
|
+
* @returns gamerHandle; data
|
|
1578
|
+
*/
|
|
1579
|
+
static sendSessionInvite(contentId: string | null, dataSize: number, p4: number, flags: number): [any, number, number];
|
|
1580
|
+
static N_0x61BFBAA795E712AD(): void;
|
|
1581
|
+
/**
|
|
1582
|
+
* @param playerSlot
|
|
1583
|
+
* @param personaPhotoLocalCacheType
|
|
1486
1584
|
* @returns
|
|
1487
1585
|
*/
|
|
1488
|
-
static
|
|
1586
|
+
static localPlayerPedshotTextureDownloadRequest(playerSlot: number, personaPhotoLocalCacheType: number): number;
|
|
1489
1587
|
/**
|
|
1588
|
+
* Hardcoded to return zero.
|
|
1589
|
+
*
|
|
1490
1590
|
* @returns
|
|
1491
1591
|
*/
|
|
1492
|
-
static
|
|
1592
|
+
static N_0x5133CF81924F1129(): number;
|
|
1493
1593
|
/**
|
|
1494
|
-
*
|
|
1594
|
+
* Returns the Player associated to a given Ped when in an online session.
|
|
1595
|
+
*
|
|
1596
|
+
* @param ped
|
|
1597
|
+
* @returns
|
|
1495
1598
|
*/
|
|
1496
|
-
static
|
|
1599
|
+
static getPlayerIndexFromPed(ped: Ped): Player | null;
|
|
1497
1600
|
/**
|
|
1498
|
-
* @
|
|
1601
|
+
* @param netID
|
|
1602
|
+
* @returns
|
|
1499
1603
|
*/
|
|
1500
|
-
static
|
|
1604
|
+
static doesNetworkIdExist(netID: number): boolean;
|
|
1501
1605
|
/**
|
|
1502
|
-
* @param
|
|
1503
|
-
* @param
|
|
1606
|
+
* @param local
|
|
1607
|
+
* @param remote
|
|
1608
|
+
* @param instanceId
|
|
1504
1609
|
*/
|
|
1505
|
-
static
|
|
1610
|
+
static setLocalPlayerVisibleInCutscene(local: boolean, remote: boolean, instanceId: number): void;
|
|
1506
1611
|
/**
|
|
1507
|
-
* *
|
|
1612
|
+
* Params: p5 = 50.f, p6 = 0 in R* Script net_fetch (NET_FETCH_CLIENT_UPDATE_PED_ROLE_CLUE_IDLE)
|
|
1508
1613
|
*
|
|
1509
|
-
* @param
|
|
1614
|
+
* @param pos
|
|
1615
|
+
* @param p5
|
|
1616
|
+
* @param p6
|
|
1617
|
+
* @returns p0; p1
|
|
1510
1618
|
*/
|
|
1511
|
-
static
|
|
1619
|
+
static N_0x880A7202301E282B(pos: Vector3, p5: number, p6: any): [boolean, number, number];
|
|
1512
1620
|
/**
|
|
1621
|
+
* Note: this native was added in build 1491.50
|
|
1622
|
+
*
|
|
1623
|
+
* @param p0
|
|
1513
1624
|
* @returns
|
|
1514
1625
|
*/
|
|
1515
|
-
static
|
|
1626
|
+
static N_0xDBDF80673BBA3D65(p0: number): boolean;
|
|
1516
1627
|
/**
|
|
1517
|
-
* @
|
|
1628
|
+
* @param p0
|
|
1518
1629
|
*/
|
|
1519
|
-
static
|
|
1630
|
+
static N_0x9F24A34863FD35DA(p0: any): void;
|
|
1631
|
+
static clearPlatformInvite(): void;
|
|
1520
1632
|
/**
|
|
1521
|
-
* @param
|
|
1522
|
-
* @param p1
|
|
1633
|
+
* @param toggle
|
|
1523
1634
|
* @param p2
|
|
1524
|
-
* @
|
|
1525
|
-
* @param p4
|
|
1526
|
-
* @returns
|
|
1635
|
+
* @returns p1
|
|
1527
1636
|
*/
|
|
1528
|
-
static
|
|
1637
|
+
static autoSessionSetAllowedToMerge(toggle: boolean, p2: number): number;
|
|
1529
1638
|
/**
|
|
1530
|
-
* @param p0
|
|
1531
1639
|
* @returns
|
|
1532
1640
|
*/
|
|
1533
|
-
static
|
|
1641
|
+
static getTotalNumPlayers(): number;
|
|
1534
1642
|
/**
|
|
1535
|
-
* Note: this native was added in build
|
|
1643
|
+
* Note: this native was added in build 1311.23
|
|
1644
|
+
*
|
|
1645
|
+
* @param p0
|
|
1646
|
+
* @returns
|
|
1536
1647
|
*/
|
|
1537
|
-
static
|
|
1648
|
+
static N_0x744BFBB0CA908161(p0: boolean): number;
|
|
1538
1649
|
/**
|
|
1539
|
-
* @param
|
|
1540
|
-
* @param player2
|
|
1650
|
+
* @param player
|
|
1541
1651
|
* @returns
|
|
1542
1652
|
*/
|
|
1543
|
-
static
|
|
1653
|
+
static isPlayerActive(player: Player): boolean;
|
|
1544
1654
|
/**
|
|
1545
|
-
* @param id
|
|
1546
1655
|
* @returns
|
|
1547
1656
|
*/
|
|
1548
|
-
static
|
|
1657
|
+
static getPlatformInviteId(): number;
|
|
1549
1658
|
/**
|
|
1550
|
-
* @param
|
|
1659
|
+
* @param p0
|
|
1660
|
+
* @param index
|
|
1551
1661
|
* @returns
|
|
1552
1662
|
*/
|
|
1553
|
-
static
|
|
1663
|
+
static ugcQueryGetOwnerId(p0: any, index: number): string | null;
|
|
1664
|
+
/**
|
|
1665
|
+
* @param tunableContext
|
|
1666
|
+
* @param tunableName
|
|
1667
|
+
* @param defaultValue
|
|
1668
|
+
* @returns
|
|
1669
|
+
*/
|
|
1670
|
+
static tryAccessTunableFloatHash(tunableContext: string | number, tunableName: string | number, defaultValue: number): number;
|
|
1671
|
+
/**
|
|
1672
|
+
* @returns
|
|
1673
|
+
*/
|
|
1674
|
+
static hasNetworkTimeStarted(): boolean;
|
|
1554
1675
|
/**
|
|
1555
1676
|
* Hardcoded to return false.
|
|
1556
1677
|
*
|
|
1557
|
-
* @returns
|
|
1678
|
+
* @returns
|
|
1558
1679
|
*/
|
|
1559
|
-
static
|
|
1680
|
+
static isInPlatformParty(): boolean;
|
|
1560
1681
|
/**
|
|
1561
|
-
*
|
|
1682
|
+
* Return the local Participant ID. This native is exactly the same as 'PARTICIPANT_ID' native.
|
|
1562
1683
|
*
|
|
1563
|
-
* @
|
|
1684
|
+
* @returns
|
|
1564
1685
|
*/
|
|
1565
|
-
static
|
|
1686
|
+
static participantIdToInt(): number;
|
|
1566
1687
|
/**
|
|
1567
|
-
* @param
|
|
1688
|
+
* @param toggle
|
|
1689
|
+
* @param pos
|
|
1568
1690
|
*/
|
|
1569
|
-
static
|
|
1691
|
+
static setInStaticSpectatorMode(toggle: boolean, pos: Vector3): void;
|
|
1570
1692
|
/**
|
|
1571
1693
|
* @param p0
|
|
1694
|
+
* @returns
|
|
1572
1695
|
*/
|
|
1573
|
-
static
|
|
1696
|
+
static requestControlOfPickupPlacement(p0: any): boolean;
|
|
1574
1697
|
/**
|
|
1575
|
-
* @
|
|
1698
|
+
* @param entity
|
|
1576
1699
|
*/
|
|
1577
|
-
static
|
|
1700
|
+
static registerEntityAsNetworked(entity: Entity): void;
|
|
1578
1701
|
/**
|
|
1579
|
-
*
|
|
1702
|
+
* Session flag 'SF_PRIVATE' is set internally
|
|
1703
|
+
* p1 represents max amount of players in private session
|
|
1580
1704
|
*
|
|
1581
|
-
* @param
|
|
1582
|
-
* @param
|
|
1583
|
-
* @param
|
|
1584
|
-
* @returns
|
|
1705
|
+
* @param flags
|
|
1706
|
+
* @param numPlayers
|
|
1707
|
+
* @param userHash
|
|
1708
|
+
* @returns sessionRequestId
|
|
1585
1709
|
*/
|
|
1586
|
-
static
|
|
1710
|
+
static sessionRequestSessionPrivate(flags: number, numPlayers: number, userHash: number): [any, number];
|
|
1587
1711
|
/**
|
|
1588
|
-
* @
|
|
1712
|
+
* @param textureDownloadId
|
|
1589
1713
|
*/
|
|
1590
|
-
static
|
|
1714
|
+
static textureDownloadRelease(textureDownloadId: number): void;
|
|
1591
1715
|
/**
|
|
1592
|
-
*
|
|
1593
|
-
* @returns weaponHash: Refer to [enum: eWeaponHash]
|
|
1716
|
+
* Only used in R* Script net_rolling_playlist
|
|
1594
1717
|
*/
|
|
1595
|
-
static
|
|
1718
|
+
static sessionPlaylistGoToNextContent(): void;
|
|
1596
1719
|
/**
|
|
1597
|
-
*
|
|
1720
|
+
* Note: this native was added in build 1311.23
|
|
1598
1721
|
*
|
|
1722
|
+
* @returns sessionId
|
|
1723
|
+
*/
|
|
1724
|
+
static sessionGetSessionId(): number;
|
|
1725
|
+
/**
|
|
1599
1726
|
* @returns
|
|
1600
1727
|
*/
|
|
1601
|
-
static
|
|
1728
|
+
static autoSessionSplitSessionSuccessful(): any;
|
|
1602
1729
|
/**
|
|
1603
|
-
*
|
|
1730
|
+
* @param ugcRequestId
|
|
1731
|
+
* @returns
|
|
1732
|
+
*/
|
|
1733
|
+
static ugcHasRequestFinished(ugcRequestId: number): any;
|
|
1734
|
+
/**
|
|
1735
|
+
* @returns sessionRequestId
|
|
1736
|
+
*/
|
|
1737
|
+
static sessionIsRequestInProgress(): [any, number];
|
|
1738
|
+
/**
|
|
1739
|
+
* Adds the first argument to the second.
|
|
1604
1740
|
*
|
|
1605
1741
|
* @param timeA
|
|
1606
1742
|
* @param timeB
|
|
1607
1743
|
* @returns
|
|
1608
1744
|
*/
|
|
1609
|
-
static
|
|
1745
|
+
static getTimeOffset(timeA: number, timeB: number): number;
|
|
1610
1746
|
/**
|
|
1611
1747
|
* @param p0
|
|
1612
1748
|
* @returns
|
|
1613
1749
|
*/
|
|
1614
|
-
static
|
|
1750
|
+
static N_0xC028B3F52C707C49(p0: any): boolean;
|
|
1615
1751
|
/**
|
|
1616
|
-
*
|
|
1752
|
+
* nullsub, doesn't do anything
|
|
1753
|
+
*
|
|
1617
1754
|
* @returns
|
|
1618
1755
|
*/
|
|
1619
|
-
static
|
|
1756
|
+
static N_0xC964FCD3D1720697(): any;
|
|
1620
1757
|
/**
|
|
1758
|
+
* @param p0
|
|
1759
|
+
* @param p1
|
|
1621
1760
|
* @returns
|
|
1622
1761
|
*/
|
|
1623
|
-
static
|
|
1762
|
+
static ugcQueryGetPublished(p0: any, p1: any): any;
|
|
1763
|
+
static disableRealtimeMultiplayer(): void;
|
|
1624
1764
|
/**
|
|
1625
|
-
* @param
|
|
1765
|
+
* @param volume
|
|
1626
1766
|
*/
|
|
1627
|
-
static
|
|
1767
|
+
static spawnConfigRemoveExclusionVolume(volume: Volume): void;
|
|
1628
1768
|
/**
|
|
1629
|
-
* @param
|
|
1630
|
-
* @param
|
|
1631
|
-
* @
|
|
1632
|
-
* @param p3
|
|
1769
|
+
* @param tunableContext
|
|
1770
|
+
* @param tunableName
|
|
1771
|
+
* @returns
|
|
1633
1772
|
*/
|
|
1634
|
-
static
|
|
1773
|
+
static doesTunableExist(tunableContext: string | number, tunableName: string | number): boolean;
|
|
1635
1774
|
/**
|
|
1636
|
-
*
|
|
1637
|
-
*
|
|
1775
|
+
* Note: this native was added in build 1311.23
|
|
1776
|
+
*
|
|
1777
|
+
* @param p0
|
|
1778
|
+
* @returns
|
|
1638
1779
|
*/
|
|
1639
|
-
static
|
|
1780
|
+
static N_0x982D7AD755B8F62C(p0: boolean): number;
|
|
1781
|
+
static startSoloTutorialSession(): void;
|
|
1640
1782
|
/**
|
|
1641
1783
|
* @param p0
|
|
1784
|
+
* @param p2
|
|
1785
|
+
* @param p3
|
|
1786
|
+
* @returns p1
|
|
1642
1787
|
*/
|
|
1643
|
-
static
|
|
1788
|
+
static setRichPresence(p0: number, p2: number, p3: number): number;
|
|
1644
1789
|
/**
|
|
1645
|
-
* @returns
|
|
1790
|
+
* @returns
|
|
1646
1791
|
*/
|
|
1647
|
-
static
|
|
1792
|
+
static pedmugshotTake(): any;
|
|
1648
1793
|
/**
|
|
1649
|
-
* @param
|
|
1794
|
+
* @param entity
|
|
1650
1795
|
*/
|
|
1651
|
-
static
|
|
1796
|
+
static N_0xBB1EC8C2EEF33BAA(entity: Entity): void;
|
|
1652
1797
|
/**
|
|
1653
1798
|
* @returns
|
|
1654
1799
|
*/
|
|
1655
|
-
static
|
|
1800
|
+
static haveOnlinePrivileges(): boolean;
|
|
1656
1801
|
/**
|
|
1657
|
-
*
|
|
1658
|
-
*
|
|
1802
|
+
* @param p0
|
|
1803
|
+
* @param index
|
|
1659
1804
|
* @returns
|
|
1660
1805
|
*/
|
|
1661
|
-
static
|
|
1806
|
+
static ugcQueryGetRootContentId(p0: any, index: number): string | null;
|
|
1662
1807
|
/**
|
|
1663
1808
|
* @returns
|
|
1664
1809
|
*/
|
|
1665
|
-
static
|
|
1810
|
+
static didFindGamersSucceed(): any;
|
|
1811
|
+
static N_0x0BF90CBB6B72977B(): void;
|
|
1666
1812
|
/**
|
|
1667
|
-
* @returns
|
|
1813
|
+
* @returns gamerHandle
|
|
1668
1814
|
*/
|
|
1669
|
-
static
|
|
1815
|
+
static getLocalHandle(): number;
|
|
1670
1816
|
/**
|
|
1671
|
-
*
|
|
1817
|
+
* nullsub, doesn't do anything
|
|
1672
1818
|
*
|
|
1819
|
+
* @param p0
|
|
1820
|
+
*/
|
|
1821
|
+
static N_0x2C4E98DDA475364F(p0: string | null): void;
|
|
1822
|
+
/**
|
|
1673
1823
|
* @param entity
|
|
1674
1824
|
* @returns
|
|
1675
1825
|
*/
|
|
1676
|
-
static
|
|
1826
|
+
static getGlobalEntityFlags(entity: Entity): number;
|
|
1827
|
+
/**
|
|
1828
|
+
* @param description
|
|
1829
|
+
* @returns
|
|
1830
|
+
*/
|
|
1831
|
+
static ugcHasDescriptionRequestFinished(description: string | number): boolean;
|
|
1677
1832
|
/**
|
|
1678
1833
|
* @returns
|
|
1679
1834
|
*/
|
|
@@ -1752,255 +1907,166 @@ export declare class Network {
|
|
|
1752
1907
|
*/
|
|
1753
1908
|
static handleFromPlayer(player: Player): number;
|
|
1754
1909
|
/**
|
|
1755
|
-
*
|
|
1910
|
+
* Returns string for GET_STATUS_OF_LOAD_MISSION_CREATOR_PHOTO
|
|
1911
|
+
*
|
|
1912
|
+
* @param p0
|
|
1913
|
+
* @param p1
|
|
1914
|
+
* @param p2
|
|
1915
|
+
* @returns
|
|
1756
1916
|
*/
|
|
1757
|
-
static
|
|
1917
|
+
static ugcQueryGetCreatorPhoto(p0: any, p1: number, p2: any): string | null;
|
|
1758
1918
|
/**
|
|
1759
1919
|
* @param toggle
|
|
1760
1920
|
*/
|
|
1761
|
-
static
|
|
1921
|
+
static setRecentGamersEnabled(toggle: boolean): void;
|
|
1762
1922
|
/**
|
|
1763
|
-
* @param amount
|
|
1764
1923
|
* @returns
|
|
1765
1924
|
*/
|
|
1766
|
-
static
|
|
1925
|
+
static getLaunchParamString(): string | null;
|
|
1767
1926
|
/**
|
|
1768
|
-
* @
|
|
1927
|
+
* @param entity
|
|
1928
|
+
* @param toggle
|
|
1769
1929
|
*/
|
|
1770
|
-
static
|
|
1930
|
+
static setEntityRemainsWhenUnnetworked(entity: Entity, toggle: boolean): void;
|
|
1771
1931
|
/**
|
|
1772
|
-
*
|
|
1773
|
-
*
|
|
1774
|
-
* @param
|
|
1932
|
+
* @param flags
|
|
1933
|
+
* @param userHash
|
|
1934
|
+
* @param p2
|
|
1935
|
+
* @returns sessionRequestId
|
|
1775
1936
|
*/
|
|
1776
|
-
static
|
|
1937
|
+
static sessionRequestSessionNominated(flags: number, userHash: number, p2: number): [boolean, number];
|
|
1777
1938
|
/**
|
|
1778
|
-
*
|
|
1779
|
-
*
|
|
1780
|
-
* {
|
|
1781
|
-
* // use displayName
|
|
1782
|
-
* }
|
|
1783
|
-
*
|
|
1784
|
-
* @param displayName
|
|
1785
|
-
* @returns gamerHandle
|
|
1939
|
+
* @param description
|
|
1940
|
+
* @returns
|
|
1786
1941
|
*/
|
|
1787
|
-
static
|
|
1788
|
-
static endTutorialSession(): void;
|
|
1942
|
+
static ugcIsDescriptionRequestInProgress(description: string | number): boolean;
|
|
1789
1943
|
/**
|
|
1790
|
-
* @param
|
|
1791
|
-
* @param p2
|
|
1792
|
-
* @returns p1
|
|
1944
|
+
* @param ugcRequestId
|
|
1793
1945
|
*/
|
|
1794
|
-
static
|
|
1946
|
+
static ugcClearQueryResults(ugcRequestId: number): void;
|
|
1795
1947
|
/**
|
|
1948
|
+
* @param threadId
|
|
1796
1949
|
* @returns
|
|
1797
1950
|
*/
|
|
1798
|
-
static
|
|
1951
|
+
static getHostOfThread(threadId: number): Player | null;
|
|
1799
1952
|
/**
|
|
1800
|
-
* Returns ugcRequestId
|
|
1801
|
-
*
|
|
1802
|
-
* @param p0
|
|
1803
|
-
* @param maxGet
|
|
1804
|
-
* @param contentTypeName
|
|
1805
|
-
* @param p3
|
|
1806
|
-
* @param p4
|
|
1807
|
-
* @param p5
|
|
1808
1953
|
* @returns
|
|
1809
1954
|
*/
|
|
1810
|
-
static
|
|
1955
|
+
static isGameInProgress(): boolean;
|
|
1956
|
+
/**
|
|
1957
|
+
* @param rangeStart
|
|
1958
|
+
* @param rangeEnd
|
|
1959
|
+
* @returns
|
|
1960
|
+
*/
|
|
1961
|
+
static getRandomIntRanged(rangeStart: number, rangeEnd: number): number;
|
|
1811
1962
|
/**
|
|
1812
1963
|
* @param p0
|
|
1813
|
-
* @param index
|
|
1814
|
-
* @param p2
|
|
1815
1964
|
* @returns
|
|
1816
1965
|
*/
|
|
1817
|
-
static
|
|
1966
|
+
static acceptRsInvite(p0: number): any;
|
|
1818
1967
|
/**
|
|
1819
1968
|
* @param player
|
|
1969
|
+
* @param toggle
|
|
1820
1970
|
*/
|
|
1821
|
-
static
|
|
1971
|
+
static concealPlayer(player: Player, toggle: boolean): void;
|
|
1822
1972
|
/**
|
|
1823
|
-
*
|
|
1973
|
+
* ^^ I attempted this by grabbing an object with GET_ENTITY_PLAYER_IS_FREE_AIMING_AT and setting this naive no matter the toggle he could still see it. pc or last gen? ^^ last-gen Old name: _NETWORK_SET_ENTITY_INVISIBLE_TO_NETWORK
|
|
1824
1974
|
*
|
|
1825
|
-
* @param
|
|
1975
|
+
* @param entity
|
|
1976
|
+
* @param toggle
|
|
1826
1977
|
*/
|
|
1827
|
-
static
|
|
1978
|
+
static setEntityOnlyExistsForParticipants(entity: Entity, toggle: boolean): void;
|
|
1828
1979
|
/**
|
|
1829
|
-
*
|
|
1830
|
-
*
|
|
1831
|
-
* @param p0
|
|
1832
|
-
* @param p1
|
|
1833
|
-
* @param p2
|
|
1834
|
-
* @param p3
|
|
1835
|
-
* @returns
|
|
1836
|
-
*/
|
|
1837
|
-
static N_0x5F328FC909F0E0FF(p0: number, p1: number, p2: number, p3: number): boolean;
|
|
1838
|
-
/**
|
|
1839
|
-
* Old name: _NETWORK_SET_VEHICLE_WHEELS_DESTRUCTIBLE
|
|
1840
|
-
*
|
|
1841
|
-
* @param entity
|
|
1842
|
-
* @param p1
|
|
1843
|
-
*/
|
|
1844
|
-
static triggerDamageEventForZeroDamage(entity: Entity, p1: boolean): void;
|
|
1845
|
-
/**
|
|
1846
|
-
* nullsub, doesn't do anything
|
|
1847
|
-
*
|
|
1848
|
-
* @returns
|
|
1849
|
-
*/
|
|
1850
|
-
static getNetStatisticsInfo(): any;
|
|
1851
|
-
/**
|
|
1852
|
-
* nullsub, doesn't do anything
|
|
1980
|
+
* @param doorHash
|
|
1853
1981
|
*/
|
|
1854
|
-
static
|
|
1855
|
-
static N_0x43CF999205084B4B(): void;
|
|
1982
|
+
static setDoorNetworked(doorHash: string | number): void;
|
|
1856
1983
|
/**
|
|
1857
|
-
* p0 appears to be for MP
|
|
1858
|
-
*
|
|
1859
1984
|
* @param p0
|
|
1860
|
-
* @
|
|
1861
|
-
|
|
1862
|
-
static getNumReservedMissionVehicles(p0: boolean): number;
|
|
1863
|
-
/**
|
|
1864
|
-
* @param name
|
|
1865
|
-
* @returns
|
|
1985
|
+
* @param index
|
|
1986
|
+
* @returns gamerHandle
|
|
1866
1987
|
*/
|
|
1867
|
-
static
|
|
1988
|
+
static ugcQueryGetCreatorHandle(p0: any, index: number): [any, number];
|
|
1868
1989
|
/**
|
|
1869
|
-
* @param
|
|
1870
|
-
* @param p1
|
|
1871
|
-
* @param p2
|
|
1872
|
-
* @param p3
|
|
1990
|
+
* @param paramName
|
|
1873
1991
|
* @returns
|
|
1874
1992
|
*/
|
|
1875
|
-
static
|
|
1876
|
-
/**
|
|
1877
|
-
* @param p0
|
|
1878
|
-
*/
|
|
1879
|
-
static N_0x5CB8B0C846D0F30B(p0: any): void;
|
|
1880
|
-
/**
|
|
1881
|
-
* @returns loadingState
|
|
1882
|
-
*/
|
|
1883
|
-
static canAccessMultiplayer(): [boolean, number];
|
|
1993
|
+
static getLaunchParamExists(paramName: string | null): any;
|
|
1884
1994
|
/**
|
|
1885
|
-
* @returns
|
|
1995
|
+
* @returns gamerHandle
|
|
1886
1996
|
*/
|
|
1887
|
-
static
|
|
1997
|
+
static canReceiveInviteFromHandle(): [any, number];
|
|
1888
1998
|
/**
|
|
1889
|
-
* @
|
|
1999
|
+
* @param player
|
|
2000
|
+
* @param p1
|
|
1890
2001
|
*/
|
|
1891
|
-
static
|
|
2002
|
+
static addPlayerToRecentGamersList(player: Player, p1: number): void;
|
|
1892
2003
|
/**
|
|
1893
2004
|
* @returns
|
|
1894
2005
|
*/
|
|
1895
|
-
static
|
|
2006
|
+
static N_0x232E1EB23CDB313C(): boolean;
|
|
1896
2007
|
/**
|
|
1897
|
-
*
|
|
1898
|
-
*
|
|
2008
|
+
* Note: this native was added in build 1311.23
|
|
2009
|
+
*
|
|
2010
|
+
* @returns sessionId1; sessionId2
|
|
1899
2011
|
*/
|
|
1900
|
-
static
|
|
2012
|
+
static sessionAreSessionIdsEqual(): [boolean, number, number];
|
|
1901
2013
|
/**
|
|
1902
|
-
* @param p0
|
|
1903
2014
|
* @returns
|
|
1904
2015
|
*/
|
|
1905
|
-
static
|
|
2016
|
+
static isTutorialSessionChangePending(): boolean;
|
|
2017
|
+
static ugcReleaseAllCachedDescriptions(): void;
|
|
1906
2018
|
/**
|
|
2019
|
+
* @param animScene
|
|
1907
2020
|
* @returns
|
|
1908
2021
|
*/
|
|
1909
|
-
static
|
|
2022
|
+
static requestControlOfAnimScene(animScene: AnimScene): any;
|
|
2023
|
+
static setMissionFinished(): void;
|
|
1910
2024
|
/**
|
|
2025
|
+
* Note: this native was added in build 1311.23
|
|
2026
|
+
*
|
|
1911
2027
|
* @param p0
|
|
1912
|
-
* @param p1
|
|
1913
2028
|
* @returns
|
|
1914
2029
|
*/
|
|
1915
|
-
static
|
|
1916
|
-
/**
|
|
1917
|
-
* @param ped
|
|
1918
|
-
* @returns Returns the network id for the specified `ped` or `0` if the entity isn't networked.
|
|
1919
|
-
*/
|
|
1920
|
-
static pedToNet(ped: Ped): number;
|
|
2030
|
+
static N_0x1E4E097D71D449FB(p0: boolean): number;
|
|
1921
2031
|
/**
|
|
2032
|
+
* Note: this native was added in build 1311.23
|
|
2033
|
+
*
|
|
1922
2034
|
* @param p0
|
|
1923
|
-
* @returns
|
|
1924
2035
|
*/
|
|
1925
|
-
static
|
|
2036
|
+
static N_0xC1968045EEB563B7(p0: number): void;
|
|
1926
2037
|
/**
|
|
1927
|
-
*
|
|
1928
|
-
* @returns
|
|
2038
|
+
* Old name: _CLEAR_LAUNCH_PARAMS
|
|
1929
2039
|
*/
|
|
1930
|
-
static
|
|
2040
|
+
static clearServiceEventArguments(): void;
|
|
1931
2041
|
/**
|
|
2042
|
+
* Old name: _NETWORK_ALLOW_LOCAL_ENTITY_ATTACHMENT
|
|
2043
|
+
*
|
|
1932
2044
|
* @param entity
|
|
1933
2045
|
* @param toggle
|
|
1934
2046
|
*/
|
|
1935
|
-
static
|
|
1936
|
-
/**
|
|
1937
|
-
* @param player
|
|
1938
|
-
* @returns weaponHash: Refer to [enum: eWeaponHash]
|
|
1939
|
-
*/
|
|
1940
|
-
static getEntityKillerOfPlayer(player: Player): [Entity | null, number];
|
|
1941
|
-
/**
|
|
1942
|
-
* @param p0
|
|
1943
|
-
* @returns
|
|
1944
|
-
*/
|
|
1945
|
-
static getNumCreatedMissionPickups(p0: boolean): number;
|
|
1946
|
-
/**
|
|
1947
|
-
* @param entity
|
|
1948
|
-
* @param p1
|
|
1949
|
-
* @param p2
|
|
1950
|
-
* @param p3
|
|
1951
|
-
*/
|
|
1952
|
-
static setEntityVisibleInCutscene(entity: Entity, p1: boolean, p2: boolean, p3: number): void;
|
|
1953
|
-
/**
|
|
1954
|
-
* Hardcoded to return -1.
|
|
1955
|
-
*
|
|
1956
|
-
* @param p1
|
|
1957
|
-
* @returns p0
|
|
1958
|
-
*/
|
|
1959
|
-
static displaynamesFromHandlesStart(p1: any): [number, number];
|
|
2047
|
+
static allowRemoteAttachmentModification(entity: Entity, toggle: boolean): void;
|
|
1960
2048
|
/**
|
|
1961
|
-
* @
|
|
2049
|
+
* @param volume
|
|
1962
2050
|
*/
|
|
1963
|
-
static
|
|
2051
|
+
static spawnConfigAddExclusionVolume(volume: Volume): void;
|
|
1964
2052
|
/**
|
|
1965
|
-
*
|
|
2053
|
+
* Note: this native was added in build 1436.31
|
|
1966
2054
|
*
|
|
2055
|
+
* @param p0
|
|
1967
2056
|
* @returns
|
|
1968
2057
|
*/
|
|
1969
|
-
static
|
|
2058
|
+
static N_0x78271BC02AE9AF83(p0: number): number;
|
|
1970
2059
|
/**
|
|
1971
|
-
*
|
|
1972
|
-
*
|
|
1973
|
-
* @param player
|
|
2060
|
+
* @param netID
|
|
1974
2061
|
* @returns
|
|
1975
2062
|
*/
|
|
1976
|
-
static
|
|
2063
|
+
static isDamageTrackerActiveOnNetworkId(netID: number): boolean;
|
|
1977
2064
|
/**
|
|
1978
|
-
*
|
|
2065
|
+
* Always returns -1. Seems to be XB1 specific.
|
|
1979
2066
|
*
|
|
1980
|
-
* @returns
|
|
1981
|
-
*/
|
|
1982
|
-
static sessionIsPrivate(): boolean;
|
|
1983
|
-
/**
|
|
1984
|
-
* @param toggle
|
|
1985
|
-
*/
|
|
1986
|
-
static autoSessionSetAllowedToSplit(toggle: boolean): void;
|
|
1987
|
-
static N_0x19B52C20B5C4757C(): void;
|
|
1988
|
-
/**
|
|
1989
|
-
* @returns sessionRequestId
|
|
1990
|
-
*/
|
|
1991
|
-
static sessionIsNsrrSuccess(): [any, number];
|
|
1992
|
-
/**
|
|
1993
|
-
* @returns
|
|
1994
|
-
*/
|
|
1995
|
-
static isPlatformInvitePending(): any;
|
|
1996
|
-
/**
|
|
1997
|
-
* @returns
|
|
1998
|
-
*/
|
|
1999
|
-
static isInMpCutscene(): boolean;
|
|
2000
|
-
/**
|
|
2001
|
-
* @returns
|
|
2067
|
+
* @returns gamerHandle
|
|
2002
2068
|
*/
|
|
2003
|
-
static
|
|
2069
|
+
static startUserContentPermissionsCheck(): [number, number];
|
|
2004
2070
|
/**
|
|
2005
2071
|
* Old name: _NETWORK_GET_AVERAGE_PACKET_LOSS_FOR_PLAYER
|
|
2006
2072
|
*
|
|
@@ -2147,433 +2213,428 @@ export declare class Network {
|
|
|
2147
2213
|
*/
|
|
2148
2214
|
static getGlobalMultiplayerClock(): [number, number, number];
|
|
2149
2215
|
/**
|
|
2150
|
-
* @param description
|
|
2151
|
-
* @param length
|
|
2152
2216
|
* @returns
|
|
2153
2217
|
*/
|
|
2154
|
-
static
|
|
2218
|
+
static didRecentGamerNamesRequestSucceed(): any;
|
|
2155
2219
|
/**
|
|
2156
|
-
* @
|
|
2220
|
+
* @returns sessionRequestId
|
|
2157
2221
|
*/
|
|
2158
|
-
static
|
|
2222
|
+
static sessionCancelRequest(): [any, number];
|
|
2159
2223
|
/**
|
|
2160
|
-
* @param
|
|
2224
|
+
* @param message
|
|
2161
2225
|
* @returns gamerHandle
|
|
2162
2226
|
*/
|
|
2163
|
-
static
|
|
2227
|
+
static N_0x5759160AC17C13CE(message: string | null): number;
|
|
2164
2228
|
/**
|
|
2165
|
-
* @param
|
|
2229
|
+
* @param id
|
|
2230
|
+
* @returns
|
|
2166
2231
|
*/
|
|
2167
|
-
static
|
|
2232
|
+
static cloudHasRequestCompleted(id: number): boolean;
|
|
2168
2233
|
/**
|
|
2169
|
-
*
|
|
2170
|
-
* @returns
|
|
2234
|
+
* nullsub, doesn't do anything
|
|
2171
2235
|
*/
|
|
2172
|
-
static
|
|
2236
|
+
static N_0xACC44768AF229042(): void;
|
|
2173
2237
|
/**
|
|
2174
|
-
*
|
|
2175
|
-
*
|
|
2238
|
+
* Hardcoded to return zero. ==== PS4 specific info ==== Returns some sort of unavailable reason:
|
|
2239
|
+
* -1 = REASON_INVALID
|
|
2240
|
+
* 0 = REASON_OTHER
|
|
2241
|
+
* 1 = REASON_SYSTEM_UPDATE
|
|
2242
|
+
* 2 = REASON_GAME_UPDATE
|
|
2243
|
+
* 3 = REASON_SIGNED_OUT
|
|
2244
|
+
* 4 = REASON_AGE
|
|
2245
|
+
* 5 = REASON_CONNECTION =================================
|
|
2246
|
+
*
|
|
2176
2247
|
* @returns
|
|
2177
2248
|
*/
|
|
2178
|
-
static
|
|
2249
|
+
static getNpUnavailableReason(): number;
|
|
2179
2250
|
/**
|
|
2180
|
-
* @param
|
|
2251
|
+
* @param netId
|
|
2181
2252
|
* @returns
|
|
2182
2253
|
*/
|
|
2183
|
-
static
|
|
2254
|
+
static netToPropset(netId: number): PropSet | null;
|
|
2184
2255
|
/**
|
|
2185
|
-
* @param
|
|
2186
|
-
* @param playerCount
|
|
2187
|
-
* @returns
|
|
2256
|
+
* @param paramName
|
|
2188
2257
|
*/
|
|
2189
|
-
static
|
|
2258
|
+
static clearLaunchParam(paramName: string | null): void;
|
|
2190
2259
|
/**
|
|
2191
|
-
* @
|
|
2260
|
+
* @param p0
|
|
2192
2261
|
*/
|
|
2193
|
-
static
|
|
2262
|
+
static N_0x603469298A4308AF(p0: boolean): void;
|
|
2194
2263
|
/**
|
|
2195
|
-
* @param
|
|
2264
|
+
* @param player
|
|
2196
2265
|
* @returns
|
|
2197
2266
|
*/
|
|
2198
|
-
static
|
|
2267
|
+
static isAimCamActive(player: Player): any;
|
|
2199
2268
|
/**
|
|
2200
|
-
*
|
|
2201
|
-
* Otherwise it is equivalent to NETWORK_SESSION_REQUEST_SESSION_COMPETITIVE(flags, MATCHTYPE_SEAMLESS, userHash, 0, sessionRequestId); p1 is unused
|
|
2269
|
+
* Note: scripts seem to indicate that this was renamed to NETWORK_IS_PLAYER_IN_MP_FAST_INSTANCE
|
|
2202
2270
|
*
|
|
2203
|
-
* @param
|
|
2204
|
-
* @param seamlessType
|
|
2205
|
-
* @param userHash
|
|
2206
|
-
* @returns sessionRequestId
|
|
2207
|
-
*/
|
|
2208
|
-
static sessionRequestSessionSeamless(flags: number, seamlessType: number, userHash: number): [any, number];
|
|
2209
|
-
/**
|
|
2271
|
+
* @param player
|
|
2210
2272
|
* @returns
|
|
2211
2273
|
*/
|
|
2212
|
-
static
|
|
2274
|
+
static isPlayerInMpCutscene(player: Player): boolean;
|
|
2213
2275
|
/**
|
|
2214
|
-
* @param
|
|
2215
|
-
* @param include
|
|
2276
|
+
* @param time
|
|
2216
2277
|
*/
|
|
2217
|
-
static
|
|
2278
|
+
static setLocalPlayerInvincibleTime(time: number): void;
|
|
2218
2279
|
/**
|
|
2219
2280
|
* @param p0
|
|
2220
2281
|
* @returns
|
|
2221
2282
|
*/
|
|
2222
|
-
static
|
|
2283
|
+
static N_0x3F2EE18A3E294801(p0: number): number;
|
|
2223
2284
|
/**
|
|
2224
|
-
* @
|
|
2285
|
+
* @param player
|
|
2225
2286
|
*/
|
|
2226
|
-
static
|
|
2287
|
+
static N_0x7B3FF2D193628126(player: Player): void;
|
|
2227
2288
|
/**
|
|
2228
|
-
*
|
|
2229
|
-
|
|
2230
|
-
|
|
2289
|
+
* @param milliseconds
|
|
2290
|
+
*/
|
|
2291
|
+
static clearClockOverrideOvertime(milliseconds: number): void;
|
|
2292
|
+
/**
|
|
2293
|
+
* @param player
|
|
2231
2294
|
* @returns
|
|
2232
2295
|
*/
|
|
2233
|
-
static
|
|
2296
|
+
static getPlayerTutorialSessionInstance(player: Player): number;
|
|
2297
|
+
static N_0x9B39B0555CC692B5(): void;
|
|
2234
2298
|
/**
|
|
2235
2299
|
* @param p0
|
|
2236
|
-
* @param p1
|
|
2237
2300
|
* @returns
|
|
2238
2301
|
*/
|
|
2239
|
-
static
|
|
2302
|
+
static N_0xE79BA3BC265895DA(p0: number): string | null;
|
|
2303
|
+
/**
|
|
2304
|
+
* @param netPlaylistActivity
|
|
2305
|
+
*/
|
|
2306
|
+
static activitySetCurrent(netPlaylistActivity: number): void;
|
|
2240
2307
|
/**
|
|
2308
|
+
* @param queueGroup
|
|
2241
2309
|
* @returns
|
|
2242
2310
|
*/
|
|
2243
|
-
static
|
|
2311
|
+
static sessionIsRequestInProgressByQueueGroup(queueGroup: number): any;
|
|
2244
2312
|
/**
|
|
2245
|
-
* Note: this native was added in build 1311.23
|
|
2246
|
-
*
|
|
2247
2313
|
* @returns
|
|
2248
2314
|
*/
|
|
2249
|
-
static
|
|
2315
|
+
static pedmugshotGetStatus(): number;
|
|
2250
2316
|
/**
|
|
2251
|
-
*
|
|
2317
|
+
* @returns
|
|
2318
|
+
*/
|
|
2319
|
+
static getTunableCloudCrc(): number;
|
|
2320
|
+
/**
|
|
2321
|
+
* Returns true if the passed value is less than 32.
|
|
2252
2322
|
*
|
|
2253
2323
|
* @param player
|
|
2254
2324
|
* @returns
|
|
2255
2325
|
*/
|
|
2256
|
-
static
|
|
2326
|
+
static isPlayerIndexValid(player: Player): any;
|
|
2257
2327
|
/**
|
|
2258
2328
|
* @param entity
|
|
2259
|
-
* @
|
|
2329
|
+
* @returns
|
|
2260
2330
|
*/
|
|
2261
|
-
static
|
|
2331
|
+
static getEntityIsNetworked(entity: Entity): boolean;
|
|
2262
2332
|
/**
|
|
2263
|
-
*
|
|
2333
|
+
* @param vehicle
|
|
2334
|
+
* @returns Returns the network id for the specified `vehicle`, or `0` if the vehicle isn't networked.
|
|
2264
2335
|
*/
|
|
2265
|
-
static
|
|
2336
|
+
static vehToNet(vehicle: Vehicle): number;
|
|
2266
2337
|
/**
|
|
2338
|
+
* Only used in R* SP Scripts
|
|
2339
|
+
*
|
|
2267
2340
|
* @param player
|
|
2268
|
-
* @param
|
|
2269
|
-
*/
|
|
2270
|
-
static N_0x51951DE06C0D1C40(player: Player, type: number): void;
|
|
2271
|
-
/**
|
|
2272
|
-
* @param p0
|
|
2341
|
+
* @param personaPhotoLocalCacheType
|
|
2273
2342
|
* @returns
|
|
2274
2343
|
*/
|
|
2275
|
-
static
|
|
2344
|
+
static requestPedshotTextureLocalBackupDownload(player: number, personaPhotoLocalCacheType: number): string | null;
|
|
2276
2345
|
/**
|
|
2277
2346
|
* @param p0
|
|
2278
|
-
* @param index
|
|
2279
|
-
* @returns
|
|
2280
2347
|
*/
|
|
2281
|
-
static
|
|
2348
|
+
static N_0xE5634491A58C2703(p0: number): void;
|
|
2282
2349
|
/**
|
|
2283
2350
|
* @param p0
|
|
2284
|
-
* @param
|
|
2285
|
-
* @returns
|
|
2286
|
-
*/
|
|
2287
|
-
static ugcQueryGetBookMarked(p0: any, index: number): any;
|
|
2288
|
-
/**
|
|
2289
|
-
* @param entity
|
|
2290
|
-
* @param timer
|
|
2351
|
+
* @param p1
|
|
2291
2352
|
* @param p2
|
|
2292
|
-
|
|
2293
|
-
static setNetworkRespotTimer(entity: Entity, timer: number, p2: boolean): void;
|
|
2294
|
-
/**
|
|
2295
|
-
* @returns gamerHandle
|
|
2296
|
-
*/
|
|
2297
|
-
static getGamertagFromFriend(): [string | null, number];
|
|
2298
|
-
/**
|
|
2299
|
-
* @param player
|
|
2353
|
+
* @param p3
|
|
2300
2354
|
* @returns
|
|
2301
2355
|
*/
|
|
2302
|
-
static
|
|
2356
|
+
static N_0x64A36BA85CE01A81(p0: any, p1: any, p2: any, p3: any): any;
|
|
2303
2357
|
/**
|
|
2304
|
-
* @
|
|
2305
|
-
* @returns
|
|
2358
|
+
* @returns sessionRequestId
|
|
2306
2359
|
*/
|
|
2307
|
-
static
|
|
2360
|
+
static sessionIsSessionRequestIdValid(): [any, number];
|
|
2308
2361
|
/**
|
|
2309
|
-
* @
|
|
2362
|
+
* @returns
|
|
2310
2363
|
*/
|
|
2311
|
-
static
|
|
2364
|
+
static isResettingPopulation(): any;
|
|
2312
2365
|
/**
|
|
2366
|
+
* Note: this native was added in build 1311.23
|
|
2367
|
+
*
|
|
2313
2368
|
* @param p0
|
|
2314
|
-
* @param p1
|
|
2315
|
-
* @param dataSize
|
|
2316
|
-
* @returns outData
|
|
2317
|
-
*/
|
|
2318
|
-
static getRecentGamerNames(p0: number, p1: number, dataSize: number): [any, number];
|
|
2319
|
-
/**
|
|
2320
2369
|
* @returns
|
|
2321
2370
|
*/
|
|
2322
|
-
static
|
|
2371
|
+
static N_0x039B692B3318FAB6(p0: boolean): number;
|
|
2323
2372
|
/**
|
|
2324
|
-
*
|
|
2373
|
+
* Always returns 60
|
|
2325
2374
|
*
|
|
2326
|
-
* @param p0
|
|
2327
2375
|
* @returns
|
|
2328
2376
|
*/
|
|
2329
|
-
static
|
|
2377
|
+
static getMaxNumNetworkObjects(): number;
|
|
2330
2378
|
/**
|
|
2379
|
+
* Checks if the user has ROS privilege 14.
|
|
2380
|
+
*
|
|
2331
2381
|
* @returns
|
|
2332
2382
|
*/
|
|
2333
|
-
static
|
|
2383
|
+
static ugcHasPrivilege(): any;
|
|
2334
2384
|
/**
|
|
2335
|
-
* @param
|
|
2336
|
-
* @
|
|
2385
|
+
* @param networkId
|
|
2386
|
+
* @param bStopCloning
|
|
2337
2387
|
*/
|
|
2338
|
-
static
|
|
2388
|
+
static setNetworkIdStopCloning(networkId: number, bStopCloning: boolean): void;
|
|
2339
2389
|
/**
|
|
2340
|
-
*
|
|
2341
|
-
* 1 = pending
|
|
2342
|
-
* 2 = failed
|
|
2390
|
+
* Returns CGameConfig->ConfigOnlineServices->RosTitleName (see gameconfig.xml)
|
|
2343
2391
|
*
|
|
2344
|
-
* @param textureDownloadId
|
|
2345
2392
|
* @returns
|
|
2346
2393
|
*/
|
|
2347
|
-
static
|
|
2348
|
-
/**
|
|
2349
|
-
* @returns gamerHandle
|
|
2350
|
-
*/
|
|
2351
|
-
static N_0xF23A6D6C11D8EC15(): [boolean, number];
|
|
2394
|
+
static getRosTitleName(): string | null;
|
|
2352
2395
|
/**
|
|
2353
|
-
* Always returns 40
|
|
2354
|
-
*
|
|
2355
2396
|
* @returns
|
|
2356
2397
|
*/
|
|
2357
|
-
static
|
|
2398
|
+
static getScriptStatus(): number;
|
|
2358
2399
|
/**
|
|
2359
|
-
* @param
|
|
2400
|
+
* @param p0
|
|
2360
2401
|
* @param p1
|
|
2361
2402
|
* @param p2
|
|
2403
|
+
* @param p3
|
|
2362
2404
|
*/
|
|
2363
|
-
static
|
|
2405
|
+
static setNetworkIdVisibleInCutscene(p0: any, p1: any, p2: any, p3: any): void;
|
|
2364
2406
|
/**
|
|
2365
|
-
* @
|
|
2407
|
+
* @param amount
|
|
2366
2408
|
*/
|
|
2367
|
-
static
|
|
2409
|
+
static reserveNetworkMissionObjects(amount: number): void;
|
|
2368
2410
|
/**
|
|
2369
|
-
* @param
|
|
2370
|
-
* @
|
|
2411
|
+
* @param entity
|
|
2412
|
+
* @param player
|
|
2413
|
+
* @returns p2
|
|
2371
2414
|
*/
|
|
2372
|
-
static
|
|
2415
|
+
static N_0x75FC34A2BA345BD1(entity: Entity, player: Player): [boolean, number];
|
|
2373
2416
|
/**
|
|
2374
|
-
* @param entity
|
|
2375
2417
|
* @returns
|
|
2376
2418
|
*/
|
|
2377
|
-
static
|
|
2419
|
+
static autoSessionIsAllowedToMerge(): any;
|
|
2378
2420
|
/**
|
|
2379
|
-
*
|
|
2380
|
-
*
|
|
2381
|
-
* @param player
|
|
2421
|
+
* @param p0
|
|
2382
2422
|
* @param p1
|
|
2423
|
+
* @param p2
|
|
2424
|
+
* @returns
|
|
2383
2425
|
*/
|
|
2384
|
-
static
|
|
2426
|
+
static N_0x7A8E8DF782B47EB0(p0: any, p1: any, p2: any): any;
|
|
2385
2427
|
/**
|
|
2428
|
+
* Hardcoded to return false.
|
|
2429
|
+
*
|
|
2386
2430
|
* @returns
|
|
2387
2431
|
*/
|
|
2388
|
-
static
|
|
2432
|
+
static shouldShowPromotionDlg(): any;
|
|
2389
2433
|
/**
|
|
2390
|
-
* @param
|
|
2391
|
-
* @returns
|
|
2434
|
+
* @param amount
|
|
2392
2435
|
*/
|
|
2393
|
-
static
|
|
2436
|
+
static reserveNetworkMissionPeds(amount: number): void;
|
|
2394
2437
|
/**
|
|
2395
|
-
* @
|
|
2438
|
+
* @param pos
|
|
2439
|
+
* @param heading
|
|
2396
2440
|
*/
|
|
2397
|
-
static
|
|
2441
|
+
static spawnConfigAddSpawnPoint(pos: Vector3, heading: number): void;
|
|
2442
|
+
/**
|
|
2443
|
+
* @param paramName
|
|
2444
|
+
* @param value
|
|
2445
|
+
*/
|
|
2446
|
+
static setLaunchParamValue(paramName: string | null, value: string | null): void;
|
|
2398
2447
|
/**
|
|
2399
|
-
* @param message
|
|
2400
2448
|
* @returns gamerHandle
|
|
2401
2449
|
*/
|
|
2402
|
-
static
|
|
2450
|
+
static canViewGamerUserContent(): [any, number];
|
|
2403
2451
|
/**
|
|
2404
2452
|
* @param p0
|
|
2405
|
-
* @returns
|
|
2453
|
+
* @returns
|
|
2406
2454
|
*/
|
|
2407
|
-
static
|
|
2455
|
+
static isParticipantActive(p0: number): boolean;
|
|
2408
2456
|
/**
|
|
2409
|
-
*
|
|
2410
|
-
*
|
|
2457
|
+
* @param p0
|
|
2411
2458
|
* @returns
|
|
2412
2459
|
*/
|
|
2413
|
-
static
|
|
2414
|
-
static N_0x97BCE4C4B3191228(): void;
|
|
2460
|
+
static getNumCreatedMissionPeds(p0: boolean): number;
|
|
2415
2461
|
/**
|
|
2416
|
-
*
|
|
2417
|
-
*
|
|
2418
|
-
* @param
|
|
2419
|
-
* @
|
|
2420
|
-
* @param p4
|
|
2462
|
+
* _NETWORK_GET_A* - _NETWORK_GET_D*
|
|
2463
|
+
*
|
|
2464
|
+
* @param ped
|
|
2465
|
+
* @returns p1
|
|
2421
2466
|
*/
|
|
2422
|
-
static
|
|
2467
|
+
static N_0x6CF82A7F65A5AD5F(ped: Ped): [Player | null, number];
|
|
2423
2468
|
/**
|
|
2424
|
-
* @
|
|
2469
|
+
* @param p1
|
|
2470
|
+
* @returns gamerHandle
|
|
2425
2471
|
*/
|
|
2426
|
-
static
|
|
2472
|
+
static getGamerStatus(p1: number): [number, number];
|
|
2427
2473
|
/**
|
|
2428
|
-
*
|
|
2474
|
+
* Returns result of session request:
|
|
2475
|
+
* 0 - NOT_FOUND
|
|
2476
|
+
* 1 - IN_PROGRESS
|
|
2477
|
+
* 2 - TIMEOUT
|
|
2478
|
+
* 3 - PLAYER_OFFLINE
|
|
2479
|
+
* 4 - GANG_MEMBERS_CHANGED
|
|
2480
|
+
* 5 - PLAYER_CANCELLED
|
|
2481
|
+
* 6 - PLAYER_SET_TOO_LARGE
|
|
2482
|
+
* 7 - MATCH_ACCEPTED
|
|
2483
|
+
* 8 - OTHER
|
|
2429
2484
|
*
|
|
2430
|
-
* @returns
|
|
2485
|
+
* @returns sessionRequestId; p1
|
|
2431
2486
|
*/
|
|
2432
|
-
static
|
|
2487
|
+
static sessionGetSessionRequestResult(): [number, number, number];
|
|
2488
|
+
static N_0xA63E4F050F20021F(): void;
|
|
2433
2489
|
/**
|
|
2434
|
-
*
|
|
2435
|
-
*
|
|
2490
|
+
* @param amount
|
|
2436
2491
|
* @returns
|
|
2437
2492
|
*/
|
|
2438
|
-
static
|
|
2493
|
+
static canRegisterMissionObjects(amount: number): boolean;
|
|
2439
2494
|
/**
|
|
2440
|
-
* @param
|
|
2495
|
+
* @param description
|
|
2441
2496
|
* @returns
|
|
2442
2497
|
*/
|
|
2443
|
-
static
|
|
2498
|
+
static ugcReleaseCachedDescription(description: string | number): boolean;
|
|
2444
2499
|
/**
|
|
2445
|
-
* @param
|
|
2446
|
-
* @returns
|
|
2500
|
+
* @param toggle
|
|
2447
2501
|
*/
|
|
2448
|
-
static
|
|
2502
|
+
static setFriendlyFireOption(toggle: boolean): void;
|
|
2503
|
+
/**
|
|
2504
|
+
* @returns sessionRequestId
|
|
2505
|
+
*/
|
|
2506
|
+
static sessionTransitionToSession(): [any, number];
|
|
2449
2507
|
/**
|
|
2508
|
+
* Hardcoded to return false.
|
|
2509
|
+
*
|
|
2450
2510
|
* @returns
|
|
2451
2511
|
*/
|
|
2452
|
-
static
|
|
2512
|
+
static isPromotionEnabled(): any;
|
|
2453
2513
|
/**
|
|
2454
|
-
* @param
|
|
2514
|
+
* @param playersToTake
|
|
2515
|
+
* @param maxInstancePlayers
|
|
2516
|
+
* @param sessionFlags
|
|
2517
|
+
* @param bucketId
|
|
2455
2518
|
* @returns
|
|
2456
2519
|
*/
|
|
2457
|
-
static
|
|
2458
|
-
static showAccountUpgradeUi(): void;
|
|
2520
|
+
static autoSessionSplitSession(playersToTake: number, maxInstancePlayers: number, sessionFlags: number, bucketId: number): any;
|
|
2459
2521
|
/**
|
|
2460
|
-
*
|
|
2461
|
-
*
|
|
2522
|
+
* @param p0
|
|
2462
2523
|
* @returns
|
|
2463
2524
|
*/
|
|
2464
|
-
static
|
|
2525
|
+
static N_0x923346025512DFB7(p0: any): any;
|
|
2465
2526
|
/**
|
|
2466
|
-
*
|
|
2467
|
-
*
|
|
2468
|
-
* @returns gamerHandle
|
|
2527
|
+
* @returns args
|
|
2469
2528
|
*/
|
|
2470
|
-
static
|
|
2529
|
+
static resurrectLocalPlayer2(): number;
|
|
2471
2530
|
/**
|
|
2472
|
-
*
|
|
2531
|
+
* Only used in R* Script net_stable_manager
|
|
2473
2532
|
*
|
|
2474
|
-
* @param
|
|
2475
|
-
* @returns
|
|
2533
|
+
* @param threadId
|
|
2534
|
+
* @returns pedMax; vehicleMax; unkMax; pedMin; vehicleMin; unkMin
|
|
2476
2535
|
*/
|
|
2477
|
-
static
|
|
2536
|
+
static getReservedMissionEntitiesForThread(threadId: number): [number, number, number, number, number, number];
|
|
2478
2537
|
/**
|
|
2479
2538
|
* @param p0
|
|
2480
2539
|
* @returns
|
|
2481
2540
|
*/
|
|
2482
|
-
static
|
|
2541
|
+
static N_0xD7BAD4062074B9C1(p0: any): boolean;
|
|
2483
2542
|
/**
|
|
2484
|
-
*
|
|
2485
|
-
*
|
|
2486
|
-
* @param
|
|
2487
|
-
* @
|
|
2543
|
+
* @param hour
|
|
2544
|
+
* @param minute
|
|
2545
|
+
* @param second
|
|
2546
|
+
* @param transitionTime
|
|
2547
|
+
* @param pauseClock
|
|
2488
2548
|
*/
|
|
2489
|
-
static
|
|
2549
|
+
static clockTimeOverride(hour: number, minute: number, second: number, transitionTime: number, pauseClock: boolean): void;
|
|
2490
2550
|
/**
|
|
2491
|
-
*
|
|
2551
|
+
* @param netId
|
|
2552
|
+
* @param player
|
|
2553
|
+
* @param toggle
|
|
2554
|
+
*/
|
|
2555
|
+
static setNetworkIdAlwaysExistsForPlayer(netId: number, player: Player, toggle: boolean): void;
|
|
2556
|
+
/**
|
|
2557
|
+
* Note: this native was added in build 1311.16
|
|
2492
2558
|
*
|
|
2493
|
-
* @param contentId
|
|
2494
|
-
* @param latestVersion
|
|
2495
|
-
* @param contentTypeName
|
|
2496
2559
|
* @returns
|
|
2497
2560
|
*/
|
|
2498
|
-
static
|
|
2561
|
+
static isObjectReassignmentInProgress(): boolean;
|
|
2499
2562
|
/**
|
|
2500
|
-
* @param
|
|
2563
|
+
* @param scriptName
|
|
2564
|
+
* @param instanceId
|
|
2565
|
+
* @param position
|
|
2566
|
+
* @returns
|
|
2501
2567
|
*/
|
|
2502
|
-
static
|
|
2568
|
+
static getNumScriptParticipants(scriptName: string | null, instanceId: number, position: string | number): number;
|
|
2503
2569
|
/**
|
|
2504
|
-
* @param
|
|
2570
|
+
* @param p0
|
|
2505
2571
|
* @returns
|
|
2506
2572
|
*/
|
|
2507
|
-
static
|
|
2573
|
+
static N_0x6C27442A225A241A(p0: number): number;
|
|
2508
2574
|
/**
|
|
2509
2575
|
* @param p0
|
|
2576
|
+
* @param p1
|
|
2510
2577
|
*/
|
|
2511
|
-
static
|
|
2578
|
+
static spawnConfigSetTuningFloat(p0: string | number, p1: number): void;
|
|
2512
2579
|
/**
|
|
2513
|
-
*
|
|
2580
|
+
* @param p1
|
|
2581
|
+
* @returns outData
|
|
2582
|
+
*/
|
|
2583
|
+
static N_0x7BCA0A3972708436(p1: number): [number, number];
|
|
2584
|
+
/**
|
|
2585
|
+
* Hardcoded to return zero.
|
|
2514
2586
|
*
|
|
2515
2587
|
* @param p0
|
|
2516
2588
|
* @param p1
|
|
2517
2589
|
* @param p2
|
|
2518
|
-
*/
|
|
2519
|
-
static N_0x3CBD6565D9C3B133(p0: number, p1: number, p2: number): void;
|
|
2520
|
-
/**
|
|
2521
2590
|
* @returns
|
|
2522
2591
|
*/
|
|
2523
|
-
static
|
|
2592
|
+
static getDisplaynamesFromHandles(p0: any, p1: any, p2: any): number;
|
|
2524
2593
|
/**
|
|
2525
|
-
* @param languageId
|
|
2526
2594
|
* @returns
|
|
2527
2595
|
*/
|
|
2528
|
-
static
|
|
2596
|
+
static isHostOfThisScript(): boolean;
|
|
2529
2597
|
/**
|
|
2598
|
+
* @param p0
|
|
2599
|
+
* @param index
|
|
2530
2600
|
* @returns
|
|
2531
2601
|
*/
|
|
2532
|
-
static
|
|
2602
|
+
static ugcQueryGetLanguage(p0: any, index: number): number;
|
|
2533
2603
|
/**
|
|
2534
|
-
*
|
|
2604
|
+
* Note: this native was added in build 1355.30
|
|
2535
2605
|
*
|
|
2536
|
-
* @
|
|
2606
|
+
* @param p0
|
|
2537
2607
|
*/
|
|
2538
|
-
static
|
|
2608
|
+
static N_0x422F9D6D6C7BC290(p0: number): void;
|
|
2539
2609
|
/**
|
|
2610
|
+
* @param propSet
|
|
2540
2611
|
* @returns
|
|
2541
2612
|
*/
|
|
2542
|
-
static
|
|
2613
|
+
static propsetToNet(propSet: PropSet): number;
|
|
2543
2614
|
/**
|
|
2544
2615
|
* @param p0
|
|
2545
|
-
* @param index
|
|
2546
|
-
* @param p2
|
|
2547
|
-
* @returns
|
|
2548
2616
|
*/
|
|
2549
|
-
static
|
|
2617
|
+
static N_0x5CD3AAD8FF9ED121(p0: any): void;
|
|
2550
2618
|
/**
|
|
2551
|
-
* @param
|
|
2552
|
-
* @
|
|
2619
|
+
* @param netId
|
|
2620
|
+
* @returns
|
|
2553
2621
|
*/
|
|
2554
|
-
static
|
|
2622
|
+
static netToAnimScene(netId: number): AnimScene | null;
|
|
2555
2623
|
/**
|
|
2556
|
-
*
|
|
2557
|
-
*
|
|
2558
|
-
* @param timeA
|
|
2559
|
-
* @param timeB
|
|
2624
|
+
* @param p0
|
|
2625
|
+
* @param index
|
|
2560
2626
|
* @returns
|
|
2561
2627
|
*/
|
|
2562
|
-
static
|
|
2628
|
+
static ugcQueryGetContentHasPlayerRecord(p0: any, index: number): any;
|
|
2629
|
+
static N_0x814729078AED6D30(): void;
|
|
2563
2630
|
/**
|
|
2564
|
-
* Old name: _NETWORK_GET_UNRELIABLE_RESEND_COUNT_FOR_PLAYER
|
|
2565
|
-
*
|
|
2566
|
-
* @param player
|
|
2567
2631
|
* @returns
|
|
2568
2632
|
*/
|
|
2569
|
-
static
|
|
2633
|
+
static isSignedOnline(): boolean;
|
|
2570
2634
|
/**
|
|
2571
|
-
* Note: this native was added in build 1311.23
|
|
2572
|
-
*
|
|
2573
|
-
* @param p0
|
|
2574
2635
|
* @returns
|
|
2575
2636
|
*/
|
|
2576
|
-
static
|
|
2637
|
+
static isInSpectatorMode(): boolean;
|
|
2577
2638
|
/**
|
|
2578
2639
|
* @param featureId
|
|
2579
2640
|
* @returns
|
|
@@ -2748,267 +2809,206 @@ export declare class Network {
|
|
|
2748
2809
|
* @returns
|
|
2749
2810
|
*/
|
|
2750
2811
|
static getNumPeerNegotiationResponses(): number;
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
* @returns
|
|
2754
|
-
*/
|
|
2755
|
-
static sessionRemovePlayerFlags(flags: number): any;
|
|
2756
|
-
/**
|
|
2757
|
-
* @returns
|
|
2758
|
-
*/
|
|
2759
|
-
static getTimeoutTime(): number;
|
|
2812
|
+
static clearClockTimeOverride(): void;
|
|
2813
|
+
static N_0xC8B6D18E22484643(): void;
|
|
2760
2814
|
/**
|
|
2761
2815
|
* @param p0
|
|
2816
|
+
* @param p1
|
|
2762
2817
|
*/
|
|
2763
|
-
static
|
|
2818
|
+
static N_0xDC6AD5C046F33AB4(p0: boolean, p1: boolean): void;
|
|
2764
2819
|
/**
|
|
2765
|
-
* @param
|
|
2820
|
+
* @param entity
|
|
2766
2821
|
* @returns
|
|
2767
2822
|
*/
|
|
2768
|
-
static
|
|
2823
|
+
static hasControlOfEntity(entity: Entity): boolean;
|
|
2769
2824
|
/**
|
|
2770
|
-
*
|
|
2771
|
-
*
|
|
2772
|
-
* @param texture
|
|
2773
|
-
* @param playerSlot
|
|
2774
|
-
* @param p2
|
|
2775
|
-
* @param personaPhotoLocalCacheType
|
|
2825
|
+
* @param player
|
|
2776
2826
|
* @returns
|
|
2777
2827
|
*/
|
|
2778
|
-
static
|
|
2828
|
+
static getUniqueIntForPlayer(player: Player): number;
|
|
2779
2829
|
/**
|
|
2780
|
-
* @param
|
|
2830
|
+
* @param tunableContext
|
|
2831
|
+
* @param tunableName
|
|
2781
2832
|
* @returns
|
|
2782
2833
|
*/
|
|
2783
|
-
static
|
|
2834
|
+
static accessTunableBool(tunableContext: string | number, tunableName: string | number): boolean;
|
|
2784
2835
|
/**
|
|
2785
|
-
* @
|
|
2836
|
+
* @returns gamerHandle
|
|
2786
2837
|
*/
|
|
2787
|
-
static
|
|
2838
|
+
static removeFriend(): [any, number];
|
|
2839
|
+
static N_0x6C7E04E9DE451789(): void;
|
|
2788
2840
|
/**
|
|
2789
2841
|
* @returns
|
|
2790
2842
|
*/
|
|
2791
|
-
static
|
|
2843
|
+
static N_0x0B6B4507AC5EA8B8(): boolean;
|
|
2792
2844
|
/**
|
|
2793
|
-
* @param
|
|
2794
|
-
* @param
|
|
2795
|
-
* @param p2
|
|
2796
|
-
* @param p3
|
|
2797
|
-
* @param p4
|
|
2798
|
-
* @param p5
|
|
2799
|
-
* @returns
|
|
2845
|
+
* @param netID
|
|
2846
|
+
* @param toggle
|
|
2800
2847
|
*/
|
|
2801
|
-
static
|
|
2848
|
+
static activateDamageTrackerOnNetworkId(netID: number, toggle: boolean): void;
|
|
2802
2849
|
/**
|
|
2803
|
-
*
|
|
2804
|
-
* @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist.
|
|
2850
|
+
* *NETWORK_SPAWN_CONFIG**
|
|
2805
2851
|
*/
|
|
2806
|
-
static
|
|
2852
|
+
static N_0x6CEE2E30021DAEC6(): void;
|
|
2853
|
+
static N_0x5B9C6AC118FD4774(): void;
|
|
2807
2854
|
/**
|
|
2808
|
-
*
|
|
2809
|
-
*
|
|
2855
|
+
* @param player
|
|
2856
|
+
* @param trackedPlayer
|
|
2810
2857
|
* @returns
|
|
2811
2858
|
*/
|
|
2812
|
-
static
|
|
2859
|
+
static isTrackedPlayerVisible(player: Player, trackedPlayer: Player): any;
|
|
2860
|
+
static activityResetToIdle(): void;
|
|
2813
2861
|
/**
|
|
2814
2862
|
* @param p0
|
|
2815
|
-
*/
|
|
2816
|
-
static N_0xFF36F36B07E69059(p0: any): void;
|
|
2817
|
-
/**
|
|
2818
|
-
* @param flags
|
|
2819
2863
|
* @returns
|
|
2820
2864
|
*/
|
|
2821
|
-
static
|
|
2865
|
+
static hasControlOfPickupPlacement(p0: any): boolean;
|
|
2822
2866
|
/**
|
|
2823
|
-
*
|
|
2824
|
-
*
|
|
2825
|
-
* @param
|
|
2826
|
-
* @param flags
|
|
2827
|
-
* @returns gamerHandle; data
|
|
2867
|
+
* Converts the specified entity into a local entity, removing it from the networked pool. This will only work if you're the owner of the entity.
|
|
2868
|
+
*
|
|
2869
|
+
* @param entity The entity to un-network
|
|
2828
2870
|
*/
|
|
2829
|
-
static
|
|
2830
|
-
static N_0x61BFBAA795E712AD(): void;
|
|
2871
|
+
static unregisterNetworkedEntity(entity: Entity): void;
|
|
2831
2872
|
/**
|
|
2832
|
-
*
|
|
2833
|
-
* @param personaPhotoLocalCacheType
|
|
2834
|
-
* @returns
|
|
2873
|
+
* nullsub, doesn't do anything
|
|
2835
2874
|
*/
|
|
2836
|
-
static
|
|
2875
|
+
static showPsnUgcRestriction(): void;
|
|
2837
2876
|
/**
|
|
2838
|
-
*
|
|
2839
|
-
*
|
|
2877
|
+
* @param p0
|
|
2878
|
+
* @param p1
|
|
2840
2879
|
* @returns
|
|
2841
2880
|
*/
|
|
2842
|
-
static
|
|
2881
|
+
static ugcQueryGetPosixUpdatedDate(p0: any, p1: any): number;
|
|
2843
2882
|
/**
|
|
2844
|
-
*
|
|
2845
|
-
*
|
|
2846
|
-
* @param ped
|
|
2883
|
+
* @param index
|
|
2847
2884
|
* @returns
|
|
2848
2885
|
*/
|
|
2849
|
-
static
|
|
2886
|
+
static hasRosPrivilege(index: number): boolean;
|
|
2850
2887
|
/**
|
|
2851
|
-
* @param netID
|
|
2852
2888
|
* @returns
|
|
2853
2889
|
*/
|
|
2854
|
-
static
|
|
2890
|
+
static isSessionStarted(): boolean;
|
|
2855
2891
|
/**
|
|
2856
|
-
* @param
|
|
2857
|
-
* @param remote
|
|
2858
|
-
* @param instanceId
|
|
2892
|
+
* @param toggle
|
|
2859
2893
|
*/
|
|
2860
|
-
static
|
|
2894
|
+
static setLocalPlayerSyncLookAt(toggle: boolean): void;
|
|
2861
2895
|
/**
|
|
2862
|
-
*
|
|
2863
|
-
*
|
|
2864
|
-
* @param pos
|
|
2865
|
-
* @param p5
|
|
2866
|
-
* @param p6
|
|
2867
|
-
* @returns p0; p1
|
|
2896
|
+
* @returns gamerHandle
|
|
2868
2897
|
*/
|
|
2869
|
-
static
|
|
2898
|
+
static showProfileUi(): number;
|
|
2870
2899
|
/**
|
|
2871
|
-
*
|
|
2872
|
-
*
|
|
2873
|
-
* @param p0
|
|
2874
|
-
* @returns
|
|
2900
|
+
* @param player
|
|
2901
|
+
* @param toggle
|
|
2875
2902
|
*/
|
|
2876
|
-
static
|
|
2903
|
+
static setPlayerVisibleLocally(player: Player, toggle: boolean): void;
|
|
2877
2904
|
/**
|
|
2878
|
-
*
|
|
2905
|
+
* *NETWORK_SPAWN_CONFIG**
|
|
2906
|
+
*
|
|
2907
|
+
* @param nsctf
|
|
2879
2908
|
*/
|
|
2880
|
-
static
|
|
2881
|
-
static clearPlatformInvite(): void;
|
|
2909
|
+
static N_0x5D3C528B7A7DF836(nsctf: string | number): void;
|
|
2882
2910
|
/**
|
|
2883
|
-
* @
|
|
2884
|
-
* @param p2
|
|
2885
|
-
* @returns p1
|
|
2911
|
+
* @returns
|
|
2886
2912
|
*/
|
|
2887
|
-
static
|
|
2913
|
+
static autoSessionIsAutoWarpDisabled(): any;
|
|
2888
2914
|
/**
|
|
2889
2915
|
* @returns
|
|
2890
2916
|
*/
|
|
2891
|
-
static
|
|
2917
|
+
static didGetGamerStatusSucceed(): any;
|
|
2892
2918
|
/**
|
|
2893
|
-
* Note: this native was added in build 1311.23
|
|
2894
|
-
*
|
|
2895
2919
|
* @param p0
|
|
2920
|
+
* @param p1
|
|
2921
|
+
* @param p2
|
|
2922
|
+
* @param p3
|
|
2923
|
+
* @param p4
|
|
2896
2924
|
* @returns
|
|
2897
2925
|
*/
|
|
2898
|
-
static
|
|
2926
|
+
static isSphereVisibleToAnotherMachine(p0: any, p1: any, p2: any, p3: any, p4: any): boolean;
|
|
2899
2927
|
/**
|
|
2900
|
-
* @param
|
|
2928
|
+
* @param p0
|
|
2901
2929
|
* @returns
|
|
2902
2930
|
*/
|
|
2903
|
-
static
|
|
2931
|
+
static checkCommunicationPrivileges(p0: number): boolean;
|
|
2904
2932
|
/**
|
|
2905
|
-
*
|
|
2933
|
+
* Note: this native was added in build 1355.30
|
|
2906
2934
|
*/
|
|
2907
|
-
static
|
|
2935
|
+
static N_0x40FEDB13870042F1(): void;
|
|
2908
2936
|
/**
|
|
2909
|
-
* @param
|
|
2910
|
-
* @param
|
|
2937
|
+
* @param player1
|
|
2938
|
+
* @param player2
|
|
2911
2939
|
* @returns
|
|
2912
2940
|
*/
|
|
2913
|
-
static
|
|
2941
|
+
static N_0xFE53B1F8D43F19BF(player1: Player, player2: Player): number;
|
|
2914
2942
|
/**
|
|
2915
|
-
* @param
|
|
2916
|
-
* @param tunableName
|
|
2917
|
-
* @param defaultValue
|
|
2943
|
+
* @param id
|
|
2918
2944
|
* @returns
|
|
2919
2945
|
*/
|
|
2920
|
-
static
|
|
2946
|
+
static cloudDidRequestSucceed(id: number): boolean;
|
|
2921
2947
|
/**
|
|
2948
|
+
* @param player
|
|
2922
2949
|
* @returns
|
|
2923
2950
|
*/
|
|
2924
|
-
static
|
|
2951
|
+
static isPlayerConnected(player: Player): boolean;
|
|
2925
2952
|
/**
|
|
2926
2953
|
* Hardcoded to return false.
|
|
2927
2954
|
*
|
|
2928
|
-
* @returns
|
|
2955
|
+
* @returns gamerHandle
|
|
2929
2956
|
*/
|
|
2930
|
-
static
|
|
2957
|
+
static isPendingFriend(): [any, number];
|
|
2931
2958
|
/**
|
|
2932
|
-
*
|
|
2959
|
+
* Note: this native was added in build 1311.23
|
|
2933
2960
|
*
|
|
2934
|
-
* @
|
|
2961
|
+
* @param p0
|
|
2935
2962
|
*/
|
|
2936
|
-
static
|
|
2963
|
+
static N_0xA7670F7991099680(p0: number): void;
|
|
2937
2964
|
/**
|
|
2938
|
-
* @param
|
|
2939
|
-
* @param pos
|
|
2965
|
+
* @param instanceId
|
|
2940
2966
|
*/
|
|
2941
|
-
static
|
|
2967
|
+
static setLocalPlayerPendingFastInstanceId(instanceId: number): void;
|
|
2942
2968
|
/**
|
|
2943
2969
|
* @param p0
|
|
2944
|
-
* @returns
|
|
2945
2970
|
*/
|
|
2946
|
-
static
|
|
2971
|
+
static N_0xF342F6BD0A8287D5(p0: any): void;
|
|
2947
2972
|
/**
|
|
2948
|
-
* @
|
|
2973
|
+
* @returns
|
|
2949
2974
|
*/
|
|
2950
|
-
static
|
|
2975
|
+
static isFindingGamers(): boolean;
|
|
2951
2976
|
/**
|
|
2952
|
-
*
|
|
2953
|
-
* p1 represents max amount of players in private session
|
|
2977
|
+
* Returns textureDownloadId
|
|
2954
2978
|
*
|
|
2955
|
-
* @param
|
|
2956
|
-
* @param
|
|
2957
|
-
* @param
|
|
2958
|
-
* @returns
|
|
2979
|
+
* @param filePath
|
|
2980
|
+
* @param name
|
|
2981
|
+
* @param p3
|
|
2982
|
+
* @returns gamerHandle
|
|
2959
2983
|
*/
|
|
2960
|
-
static
|
|
2984
|
+
static textureDownloadRequest(filePath: string | null, name: string | null, p3: boolean): [number, number];
|
|
2961
2985
|
/**
|
|
2962
|
-
* @
|
|
2986
|
+
* @returns gamerHandle
|
|
2963
2987
|
*/
|
|
2964
|
-
static
|
|
2988
|
+
static isFriendHandleOnline(): [boolean, number];
|
|
2965
2989
|
/**
|
|
2966
|
-
*
|
|
2990
|
+
* @param netId
|
|
2991
|
+
* @returns weaponHash: Refer to [enum: eWeaponHash]
|
|
2967
2992
|
*/
|
|
2968
|
-
static
|
|
2993
|
+
static getDestroyerOfNetworkId(netId: number): [number, number];
|
|
2969
2994
|
/**
|
|
2970
|
-
*
|
|
2995
|
+
* Returns value of fwuiCachedSetting "general.onlineNotificationsInStoryMode"
|
|
2971
2996
|
*
|
|
2972
|
-
* @returns sessionId
|
|
2973
|
-
*/
|
|
2974
|
-
static sessionGetSessionId(): number;
|
|
2975
|
-
/**
|
|
2976
|
-
* @returns
|
|
2977
|
-
*/
|
|
2978
|
-
static autoSessionSplitSessionSuccessful(): any;
|
|
2979
|
-
/**
|
|
2980
|
-
* @param ugcRequestId
|
|
2981
2997
|
* @returns
|
|
2982
2998
|
*/
|
|
2983
|
-
static
|
|
2984
|
-
/**
|
|
2985
|
-
* @returns sessionRequestId
|
|
2986
|
-
*/
|
|
2987
|
-
static sessionIsRequestInProgress(): [any, number];
|
|
2999
|
+
static areOnlineNotificationsShownInStoryMode(): boolean;
|
|
2988
3000
|
/**
|
|
2989
|
-
*
|
|
3001
|
+
* Subtracts the second argument from the first.
|
|
2990
3002
|
*
|
|
2991
3003
|
* @param timeA
|
|
2992
3004
|
* @param timeB
|
|
2993
3005
|
* @returns
|
|
2994
3006
|
*/
|
|
2995
|
-
static
|
|
2996
|
-
/**
|
|
2997
|
-
* @param p0
|
|
2998
|
-
* @returns
|
|
2999
|
-
*/
|
|
3000
|
-
static N_0xC028B3F52C707C49(p0: any): boolean;
|
|
3001
|
-
/**
|
|
3002
|
-
* nullsub, doesn't do anything
|
|
3003
|
-
*
|
|
3004
|
-
* @returns
|
|
3005
|
-
*/
|
|
3006
|
-
static N_0xC964FCD3D1720697(): any;
|
|
3007
|
+
static getTimeDifference(timeA: number, timeB: number): number;
|
|
3007
3008
|
/**
|
|
3008
3009
|
* @param p0
|
|
3009
|
-
* @param p1
|
|
3010
3010
|
* @returns
|
|
3011
3011
|
*/
|
|
3012
|
-
static
|
|
3012
|
+
static N_0xD1FFB246F4E088AC(p0: number): boolean;
|
|
3013
3013
|
}
|
|
3014
3014
|
//# sourceMappingURL=Network.d.ts.map
|