@nativewrappers/redm-codegen 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/classes/AnimScene.d.ts +82 -82
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +124 -124
  4. package/dist/classes/BaseModel.d.ts +29 -29
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +43 -43
  7. package/dist/classes/BaseTask.d.ts +43 -43
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +53 -53
  10. package/dist/classes/Cam.d.ts +82 -82
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +115 -115
  13. package/dist/classes/Entity.d.ts +250 -250
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +350 -350
  16. package/dist/classes/Interior.d.ts +27 -27
  17. package/dist/classes/Interior.d.ts.map +1 -1
  18. package/dist/classes/Interior.js +42 -42
  19. package/dist/classes/Ped.d.ts +55 -55
  20. package/dist/classes/Ped.d.ts.map +1 -1
  21. package/dist/classes/Ped.js +76 -76
  22. package/dist/classes/PedTask.d.ts +797 -797
  23. package/dist/classes/PedTask.d.ts.map +1 -1
  24. package/dist/classes/PedTask.js +1023 -1023
  25. package/dist/classes/PersChar.d.ts +13 -13
  26. package/dist/classes/PersChar.d.ts.map +1 -1
  27. package/dist/classes/PersChar.js +27 -27
  28. package/dist/classes/Pickup.d.ts +8 -8
  29. package/dist/classes/Pickup.d.ts.map +1 -1
  30. package/dist/classes/Pickup.js +15 -15
  31. package/dist/classes/Player.d.ts +185 -185
  32. package/dist/classes/Player.d.ts.map +1 -1
  33. package/dist/classes/Player.js +251 -251
  34. package/dist/classes/Prop.d.ts +130 -130
  35. package/dist/classes/Prop.d.ts.map +1 -1
  36. package/dist/classes/Prop.js +188 -188
  37. package/dist/classes/PropSet.d.ts +17 -17
  38. package/dist/classes/PropSet.d.ts.map +1 -1
  39. package/dist/classes/PropSet.js +25 -25
  40. package/dist/classes/VehicleTask.d.ts +23 -23
  41. package/dist/classes/VehicleTask.d.ts.map +1 -1
  42. package/dist/classes/VehicleTask.js +30 -30
  43. package/dist/classes/Volume.d.ts +39 -39
  44. package/dist/classes/Volume.d.ts.map +1 -1
  45. package/dist/classes/Volume.js +54 -54
  46. package/dist/classes/Weapon.d.ts +291 -291
  47. package/dist/classes/Weapon.d.ts.map +1 -1
  48. package/dist/classes/Weapon.js +414 -414
  49. package/dist/namespaces/Animscene.d.ts +63 -63
  50. package/dist/namespaces/Animscene.d.ts.map +1 -1
  51. package/dist/namespaces/Animscene.js +83 -83
  52. package/dist/namespaces/Audio.d.ts +464 -464
  53. package/dist/namespaces/Audio.d.ts.map +1 -1
  54. package/dist/namespaces/Audio.js +650 -650
  55. package/dist/namespaces/Bounty.d.ts +57 -57
  56. package/dist/namespaces/Bounty.d.ts.map +1 -1
  57. package/dist/namespaces/Bounty.js +90 -90
  58. package/dist/namespaces/CamStatics.d.ts +426 -426
  59. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  60. package/dist/namespaces/CamStatics.js +609 -609
  61. package/dist/namespaces/Collection.d.ts +81 -81
  62. package/dist/namespaces/Collection.d.ts.map +1 -1
  63. package/dist/namespaces/Collection.js +113 -113
  64. package/dist/namespaces/Compendium.d.ts +38 -38
  65. package/dist/namespaces/Compendium.d.ts.map +1 -1
  66. package/dist/namespaces/Compendium.js +52 -52
  67. package/dist/namespaces/Crashlog.d.ts +10 -10
  68. package/dist/namespaces/Crashlog.d.ts.map +1 -1
  69. package/dist/namespaces/Crashlog.js +14 -14
  70. package/dist/namespaces/Databinding.d.ts +174 -174
  71. package/dist/namespaces/Databinding.d.ts.map +1 -1
  72. package/dist/namespaces/Databinding.js +266 -266
  73. package/dist/namespaces/EntityStatics.d.ts +110 -110
  74. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  75. package/dist/namespaces/EntityStatics.js +146 -146
  76. package/dist/namespaces/Graphics.d.ts +547 -547
  77. package/dist/namespaces/Graphics.d.ts.map +1 -1
  78. package/dist/namespaces/Graphics.js +731 -731
  79. package/dist/namespaces/Hud.d.ts +395 -395
  80. package/dist/namespaces/Hud.d.ts.map +1 -1
  81. package/dist/namespaces/Hud.js +564 -564
  82. package/dist/namespaces/InteriorStatics.d.ts +40 -40
  83. package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
  84. package/dist/namespaces/InteriorStatics.js +56 -56
  85. package/dist/namespaces/Inventory.d.ts +107 -107
  86. package/dist/namespaces/Inventory.d.ts.map +1 -1
  87. package/dist/namespaces/Inventory.js +149 -149
  88. package/dist/namespaces/Itemdatabase.d.ts +5 -5
  89. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  90. package/dist/namespaces/Itemdatabase.js +7 -7
  91. package/dist/namespaces/Map.d.ts +173 -173
  92. package/dist/namespaces/Map.d.ts.map +1 -1
  93. package/dist/namespaces/Map.js +240 -240
  94. package/dist/namespaces/Minigame.d.ts +56 -56
  95. package/dist/namespaces/Minigame.d.ts.map +1 -1
  96. package/dist/namespaces/Minigame.js +80 -80
  97. package/dist/namespaces/Network.d.ts +964 -964
  98. package/dist/namespaces/Network.d.ts.map +1 -1
  99. package/dist/namespaces/Network.js +1333 -1333
  100. package/dist/namespaces/Object.d.ts +240 -240
  101. package/dist/namespaces/Object.d.ts.map +1 -1
  102. package/dist/namespaces/Object.js +337 -337
  103. package/dist/namespaces/Pad.d.ts +95 -95
  104. package/dist/namespaces/Pad.d.ts.map +1 -1
  105. package/dist/namespaces/Pad.js +127 -127
  106. package/dist/namespaces/PedStatics.d.ts +18 -18
  107. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  108. package/dist/namespaces/PedStatics.js +26 -26
  109. package/dist/namespaces/Perschar.d.ts +46 -46
  110. package/dist/namespaces/Perschar.d.ts.map +1 -1
  111. package/dist/namespaces/Perschar.js +66 -66
  112. package/dist/namespaces/Physics.d.ts +207 -207
  113. package/dist/namespaces/Physics.d.ts.map +1 -1
  114. package/dist/namespaces/Physics.js +315 -315
  115. package/dist/namespaces/PlayerStatics.d.ts +68 -68
  116. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  117. package/dist/namespaces/PlayerStatics.js +95 -95
  118. package/dist/namespaces/Population.d.ts +86 -86
  119. package/dist/namespaces/Population.d.ts.map +1 -1
  120. package/dist/namespaces/Population.js +116 -116
  121. package/dist/namespaces/Posse.d.ts +43 -43
  122. package/dist/namespaces/Posse.d.ts.map +1 -1
  123. package/dist/namespaces/Posse.js +67 -67
  124. package/dist/namespaces/Propset.d.ts +59 -59
  125. package/dist/namespaces/Propset.d.ts.map +1 -1
  126. package/dist/namespaces/Propset.js +81 -81
  127. package/dist/namespaces/Shapetest.d.ts +11 -11
  128. package/dist/namespaces/Shapetest.d.ts.map +1 -1
  129. package/dist/namespaces/Shapetest.js +13 -13
  130. package/dist/namespaces/Stats.d.ts +90 -90
  131. package/dist/namespaces/Stats.d.ts.map +1 -1
  132. package/dist/namespaces/Stats.js +127 -127
  133. package/dist/namespaces/Streaming.d.ts +127 -127
  134. package/dist/namespaces/Streaming.d.ts.map +1 -1
  135. package/dist/namespaces/Streaming.js +193 -193
  136. package/dist/namespaces/Task.d.ts +346 -346
  137. package/dist/namespaces/Task.d.ts.map +1 -1
  138. package/dist/namespaces/Task.js +525 -525
  139. package/dist/namespaces/Telemetry.d.ts +176 -176
  140. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  141. package/dist/namespaces/Telemetry.js +255 -255
  142. package/dist/namespaces/VolumeStatics.d.ts +64 -64
  143. package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
  144. package/dist/namespaces/VolumeStatics.js +85 -85
  145. package/dist/namespaces/Water.d.ts +27 -27
  146. package/dist/namespaces/Water.d.ts.map +1 -1
  147. package/dist/namespaces/Water.js +41 -41
  148. package/dist/namespaces/WeaponStatics.d.ts +234 -234
  149. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  150. package/dist/namespaces/WeaponStatics.js +320 -320
  151. package/dist/namespaces/Zone.d.ts +7 -7
  152. package/dist/namespaces/Zone.d.ts.map +1 -1
  153. package/dist/namespaces/Zone.js +9 -9
  154. package/package.json +1 -1
  155. package/src/classes/AnimScene.ts +133 -133
  156. package/src/classes/BaseModel.ts +50 -50
  157. package/src/classes/BaseTask.ts +55 -55
  158. package/src/classes/Cam.ts +126 -126
  159. package/src/classes/Entity.ts +365 -365
  160. package/src/classes/Interior.ts +43 -43
  161. package/src/classes/Ped.ts +86 -86
  162. package/src/classes/PedTask.ts +2067 -2067
  163. package/src/classes/PersChar.ts +34 -34
  164. package/src/classes/Pickup.ts +16 -16
  165. package/src/classes/Player.ts +296 -296
  166. package/src/classes/Prop.ts +203 -203
  167. package/src/classes/PropSet.ts +29 -29
  168. package/src/classes/VehicleTask.ts +32 -32
  169. package/src/classes/Volume.ts +61 -61
  170. package/src/classes/Weapon.ts +427 -427
  171. package/src/namespaces/Animscene.ts +86 -86
  172. package/src/namespaces/Audio.ts +760 -760
  173. package/src/namespaces/Bounty.ts +102 -102
  174. package/src/namespaces/CamStatics.ts +631 -631
  175. package/src/namespaces/Collection.ts +114 -114
  176. package/src/namespaces/Compendium.ts +59 -59
  177. package/src/namespaces/Crashlog.ts +16 -16
  178. package/src/namespaces/Databinding.ts +282 -282
  179. package/src/namespaces/EntityStatics.ts +158 -158
  180. package/src/namespaces/Graphics.ts +1140 -1140
  181. package/src/namespaces/Hud.ts +592 -592
  182. package/src/namespaces/InteriorStatics.ts +64 -64
  183. package/src/namespaces/Inventory.ts +165 -165
  184. package/src/namespaces/Itemdatabase.ts +8 -8
  185. package/src/namespaces/Map.ts +256 -256
  186. package/src/namespaces/Minigame.ts +92 -92
  187. package/src/namespaces/Network.ts +1392 -1392
  188. package/src/namespaces/Object.ts +350 -350
  189. package/src/namespaces/Pad.ts +127 -127
  190. package/src/namespaces/PedStatics.ts +30 -30
  191. package/src/namespaces/Perschar.ts +76 -76
  192. package/src/namespaces/Physics.ts +327 -327
  193. package/src/namespaces/PlayerStatics.ts +103 -103
  194. package/src/namespaces/Population.ts +131 -131
  195. package/src/namespaces/Posse.ts +67 -67
  196. package/src/namespaces/Propset.ts +92 -92
  197. package/src/namespaces/Shapetest.ts +14 -14
  198. package/src/namespaces/Stats.ts +143 -143
  199. package/src/namespaces/Streaming.ts +226 -226
  200. package/src/namespaces/Task.ts +498 -498
  201. package/src/namespaces/Telemetry.ts +261 -261
  202. package/src/namespaces/VolumeStatics.ts +87 -87
  203. package/src/namespaces/Water.ts +47 -47
  204. package/src/namespaces/WeaponStatics.ts +325 -325
  205. package/src/namespaces/Zone.ts +10 -10
@@ -1,95 +1,6 @@
1
1
  import { createFromHandle } from '../types/HandleRegistry';
2
2
  import { inv, rai, raf, ras, pvi, _h, f } from '../types/NativeAliases';
3
3
  export class Network {
4
- /**
5
- * @param description
6
- * @returns
7
- */
8
- static ugcDidDescriptionRequestSucceed(description) {
9
- return inv('0x162C23CA83ED0A62', _h(description), rai());
10
- }
11
- /**
12
- * @returns
13
- */
14
- static getGameMode() {
15
- return inv('0x225640E09EFFDC3F', rai());
16
- }
17
- /**
18
- * @param amount
19
- */
20
- static reserveNetworkClientMissionPeds(amount) {
21
- inv('0x807E119F80231732', amount);
22
- }
23
- /**
24
- * @param p0
25
- * @param p1
26
- * @param p2
27
- * @param p3
28
- */
29
- static setInMpCutscene(p0, p1, p2, p3) {
30
- inv('0x9CA5DE655269FEC4', p0, p1, p2, p3);
31
- }
32
- /**
33
- * @param toggle
34
- * @param playerPed
35
- */
36
- static setInSpectatorMode(toggle, playerPed) {
37
- inv('0x423DE3854BB50894', toggle, playerPed.handle);
38
- }
39
- /**
40
- * @param p0
41
- */
42
- static N_0x3E74A687A73979C6(p0) {
43
- inv('0x3E74A687A73979C6', p0);
44
- }
45
- /**
46
- * @returns sessionRequestId
47
- */
48
- static sessionIsRequestPendingTransition() {
49
- const result = inv('0xCCF878D50F8AB10D', pvi());
50
- return [result[0], result[1]];
51
- }
52
- /**
53
- * @param offset
54
- */
55
- static spawnConfigSetGroundToRootOffset(offset) {
56
- inv('0x59577799F6AE2F34', f(offset));
57
- }
58
- /**
59
- * @returns
60
- */
61
- static checkAccessAndAlertIfFail() {
62
- return inv('0x2A8112A974DE1EF6');
63
- }
64
- /**
65
- * Note: this native was added in build 1311.23
66
- *
67
- * @returns
68
- */
69
- static N_0xFB3205788F8AFA3F() {
70
- return inv('0xFB3205788F8AFA3F', rai());
71
- }
72
- /**
73
- * @returns
74
- */
75
- static getNumRecentGamers() {
76
- return inv('0x37A834AEC6A4F74A', rai());
77
- }
78
- /**
79
- * @returns
80
- */
81
- static N_0xD3A3C8B9F3BDEF81() {
82
- return inv('0xD3A3C8B9F3BDEF81');
83
- }
84
- /**
85
- * Returns the entity's network ID.
86
- *
87
- * @param entity
88
- * @returns
89
- */
90
- static N_0xF302AB9D978352EE(entity) {
91
- return inv('0xF302AB9D978352EE', entity.handle, rai());
92
- }
93
4
  static disableRealtimeMultiplayer() {
94
5
  inv('0x236905C700FDB54D');
95
6
  }
@@ -194,357 +105,247 @@ export class Network {
194
105
  return inv('0xEBFA8D50ADDC54C4', _h(description), rai());
195
106
  }
196
107
  /**
108
+ * @param contentTypeName
109
+ * @param contentId
110
+ * @param fileId
111
+ * @param fileVersion
112
+ * @param languageId
197
113
  * @returns
198
114
  */
199
- static canSessionEnd() {
200
- return inv('0x4EEBC3694E49C572', rai());
201
- }
202
- /**
203
- * @returns
204
- */
205
- static hasCurrentGetGamerStatusStarted() {
206
- return inv('0x25189F9908E9CD65');
115
+ static ugcRequestContentDataFromParams(contentTypeName, contentId, fileId, fileVersion, languageId) {
116
+ return inv('0x7FD2990AF016795E', contentTypeName, contentId, fileId, fileVersion, languageId, rai());
207
117
  }
208
118
  /**
209
- * @param enabled
210
- * @param flagIndex
211
- * @returns
119
+ * @param maxNumMissionParticipants
120
+ * @param p1
121
+ * @param instanceId
212
122
  */
213
- static setMpMissionFlagOnCurrentSlot(enabled, flagIndex) {
214
- return inv('0x86FD10251A7118A4', enabled, flagIndex);
123
+ static setThisScriptIsNetworkScript(maxNumMissionParticipants, p1, instanceId) {
124
+ inv('0x1CA59E306ECB80A5', maxNumMissionParticipants, p1, instanceId);
215
125
  }
216
126
  /**
217
- * Hardcoded to return false.
127
+ * Stadia only; always returns -1 on other platforms. p0 may be a BOOL.
218
128
  *
129
+ * @param p0
219
130
  * @returns
220
131
  */
221
- static isInPlatformPartyChat() {
222
- return inv('0xFD8B834A8BA05048', rai());
132
+ static N_0x3E8CCE6769DB5F34(p0) {
133
+ return inv('0x3E8CCE6769DB5F34', p0, rai());
223
134
  }
224
135
  /**
225
- * @param friendIndex
226
- * @returns gamerHandle
136
+ * @returns gamerHandle1; gamerHandle2
227
137
  */
228
- static handleFromFriend(friendIndex) {
229
- const result = inv('0xD45CB817D7E177D2', friendIndex, pvi());
230
- return result;
138
+ static arePlayersInSamePlatformParty() {
139
+ const result = inv('0x11820D1AE80DEA39', pvi(), pvi());
140
+ return [result[0], result[1], result[2]];
231
141
  }
232
142
  /**
233
- * @returns
143
+ * @param hour
144
+ * @param minute
145
+ * @param second
146
+ * @param transitionTime
147
+ * @param pauseClock
148
+ * @param clockwise
234
149
  */
235
- static commerceStoreIsEnabled() {
236
- return inv('0xDBC754CB6CCB9378', rai());
150
+ static clockTimeOverride2(hour, minute, second, transitionTime, pauseClock, clockwise) {
151
+ inv('0xE28C13ECC36FF14E', hour, minute, second, transitionTime, pauseClock, clockwise);
237
152
  }
238
153
  /**
239
- * @param p0
154
+ * @param player
155
+ * @returns
240
156
  */
241
- static N_0xA95470DA137587F5(p0) {
242
- inv('0xA95470DA137587F5', p0);
157
+ static isPlayerConcealed(player) {
158
+ return inv('0x919B3C98ED8292F9', player.handle, rai());
243
159
  }
244
160
  /**
245
- * @param netId
161
+ * @param description
246
162
  * @returns
247
163
  */
248
- static hasControlOfNetworkId(netId) {
249
- return inv('0x4D36070FE0215186', netId, rai());
164
+ static ugcRequestCachedDescription(description) {
165
+ return inv('0x5E0165278F6339EE', _h(description), rai());
250
166
  }
251
167
  /**
252
- * @param flags
168
+ * @returns
253
169
  */
254
- static spawnConfigSetFlags(flags) {
255
- inv('0xF94A0D5B254375DF', flags);
170
+ static sessionLeaveSession() {
171
+ return inv('0x17C21B7319A05047', rai());
256
172
  }
257
173
  /**
258
- * Same as NETWORK_GET_AVERAGE_LATENCY (0xD414BE129BB81B32) Old name: _NETWORK_GET_AVERAGE_LATENCY_FOR_PLAYER_2
174
+ * Hardcoded to return false.
259
175
  *
260
- * @param player
261
176
  * @returns
262
177
  */
263
- static getAveragePing(player) {
264
- return inv('0x0E3A041ED6AC2B45', player.handle, raf());
178
+ static isCustomUpsellEnabled() {
179
+ return inv('0x78A9535AF83715C6');
265
180
  }
266
181
  /**
267
- * @param p0
268
182
  * @returns
269
183
  */
270
- static getNumCreatedMissionObjects(p0) {
271
- return inv('0x12B6281B6C6706C0', p0, rai());
184
+ static getNetworkTime() {
185
+ return inv('0x7A5487FE9FAA6B48', rai());
272
186
  }
273
187
  /**
274
- * Note: this native was added in build 1311.16 GET_NUM_*
275
- *
188
+ * @param threadId
276
189
  * @returns
277
190
  */
278
- static N_0x02B3CDD652B3CDD6() {
279
- return inv('0x02B3CDD652B3CDD6', rai());
191
+ static getInstanceIdOfThread(threadId) {
192
+ return inv('0xFB9ECED5B68F3B78', threadId, rai());
280
193
  }
281
194
  /**
282
- * nullsub, doesn't do anything
195
+ * @param configProperty
196
+ * @param include
197
+ * @param weight
283
198
  */
284
- static N_0x2CD41AC000E6F611() {
285
- inv('0x2CD41AC000E6F611');
199
+ static spawnConfigAddPropertyPreference(configProperty, include, weight) {
200
+ inv('0xEB6027FD1B4600D5', configProperty, include, f(weight));
286
201
  }
287
202
  /**
203
+ * @param p0
288
204
  * @returns
289
205
  */
290
- static sessionGetSessionType() {
291
- return inv('0xF0C0C94B404206FA', rai());
206
+ static N_0xDCA4A74135E1DEA5(p0) {
207
+ return inv('0xDCA4A74135E1DEA5', p0, rai());
292
208
  }
293
209
  /**
210
+ * @returns gamerHandle
211
+ */
212
+ static getPlayerFromGamerHandle() {
213
+ const result = inv('0xCE5F689CF5A0A49D', pvi(), rai());
214
+ return [createFromHandle('Player', result[0]), result[1]];
215
+ }
216
+ /**
217
+ * Returns the amount of players connected in the current session. Only works when connected to a session/server.
218
+ *
294
219
  * @returns
295
220
  */
296
- static isClockTimeOverridden() {
297
- return inv('0xD7C95D322FF57522', rai());
221
+ static getNumConnectedPlayers() {
222
+ return inv('0xA4A79DD2D9600654', rai());
298
223
  }
299
224
  /**
300
- * @param player
301
- * @returns gamerHandle
225
+ * @param netId
226
+ * @returns
302
227
  */
303
- static handleFromPlayer(player) {
304
- const result = inv('0x388EB2B86C73B6B3', player.handle, pvi());
305
- return result;
228
+ static getEntityFromNetworkId(netId) {
229
+ return createFromHandle('Entity', inv('0xCE4E5D9B0A4FF560', netId, rai()));
306
230
  }
307
231
  /**
308
- * Note: this native was added in build 1311.23, but was only used after build 1436.25
232
+ * Returns string for GET_STATUS_OF_LOAD_MISSION_CREATOR_PHOTO
233
+ *
234
+ * @param p0
235
+ * @param p1
236
+ * @param p2
237
+ * @returns
309
238
  */
310
- static requestCloudTunables() {
311
- inv('0x42FB3B532D526E6C');
239
+ static ugcQueryGetCreatorPhoto(p0, p1, p2) {
240
+ return inv('0x409FE0CA6A4D1D49', p0, p1, p2, ras());
312
241
  }
313
242
  /**
314
243
  * @param toggle
315
244
  */
316
- static setScriptReadyForEvents(toggle) {
317
- inv('0x7AC752103856FB20', toggle);
245
+ static setRecentGamersEnabled(toggle) {
246
+ inv('0x29FE035D35B8589C', toggle);
318
247
  }
319
248
  /**
320
- * @param amount
321
249
  * @returns
322
250
  */
323
- static canRegisterMissionPeds(amount) {
324
- return inv('0xBCBF4FEF9FA5D781', amount, rai());
251
+ static getLaunchParamString() {
252
+ return inv('0xC59AB6A04333C502', ras());
325
253
  }
326
254
  /**
327
- * @returns gamerHandle1; gamerHandle2
255
+ * @param entity
256
+ * @param toggle
328
257
  */
329
- static areHandlesTheSame() {
330
- const result = inv('0x57DBA049E110F217', pvi(), pvi(), rai());
331
- return [!!result[0], result[1], result[2]];
258
+ static setEntityRemainsWhenUnnetworked(entity, toggle) {
259
+ inv('0xD785864798258032', entity.handle, toggle);
332
260
  }
333
261
  /**
334
- * Old name: _SET_LOCAL_PLAYER_AS_GHOST
335
- *
336
- * @param toggle
262
+ * @param flags
263
+ * @param userHash
264
+ * @param p2
265
+ * @returns sessionRequestId
337
266
  */
338
- static setLocalPlayerAsGhost(toggle) {
339
- inv('0x5FFE9B4144F9712F', toggle);
267
+ static sessionRequestSessionNominated(flags, userHash, p2) {
268
+ const result = inv('0x4F4672457FF597D1', flags, userHash, p2, pvi(), rai());
269
+ return [!!result[0], result[1]];
340
270
  }
341
271
  /**
342
- * Example: char displayName[64];
343
- * if (_NETWORK_GET_DISPLAY_NAME_FROM_HANDLE(handle, displayName))
344
- * {
345
- * // use displayName
346
- * }
347
- *
348
- * @param displayName
349
- * @returns gamerHandle
272
+ * @param description
273
+ * @returns
350
274
  */
351
- static getDisplayNameFromHandle(displayName) {
352
- const result = inv('0x7FEE4F07C54B6B3C', pvi(), displayName);
353
- return [result[0], result[1]];
354
- }
355
- static endTutorialSession() {
356
- inv('0xD0AFAFF5A51D72F7');
275
+ static ugcIsDescriptionRequestInProgress(description) {
276
+ return inv('0x2D5DC831176D0114', _h(description), rai());
357
277
  }
358
278
  /**
359
- * @param p0
360
- * @param p2
361
- * @returns p1
279
+ * @param ugcRequestId
362
280
  */
363
- static isPlayerAParticipantOnScript(p0, p2) {
364
- const result = inv('0x1AD5B71586B94820', p0.handle, pvi(), p2, rai());
365
- return [!!result[0], result[1]];
281
+ static ugcClearQueryResults(ugcRequestId) {
282
+ inv('0xE931354FEA710038', ugcRequestId);
366
283
  }
367
284
  /**
285
+ * @param threadId
368
286
  * @returns
369
287
  */
370
- static getTotalNumFriends() {
371
- return inv('0xDB7ABDD203FA3704', rai());
288
+ static getHostOfThread(threadId) {
289
+ return createFromHandle('Player', inv('0xB4A25351D79B444C', threadId, rai()));
372
290
  }
373
291
  /**
374
- * Returns ugcRequestId
375
- *
376
- * @param p0
377
- * @param maxGet
378
- * @param contentTypeName
379
- * @param p3
380
- * @param p4
381
- * @param p5
382
292
  * @returns
383
293
  */
384
- static ugcQueryByContentType(p0, maxGet, contentTypeName, p3, p4, p5) {
385
- return inv('0xF40EF49B3099E98E', p0, maxGet, contentTypeName, p3, p4, p5, rai());
294
+ static isGameInProgress() {
295
+ return inv('0x10FAB35428CCC9D7', rai());
386
296
  }
387
297
  /**
388
- * @param p0
389
- * @param index
390
- * @param p2
298
+ * @param rangeStart
299
+ * @param rangeEnd
391
300
  * @returns
392
301
  */
393
- static ugcQueryGetRating(p0, index, p2) {
394
- return inv('0x24CD8FAEA1368379', p0, index, p2, raf());
395
- }
396
- /**
397
- * @param player
398
- */
399
- static N_0xD78A26024BB13E08(player) {
400
- inv('0xD78A26024BB13E08', player.handle);
401
- }
402
- /**
403
- * Only used in R* Script fm_race_controller
404
- *
405
- * @param p0
406
- */
407
- static N_0x71FA2D1880C48032(p0) {
408
- inv('0x71FA2D1880C48032', p0);
302
+ static getRandomIntRanged(rangeStart, rangeEnd) {
303
+ return inv('0xE30CF56F1EFA5F43', rangeStart, rangeEnd, rai());
409
304
  }
410
305
  /**
411
- * Note: this native was added in build 1311.23
412
- *
413
306
  * @param p0
414
- * @param p1
415
- * @param p2
416
- * @param p3
417
- * @returns
418
- */
419
- static N_0x5F328FC909F0E0FF(p0, p1, p2, p3) {
420
- return inv('0x5F328FC909F0E0FF', p0, p1, p2, p3, rai());
421
- }
422
- /**
423
- * Old name: _NETWORK_SET_VEHICLE_WHEELS_DESTRUCTIBLE
424
- *
425
- * @param entity
426
- * @param p1
427
- */
428
- static triggerDamageEventForZeroDamage(entity, p1) {
429
- inv('0x0C8BC052AE87D744', entity.handle, p1);
430
- }
431
- /**
432
- * nullsub, doesn't do anything
433
- *
434
307
  * @returns
435
308
  */
436
- static getNetStatisticsInfo() {
437
- return inv('0x6FD992C4A1C1B986');
309
+ static acceptRsInvite(p0) {
310
+ return inv('0xB2CEA5105AAC8DDE', p0);
438
311
  }
439
312
  /**
440
- * nullsub, doesn't do anything
313
+ * @param player
314
+ * @param toggle
441
315
  */
442
- static N_0xFC6FCF4C03F1BBF6() {
443
- inv('0xFC6FCF4C03F1BBF6');
444
- }
445
- static N_0x43CF999205084B4B() {
446
- inv('0x43CF999205084B4B');
316
+ static concealPlayer(player, toggle) {
317
+ inv('0xBBDF066252829606', player.handle, toggle);
447
318
  }
448
319
  /**
449
- * p0 appears to be for MP
320
+ * ^^ 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
450
321
  *
451
- * @param p0
452
- * @returns
453
- */
454
- static getNumReservedMissionVehicles(p0) {
455
- return inv('0xCF3A965906452031', p0, rai());
456
- }
457
- /**
458
- * @param name
459
- * @returns
322
+ * @param entity
323
+ * @param toggle
460
324
  */
461
- static textureDownloadTextureNameIsValid(name) {
462
- return inv('0xE2C3CEC3C0903A00', name);
325
+ static setEntityOnlyExistsForParticipants(entity, toggle) {
326
+ inv('0xF1CA12B18AEF5298', entity.handle, toggle);
463
327
  }
464
328
  /**
465
- * @param scriptName
466
- * @param p1
467
- * @param p2
468
- * @param p3
469
- * @returns
329
+ * @param doorHash
470
330
  */
471
- static isScriptActive(scriptName, p1, p2, p3) {
472
- return inv('0x9D40DF90FAD26098', scriptName, p1, p2, p3, rai());
331
+ static setDoorNetworked(doorHash) {
332
+ inv('0x51D99497ABF3F451', _h(doorHash));
473
333
  }
474
334
  /**
475
335
  * @param p0
336
+ * @param index
337
+ * @returns gamerHandle
476
338
  */
477
- static N_0x5CB8B0C846D0F30B(p0) {
478
- inv('0x5CB8B0C846D0F30B', p0);
479
- }
480
- /**
481
- * @returns loadingState
482
- */
483
- static canAccessMultiplayer() {
484
- const result = inv('0xAF50DA1A3F8B1BA4', pvi(), rai());
485
- return [!!result[0], result[1]];
486
- }
487
- /**
488
- * @returns p0
489
- */
490
- static getCurrentFriendPageData() {
491
- const result = inv('0xA3EEC0A5AFF3FC5B', pvi());
492
- return [result[0], result[1]];
493
- }
494
- /**
495
- * @returns p0
496
- */
497
- static getSizeOfHostBroadcastDataStorage() {
498
- const result = inv('0xBA24095EA96DFE17', pvi(), rai());
339
+ static ugcQueryGetCreatorHandle(p0, index) {
340
+ const result = inv('0xADB56322EEDFBDC9', p0, index, pvi());
499
341
  return [result[0], result[1]];
500
342
  }
501
343
  /**
344
+ * @param paramName
502
345
  * @returns
503
346
  */
504
- static getInstanceIdOfThisScript() {
505
- return inv('0x638A3A81733086DB', rai());
506
- }
507
- /**
508
- * @param p0
509
- * @returns
510
- */
511
- static awardHasReachedMaxclaim(p0) {
512
- return inv('0xFBE782B3165AC8EC', p0);
513
- }
514
- /**
515
- * @param p0
516
- * @returns
517
- */
518
- static N_0xBB697756309D77EE(p0) {
519
- return inv('0xBB697756309D77EE', p0);
520
- }
521
- /**
522
- * @returns
523
- */
524
- static autoSessionIsInstancedSession() {
525
- return inv('0x277865A734918AE6');
526
- }
527
- /**
528
- * @param p0
529
- * @param p1
530
- * @returns
531
- */
532
- static resetPopulation(p0, p1) {
533
- return inv('0x101F538C25ABB39A', p0, p1);
534
- }
535
- /**
536
- * @param ped
537
- * @returns Returns the network id for the specified `ped` or `0` if the entity isn't networked.
538
- */
539
- static pedToNet(ped) {
540
- return inv('0x0EDEC3C276198689', ped.handle, rai());
541
- }
542
- /**
543
- * @param p0
544
- * @returns
545
- */
546
- static N_0x27B1AE4D8C652F08(p0) {
547
- return inv('0x27B1AE4D8C652F08', p0, rai());
347
+ static getLaunchParamExists(paramName) {
348
+ return inv('0x02E97CE283648CD9', paramName);
548
349
  }
549
350
  /**
550
351
  * @returns gamerHandle
@@ -1155,125 +956,237 @@ export class Network {
1155
956
  static personaPhotoWriteScProfile(texture, personaPhotoType, formatIndex) {
1156
957
  return inv('0xB72999D3120599DF', texture, personaPhotoType, formatIndex);
1157
958
  }
959
+ static N_0x9B39B0555CC692B5() {
960
+ inv('0x9B39B0555CC692B5');
961
+ }
1158
962
  /**
1159
963
  * @param p0
1160
- * @param p1
1161
964
  * @returns
1162
965
  */
1163
- static N_0x271F95E55C663B8B(p0, p1) {
1164
- return inv('0x271F95E55C663B8B', p0, p1);
966
+ static N_0xE79BA3BC265895DA(p0) {
967
+ return inv('0xE79BA3BC265895DA', p0, ras());
968
+ }
969
+ /**
970
+ * @param netPlaylistActivity
971
+ */
972
+ static activitySetCurrent(netPlaylistActivity) {
973
+ inv('0x9ADAC065D9F6706F', netPlaylistActivity);
1165
974
  }
1166
975
  /**
976
+ * @param queueGroup
1167
977
  * @returns
1168
978
  */
1169
- static sessionGetSessionFlags() {
1170
- return inv('0x51F33DBC1A41CBFD', rai());
979
+ static sessionIsRequestInProgressByQueueGroup(queueGroup) {
980
+ return inv('0x9E762A595CF88E4A', queueGroup);
1171
981
  }
1172
982
  /**
1173
- * Note: this native was added in build 1311.23
1174
- *
1175
983
  * @returns
1176
984
  */
1177
- static N_0x039AD6B57D5179FF() {
1178
- return inv('0x039AD6B57D5179FF', rai());
985
+ static pedmugshotGetStatus() {
986
+ return inv('0xCBAC13F065C47596', rai());
1179
987
  }
1180
988
  /**
1181
- * Old name: _NETWORK_GET_NUM_UNACKED_FOR_PLAYER
989
+ * @returns
990
+ */
991
+ static getTunableCloudCrc() {
992
+ return inv('0x10BD227A753B0D84', rai());
993
+ }
994
+ /**
995
+ * Returns true if the passed value is less than 32.
1182
996
  *
1183
997
  * @param player
1184
998
  * @returns
1185
999
  */
1186
- static getNumUnackedReliables(player) {
1187
- return inv('0xFF8FCF9FFC458A1C', player.handle, rai());
1000
+ static isPlayerIndexValid(player) {
1001
+ return inv('0x255A5EF65EDA9167', player.handle);
1188
1002
  }
1189
1003
  /**
1190
1004
  * @param entity
1191
- * @param toggle
1005
+ * @returns
1192
1006
  */
1193
- static allowEntityFadingForInstances(entity, toggle) {
1194
- inv('0xF3354D6CA46F419D', entity.handle, toggle);
1007
+ static getEntityIsNetworked(entity) {
1008
+ return inv('0xC7827959479DCC78', entity.handle, rai());
1195
1009
  }
1196
1010
  /**
1197
- * Only used in R* Script startup_clip
1011
+ * @param vehicle
1012
+ * @returns Returns the network id for the specified `vehicle`, or `0` if the vehicle isn't networked.
1198
1013
  */
1199
- static N_0xFD4272A137703449() {
1200
- inv('0xFD4272A137703449');
1014
+ static vehToNet(vehicle) {
1015
+ return inv('0xB4C94523F023419C', vehicle.handle, rai());
1201
1016
  }
1202
1017
  /**
1018
+ * Only used in R* SP Scripts
1019
+ *
1203
1020
  * @param player
1204
- * @param type
1021
+ * @param personaPhotoLocalCacheType
1022
+ * @returns
1205
1023
  */
1206
- static N_0x51951DE06C0D1C40(player, type) {
1207
- inv('0x51951DE06C0D1C40', player.handle, type);
1024
+ static requestPedshotTextureLocalBackupDownload(player, personaPhotoLocalCacheType) {
1025
+ return inv('0x356F9FB0698C1FEB', player, personaPhotoLocalCacheType, ras());
1208
1026
  }
1209
1027
  /**
1210
1028
  * @param p0
1211
- * @returns
1212
1029
  */
1213
- static N_0x5ED39DA62BEB1330(p0) {
1214
- return inv('0x5ED39DA62BEB1330', p0);
1030
+ static N_0xE5634491A58C2703(p0) {
1031
+ inv('0xE5634491A58C2703', f(p0));
1215
1032
  }
1216
1033
  /**
1217
1034
  * @param p0
1218
- * @param index
1035
+ * @param p1
1036
+ * @param p2
1037
+ * @param p3
1219
1038
  * @returns
1220
1039
  */
1221
- static ugcQueryGetName(p0, index) {
1222
- return inv('0x2D053EA815702DD1', p0, index, ras());
1040
+ static N_0x64A36BA85CE01A81(p0, p1, p2, p3) {
1041
+ return inv('0x64A36BA85CE01A81', p0, p1, p2, p3);
1042
+ }
1043
+ /**
1044
+ * @returns sessionRequestId
1045
+ */
1046
+ static sessionIsSessionRequestIdValid() {
1047
+ const result = inv('0x2F54B146D3EDCE4D', pvi());
1048
+ return [result[0], result[1]];
1223
1049
  }
1224
1050
  /**
1051
+ * @returns
1052
+ */
1053
+ static isResettingPopulation() {
1054
+ return inv('0x1BB50CD340A996E6');
1055
+ }
1056
+ /**
1057
+ * Note: this native was added in build 1311.23
1058
+ *
1225
1059
  * @param p0
1226
- * @param index
1227
1060
  * @returns
1228
1061
  */
1229
- static ugcQueryGetBookMarked(p0, index) {
1230
- return inv('0x98539FC453AEA639', p0, index);
1062
+ static N_0x039B692B3318FAB6(p0) {
1063
+ return inv('0x039B692B3318FAB6', p0, rai());
1231
1064
  }
1232
1065
  /**
1233
- * @param entity
1234
- * @param timer
1235
- * @param p2
1066
+ * Always returns 60
1067
+ *
1068
+ * @returns
1236
1069
  */
1237
- static setNetworkRespotTimer(entity, timer, p2) {
1238
- inv('0x442B4347B6EC36E8', entity.handle, timer, p2);
1070
+ static getMaxNumNetworkObjects() {
1071
+ return inv('0xC7BE335216B5EC7C', rai());
1239
1072
  }
1240
1073
  /**
1241
- * @returns gamerHandle
1074
+ * Checks if the user has ROS privilege 14.
1075
+ *
1076
+ * @returns
1242
1077
  */
1243
- static getGamertagFromFriend() {
1244
- const result = inv('0x5659D87BE674AB17', pvi(), ras());
1245
- return [result[0], result[1]];
1078
+ static ugcHasPrivilege() {
1079
+ return inv('0x6506BFA755FB209C');
1246
1080
  }
1247
1081
  /**
1248
- * @param player
1082
+ * @param networkId
1083
+ * @param bStopCloning
1084
+ */
1085
+ static setNetworkIdStopCloning(networkId, bStopCloning) {
1086
+ inv('0x9ED3108D6847760A', networkId, bStopCloning);
1087
+ }
1088
+ /**
1089
+ * Returns CGameConfig->ConfigOnlineServices->RosTitleName (see gameconfig.xml)
1090
+ *
1249
1091
  * @returns
1250
1092
  */
1251
- static getPlayerWaypointIsActive(player) {
1252
- return inv('0xDCC4B7F7112E8AB7', player.handle);
1093
+ static getRosTitleName() {
1094
+ return inv('0xAC6153A0722F524C', ras());
1253
1095
  }
1254
1096
  /**
1255
- * @param inviteIndex
1256
1097
  * @returns
1257
1098
  */
1258
- static N_0x981146E5C9CE9250(inviteIndex) {
1259
- return inv('0x981146E5C9CE9250', inviteIndex, rai());
1099
+ static getScriptStatus() {
1100
+ return inv('0x57D158647A6BFABF', rai());
1260
1101
  }
1261
1102
  /**
1262
- * @param netID
1103
+ * @param p0
1104
+ * @param p1
1105
+ * @param p2
1106
+ * @param p3
1263
1107
  */
1264
- static disableProximityMigration(netID) {
1265
- inv('0x407091CF6037118E', netID);
1108
+ static setNetworkIdVisibleInCutscene(p0, p1, p2, p3) {
1109
+ inv('0xA6928482543022B4', p0, p1, p2, p3);
1110
+ }
1111
+ /**
1112
+ * @param amount
1113
+ */
1114
+ static reserveNetworkMissionObjects(amount) {
1115
+ inv('0x4E5C93BD0C32FBF8', amount);
1116
+ }
1117
+ /**
1118
+ * @param entity
1119
+ * @param player
1120
+ * @returns p2
1121
+ */
1122
+ static N_0x75FC34A2BA345BD1(entity, player) {
1123
+ const result = inv('0x75FC34A2BA345BD1', entity.handle, player.handle, pvi(), rai());
1124
+ return [!!result[0], result[1]];
1125
+ }
1126
+ /**
1127
+ * @returns
1128
+ */
1129
+ static autoSessionIsAllowedToMerge() {
1130
+ return inv('0xAADED99A6B268A27');
1266
1131
  }
1267
1132
  /**
1268
1133
  * @param p0
1269
1134
  * @param p1
1270
- * @param dataSize
1271
- * @returns outData
1135
+ * @param p2
1136
+ * @returns
1272
1137
  */
1273
- static getRecentGamerNames(p0, p1, dataSize) {
1274
- const result = inv('0xFEFCC345CE357453', p0, p1, pvi(), dataSize);
1138
+ static N_0x7A8E8DF782B47EB0(p0, p1, p2) {
1139
+ return inv('0x7A8E8DF782B47EB0', p0, p1, p2);
1140
+ }
1141
+ /**
1142
+ * Hardcoded to return false.
1143
+ *
1144
+ * @returns
1145
+ */
1146
+ static shouldShowPromotionDlg() {
1147
+ return inv('0xDA4B1A479C414FB2');
1148
+ }
1149
+ /**
1150
+ * @param amount
1151
+ */
1152
+ static reserveNetworkMissionPeds(amount) {
1153
+ inv('0xB60FEBA45333D36F', amount);
1154
+ }
1155
+ /**
1156
+ * @param pos
1157
+ * @param heading
1158
+ */
1159
+ static spawnConfigAddSpawnPoint(pos, heading) {
1160
+ inv('0xFD1AC0B3858F224C', f(pos.x), f(pos.y), f(pos.z), f(heading));
1161
+ }
1162
+ /**
1163
+ * @param paramName
1164
+ * @param value
1165
+ */
1166
+ static setLaunchParamValue(paramName, value) {
1167
+ inv('0x668AF6E4933AC13F', paramName, value);
1168
+ }
1169
+ /**
1170
+ * @returns gamerHandle
1171
+ */
1172
+ static canViewGamerUserContent() {
1173
+ const result = inv('0x246545C37C27A717', pvi());
1275
1174
  return [result[0], result[1]];
1276
1175
  }
1176
+ /**
1177
+ * @param p0
1178
+ * @returns
1179
+ */
1180
+ static isParticipantActive(p0) {
1181
+ return inv('0x6FF8FF40B6357D45', p0, rai());
1182
+ }
1183
+ /**
1184
+ * @param p0
1185
+ * @returns
1186
+ */
1187
+ static getNumCreatedMissionPeds(p0) {
1188
+ return inv('0xCB215C4B56A7FAE7', p0, rai());
1189
+ }
1277
1190
  /**
1278
1191
  * @returns
1279
1192
  */
@@ -1394,124 +1307,261 @@ export class Network {
1394
1307
  inv('0x3E9B2F01C50DF595', p0, p1, p2);
1395
1308
  }
1396
1309
  /**
1397
- * @returns
1310
+ * _NETWORK_GET_A* - _NETWORK_GET_D*
1311
+ *
1312
+ * @param player
1313
+ * @param ped
1314
+ * @returns p2
1398
1315
  */
1399
- static N_0x18B94666CF610AEB() {
1400
- return inv('0x18B94666CF610AEB', rai());
1316
+ static N_0x236321F1178A5446(player, ped) {
1317
+ const result = inv('0x236321F1178A5446', player.handle, ped.handle, pvi(), rai());
1318
+ return [!!result[0], result[1]];
1401
1319
  }
1402
1320
  /**
1403
- * p0 appears to be for MP
1321
+ * Must be called from a background script, otherwise it will do nothing.
1404
1322
  *
1405
- * @param p0
1406
- * @returns
1323
+ * @param entity
1324
+ * @param p1
1407
1325
  */
1408
- static getNumReservedMissionObjects(p0) {
1409
- return inv('0xAA81B5F10BC43AC2', p0, rai());
1326
+ static N_0x979765465A6F25FC(entity, p1) {
1327
+ inv('0x979765465A6F25FC', entity.handle, p1);
1410
1328
  }
1411
1329
  /**
1412
- * @returns
1330
+ * @param player
1331
+ * @param p1
1413
1332
  */
1414
- static hasSocialClubAccount() {
1415
- return inv('0x67A5589628E0CFF6', rai());
1333
+ static N_0x5A91BCEF74944E93(player, p1) {
1334
+ inv('0x5A91BCEF74944E93', player.handle, f(p1));
1416
1335
  }
1417
1336
  /**
1418
- * @param netHandle
1419
- * @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist.
1337
+ * @param params
1420
1338
  */
1421
- static netToPed(netHandle) {
1422
- return createFromHandle('Ped', inv('0xBDCD95FC216A8B3E', netHandle, rai()));
1339
+ static setLaunchParamString(params) {
1340
+ inv('0xDFFC15AA63D04AAB', params);
1423
1341
  }
1424
1342
  /**
1425
- * 0 = succeeded
1426
- * 1 = pending
1427
- * 2 = failed
1343
+ * Note: this native was added in build 1311.23
1428
1344
  *
1429
- * @param textureDownloadId
1430
- * @returns
1345
+ * @param p0
1346
+ * @param p1
1431
1347
  */
1432
- static getStatusOfTextureDownload(textureDownloadId) {
1433
- return inv('0x8BD6C6DEA20E82C6', textureDownloadId, rai());
1348
+ static N_0x0D183D8490EE4366(p0, p1) {
1349
+ inv('0x0D183D8490EE4366', p0, p1);
1434
1350
  }
1435
1351
  /**
1436
- * @returns gamerHandle
1352
+ * Note: this native was added in build 1311.23
1353
+ *
1354
+ * @param p0
1355
+ * @returns
1437
1356
  */
1438
- static N_0xF23A6D6C11D8EC15() {
1439
- const result = inv('0xF23A6D6C11D8EC15', pvi(), rai());
1440
- return [!!result[0], result[1]];
1357
+ static N_0xF8DC69DC1AD19072(p0) {
1358
+ return inv('0xF8DC69DC1AD19072', p0, rai());
1441
1359
  }
1442
1360
  /**
1443
- * Always returns 40
1444
- *
1445
1361
  * @returns
1446
1362
  */
1447
- static getMaxNumNetworkVehicles() {
1448
- return inv('0x0AFCE529F69B21FF', rai());
1363
+ static N_0xA47D48D06AA5A188() {
1364
+ return inv('0xA47D48D06AA5A188', rai());
1449
1365
  }
1450
1366
  /**
1451
- * @param netId
1452
- * @param p1
1453
- * @param p2
1367
+ * @returns
1454
1368
  */
1455
- static keepNetworkIdInFastInstance(netId, p1, p2) {
1456
- inv('0xE1BC73D6815BA361', netId, p1, p2);
1369
+ static getCloudTimeAsInt() {
1370
+ return inv('0x9A73240B49945C76', rai());
1457
1371
  }
1458
1372
  /**
1459
- * @returns gamerHandle
1373
+ * *GET_LAUNCH_PARAM*(RESPOT?)*
1374
+ * Name is probably invalid since this native only reads data from parsed entity.
1375
+ *
1376
+ * @param entity
1377
+ * @returns
1460
1378
  */
1461
- static isHandleValid() {
1462
- const result = inv('0x6F79B93B0A8E4133', pvi(), rai());
1463
- return [!!result[0], result[1]];
1379
+ static N_0x26A867C0B7A456D1(entity) {
1380
+ return inv('0x26A867C0B7A456D1', entity.handle, rai());
1464
1381
  }
1465
1382
  /**
1466
- * @param p0
1467
- * @returns p1
1383
+ * @param netHandle
1384
+ * @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist.
1468
1385
  */
1469
- static N_0x691E4DE5309EAEFC(p0) {
1470
- const result = inv('0x691E4DE5309EAEFC', p0, pvi());
1471
- return result;
1386
+ static netToVeh(netHandle) {
1387
+ return createFromHandle('Vehicle', inv('0x367B936610BA360C', netHandle, rai()));
1472
1388
  }
1473
1389
  /**
1474
- * @param entity
1475
- * @returns
1390
+ * @returns sessionRequestId
1476
1391
  */
1477
- static getNetworkIdFromEntity(entity) {
1478
- return inv('0xA11700682F3AD45C', entity.handle, rai());
1392
+ static N_0xAFA14F98327791CE() {
1393
+ const result = inv('0xAFA14F98327791CE', pvi(), rai());
1394
+ return [!!result[0], result[1]];
1479
1395
  }
1480
1396
  /**
1481
- * Only used in SP R* Script dominoes_sp: p1 = 0
1397
+ * @returns
1398
+ */
1399
+ static N_0xDA1BFED8582F61F0() {
1400
+ return inv('0xDA1BFED8582F61F0', rai());
1401
+ }
1402
+ /**
1403
+ * Note: this native was added in build 1311.23
1482
1404
  *
1483
- * @param player
1405
+ * @param p0
1406
+ * @returns
1407
+ */
1408
+ static N_0xBAF7E2979442B29F(p0) {
1409
+ return inv('0xBAF7E2979442B29F', p0, rai());
1410
+ }
1411
+ /**
1412
+ * @returns
1413
+ */
1414
+ static isCloudAvailable() {
1415
+ return inv('0x9A4CF4F48AD77302', rai());
1416
+ }
1417
+ /**
1418
+ * @param p0
1484
1419
  * @param p1
1420
+ * @param p2
1485
1421
  */
1486
- static N_0x02C4C6C2900D84DF(player, p1) {
1487
- inv('0x02C4C6C2900D84DF', player.handle, p1);
1422
+ static registerPlayerBroadcastVariables(p0, p1, p2) {
1423
+ inv('0x3364AA97340CA215', p0, p1, p2);
1488
1424
  }
1489
1425
  /**
1426
+ * _NETWORK_IS_T* - _NETWORK_RE*
1427
+ *
1490
1428
  * @returns
1491
1429
  */
1492
- static isSessionActive() {
1493
- return inv('0xD83C2B94E7508980', rai());
1430
+ static isPreviousUploadPending() {
1431
+ return inv('0xA21E3BAD0A42D199');
1494
1432
  }
1495
1433
  /**
1496
- * @param animScene
1434
+ * _NETWORK_GET_A* - _NETWORK_GET_D*
1435
+ *
1436
+ * @param ped
1437
+ * @returns p1
1438
+ */
1439
+ static N_0x6CF82A7F65A5AD5F(ped) {
1440
+ const result = inv('0x6CF82A7F65A5AD5F', ped.handle, pvi(), rai());
1441
+ return [createFromHandle('Player', result[0]), result[1]];
1442
+ }
1443
+ /**
1444
+ * @param p1
1445
+ * @returns gamerHandle
1446
+ */
1447
+ static getGamerStatus(p1) {
1448
+ const result = inv('0xDDAEB478E58F8DEA', pvi(), p1, rai());
1449
+ return [result[0], result[1]];
1450
+ }
1451
+ /**
1452
+ * Returns result of session request:
1453
+ * 0 - NOT_FOUND
1454
+ * 1 - IN_PROGRESS
1455
+ * 2 - TIMEOUT
1456
+ * 3 - PLAYER_OFFLINE
1457
+ * 4 - GANG_MEMBERS_CHANGED
1458
+ * 5 - PLAYER_CANCELLED
1459
+ * 6 - PLAYER_SET_TOO_LARGE
1460
+ * 7 - MATCH_ACCEPTED
1461
+ * 8 - OTHER
1462
+ *
1463
+ * @returns sessionRequestId; p1
1464
+ */
1465
+ static sessionGetSessionRequestResult() {
1466
+ const result = inv('0x0DD051B1BF4B8BD6', pvi(), pvi(), rai());
1467
+ return [result[0], result[1], result[2]];
1468
+ }
1469
+ static N_0xA63E4F050F20021F() {
1470
+ inv('0xA63E4F050F20021F');
1471
+ }
1472
+ /**
1473
+ * @param amount
1497
1474
  * @returns
1498
1475
  */
1499
- static animSceneToNet(animScene) {
1500
- return inv('0xE0D73CDDEA79DDCD', animScene.handle, rai());
1476
+ static canRegisterMissionObjects(amount) {
1477
+ return inv('0x800DD4721A8B008B', amount, rai());
1501
1478
  }
1502
1479
  /**
1480
+ * @param description
1503
1481
  * @returns
1504
1482
  */
1505
- static getRank() {
1506
- return inv('0x32C90CDFAF40514C', rai());
1483
+ static ugcReleaseCachedDescription(description) {
1484
+ return inv('0x5A34CD9C3C5BEC44', _h(description), rai());
1507
1485
  }
1508
1486
  /**
1509
- * @param message
1510
- * @returns gamerHandle
1487
+ * @param toggle
1511
1488
  */
1512
- static addFriend(message) {
1513
- const result = inv('0x8E02D73914064223', pvi(), message, rai());
1514
- return [!!result[0], result[1]];
1489
+ static setFriendlyFireOption(toggle) {
1490
+ inv('0xF808475FA571D823', toggle);
1491
+ }
1492
+ /**
1493
+ * @returns sessionRequestId
1494
+ */
1495
+ static sessionTransitionToSession() {
1496
+ const result = inv('0xF20B18A330E6DB5C', pvi());
1497
+ return [result[0], result[1]];
1498
+ }
1499
+ /**
1500
+ * Hardcoded to return false.
1501
+ *
1502
+ * @returns
1503
+ */
1504
+ static isPromotionEnabled() {
1505
+ return inv('0x8FF6059DA26E688A');
1506
+ }
1507
+ /**
1508
+ * @param playersToTake
1509
+ * @param maxInstancePlayers
1510
+ * @param sessionFlags
1511
+ * @param bucketId
1512
+ * @returns
1513
+ */
1514
+ static autoSessionSplitSession(playersToTake, maxInstancePlayers, sessionFlags, bucketId) {
1515
+ return inv('0xC223D299C670413D', playersToTake, maxInstancePlayers, sessionFlags, bucketId);
1516
+ }
1517
+ /**
1518
+ * @param p0
1519
+ * @returns
1520
+ */
1521
+ static N_0x923346025512DFB7(p0) {
1522
+ return inv('0x923346025512DFB7', p0);
1523
+ }
1524
+ /**
1525
+ * @returns args
1526
+ */
1527
+ static resurrectLocalPlayer2() {
1528
+ const result = inv('0x4154B7D8C75E5DCF', pvi());
1529
+ return result;
1530
+ }
1531
+ /**
1532
+ * Only used in R* Script net_stable_manager
1533
+ *
1534
+ * @param threadId
1535
+ * @returns pedMax; vehicleMax; unkMax; pedMin; vehicleMin; unkMin
1536
+ */
1537
+ static getReservedMissionEntitiesForThread(threadId) {
1538
+ const result = inv('0x99AAC89C510DEB0D', threadId, pvi(), pvi(), pvi(), pvi(), pvi(), pvi());
1539
+ return [result[0], result[1], result[2], result[3], result[4], result[5]];
1540
+ }
1541
+ /**
1542
+ * @param p0
1543
+ * @returns
1544
+ */
1545
+ static N_0xD7BAD4062074B9C1(p0) {
1546
+ return inv('0xD7BAD4062074B9C1', p0, rai());
1547
+ }
1548
+ /**
1549
+ * @param hour
1550
+ * @param minute
1551
+ * @param second
1552
+ * @param transitionTime
1553
+ * @param pauseClock
1554
+ */
1555
+ static clockTimeOverride(hour, minute, second, transitionTime, pauseClock) {
1556
+ inv('0x669E223E64B1903C', hour, minute, second, transitionTime, pauseClock);
1557
+ }
1558
+ /**
1559
+ * @param netId
1560
+ * @param player
1561
+ * @param toggle
1562
+ */
1563
+ static setNetworkIdAlwaysExistsForPlayer(netId, player, toggle) {
1564
+ inv('0xA8A024587329F36A', netId, player.handle, toggle);
1515
1565
  }
1516
1566
  /**
1517
1567
  * @returns
@@ -1651,354 +1701,119 @@ export class Network {
1651
1701
  return [result[0], result[1]];
1652
1702
  }
1653
1703
  /**
1654
- * @param p0
1655
- * @returns gamerHandle
1704
+ * Note: this native was added in build 1311.16
1705
+ *
1706
+ * @returns
1656
1707
  */
1657
- static N_0x16EFB123C4451032(p0) {
1658
- const result = inv('0x16EFB123C4451032', p0, pvi(), rai());
1659
- return [!!result[0], result[1]];
1708
+ static isObjectReassignmentInProgress() {
1709
+ return inv('0x8FE9EB11EC9CC23A', rai());
1660
1710
  }
1661
1711
  /**
1662
- * Return the local Participant ID
1663
- *
1712
+ * @param scriptName
1713
+ * @param instanceId
1714
+ * @param position
1664
1715
  * @returns
1665
1716
  */
1666
- static participantId() {
1667
- return createFromHandle('Player', inv('0x90986E8876CE0A83', rai()));
1717
+ static getNumScriptParticipants(scriptName, instanceId, position) {
1718
+ return inv('0x3658E8CD94FC121A', scriptName, instanceId, _h(position), rai());
1668
1719
  }
1669
- static N_0x97BCE4C4B3191228() {
1670
- inv('0x97BCE4C4B3191228');
1720
+ /**
1721
+ * @param p0
1722
+ * @returns
1723
+ */
1724
+ static N_0x6C27442A225A241A(p0) {
1725
+ return inv('0x6C27442A225A241A', p0, rai());
1671
1726
  }
1672
1727
  /**
1673
- * @param volume
1728
+ * @param p0
1674
1729
  * @param p1
1675
- * @param originalWeight
1676
- * @param p3
1677
- * @param p4
1678
1730
  */
1679
- static N_0x13F592FC3BF0EA84(volume, p1, originalWeight, p3, p4) {
1680
- inv('0x13F592FC3BF0EA84', volume.handle, p1, f(originalWeight), p3, p4);
1731
+ static spawnConfigSetTuningFloat(p0, p1) {
1732
+ inv('0x0608326F7B98C08D', _h(p0), f(p1));
1681
1733
  }
1682
1734
  /**
1683
- * @returns
1735
+ * @param p1
1736
+ * @returns outData
1684
1737
  */
1685
- static N_0xBF8276E51761F9DA() {
1686
- return inv('0xBF8276E51761F9DA', rai());
1738
+ static N_0x7BCA0A3972708436(p1) {
1739
+ const result = inv('0x7BCA0A3972708436', pvi(), p1, rai());
1740
+ return [result[0], result[1]];
1687
1741
  }
1688
1742
  /**
1689
- * Note: this native was added in build 1311.23
1743
+ * Hardcoded to return zero.
1690
1744
  *
1745
+ * @param p0
1746
+ * @param p1
1747
+ * @param p2
1691
1748
  * @returns
1692
1749
  */
1693
- static N_0x316FD416C432C761() {
1694
- return inv('0x316FD416C432C761', rai());
1750
+ static getDisplaynamesFromHandles(p0, p1, p2) {
1751
+ return inv('0x58CC181719256197', p0, p1, p2, rai());
1695
1752
  }
1696
1753
  /**
1697
- * nullsub, doesn't do anything
1698
- *
1699
1754
  * @returns
1700
1755
  */
1701
- static N_0xEC089F84A9C16C62() {
1702
- return inv('0xEC089F84A9C16C62');
1756
+ static isHostOfThisScript() {
1757
+ return inv('0x83CD99A1E6061AB5', rai());
1703
1758
  }
1704
1759
  /**
1705
- * @param netId
1760
+ * @param p0
1761
+ * @param index
1706
1762
  * @returns
1707
1763
  */
1708
- static getRopeIdFromNetworkId(netId) {
1709
- return inv('0xEB1A4DD8352EC828', netId, rai());
1764
+ static ugcQueryGetLanguage(p0, index) {
1765
+ return inv('0x97764E8AC6487A9A', p0, index, rai());
1710
1766
  }
1711
1767
  /**
1712
- * @param ugcRequestId
1713
- * @returns
1768
+ * Note: this native was added in build 1355.30
1769
+ *
1770
+ * @param p0
1714
1771
  */
1715
- static ugcDidRequestSucceed(ugcRequestId) {
1716
- return inv('0x0B6009A90B8495F1', ugcRequestId);
1772
+ static N_0x422F9D6D6C7BC290(p0) {
1773
+ inv('0x422F9D6D6C7BC290', p0);
1717
1774
  }
1718
1775
  /**
1776
+ * @param propSet
1719
1777
  * @returns
1720
1778
  */
1721
- static getNetworkTimeAccurate() {
1722
- return inv('0x89023FBBF9200E9F', rai());
1779
+ static propsetToNet(propSet) {
1780
+ return inv('0x74F99EF7EF503398', propSet.handle, rai());
1723
1781
  }
1724
1782
  /**
1725
1783
  * @param p0
1726
- * @returns
1727
1784
  */
1728
- static getNumCreatedMissionVehicles(p0) {
1729
- return inv('0x0CD9AB83489430EA', p0, rai());
1730
- }
1731
- static showAccountUpgradeUi() {
1732
- inv('0x83FE8D7229593017');
1733
- }
1734
- /**
1735
- * Hardcoded to return false.
1736
- *
1737
- * @returns
1738
- */
1739
- static isInSessionLobby() {
1740
- return inv('0xC5196C42DE19F646');
1741
- }
1742
- /**
1743
- * Always returns a null string.
1744
- *
1745
- * @returns gamerHandle
1746
- */
1747
- static getGamertagFromHandle() {
1748
- const result = inv('0x426141162EBE5CDB', pvi(), ras());
1749
- return [result[0], result[1]];
1750
- }
1751
- /**
1752
- * Returns the network ID of the given object.
1753
- *
1754
- * @param object
1755
- * @returns Returns the network id for the specified `object`, or `0` if the entity isn't networked.
1756
- */
1757
- static objToNet(object) {
1758
- return inv('0x99BFDC94A603E541', object.handle, rai());
1759
- }
1760
- /**
1761
- * @param p0
1762
- * @returns
1763
- */
1764
- static requestJoin(p0) {
1765
- return inv('0xE483BB6BE686F632', p0, rai());
1766
- }
1767
- /**
1768
- * Note: this native was added in build 1311.23
1769
- *
1770
- * @param p0
1771
- * @returns
1772
- */
1773
- static N_0x4835413EA6F9C9CD(p0) {
1774
- return inv('0x4835413EA6F9C9CD', p0, rai());
1775
- }
1776
- /**
1777
- * Returns ugcRequestId
1778
- *
1779
- * @param contentId
1780
- * @param latestVersion
1781
- * @param contentTypeName
1782
- * @returns
1783
- */
1784
- static ugcQueryByContentId(contentId, latestVersion, contentTypeName) {
1785
- return inv('0x69D22E183580113F', contentId, latestVersion, contentTypeName, rai());
1786
- }
1787
- /**
1788
- * @param p0
1789
- */
1790
- static N_0x3034C77C79A58880(p0) {
1791
- inv('0x3034C77C79A58880', p0);
1792
- }
1793
- /**
1794
- * @param paramName
1795
- * @returns
1796
- */
1797
- static getLaunchParamValue(paramName) {
1798
- return inv('0x65E65CA6A0FE59D4', paramName, ras());
1799
- }
1800
- /**
1801
- * @param p0
1802
- */
1803
- static N_0xCF23AB5BD47B384D(p0) {
1804
- inv('0xCF23AB5BD47B384D', p0);
1805
- }
1806
- /**
1807
- * Note: this native was added in build 1311.23
1808
- *
1809
- * @param p0
1810
- * @param p1
1811
- * @param p2
1812
- */
1813
- static N_0x3CBD6565D9C3B133(p0, p1, p2) {
1814
- inv('0x3CBD6565D9C3B133', p0, p1, f(p2));
1815
- }
1816
- /**
1817
- * @returns
1818
- */
1819
- static hasReceivedHostBroadcastData() {
1820
- return inv('0x5D10B3795F3FC886', rai());
1821
- }
1822
- /**
1823
- * @param languageId
1824
- * @returns
1825
- */
1826
- static ugcIsLanguageSupported(languageId) {
1827
- return inv('0xF53E48461B71EECB', languageId, rai());
1828
- }
1829
- /**
1830
- * @returns
1831
- */
1832
- static actionPlatformInvite() {
1833
- return inv('0x3B82ACC3F4B6240C');
1834
- }
1835
- /**
1836
- * nullsub, doesn't do anything
1837
- *
1838
- * @returns
1839
- */
1840
- static dumpNetIfConfig() {
1841
- return inv('0xAEDF1BC1C133D6E3');
1785
+ static N_0x5CD3AAD8FF9ED121(p0) {
1786
+ inv('0x5CD3AAD8FF9ED121', p0);
1842
1787
  }
1843
1788
  /**
1789
+ * @param netId
1844
1790
  * @returns
1845
1791
  */
1846
- static sessionIsTransitioning() {
1847
- return inv('0xF2CBC969C4F090C7');
1792
+ static netToAnimScene(netId) {
1793
+ return createFromHandle('AnimScene', inv('0xD7F6781A0ABAF6FB', netId, rai()));
1848
1794
  }
1849
1795
  /**
1850
1796
  * @param p0
1851
1797
  * @param index
1852
- * @param p2
1853
- * @returns
1854
- */
1855
- static ugcQueryGetVersion(p0, index, p2) {
1856
- return inv('0x63E9DCBC8B0931ED', p0, index, p2, rai());
1857
- }
1858
- /**
1859
- * @param p0
1860
- * @param p1
1861
- */
1862
- static N_0x3F0ABAE38A0515AD(p0, p1) {
1863
- inv('0x3F0ABAE38A0515AD', p0, p1);
1864
- }
1865
- /**
1866
- * Subtracts the second argument from the first, then returns whether the result is negative.
1867
- *
1868
- * @param timeA
1869
- * @param timeB
1870
- * @returns
1871
- */
1872
- static isTimeLessThan(timeA, timeB) {
1873
- return inv('0xCB2CF5148012C8D0', timeA, timeB, rai());
1874
- }
1875
- /**
1876
- * Old name: _NETWORK_GET_UNRELIABLE_RESEND_COUNT_FOR_PLAYER
1877
- *
1878
- * @param player
1879
- * @returns
1880
- */
1881
- static getUnreliableResendCount(player) {
1882
- return inv('0x3765C3A3E8192E10', player.handle, rai());
1883
- }
1884
- /**
1885
- * Note: this native was added in build 1311.23
1886
- *
1887
- * @param p0
1888
- * @returns
1889
- */
1890
- static N_0x106CBDD5077DEDE1(p0) {
1891
- return inv('0x106CBDD5077DEDE1', p0, rai());
1892
- }
1893
- /**
1894
- * @param featureId
1895
- * @returns
1896
- */
1897
- static isFeatureSupported(featureId) {
1898
- return inv('0x9C725D149622BFDE', featureId);
1899
- }
1900
- /**
1901
- * On PC this returns true if gamerHandle is a valid handle.
1902
- *
1903
- * @returns gamerHandle
1904
- */
1905
- static canAddFriend() {
1906
- const result = inv('0x99ABE9BF9DADA162', pvi());
1907
- return [result[0], result[1]];
1908
- }
1909
- /**
1910
- * Note: this native was added in build 1311.23
1911
- */
1912
- static N_0x7673C0D2C5CDAC55() {
1913
- inv('0x7673C0D2C5CDAC55');
1914
- }
1915
- /**
1916
- * Always returns 110
1917
- *
1918
- * @returns
1919
- */
1920
- static getMaxNumNetworkPeds() {
1921
- return inv('0x0C1F7D49C39D2289', rai());
1922
- }
1923
- /**
1924
- * Returns textureDownloadId
1925
- *
1926
- * @param p1
1927
- * @param name
1928
- * @param p3
1929
- * @returns gamerHandle
1930
- */
1931
- static mugshotTextureDownloadRequest(p1, name, p3) {
1932
- const result = inv('0x9B5DB6CEAFAA10BB', pvi(), p1, name, p3, rai());
1933
- return [result[0], result[1]];
1934
- }
1935
- /**
1936
- * @returns gamerHandle
1937
- */
1938
- static isFriend() {
1939
- const result = inv('0x1A24A179F9B31654', pvi(), rai());
1940
- return [!!result[0], result[1]];
1941
- }
1942
- /**
1943
1798
  * @returns
1944
1799
  */
1945
- static isRecentGamerNamesRequestInProgress() {
1946
- return inv('0x4664D213A0CCAF40');
1947
- }
1948
- /**
1949
- * @param scriptHash
1950
- * @param p1
1951
- * @param p2
1952
- * @param p3
1953
- * @returns
1954
- */
1955
- static isScriptActiveByHash(scriptHash, p1, p2, p3) {
1956
- return inv('0x1B89BC43B6E69107', _h(scriptHash), p1, p2, p3);
1957
- }
1958
- static N_0x564552C6AF1EEAB1() {
1959
- inv('0x564552C6AF1EEAB1');
1960
- }
1961
- /**
1962
- * @returns
1963
- */
1964
- static hasPendingInviteFailure() {
1965
- return inv('0xD0498AD30E16B6BD');
1800
+ static ugcQueryGetContentHasPlayerRecord(p0, index) {
1801
+ return inv('0xF794765390A6DCA5', p0, index);
1966
1802
  }
1967
- /**
1968
- * @param entity
1969
- * @returns
1970
- */
1971
- static requestControlOfEntity(entity) {
1972
- return inv('0xB69317BF5E782347', entity.handle, rai());
1803
+ static N_0x814729078AED6D30() {
1804
+ inv('0x814729078AED6D30');
1973
1805
  }
1974
1806
  /**
1975
- * @param p0
1976
1807
  * @returns
1977
1808
  */
1978
- static N_0xD7D0DF27CB1765B5(p0) {
1979
- return inv('0xD7D0DF27CB1765B5', p0, rai());
1809
+ static isSignedOnline() {
1810
+ return inv('0x1077788E268557C2', rai());
1980
1811
  }
1981
1812
  /**
1982
1813
  * @returns
1983
1814
  */
1984
- static canRefreshFriendPage() {
1985
- return inv('0x1AF5E28E64A76A9F');
1986
- }
1987
- /**
1988
- * Old name: _NETWORK_IS_PLAYER_EQUAL_TO_INDEX
1989
- *
1990
- * @param player
1991
- * @param index
1992
- * @returns
1993
- */
1994
- static arePlayersInSameTutorialSession(player, index) {
1995
- return inv('0x9DE986FC9A87C474', player.handle, index, rai());
1996
- }
1997
- static clearFoundGamers() {
1998
- inv('0x6D14CCEE1B40381A');
1999
- }
2000
- static preventScriptHostMigration() {
2001
- inv('0x2302C0264EA58D31');
1815
+ static isInSpectatorMode() {
1816
+ return inv('0x048746E388762E11', rai());
2002
1817
  }
2003
1818
  static N_0x49CF17A564918E8D() {
2004
1819
  inv('0x49CF17A564918E8D');
@@ -2095,165 +1910,46 @@ export class Network {
2095
1910
  return inv('0xA670B3662FAFFBD0', netId, rai());
2096
1911
  }
2097
1912
  /**
2098
- * @param volume
2099
- * @param p1
2100
- * @param p2
2101
- * @param p3
2102
- */
2103
- static N_0x405DDEFB1F531B18(volume, p1, p2, p3) {
2104
- inv('0x405DDEFB1F531B18', volume.handle, p1, p2, p3);
2105
- }
2106
- /**
2107
- * Related to container entity (RANSACK_ATTACHED_LOCKBOX / RANSACK_ATTACHED_CHEST)
2108
- *
2109
- * @param p0
2110
- * @returns
2111
- */
2112
- static N_0x950ACD8F05B7B9DF(p0) {
2113
- return inv('0x950ACD8F05B7B9DF', p0);
2114
- }
2115
- /**
2116
- * Only used in R* Script net_rolling_playlist
2117
- */
2118
- static sessionPlaylistGetUpcomingContent() {
2119
- inv('0x8F9DB6CD03B42B58');
2120
- }
2121
- /**
2122
- * @param p0
2123
- */
2124
- static N_0x455156F47DC6B78C(p0) {
2125
- inv('0x455156F47DC6B78C', p0);
2126
- }
2127
- /**
2128
- * @param amount
2129
- */
2130
- static reserveNetworkClientMissionObjects(amount) {
2131
- inv('0xE7DDA8BD3BCF751C', amount);
2132
- }
2133
- /**
2134
- * @returns
2135
- */
2136
- static commerceStoreIsOpen() {
2137
- return inv('0xCE5E79D9E303628E', rai());
2138
- }
2139
- /**
2140
- * @param flags
2141
- * @returns
2142
- */
2143
- static sessionRemovePlayerFlags(flags) {
2144
- return inv('0x3215BBE34D3418C5', flags);
2145
- }
2146
- /**
2147
- * @returns
2148
- */
2149
- static getTimeoutTime() {
2150
- return inv('0x5ED0356A0CE3A34F', rai());
2151
- }
2152
- /**
2153
- * @param p0
2154
- */
2155
- static setLocalPlayerInvisibleLocally(p0) {
2156
- inv('0xE5F773C1A1D9D168', p0);
2157
- }
2158
- /**
2159
- * @param threadId
2160
- * @returns
2161
- */
2162
- static isThreadActive(threadId) {
2163
- return inv('0x31DAD2CD6D49546E', threadId);
2164
- }
2165
- /**
2166
- * Returns false if pedshot push failed
2167
- *
2168
- * @param texture
2169
- * @param playerSlot
2170
- * @param p2
2171
- * @param personaPhotoLocalCacheType
2172
- * @returns
2173
- */
2174
- static personaPhotoWriteLocal(texture, playerSlot, p2, personaPhotoLocalCacheType) {
2175
- return inv('0x2A48D9567940598F', texture, playerSlot, p2, personaPhotoLocalCacheType);
2176
- }
2177
- /**
2178
- * @param index
2179
- * @returns
2180
- */
2181
- static getParticipantIndex(index) {
2182
- return inv('0x1B84DF6AF2A46938', index, rai());
2183
- }
2184
- /**
2185
- * @param p0
2186
- */
2187
- static N_0xD637D327080CD86E(p0) {
2188
- inv('0xD637D327080CD86E', p0);
2189
- }
2190
- /**
2191
- * @returns
2192
- */
2193
- static sessionIsAnyRequestInProgress() {
2194
- return inv('0xBAFFDE5F953720D9');
2195
- }
2196
- /**
2197
- * @param p0
1913
+ * @param volume
2198
1914
  * @param p1
2199
1915
  * @param p2
2200
1916
  * @param p3
2201
- * @param p4
2202
- * @param p5
2203
- * @returns
2204
- */
2205
- static isSphereVisibleToPlayer(p0, p1, p2, p3, p4, p5) {
2206
- return inv('0xDC3A310219E5DA62', p0, p1, p2, p3, p4, p5, rai());
2207
- }
2208
- /**
2209
- * @param netHandle
2210
- * @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist.
2211
1917
  */
2212
- static netToEnt(netHandle) {
2213
- return createFromHandle('Entity', inv('0xBFFEAB45A9A9094A', netHandle, rai()));
1918
+ static N_0x405DDEFB1F531B18(volume, p1, p2, p3) {
1919
+ inv('0x405DDEFB1F531B18', volume.handle, p1, p2, p3);
2214
1920
  }
2215
1921
  /**
2216
- * Note: this native was added in build 1311.23
1922
+ * Related to container entity (RANSACK_ATTACHED_LOCKBOX / RANSACK_ATTACHED_CHEST)
2217
1923
  *
1924
+ * @param p0
2218
1925
  * @returns
2219
1926
  */
2220
- static N_0x062842D61D0D53FD() {
2221
- return inv('0x062842D61D0D53FD', rai());
1927
+ static N_0x950ACD8F05B7B9DF(p0) {
1928
+ return inv('0x950ACD8F05B7B9DF', p0);
2222
1929
  }
2223
1930
  /**
2224
- * @param p0
1931
+ * Only used in R* Script net_rolling_playlist
2225
1932
  */
2226
- static N_0xFF36F36B07E69059(p0) {
2227
- inv('0xFF36F36B07E69059', p0);
1933
+ static sessionPlaylistGetUpcomingContent() {
1934
+ inv('0x8F9DB6CD03B42B58');
2228
1935
  }
2229
1936
  /**
2230
- * @param flags
2231
- * @returns
1937
+ * @param p0
2232
1938
  */
2233
- static sessionSetPlayerFlags(flags) {
2234
- return inv('0x0AE241A4A9ADEEEC', flags);
1939
+ static N_0x455156F47DC6B78C(p0) {
1940
+ inv('0x455156F47DC6B78C', p0);
2235
1941
  }
2236
1942
  /**
2237
- * @param contentId
2238
- * @param dataSize
2239
- * @param p4
2240
- * @param flags
2241
- * @returns gamerHandle; data
1943
+ * @param amount
2242
1944
  */
2243
- static sendSessionInvite(contentId, dataSize, p4, flags) {
2244
- const result = inv('0xE47001B7CB8B98AE', pvi(), contentId, pvi(), dataSize, p4, flags);
2245
- return [result[0], result[1], result[2]];
2246
- }
2247
- static N_0x61BFBAA795E712AD() {
2248
- inv('0x61BFBAA795E712AD');
1945
+ static reserveNetworkClientMissionObjects(amount) {
1946
+ inv('0xE7DDA8BD3BCF751C', amount);
2249
1947
  }
2250
1948
  /**
2251
- * @param playerSlot
2252
- * @param personaPhotoLocalCacheType
2253
1949
  * @returns
2254
1950
  */
2255
- static localPlayerPedshotTextureDownloadRequest(playerSlot, personaPhotoLocalCacheType) {
2256
- return inv('0x6E2FD8CF7EB10E53', playerSlot, personaPhotoLocalCacheType, rai());
1951
+ static commerceStoreIsOpen() {
1952
+ return inv('0xCE5E79D9E303628E', rai());
2257
1953
  }
2258
1954
  static clearClockTimeOverride() {
2259
1955
  inv('0xD972DF67326F966E');
@@ -2549,247 +2245,446 @@ export class Network {
2549
2245
  return inv('0xD1FFB246F4E088AC', p0, rai());
2550
2246
  }
2551
2247
  /**
2552
- * @param contentTypeName
2553
- * @param contentId
2554
- * @param fileId
2555
- * @param fileVersion
2556
- * @param languageId
2248
+ * @param description
2249
+ * @returns
2250
+ */
2251
+ static ugcDidDescriptionRequestSucceed(description) {
2252
+ return inv('0x162C23CA83ED0A62', _h(description), rai());
2253
+ }
2254
+ /**
2255
+ * @returns
2256
+ */
2257
+ static getGameMode() {
2258
+ return inv('0x225640E09EFFDC3F', rai());
2259
+ }
2260
+ /**
2261
+ * @param amount
2262
+ */
2263
+ static reserveNetworkClientMissionPeds(amount) {
2264
+ inv('0x807E119F80231732', amount);
2265
+ }
2266
+ /**
2267
+ * @param p0
2268
+ * @param p1
2269
+ * @param p2
2270
+ * @param p3
2271
+ */
2272
+ static setInMpCutscene(p0, p1, p2, p3) {
2273
+ inv('0x9CA5DE655269FEC4', p0, p1, p2, p3);
2274
+ }
2275
+ /**
2276
+ * @param toggle
2277
+ * @param playerPed
2278
+ */
2279
+ static setInSpectatorMode(toggle, playerPed) {
2280
+ inv('0x423DE3854BB50894', toggle, playerPed.handle);
2281
+ }
2282
+ /**
2283
+ * @param p0
2284
+ */
2285
+ static N_0x3E74A687A73979C6(p0) {
2286
+ inv('0x3E74A687A73979C6', p0);
2287
+ }
2288
+ /**
2289
+ * @returns sessionRequestId
2290
+ */
2291
+ static sessionIsRequestPendingTransition() {
2292
+ const result = inv('0xCCF878D50F8AB10D', pvi());
2293
+ return [result[0], result[1]];
2294
+ }
2295
+ /**
2296
+ * @param offset
2297
+ */
2298
+ static spawnConfigSetGroundToRootOffset(offset) {
2299
+ inv('0x59577799F6AE2F34', f(offset));
2300
+ }
2301
+ /**
2302
+ * @returns
2303
+ */
2304
+ static checkAccessAndAlertIfFail() {
2305
+ return inv('0x2A8112A974DE1EF6');
2306
+ }
2307
+ /**
2308
+ * Note: this native was added in build 1311.23
2309
+ *
2310
+ * @returns
2311
+ */
2312
+ static N_0xFB3205788F8AFA3F() {
2313
+ return inv('0xFB3205788F8AFA3F', rai());
2314
+ }
2315
+ /**
2316
+ * @returns
2317
+ */
2318
+ static getNumRecentGamers() {
2319
+ return inv('0x37A834AEC6A4F74A', rai());
2320
+ }
2321
+ /**
2322
+ * @returns
2323
+ */
2324
+ static N_0xD3A3C8B9F3BDEF81() {
2325
+ return inv('0xD3A3C8B9F3BDEF81');
2326
+ }
2327
+ /**
2328
+ * Returns the entity's network ID.
2329
+ *
2330
+ * @param entity
2331
+ * @returns
2332
+ */
2333
+ static N_0xF302AB9D978352EE(entity) {
2334
+ return inv('0xF302AB9D978352EE', entity.handle, rai());
2335
+ }
2336
+ /**
2337
+ * @returns
2338
+ */
2339
+ static canSessionEnd() {
2340
+ return inv('0x4EEBC3694E49C572', rai());
2341
+ }
2342
+ /**
2343
+ * @returns
2344
+ */
2345
+ static hasCurrentGetGamerStatusStarted() {
2346
+ return inv('0x25189F9908E9CD65');
2347
+ }
2348
+ /**
2349
+ * @param enabled
2350
+ * @param flagIndex
2351
+ * @returns
2352
+ */
2353
+ static setMpMissionFlagOnCurrentSlot(enabled, flagIndex) {
2354
+ return inv('0x86FD10251A7118A4', enabled, flagIndex);
2355
+ }
2356
+ /**
2357
+ * Hardcoded to return false.
2358
+ *
2359
+ * @returns
2360
+ */
2361
+ static isInPlatformPartyChat() {
2362
+ return inv('0xFD8B834A8BA05048', rai());
2363
+ }
2364
+ /**
2365
+ * @param friendIndex
2366
+ * @returns gamerHandle
2367
+ */
2368
+ static handleFromFriend(friendIndex) {
2369
+ const result = inv('0xD45CB817D7E177D2', friendIndex, pvi());
2370
+ return result;
2371
+ }
2372
+ /**
2373
+ * @returns
2374
+ */
2375
+ static commerceStoreIsEnabled() {
2376
+ return inv('0xDBC754CB6CCB9378', rai());
2377
+ }
2378
+ /**
2379
+ * @param p0
2380
+ */
2381
+ static N_0xA95470DA137587F5(p0) {
2382
+ inv('0xA95470DA137587F5', p0);
2383
+ }
2384
+ /**
2385
+ * @param netId
2386
+ * @returns
2387
+ */
2388
+ static hasControlOfNetworkId(netId) {
2389
+ return inv('0x4D36070FE0215186', netId, rai());
2390
+ }
2391
+ /**
2392
+ * @param flags
2393
+ */
2394
+ static spawnConfigSetFlags(flags) {
2395
+ inv('0xF94A0D5B254375DF', flags);
2396
+ }
2397
+ /**
2398
+ * Same as NETWORK_GET_AVERAGE_LATENCY (0xD414BE129BB81B32) Old name: _NETWORK_GET_AVERAGE_LATENCY_FOR_PLAYER_2
2399
+ *
2400
+ * @param player
2401
+ * @returns
2402
+ */
2403
+ static getAveragePing(player) {
2404
+ return inv('0x0E3A041ED6AC2B45', player.handle, raf());
2405
+ }
2406
+ /**
2407
+ * @param p0
2408
+ * @returns
2409
+ */
2410
+ static getNumCreatedMissionObjects(p0) {
2411
+ return inv('0x12B6281B6C6706C0', p0, rai());
2412
+ }
2413
+ /**
2414
+ * Note: this native was added in build 1311.16 GET_NUM_*
2415
+ *
2416
+ * @returns
2417
+ */
2418
+ static N_0x02B3CDD652B3CDD6() {
2419
+ return inv('0x02B3CDD652B3CDD6', rai());
2420
+ }
2421
+ /**
2422
+ * nullsub, doesn't do anything
2423
+ */
2424
+ static N_0x2CD41AC000E6F611() {
2425
+ inv('0x2CD41AC000E6F611');
2426
+ }
2427
+ /**
2428
+ * @returns
2429
+ */
2430
+ static sessionGetSessionType() {
2431
+ return inv('0xF0C0C94B404206FA', rai());
2432
+ }
2433
+ /**
2557
2434
  * @returns
2558
2435
  */
2559
- static ugcRequestContentDataFromParams(contentTypeName, contentId, fileId, fileVersion, languageId) {
2560
- return inv('0x7FD2990AF016795E', contentTypeName, contentId, fileId, fileVersion, languageId, rai());
2436
+ static isClockTimeOverridden() {
2437
+ return inv('0xD7C95D322FF57522', rai());
2438
+ }
2439
+ /**
2440
+ * @param player
2441
+ * @returns gamerHandle
2442
+ */
2443
+ static handleFromPlayer(player) {
2444
+ const result = inv('0x388EB2B86C73B6B3', player.handle, pvi());
2445
+ return result;
2446
+ }
2447
+ /**
2448
+ * Note: this native was added in build 1311.23, but was only used after build 1436.25
2449
+ */
2450
+ static requestCloudTunables() {
2451
+ inv('0x42FB3B532D526E6C');
2561
2452
  }
2562
2453
  /**
2563
- * @param maxNumMissionParticipants
2564
- * @param p1
2565
- * @param instanceId
2454
+ * @param toggle
2566
2455
  */
2567
- static setThisScriptIsNetworkScript(maxNumMissionParticipants, p1, instanceId) {
2568
- inv('0x1CA59E306ECB80A5', maxNumMissionParticipants, p1, instanceId);
2456
+ static setScriptReadyForEvents(toggle) {
2457
+ inv('0x7AC752103856FB20', toggle);
2569
2458
  }
2570
2459
  /**
2571
- * Stadia only; always returns -1 on other platforms. p0 may be a BOOL.
2572
- *
2573
- * @param p0
2460
+ * @param amount
2574
2461
  * @returns
2575
2462
  */
2576
- static N_0x3E8CCE6769DB5F34(p0) {
2577
- return inv('0x3E8CCE6769DB5F34', p0, rai());
2463
+ static canRegisterMissionPeds(amount) {
2464
+ return inv('0xBCBF4FEF9FA5D781', amount, rai());
2578
2465
  }
2579
2466
  /**
2580
2467
  * @returns gamerHandle1; gamerHandle2
2581
2468
  */
2582
- static arePlayersInSamePlatformParty() {
2583
- const result = inv('0x11820D1AE80DEA39', pvi(), pvi());
2584
- return [result[0], result[1], result[2]];
2469
+ static areHandlesTheSame() {
2470
+ const result = inv('0x57DBA049E110F217', pvi(), pvi(), rai());
2471
+ return [!!result[0], result[1], result[2]];
2585
2472
  }
2586
2473
  /**
2587
- * @param hour
2588
- * @param minute
2589
- * @param second
2590
- * @param transitionTime
2591
- * @param pauseClock
2592
- * @param clockwise
2474
+ * Old name: _SET_LOCAL_PLAYER_AS_GHOST
2475
+ *
2476
+ * @param toggle
2593
2477
  */
2594
- static clockTimeOverride2(hour, minute, second, transitionTime, pauseClock, clockwise) {
2595
- inv('0xE28C13ECC36FF14E', hour, minute, second, transitionTime, pauseClock, clockwise);
2478
+ static setLocalPlayerAsGhost(toggle) {
2479
+ inv('0x5FFE9B4144F9712F', toggle);
2596
2480
  }
2597
2481
  /**
2598
- * @param player
2599
- * @returns
2482
+ * Example: char displayName[64];
2483
+ * if (_NETWORK_GET_DISPLAY_NAME_FROM_HANDLE(handle, displayName))
2484
+ * {
2485
+ * // use displayName
2486
+ * }
2487
+ *
2488
+ * @param displayName
2489
+ * @returns gamerHandle
2600
2490
  */
2601
- static isPlayerConcealed(player) {
2602
- return inv('0x919B3C98ED8292F9', player.handle, rai());
2491
+ static getDisplayNameFromHandle(displayName) {
2492
+ const result = inv('0x7FEE4F07C54B6B3C', pvi(), displayName);
2493
+ return [result[0], result[1]];
2494
+ }
2495
+ static endTutorialSession() {
2496
+ inv('0xD0AFAFF5A51D72F7');
2603
2497
  }
2604
2498
  /**
2605
- * @param description
2606
- * @returns
2499
+ * @param p0
2500
+ * @param p2
2501
+ * @returns p1
2607
2502
  */
2608
- static ugcRequestCachedDescription(description) {
2609
- return inv('0x5E0165278F6339EE', _h(description), rai());
2503
+ static isPlayerAParticipantOnScript(p0, p2) {
2504
+ const result = inv('0x1AD5B71586B94820', p0.handle, pvi(), p2, rai());
2505
+ return [!!result[0], result[1]];
2610
2506
  }
2611
2507
  /**
2612
2508
  * @returns
2613
2509
  */
2614
- static sessionLeaveSession() {
2615
- return inv('0x17C21B7319A05047', rai());
2510
+ static getTotalNumFriends() {
2511
+ return inv('0xDB7ABDD203FA3704', rai());
2616
2512
  }
2617
2513
  /**
2618
- * Hardcoded to return false.
2514
+ * Returns ugcRequestId
2619
2515
  *
2516
+ * @param p0
2517
+ * @param maxGet
2518
+ * @param contentTypeName
2519
+ * @param p3
2520
+ * @param p4
2521
+ * @param p5
2620
2522
  * @returns
2621
2523
  */
2622
- static isCustomUpsellEnabled() {
2623
- return inv('0x78A9535AF83715C6');
2524
+ static ugcQueryByContentType(p0, maxGet, contentTypeName, p3, p4, p5) {
2525
+ return inv('0xF40EF49B3099E98E', p0, maxGet, contentTypeName, p3, p4, p5, rai());
2624
2526
  }
2625
2527
  /**
2528
+ * @param p0
2529
+ * @param index
2530
+ * @param p2
2626
2531
  * @returns
2627
2532
  */
2628
- static getNetworkTime() {
2629
- return inv('0x7A5487FE9FAA6B48', rai());
2533
+ static ugcQueryGetRating(p0, index, p2) {
2534
+ return inv('0x24CD8FAEA1368379', p0, index, p2, raf());
2630
2535
  }
2631
2536
  /**
2632
- * @param threadId
2633
- * @returns
2537
+ * @param player
2634
2538
  */
2635
- static getInstanceIdOfThread(threadId) {
2636
- return inv('0xFB9ECED5B68F3B78', threadId, rai());
2539
+ static N_0xD78A26024BB13E08(player) {
2540
+ inv('0xD78A26024BB13E08', player.handle);
2637
2541
  }
2638
2542
  /**
2639
- * @param configProperty
2640
- * @param include
2641
- * @param weight
2543
+ * Only used in R* Script fm_race_controller
2544
+ *
2545
+ * @param p0
2642
2546
  */
2643
- static spawnConfigAddPropertyPreference(configProperty, include, weight) {
2644
- inv('0xEB6027FD1B4600D5', configProperty, include, f(weight));
2547
+ static N_0x71FA2D1880C48032(p0) {
2548
+ inv('0x71FA2D1880C48032', p0);
2645
2549
  }
2646
2550
  /**
2551
+ * Note: this native was added in build 1311.23
2552
+ *
2647
2553
  * @param p0
2554
+ * @param p1
2555
+ * @param p2
2556
+ * @param p3
2648
2557
  * @returns
2649
2558
  */
2650
- static N_0xDCA4A74135E1DEA5(p0) {
2651
- return inv('0xDCA4A74135E1DEA5', p0, rai());
2559
+ static N_0x5F328FC909F0E0FF(p0, p1, p2, p3) {
2560
+ return inv('0x5F328FC909F0E0FF', p0, p1, p2, p3, rai());
2652
2561
  }
2653
2562
  /**
2654
- * @returns gamerHandle
2563
+ * Old name: _NETWORK_SET_VEHICLE_WHEELS_DESTRUCTIBLE
2564
+ *
2565
+ * @param entity
2566
+ * @param p1
2655
2567
  */
2656
- static getPlayerFromGamerHandle() {
2657
- const result = inv('0xCE5F689CF5A0A49D', pvi(), rai());
2658
- return [createFromHandle('Player', result[0]), result[1]];
2568
+ static triggerDamageEventForZeroDamage(entity, p1) {
2569
+ inv('0x0C8BC052AE87D744', entity.handle, p1);
2659
2570
  }
2660
2571
  /**
2661
- * Returns the amount of players connected in the current session. Only works when connected to a session/server.
2572
+ * nullsub, doesn't do anything
2662
2573
  *
2663
2574
  * @returns
2664
2575
  */
2665
- static getNumConnectedPlayers() {
2666
- return inv('0xA4A79DD2D9600654', rai());
2576
+ static getNetStatisticsInfo() {
2577
+ return inv('0x6FD992C4A1C1B986');
2667
2578
  }
2668
2579
  /**
2669
- * @param netId
2670
- * @returns
2580
+ * nullsub, doesn't do anything
2671
2581
  */
2672
- static getEntityFromNetworkId(netId) {
2673
- return createFromHandle('Entity', inv('0xCE4E5D9B0A4FF560', netId, rai()));
2582
+ static N_0xFC6FCF4C03F1BBF6() {
2583
+ inv('0xFC6FCF4C03F1BBF6');
2584
+ }
2585
+ static N_0x43CF999205084B4B() {
2586
+ inv('0x43CF999205084B4B');
2674
2587
  }
2675
2588
  /**
2676
- * Returns string for GET_STATUS_OF_LOAD_MISSION_CREATOR_PHOTO
2589
+ * p0 appears to be for MP
2677
2590
  *
2678
2591
  * @param p0
2679
- * @param p1
2680
- * @param p2
2681
2592
  * @returns
2682
2593
  */
2683
- static ugcQueryGetCreatorPhoto(p0, p1, p2) {
2684
- return inv('0x409FE0CA6A4D1D49', p0, p1, p2, ras());
2594
+ static getNumReservedMissionVehicles(p0) {
2595
+ return inv('0xCF3A965906452031', p0, rai());
2685
2596
  }
2686
2597
  /**
2687
- * @param toggle
2598
+ * @param name
2599
+ * @returns
2688
2600
  */
2689
- static setRecentGamersEnabled(toggle) {
2690
- inv('0x29FE035D35B8589C', toggle);
2601
+ static textureDownloadTextureNameIsValid(name) {
2602
+ return inv('0xE2C3CEC3C0903A00', name);
2691
2603
  }
2692
2604
  /**
2605
+ * @param scriptName
2606
+ * @param p1
2607
+ * @param p2
2608
+ * @param p3
2693
2609
  * @returns
2694
2610
  */
2695
- static getLaunchParamString() {
2696
- return inv('0xC59AB6A04333C502', ras());
2611
+ static isScriptActive(scriptName, p1, p2, p3) {
2612
+ return inv('0x9D40DF90FAD26098', scriptName, p1, p2, p3, rai());
2697
2613
  }
2698
2614
  /**
2699
- * @param entity
2700
- * @param toggle
2615
+ * @param p0
2701
2616
  */
2702
- static setEntityRemainsWhenUnnetworked(entity, toggle) {
2703
- inv('0xD785864798258032', entity.handle, toggle);
2617
+ static N_0x5CB8B0C846D0F30B(p0) {
2618
+ inv('0x5CB8B0C846D0F30B', p0);
2704
2619
  }
2705
2620
  /**
2706
- * @param flags
2707
- * @param userHash
2708
- * @param p2
2709
- * @returns sessionRequestId
2621
+ * @returns loadingState
2710
2622
  */
2711
- static sessionRequestSessionNominated(flags, userHash, p2) {
2712
- const result = inv('0x4F4672457FF597D1', flags, userHash, p2, pvi(), rai());
2623
+ static canAccessMultiplayer() {
2624
+ const result = inv('0xAF50DA1A3F8B1BA4', pvi(), rai());
2713
2625
  return [!!result[0], result[1]];
2714
2626
  }
2715
2627
  /**
2716
- * @param description
2717
- * @returns
2718
- */
2719
- static ugcIsDescriptionRequestInProgress(description) {
2720
- return inv('0x2D5DC831176D0114', _h(description), rai());
2721
- }
2722
- /**
2723
- * @param ugcRequestId
2628
+ * @returns p0
2724
2629
  */
2725
- static ugcClearQueryResults(ugcRequestId) {
2726
- inv('0xE931354FEA710038', ugcRequestId);
2630
+ static getCurrentFriendPageData() {
2631
+ const result = inv('0xA3EEC0A5AFF3FC5B', pvi());
2632
+ return [result[0], result[1]];
2727
2633
  }
2728
2634
  /**
2729
- * @param threadId
2730
- * @returns
2635
+ * @returns p0
2731
2636
  */
2732
- static getHostOfThread(threadId) {
2733
- return createFromHandle('Player', inv('0xB4A25351D79B444C', threadId, rai()));
2637
+ static getSizeOfHostBroadcastDataStorage() {
2638
+ const result = inv('0xBA24095EA96DFE17', pvi(), rai());
2639
+ return [result[0], result[1]];
2734
2640
  }
2735
2641
  /**
2736
2642
  * @returns
2737
2643
  */
2738
- static isGameInProgress() {
2739
- return inv('0x10FAB35428CCC9D7', rai());
2644
+ static getInstanceIdOfThisScript() {
2645
+ return inv('0x638A3A81733086DB', rai());
2740
2646
  }
2741
2647
  /**
2742
- * @param rangeStart
2743
- * @param rangeEnd
2648
+ * @param p0
2744
2649
  * @returns
2745
2650
  */
2746
- static getRandomIntRanged(rangeStart, rangeEnd) {
2747
- return inv('0xE30CF56F1EFA5F43', rangeStart, rangeEnd, rai());
2651
+ static awardHasReachedMaxclaim(p0) {
2652
+ return inv('0xFBE782B3165AC8EC', p0);
2748
2653
  }
2749
2654
  /**
2750
2655
  * @param p0
2751
2656
  * @returns
2752
2657
  */
2753
- static acceptRsInvite(p0) {
2754
- return inv('0xB2CEA5105AAC8DDE', p0);
2755
- }
2756
- /**
2757
- * @param player
2758
- * @param toggle
2759
- */
2760
- static concealPlayer(player, toggle) {
2761
- inv('0xBBDF066252829606', player.handle, toggle);
2658
+ static N_0xBB697756309D77EE(p0) {
2659
+ return inv('0xBB697756309D77EE', p0);
2762
2660
  }
2763
2661
  /**
2764
- * ^^ 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
2765
- *
2766
- * @param entity
2767
- * @param toggle
2662
+ * @returns
2768
2663
  */
2769
- static setEntityOnlyExistsForParticipants(entity, toggle) {
2770
- inv('0xF1CA12B18AEF5298', entity.handle, toggle);
2664
+ static autoSessionIsInstancedSession() {
2665
+ return inv('0x277865A734918AE6');
2771
2666
  }
2772
2667
  /**
2773
- * @param doorHash
2668
+ * @param p0
2669
+ * @param p1
2670
+ * @returns
2774
2671
  */
2775
- static setDoorNetworked(doorHash) {
2776
- inv('0x51D99497ABF3F451', _h(doorHash));
2672
+ static resetPopulation(p0, p1) {
2673
+ return inv('0x101F538C25ABB39A', p0, p1);
2777
2674
  }
2778
2675
  /**
2779
- * @param p0
2780
- * @param index
2781
- * @returns gamerHandle
2782
- */
2783
- static ugcQueryGetCreatorHandle(p0, index) {
2784
- const result = inv('0xADB56322EEDFBDC9', p0, index, pvi());
2785
- return [result[0], result[1]];
2676
+ * @param ped
2677
+ * @returns Returns the network id for the specified `ped` or `0` if the entity isn't networked.
2678
+ */
2679
+ static pedToNet(ped) {
2680
+ return inv('0x0EDEC3C276198689', ped.handle, rai());
2786
2681
  }
2787
2682
  /**
2788
- * @param paramName
2683
+ * @param p0
2789
2684
  * @returns
2790
2685
  */
2791
- static getLaunchParamExists(paramName) {
2792
- return inv('0x02E97CE283648CD9', paramName);
2686
+ static N_0x27B1AE4D8C652F08(p0) {
2687
+ return inv('0x27B1AE4D8C652F08', p0, rai());
2793
2688
  }
2794
2689
  /**
2795
2690
  * @param entity
@@ -3236,608 +3131,594 @@ export class Network {
3236
3131
  static N_0x4538EE7C321590BC(networkId) {
3237
3132
  return createFromHandle('Entity', inv('0x4538EE7C321590BC', networkId, rai()));
3238
3133
  }
3239
- static N_0x9B39B0555CC692B5() {
3240
- inv('0x9B39B0555CC692B5');
3241
- }
3242
3134
  /**
3243
3135
  * @param p0
3136
+ * @param p1
3244
3137
  * @returns
3245
3138
  */
3246
- static N_0xE79BA3BC265895DA(p0) {
3247
- return inv('0xE79BA3BC265895DA', p0, ras());
3248
- }
3249
- /**
3250
- * @param netPlaylistActivity
3251
- */
3252
- static activitySetCurrent(netPlaylistActivity) {
3253
- inv('0x9ADAC065D9F6706F', netPlaylistActivity);
3254
- }
3255
- /**
3256
- * @param queueGroup
3257
- * @returns
3258
- */
3259
- static sessionIsRequestInProgressByQueueGroup(queueGroup) {
3260
- return inv('0x9E762A595CF88E4A', queueGroup);
3139
+ static N_0x271F95E55C663B8B(p0, p1) {
3140
+ return inv('0x271F95E55C663B8B', p0, p1);
3261
3141
  }
3262
3142
  /**
3263
3143
  * @returns
3264
3144
  */
3265
- static pedmugshotGetStatus() {
3266
- return inv('0xCBAC13F065C47596', rai());
3145
+ static sessionGetSessionFlags() {
3146
+ return inv('0x51F33DBC1A41CBFD', rai());
3267
3147
  }
3268
3148
  /**
3149
+ * Note: this native was added in build 1311.23
3150
+ *
3269
3151
  * @returns
3270
3152
  */
3271
- static getTunableCloudCrc() {
3272
- return inv('0x10BD227A753B0D84', rai());
3153
+ static N_0x039AD6B57D5179FF() {
3154
+ return inv('0x039AD6B57D5179FF', rai());
3273
3155
  }
3274
3156
  /**
3275
- * Returns true if the passed value is less than 32.
3157
+ * Old name: _NETWORK_GET_NUM_UNACKED_FOR_PLAYER
3276
3158
  *
3277
3159
  * @param player
3278
3160
  * @returns
3279
3161
  */
3280
- static isPlayerIndexValid(player) {
3281
- return inv('0x255A5EF65EDA9167', player.handle);
3162
+ static getNumUnackedReliables(player) {
3163
+ return inv('0xFF8FCF9FFC458A1C', player.handle, rai());
3282
3164
  }
3283
3165
  /**
3284
3166
  * @param entity
3285
- * @returns
3167
+ * @param toggle
3286
3168
  */
3287
- static getEntityIsNetworked(entity) {
3288
- return inv('0xC7827959479DCC78', entity.handle, rai());
3169
+ static allowEntityFadingForInstances(entity, toggle) {
3170
+ inv('0xF3354D6CA46F419D', entity.handle, toggle);
3289
3171
  }
3290
3172
  /**
3291
- * @param vehicle
3292
- * @returns Returns the network id for the specified `vehicle`, or `0` if the vehicle isn't networked.
3173
+ * Only used in R* Script startup_clip
3293
3174
  */
3294
- static vehToNet(vehicle) {
3295
- return inv('0xB4C94523F023419C', vehicle.handle, rai());
3175
+ static N_0xFD4272A137703449() {
3176
+ inv('0xFD4272A137703449');
3296
3177
  }
3297
3178
  /**
3298
- * Only used in R* SP Scripts
3299
- *
3300
3179
  * @param player
3301
- * @param personaPhotoLocalCacheType
3302
- * @returns
3303
- */
3304
- static requestPedshotTextureLocalBackupDownload(player, personaPhotoLocalCacheType) {
3305
- return inv('0x356F9FB0698C1FEB', player, personaPhotoLocalCacheType, ras());
3306
- }
3307
- /**
3308
- * @param p0
3180
+ * @param type
3309
3181
  */
3310
- static N_0xE5634491A58C2703(p0) {
3311
- inv('0xE5634491A58C2703', f(p0));
3182
+ static N_0x51951DE06C0D1C40(player, type) {
3183
+ inv('0x51951DE06C0D1C40', player.handle, type);
3312
3184
  }
3313
3185
  /**
3314
3186
  * @param p0
3315
- * @param p1
3316
- * @param p2
3317
- * @param p3
3318
3187
  * @returns
3319
3188
  */
3320
- static N_0x64A36BA85CE01A81(p0, p1, p2, p3) {
3321
- return inv('0x64A36BA85CE01A81', p0, p1, p2, p3);
3322
- }
3323
- /**
3324
- * @returns sessionRequestId
3325
- */
3326
- static sessionIsSessionRequestIdValid() {
3327
- const result = inv('0x2F54B146D3EDCE4D', pvi());
3328
- return [result[0], result[1]];
3189
+ static N_0x5ED39DA62BEB1330(p0) {
3190
+ return inv('0x5ED39DA62BEB1330', p0);
3329
3191
  }
3330
3192
  /**
3193
+ * @param p0
3194
+ * @param index
3331
3195
  * @returns
3332
3196
  */
3333
- static isResettingPopulation() {
3334
- return inv('0x1BB50CD340A996E6');
3197
+ static ugcQueryGetName(p0, index) {
3198
+ return inv('0x2D053EA815702DD1', p0, index, ras());
3335
3199
  }
3336
3200
  /**
3337
- * Note: this native was added in build 1311.23
3338
- *
3339
3201
  * @param p0
3202
+ * @param index
3340
3203
  * @returns
3341
3204
  */
3342
- static N_0x039B692B3318FAB6(p0) {
3343
- return inv('0x039B692B3318FAB6', p0, rai());
3205
+ static ugcQueryGetBookMarked(p0, index) {
3206
+ return inv('0x98539FC453AEA639', p0, index);
3344
3207
  }
3345
3208
  /**
3346
- * Always returns 60
3347
- *
3348
- * @returns
3209
+ * @param entity
3210
+ * @param timer
3211
+ * @param p2
3349
3212
  */
3350
- static getMaxNumNetworkObjects() {
3351
- return inv('0xC7BE335216B5EC7C', rai());
3213
+ static setNetworkRespotTimer(entity, timer, p2) {
3214
+ inv('0x442B4347B6EC36E8', entity.handle, timer, p2);
3352
3215
  }
3353
3216
  /**
3354
- * Checks if the user has ROS privilege 14.
3355
- *
3356
- * @returns
3217
+ * @returns gamerHandle
3357
3218
  */
3358
- static ugcHasPrivilege() {
3359
- return inv('0x6506BFA755FB209C');
3219
+ static getGamertagFromFriend() {
3220
+ const result = inv('0x5659D87BE674AB17', pvi(), ras());
3221
+ return [result[0], result[1]];
3360
3222
  }
3361
3223
  /**
3362
- * @param networkId
3363
- * @param bStopCloning
3224
+ * @param player
3225
+ * @returns
3364
3226
  */
3365
- static setNetworkIdStopCloning(networkId, bStopCloning) {
3366
- inv('0x9ED3108D6847760A', networkId, bStopCloning);
3227
+ static getPlayerWaypointIsActive(player) {
3228
+ return inv('0xDCC4B7F7112E8AB7', player.handle);
3367
3229
  }
3368
3230
  /**
3369
- * Returns CGameConfig->ConfigOnlineServices->RosTitleName (see gameconfig.xml)
3370
- *
3231
+ * @param inviteIndex
3371
3232
  * @returns
3372
3233
  */
3373
- static getRosTitleName() {
3374
- return inv('0xAC6153A0722F524C', ras());
3234
+ static N_0x981146E5C9CE9250(inviteIndex) {
3235
+ return inv('0x981146E5C9CE9250', inviteIndex, rai());
3375
3236
  }
3376
3237
  /**
3377
- * @returns
3238
+ * @param netID
3378
3239
  */
3379
- static getScriptStatus() {
3380
- return inv('0x57D158647A6BFABF', rai());
3240
+ static disableProximityMigration(netID) {
3241
+ inv('0x407091CF6037118E', netID);
3381
3242
  }
3382
3243
  /**
3383
3244
  * @param p0
3384
3245
  * @param p1
3385
- * @param p2
3386
- * @param p3
3246
+ * @param dataSize
3247
+ * @returns outData
3387
3248
  */
3388
- static setNetworkIdVisibleInCutscene(p0, p1, p2, p3) {
3389
- inv('0xA6928482543022B4', p0, p1, p2, p3);
3249
+ static getRecentGamerNames(p0, p1, dataSize) {
3250
+ const result = inv('0xFEFCC345CE357453', p0, p1, pvi(), dataSize);
3251
+ return [result[0], result[1]];
3390
3252
  }
3391
3253
  /**
3392
- * @param amount
3254
+ * @returns
3393
3255
  */
3394
- static reserveNetworkMissionObjects(amount) {
3395
- inv('0x4E5C93BD0C32FBF8', amount);
3256
+ static N_0x18B94666CF610AEB() {
3257
+ return inv('0x18B94666CF610AEB', rai());
3396
3258
  }
3397
3259
  /**
3398
- * @param entity
3399
- * @param player
3400
- * @returns p2
3260
+ * p0 appears to be for MP
3261
+ *
3262
+ * @param p0
3263
+ * @returns
3401
3264
  */
3402
- static N_0x75FC34A2BA345BD1(entity, player) {
3403
- const result = inv('0x75FC34A2BA345BD1', entity.handle, player.handle, pvi(), rai());
3404
- return [!!result[0], result[1]];
3265
+ static getNumReservedMissionObjects(p0) {
3266
+ return inv('0xAA81B5F10BC43AC2', p0, rai());
3405
3267
  }
3406
3268
  /**
3407
3269
  * @returns
3408
3270
  */
3409
- static autoSessionIsAllowedToMerge() {
3410
- return inv('0xAADED99A6B268A27');
3271
+ static hasSocialClubAccount() {
3272
+ return inv('0x67A5589628E0CFF6', rai());
3411
3273
  }
3412
3274
  /**
3413
- * @param p0
3414
- * @param p1
3415
- * @param p2
3416
- * @returns
3275
+ * @param netHandle
3276
+ * @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist.
3417
3277
  */
3418
- static N_0x7A8E8DF782B47EB0(p0, p1, p2) {
3419
- return inv('0x7A8E8DF782B47EB0', p0, p1, p2);
3278
+ static netToPed(netHandle) {
3279
+ return createFromHandle('Ped', inv('0xBDCD95FC216A8B3E', netHandle, rai()));
3420
3280
  }
3421
3281
  /**
3422
- * Hardcoded to return false.
3282
+ * 0 = succeeded
3283
+ * 1 = pending
3284
+ * 2 = failed
3423
3285
  *
3286
+ * @param textureDownloadId
3424
3287
  * @returns
3425
3288
  */
3426
- static shouldShowPromotionDlg() {
3427
- return inv('0xDA4B1A479C414FB2');
3289
+ static getStatusOfTextureDownload(textureDownloadId) {
3290
+ return inv('0x8BD6C6DEA20E82C6', textureDownloadId, rai());
3428
3291
  }
3429
3292
  /**
3430
- * @param amount
3293
+ * @returns gamerHandle
3431
3294
  */
3432
- static reserveNetworkMissionPeds(amount) {
3433
- inv('0xB60FEBA45333D36F', amount);
3295
+ static N_0xF23A6D6C11D8EC15() {
3296
+ const result = inv('0xF23A6D6C11D8EC15', pvi(), rai());
3297
+ return [!!result[0], result[1]];
3434
3298
  }
3435
3299
  /**
3436
- * @param pos
3437
- * @param heading
3300
+ * Always returns 40
3301
+ *
3302
+ * @returns
3438
3303
  */
3439
- static spawnConfigAddSpawnPoint(pos, heading) {
3440
- inv('0xFD1AC0B3858F224C', f(pos.x), f(pos.y), f(pos.z), f(heading));
3304
+ static getMaxNumNetworkVehicles() {
3305
+ return inv('0x0AFCE529F69B21FF', rai());
3441
3306
  }
3442
3307
  /**
3443
- * @param paramName
3444
- * @param value
3308
+ * @param netId
3309
+ * @param p1
3310
+ * @param p2
3445
3311
  */
3446
- static setLaunchParamValue(paramName, value) {
3447
- inv('0x668AF6E4933AC13F', paramName, value);
3312
+ static keepNetworkIdInFastInstance(netId, p1, p2) {
3313
+ inv('0xE1BC73D6815BA361', netId, p1, p2);
3448
3314
  }
3449
3315
  /**
3450
3316
  * @returns gamerHandle
3451
3317
  */
3452
- static canViewGamerUserContent() {
3453
- const result = inv('0x246545C37C27A717', pvi());
3454
- return [result[0], result[1]];
3318
+ static isHandleValid() {
3319
+ const result = inv('0x6F79B93B0A8E4133', pvi(), rai());
3320
+ return [!!result[0], result[1]];
3455
3321
  }
3456
3322
  /**
3457
3323
  * @param p0
3458
- * @returns
3324
+ * @returns p1
3459
3325
  */
3460
- static isParticipantActive(p0) {
3461
- return inv('0x6FF8FF40B6357D45', p0, rai());
3326
+ static N_0x691E4DE5309EAEFC(p0) {
3327
+ const result = inv('0x691E4DE5309EAEFC', p0, pvi());
3328
+ return result;
3462
3329
  }
3463
3330
  /**
3464
- * @param p0
3331
+ * @param entity
3465
3332
  * @returns
3466
3333
  */
3467
- static getNumCreatedMissionPeds(p0) {
3468
- return inv('0xCB215C4B56A7FAE7', p0, rai());
3334
+ static getNetworkIdFromEntity(entity) {
3335
+ return inv('0xA11700682F3AD45C', entity.handle, rai());
3469
3336
  }
3470
3337
  /**
3471
- * _NETWORK_GET_A* - _NETWORK_GET_D*
3338
+ * Only used in SP R* Script dominoes_sp: p1 = 0
3472
3339
  *
3473
3340
  * @param player
3474
- * @param ped
3475
- * @returns p2
3341
+ * @param p1
3476
3342
  */
3477
- static N_0x236321F1178A5446(player, ped) {
3478
- const result = inv('0x236321F1178A5446', player.handle, ped.handle, pvi(), rai());
3479
- return [!!result[0], result[1]];
3343
+ static N_0x02C4C6C2900D84DF(player, p1) {
3344
+ inv('0x02C4C6C2900D84DF', player.handle, p1);
3480
3345
  }
3481
3346
  /**
3482
- * Must be called from a background script, otherwise it will do nothing.
3483
- *
3484
- * @param entity
3485
- * @param p1
3347
+ * @returns
3348
+ */
3349
+ static isSessionActive() {
3350
+ return inv('0xD83C2B94E7508980', rai());
3351
+ }
3352
+ /**
3353
+ * @param animScene
3354
+ * @returns
3486
3355
  */
3487
- static N_0x979765465A6F25FC(entity, p1) {
3488
- inv('0x979765465A6F25FC', entity.handle, p1);
3356
+ static animSceneToNet(animScene) {
3357
+ return inv('0xE0D73CDDEA79DDCD', animScene.handle, rai());
3489
3358
  }
3490
3359
  /**
3491
- * @param player
3492
- * @param p1
3360
+ * @returns
3493
3361
  */
3494
- static N_0x5A91BCEF74944E93(player, p1) {
3495
- inv('0x5A91BCEF74944E93', player.handle, f(p1));
3362
+ static getRank() {
3363
+ return inv('0x32C90CDFAF40514C', rai());
3496
3364
  }
3497
3365
  /**
3498
- * @param params
3366
+ * @param message
3367
+ * @returns gamerHandle
3499
3368
  */
3500
- static setLaunchParamString(params) {
3501
- inv('0xDFFC15AA63D04AAB', params);
3369
+ static addFriend(message) {
3370
+ const result = inv('0x8E02D73914064223', pvi(), message, rai());
3371
+ return [!!result[0], result[1]];
3502
3372
  }
3503
3373
  /**
3504
- * Note: this native was added in build 1311.23
3505
- *
3506
3374
  * @param p0
3507
- * @param p1
3375
+ * @returns gamerHandle
3508
3376
  */
3509
- static N_0x0D183D8490EE4366(p0, p1) {
3510
- inv('0x0D183D8490EE4366', p0, p1);
3377
+ static N_0x16EFB123C4451032(p0) {
3378
+ const result = inv('0x16EFB123C4451032', p0, pvi(), rai());
3379
+ return [!!result[0], result[1]];
3511
3380
  }
3512
3381
  /**
3513
- * Note: this native was added in build 1311.23
3382
+ * Return the local Participant ID
3514
3383
  *
3515
- * @param p0
3516
3384
  * @returns
3517
3385
  */
3518
- static N_0xF8DC69DC1AD19072(p0) {
3519
- return inv('0xF8DC69DC1AD19072', p0, rai());
3386
+ static participantId() {
3387
+ return createFromHandle('Player', inv('0x90986E8876CE0A83', rai()));
3388
+ }
3389
+ static N_0x97BCE4C4B3191228() {
3390
+ inv('0x97BCE4C4B3191228');
3520
3391
  }
3521
3392
  /**
3522
- * @returns
3393
+ * @param volume
3394
+ * @param p1
3395
+ * @param originalWeight
3396
+ * @param p3
3397
+ * @param p4
3523
3398
  */
3524
- static N_0xA47D48D06AA5A188() {
3525
- return inv('0xA47D48D06AA5A188', rai());
3399
+ static N_0x13F592FC3BF0EA84(volume, p1, originalWeight, p3, p4) {
3400
+ inv('0x13F592FC3BF0EA84', volume.handle, p1, f(originalWeight), p3, p4);
3526
3401
  }
3527
3402
  /**
3528
3403
  * @returns
3529
3404
  */
3530
- static getCloudTimeAsInt() {
3531
- return inv('0x9A73240B49945C76', rai());
3405
+ static N_0xBF8276E51761F9DA() {
3406
+ return inv('0xBF8276E51761F9DA', rai());
3532
3407
  }
3533
3408
  /**
3534
- * *GET_LAUNCH_PARAM*(RESPOT?)*
3535
- * Name is probably invalid since this native only reads data from parsed entity.
3409
+ * Note: this native was added in build 1311.23
3536
3410
  *
3537
- * @param entity
3538
3411
  * @returns
3539
3412
  */
3540
- static N_0x26A867C0B7A456D1(entity) {
3541
- return inv('0x26A867C0B7A456D1', entity.handle, rai());
3542
- }
3543
- /**
3544
- * @param netHandle
3545
- * @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist.
3546
- */
3547
- static netToVeh(netHandle) {
3548
- return createFromHandle('Vehicle', inv('0x367B936610BA360C', netHandle, rai()));
3413
+ static N_0x316FD416C432C761() {
3414
+ return inv('0x316FD416C432C761', rai());
3549
3415
  }
3550
3416
  /**
3551
- * @returns sessionRequestId
3417
+ * nullsub, doesn't do anything
3418
+ *
3419
+ * @returns
3552
3420
  */
3553
- static N_0xAFA14F98327791CE() {
3554
- const result = inv('0xAFA14F98327791CE', pvi(), rai());
3555
- return [!!result[0], result[1]];
3421
+ static N_0xEC089F84A9C16C62() {
3422
+ return inv('0xEC089F84A9C16C62');
3556
3423
  }
3557
3424
  /**
3425
+ * @param netId
3558
3426
  * @returns
3559
3427
  */
3560
- static N_0xDA1BFED8582F61F0() {
3561
- return inv('0xDA1BFED8582F61F0', rai());
3428
+ static getRopeIdFromNetworkId(netId) {
3429
+ return inv('0xEB1A4DD8352EC828', netId, rai());
3562
3430
  }
3563
3431
  /**
3564
- * Note: this native was added in build 1311.23
3565
- *
3566
- * @param p0
3432
+ * @param ugcRequestId
3567
3433
  * @returns
3568
3434
  */
3569
- static N_0xBAF7E2979442B29F(p0) {
3570
- return inv('0xBAF7E2979442B29F', p0, rai());
3435
+ static ugcDidRequestSucceed(ugcRequestId) {
3436
+ return inv('0x0B6009A90B8495F1', ugcRequestId);
3571
3437
  }
3572
3438
  /**
3573
3439
  * @returns
3574
3440
  */
3575
- static isCloudAvailable() {
3576
- return inv('0x9A4CF4F48AD77302', rai());
3441
+ static getNetworkTimeAccurate() {
3442
+ return inv('0x89023FBBF9200E9F', rai());
3577
3443
  }
3578
3444
  /**
3579
3445
  * @param p0
3580
- * @param p1
3581
- * @param p2
3446
+ * @returns
3582
3447
  */
3583
- static registerPlayerBroadcastVariables(p0, p1, p2) {
3584
- inv('0x3364AA97340CA215', p0, p1, p2);
3448
+ static getNumCreatedMissionVehicles(p0) {
3449
+ return inv('0x0CD9AB83489430EA', p0, rai());
3450
+ }
3451
+ static showAccountUpgradeUi() {
3452
+ inv('0x83FE8D7229593017');
3585
3453
  }
3586
3454
  /**
3587
- * _NETWORK_IS_T* - _NETWORK_RE*
3455
+ * Hardcoded to return false.
3588
3456
  *
3589
3457
  * @returns
3590
3458
  */
3591
- static isPreviousUploadPending() {
3592
- return inv('0xA21E3BAD0A42D199');
3459
+ static isInSessionLobby() {
3460
+ return inv('0xC5196C42DE19F646');
3593
3461
  }
3594
3462
  /**
3595
- * _NETWORK_GET_A* - _NETWORK_GET_D*
3463
+ * Always returns a null string.
3596
3464
  *
3597
- * @param ped
3598
- * @returns p1
3599
- */
3600
- static N_0x6CF82A7F65A5AD5F(ped) {
3601
- const result = inv('0x6CF82A7F65A5AD5F', ped.handle, pvi(), rai());
3602
- return [createFromHandle('Player', result[0]), result[1]];
3603
- }
3604
- /**
3605
- * @param p1
3606
3465
  * @returns gamerHandle
3607
3466
  */
3608
- static getGamerStatus(p1) {
3609
- const result = inv('0xDDAEB478E58F8DEA', pvi(), p1, rai());
3467
+ static getGamertagFromHandle() {
3468
+ const result = inv('0x426141162EBE5CDB', pvi(), ras());
3610
3469
  return [result[0], result[1]];
3611
3470
  }
3612
3471
  /**
3613
- * Returns result of session request:
3614
- * 0 - NOT_FOUND
3615
- * 1 - IN_PROGRESS
3616
- * 2 - TIMEOUT
3617
- * 3 - PLAYER_OFFLINE
3618
- * 4 - GANG_MEMBERS_CHANGED
3619
- * 5 - PLAYER_CANCELLED
3620
- * 6 - PLAYER_SET_TOO_LARGE
3621
- * 7 - MATCH_ACCEPTED
3622
- * 8 - OTHER
3472
+ * Returns the network ID of the given object.
3623
3473
  *
3624
- * @returns sessionRequestId; p1
3474
+ * @param object
3475
+ * @returns Returns the network id for the specified `object`, or `0` if the entity isn't networked.
3625
3476
  */
3626
- static sessionGetSessionRequestResult() {
3627
- const result = inv('0x0DD051B1BF4B8BD6', pvi(), pvi(), rai());
3628
- return [result[0], result[1], result[2]];
3477
+ static objToNet(object) {
3478
+ return inv('0x99BFDC94A603E541', object.handle, rai());
3629
3479
  }
3630
- static N_0xA63E4F050F20021F() {
3631
- inv('0xA63E4F050F20021F');
3480
+ /**
3481
+ * @param p0
3482
+ * @returns
3483
+ */
3484
+ static requestJoin(p0) {
3485
+ return inv('0xE483BB6BE686F632', p0, rai());
3632
3486
  }
3633
3487
  /**
3634
- * @param amount
3488
+ * Note: this native was added in build 1311.23
3489
+ *
3490
+ * @param p0
3635
3491
  * @returns
3636
3492
  */
3637
- static canRegisterMissionObjects(amount) {
3638
- return inv('0x800DD4721A8B008B', amount, rai());
3493
+ static N_0x4835413EA6F9C9CD(p0) {
3494
+ return inv('0x4835413EA6F9C9CD', p0, rai());
3639
3495
  }
3640
3496
  /**
3641
- * @param description
3497
+ * Returns ugcRequestId
3498
+ *
3499
+ * @param contentId
3500
+ * @param latestVersion
3501
+ * @param contentTypeName
3642
3502
  * @returns
3643
3503
  */
3644
- static ugcReleaseCachedDescription(description) {
3645
- return inv('0x5A34CD9C3C5BEC44', _h(description), rai());
3504
+ static ugcQueryByContentId(contentId, latestVersion, contentTypeName) {
3505
+ return inv('0x69D22E183580113F', contentId, latestVersion, contentTypeName, rai());
3646
3506
  }
3647
3507
  /**
3648
- * @param toggle
3508
+ * @param p0
3649
3509
  */
3650
- static setFriendlyFireOption(toggle) {
3651
- inv('0xF808475FA571D823', toggle);
3510
+ static N_0x3034C77C79A58880(p0) {
3511
+ inv('0x3034C77C79A58880', p0);
3652
3512
  }
3653
3513
  /**
3654
- * @returns sessionRequestId
3514
+ * @param paramName
3515
+ * @returns
3655
3516
  */
3656
- static sessionTransitionToSession() {
3657
- const result = inv('0xF20B18A330E6DB5C', pvi());
3658
- return [result[0], result[1]];
3517
+ static getLaunchParamValue(paramName) {
3518
+ return inv('0x65E65CA6A0FE59D4', paramName, ras());
3659
3519
  }
3660
3520
  /**
3661
- * Hardcoded to return false.
3521
+ * @param p0
3522
+ */
3523
+ static N_0xCF23AB5BD47B384D(p0) {
3524
+ inv('0xCF23AB5BD47B384D', p0);
3525
+ }
3526
+ /**
3527
+ * Note: this native was added in build 1311.23
3662
3528
  *
3663
- * @returns
3529
+ * @param p0
3530
+ * @param p1
3531
+ * @param p2
3664
3532
  */
3665
- static isPromotionEnabled() {
3666
- return inv('0x8FF6059DA26E688A');
3533
+ static N_0x3CBD6565D9C3B133(p0, p1, p2) {
3534
+ inv('0x3CBD6565D9C3B133', p0, p1, f(p2));
3667
3535
  }
3668
3536
  /**
3669
- * @param playersToTake
3670
- * @param maxInstancePlayers
3671
- * @param sessionFlags
3672
- * @param bucketId
3673
3537
  * @returns
3674
3538
  */
3675
- static autoSessionSplitSession(playersToTake, maxInstancePlayers, sessionFlags, bucketId) {
3676
- return inv('0xC223D299C670413D', playersToTake, maxInstancePlayers, sessionFlags, bucketId);
3539
+ static hasReceivedHostBroadcastData() {
3540
+ return inv('0x5D10B3795F3FC886', rai());
3677
3541
  }
3678
3542
  /**
3679
- * @param p0
3543
+ * @param languageId
3680
3544
  * @returns
3681
3545
  */
3682
- static N_0x923346025512DFB7(p0) {
3683
- return inv('0x923346025512DFB7', p0);
3546
+ static ugcIsLanguageSupported(languageId) {
3547
+ return inv('0xF53E48461B71EECB', languageId, rai());
3684
3548
  }
3685
3549
  /**
3686
- * @returns args
3550
+ * @returns
3687
3551
  */
3688
- static resurrectLocalPlayer2() {
3689
- const result = inv('0x4154B7D8C75E5DCF', pvi());
3690
- return result;
3552
+ static actionPlatformInvite() {
3553
+ return inv('0x3B82ACC3F4B6240C');
3691
3554
  }
3692
3555
  /**
3693
- * Only used in R* Script net_stable_manager
3556
+ * nullsub, doesn't do anything
3694
3557
  *
3695
- * @param threadId
3696
- * @returns pedMax; vehicleMax; unkMax; pedMin; vehicleMin; unkMin
3558
+ * @returns
3697
3559
  */
3698
- static getReservedMissionEntitiesForThread(threadId) {
3699
- const result = inv('0x99AAC89C510DEB0D', threadId, pvi(), pvi(), pvi(), pvi(), pvi(), pvi());
3700
- return [result[0], result[1], result[2], result[3], result[4], result[5]];
3560
+ static dumpNetIfConfig() {
3561
+ return inv('0xAEDF1BC1C133D6E3');
3701
3562
  }
3702
3563
  /**
3703
- * @param p0
3704
3564
  * @returns
3705
3565
  */
3706
- static N_0xD7BAD4062074B9C1(p0) {
3707
- return inv('0xD7BAD4062074B9C1', p0, rai());
3566
+ static sessionIsTransitioning() {
3567
+ return inv('0xF2CBC969C4F090C7');
3708
3568
  }
3709
3569
  /**
3710
- * @param hour
3711
- * @param minute
3712
- * @param second
3713
- * @param transitionTime
3714
- * @param pauseClock
3570
+ * @param p0
3571
+ * @param index
3572
+ * @param p2
3573
+ * @returns
3715
3574
  */
3716
- static clockTimeOverride(hour, minute, second, transitionTime, pauseClock) {
3717
- inv('0x669E223E64B1903C', hour, minute, second, transitionTime, pauseClock);
3575
+ static ugcQueryGetVersion(p0, index, p2) {
3576
+ return inv('0x63E9DCBC8B0931ED', p0, index, p2, rai());
3718
3577
  }
3719
3578
  /**
3720
- * @param netId
3721
- * @param player
3722
- * @param toggle
3579
+ * @param p0
3580
+ * @param p1
3723
3581
  */
3724
- static setNetworkIdAlwaysExistsForPlayer(netId, player, toggle) {
3725
- inv('0xA8A024587329F36A', netId, player.handle, toggle);
3582
+ static N_0x3F0ABAE38A0515AD(p0, p1) {
3583
+ inv('0x3F0ABAE38A0515AD', p0, p1);
3726
3584
  }
3727
3585
  /**
3728
- * Note: this native was added in build 1311.16
3586
+ * Subtracts the second argument from the first, then returns whether the result is negative.
3729
3587
  *
3588
+ * @param timeA
3589
+ * @param timeB
3730
3590
  * @returns
3731
3591
  */
3732
- static isObjectReassignmentInProgress() {
3733
- return inv('0x8FE9EB11EC9CC23A', rai());
3592
+ static isTimeLessThan(timeA, timeB) {
3593
+ return inv('0xCB2CF5148012C8D0', timeA, timeB, rai());
3734
3594
  }
3735
3595
  /**
3736
- * @param scriptName
3737
- * @param instanceId
3738
- * @param position
3596
+ * Old name: _NETWORK_GET_UNRELIABLE_RESEND_COUNT_FOR_PLAYER
3597
+ *
3598
+ * @param player
3739
3599
  * @returns
3740
3600
  */
3741
- static getNumScriptParticipants(scriptName, instanceId, position) {
3742
- return inv('0x3658E8CD94FC121A', scriptName, instanceId, _h(position), rai());
3601
+ static getUnreliableResendCount(player) {
3602
+ return inv('0x3765C3A3E8192E10', player.handle, rai());
3743
3603
  }
3744
3604
  /**
3605
+ * Note: this native was added in build 1311.23
3606
+ *
3745
3607
  * @param p0
3746
3608
  * @returns
3747
3609
  */
3748
- static N_0x6C27442A225A241A(p0) {
3749
- return inv('0x6C27442A225A241A', p0, rai());
3610
+ static N_0x106CBDD5077DEDE1(p0) {
3611
+ return inv('0x106CBDD5077DEDE1', p0, rai());
3750
3612
  }
3751
3613
  /**
3752
- * @param p0
3753
- * @param p1
3614
+ * @param featureId
3615
+ * @returns
3754
3616
  */
3755
- static spawnConfigSetTuningFloat(p0, p1) {
3756
- inv('0x0608326F7B98C08D', _h(p0), f(p1));
3617
+ static isFeatureSupported(featureId) {
3618
+ return inv('0x9C725D149622BFDE', featureId);
3757
3619
  }
3758
3620
  /**
3759
- * @param p1
3760
- * @returns outData
3621
+ * On PC this returns true if gamerHandle is a valid handle.
3622
+ *
3623
+ * @returns gamerHandle
3761
3624
  */
3762
- static N_0x7BCA0A3972708436(p1) {
3763
- const result = inv('0x7BCA0A3972708436', pvi(), p1, rai());
3625
+ static canAddFriend() {
3626
+ const result = inv('0x99ABE9BF9DADA162', pvi());
3764
3627
  return [result[0], result[1]];
3765
3628
  }
3766
3629
  /**
3767
- * Hardcoded to return zero.
3630
+ * Note: this native was added in build 1311.23
3631
+ */
3632
+ static N_0x7673C0D2C5CDAC55() {
3633
+ inv('0x7673C0D2C5CDAC55');
3634
+ }
3635
+ /**
3636
+ * Always returns 110
3768
3637
  *
3769
- * @param p0
3770
- * @param p1
3771
- * @param p2
3772
3638
  * @returns
3773
3639
  */
3774
- static getDisplaynamesFromHandles(p0, p1, p2) {
3775
- return inv('0x58CC181719256197', p0, p1, p2, rai());
3640
+ static getMaxNumNetworkPeds() {
3641
+ return inv('0x0C1F7D49C39D2289', rai());
3776
3642
  }
3777
3643
  /**
3778
- * @returns
3644
+ * Returns textureDownloadId
3645
+ *
3646
+ * @param p1
3647
+ * @param name
3648
+ * @param p3
3649
+ * @returns gamerHandle
3779
3650
  */
3780
- static isHostOfThisScript() {
3781
- return inv('0x83CD99A1E6061AB5', rai());
3651
+ static mugshotTextureDownloadRequest(p1, name, p3) {
3652
+ const result = inv('0x9B5DB6CEAFAA10BB', pvi(), p1, name, p3, rai());
3653
+ return [result[0], result[1]];
3782
3654
  }
3783
3655
  /**
3784
- * @param p0
3785
- * @param index
3786
- * @returns
3656
+ * @returns gamerHandle
3787
3657
  */
3788
- static ugcQueryGetLanguage(p0, index) {
3789
- return inv('0x97764E8AC6487A9A', p0, index, rai());
3658
+ static isFriend() {
3659
+ const result = inv('0x1A24A179F9B31654', pvi(), rai());
3660
+ return [!!result[0], result[1]];
3790
3661
  }
3791
3662
  /**
3792
- * Note: this native was added in build 1355.30
3793
- *
3794
- * @param p0
3663
+ * @returns
3795
3664
  */
3796
- static N_0x422F9D6D6C7BC290(p0) {
3797
- inv('0x422F9D6D6C7BC290', p0);
3665
+ static isRecentGamerNamesRequestInProgress() {
3666
+ return inv('0x4664D213A0CCAF40');
3798
3667
  }
3799
3668
  /**
3800
- * @param propSet
3669
+ * @param scriptHash
3670
+ * @param p1
3671
+ * @param p2
3672
+ * @param p3
3801
3673
  * @returns
3802
3674
  */
3803
- static propsetToNet(propSet) {
3804
- return inv('0x74F99EF7EF503398', propSet.handle, rai());
3675
+ static isScriptActiveByHash(scriptHash, p1, p2, p3) {
3676
+ return inv('0x1B89BC43B6E69107', _h(scriptHash), p1, p2, p3);
3677
+ }
3678
+ static N_0x564552C6AF1EEAB1() {
3679
+ inv('0x564552C6AF1EEAB1');
3805
3680
  }
3806
3681
  /**
3807
- * @param p0
3682
+ * @returns
3808
3683
  */
3809
- static N_0x5CD3AAD8FF9ED121(p0) {
3810
- inv('0x5CD3AAD8FF9ED121', p0);
3684
+ static hasPendingInviteFailure() {
3685
+ return inv('0xD0498AD30E16B6BD');
3811
3686
  }
3812
3687
  /**
3813
- * @param netId
3688
+ * @param entity
3814
3689
  * @returns
3815
3690
  */
3816
- static netToAnimScene(netId) {
3817
- return createFromHandle('AnimScene', inv('0xD7F6781A0ABAF6FB', netId, rai()));
3691
+ static requestControlOfEntity(entity) {
3692
+ return inv('0xB69317BF5E782347', entity.handle, rai());
3818
3693
  }
3819
3694
  /**
3820
3695
  * @param p0
3821
- * @param index
3822
3696
  * @returns
3823
3697
  */
3824
- static ugcQueryGetContentHasPlayerRecord(p0, index) {
3825
- return inv('0xF794765390A6DCA5', p0, index);
3826
- }
3827
- static N_0x814729078AED6D30() {
3828
- inv('0x814729078AED6D30');
3698
+ static N_0xD7D0DF27CB1765B5(p0) {
3699
+ return inv('0xD7D0DF27CB1765B5', p0, rai());
3829
3700
  }
3830
3701
  /**
3831
3702
  * @returns
3832
3703
  */
3833
- static isSignedOnline() {
3834
- return inv('0x1077788E268557C2', rai());
3704
+ static canRefreshFriendPage() {
3705
+ return inv('0x1AF5E28E64A76A9F');
3835
3706
  }
3836
3707
  /**
3708
+ * Old name: _NETWORK_IS_PLAYER_EQUAL_TO_INDEX
3709
+ *
3710
+ * @param player
3711
+ * @param index
3837
3712
  * @returns
3838
3713
  */
3839
- static isInSpectatorMode() {
3840
- return inv('0x048746E388762E11', rai());
3714
+ static arePlayersInSameTutorialSession(player, index) {
3715
+ return inv('0x9DE986FC9A87C474', player.handle, index, rai());
3716
+ }
3717
+ static clearFoundGamers() {
3718
+ inv('0x6D14CCEE1B40381A');
3719
+ }
3720
+ static preventScriptHostMigration() {
3721
+ inv('0x2302C0264EA58D31');
3841
3722
  }
3842
3723
  /**
3843
3724
  * @param p0
@@ -3974,6 +3855,125 @@ export class Network {
3974
3855
  static getNumPeerNegotiationResponses() {
3975
3856
  return inv('0x4FE932E84FE932E8', rai());
3976
3857
  }
3858
+ /**
3859
+ * @param flags
3860
+ * @returns
3861
+ */
3862
+ static sessionRemovePlayerFlags(flags) {
3863
+ return inv('0x3215BBE34D3418C5', flags);
3864
+ }
3865
+ /**
3866
+ * @returns
3867
+ */
3868
+ static getTimeoutTime() {
3869
+ return inv('0x5ED0356A0CE3A34F', rai());
3870
+ }
3871
+ /**
3872
+ * @param p0
3873
+ */
3874
+ static setLocalPlayerInvisibleLocally(p0) {
3875
+ inv('0xE5F773C1A1D9D168', p0);
3876
+ }
3877
+ /**
3878
+ * @param threadId
3879
+ * @returns
3880
+ */
3881
+ static isThreadActive(threadId) {
3882
+ return inv('0x31DAD2CD6D49546E', threadId);
3883
+ }
3884
+ /**
3885
+ * Returns false if pedshot push failed
3886
+ *
3887
+ * @param texture
3888
+ * @param playerSlot
3889
+ * @param p2
3890
+ * @param personaPhotoLocalCacheType
3891
+ * @returns
3892
+ */
3893
+ static personaPhotoWriteLocal(texture, playerSlot, p2, personaPhotoLocalCacheType) {
3894
+ return inv('0x2A48D9567940598F', texture, playerSlot, p2, personaPhotoLocalCacheType);
3895
+ }
3896
+ /**
3897
+ * @param index
3898
+ * @returns
3899
+ */
3900
+ static getParticipantIndex(index) {
3901
+ return inv('0x1B84DF6AF2A46938', index, rai());
3902
+ }
3903
+ /**
3904
+ * @param p0
3905
+ */
3906
+ static N_0xD637D327080CD86E(p0) {
3907
+ inv('0xD637D327080CD86E', p0);
3908
+ }
3909
+ /**
3910
+ * @returns
3911
+ */
3912
+ static sessionIsAnyRequestInProgress() {
3913
+ return inv('0xBAFFDE5F953720D9');
3914
+ }
3915
+ /**
3916
+ * @param p0
3917
+ * @param p1
3918
+ * @param p2
3919
+ * @param p3
3920
+ * @param p4
3921
+ * @param p5
3922
+ * @returns
3923
+ */
3924
+ static isSphereVisibleToPlayer(p0, p1, p2, p3, p4, p5) {
3925
+ return inv('0xDC3A310219E5DA62', p0, p1, p2, p3, p4, p5, rai());
3926
+ }
3927
+ /**
3928
+ * @param netHandle
3929
+ * @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist.
3930
+ */
3931
+ static netToEnt(netHandle) {
3932
+ return createFromHandle('Entity', inv('0xBFFEAB45A9A9094A', netHandle, rai()));
3933
+ }
3934
+ /**
3935
+ * Note: this native was added in build 1311.23
3936
+ *
3937
+ * @returns
3938
+ */
3939
+ static N_0x062842D61D0D53FD() {
3940
+ return inv('0x062842D61D0D53FD', rai());
3941
+ }
3942
+ /**
3943
+ * @param p0
3944
+ */
3945
+ static N_0xFF36F36B07E69059(p0) {
3946
+ inv('0xFF36F36B07E69059', p0);
3947
+ }
3948
+ /**
3949
+ * @param flags
3950
+ * @returns
3951
+ */
3952
+ static sessionSetPlayerFlags(flags) {
3953
+ return inv('0x0AE241A4A9ADEEEC', flags);
3954
+ }
3955
+ /**
3956
+ * @param contentId
3957
+ * @param dataSize
3958
+ * @param p4
3959
+ * @param flags
3960
+ * @returns gamerHandle; data
3961
+ */
3962
+ static sendSessionInvite(contentId, dataSize, p4, flags) {
3963
+ const result = inv('0xE47001B7CB8B98AE', pvi(), contentId, pvi(), dataSize, p4, flags);
3964
+ return [result[0], result[1], result[2]];
3965
+ }
3966
+ static N_0x61BFBAA795E712AD() {
3967
+ inv('0x61BFBAA795E712AD');
3968
+ }
3969
+ /**
3970
+ * @param playerSlot
3971
+ * @param personaPhotoLocalCacheType
3972
+ * @returns
3973
+ */
3974
+ static localPlayerPedshotTextureDownloadRequest(playerSlot, personaPhotoLocalCacheType) {
3975
+ return inv('0x6E2FD8CF7EB10E53', playerSlot, personaPhotoLocalCacheType, rai());
3976
+ }
3977
3977
  /**
3978
3978
  * Hardcoded to return zero.
3979
3979
  *