@nativewrappers/redm-codegen 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/dist/classes/AnimScene.d.ts +109 -109
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +158 -158
  4. package/dist/classes/BaseModel.d.ts +34 -34
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +53 -53
  7. package/dist/classes/BaseTask.d.ts +36 -36
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +44 -44
  10. package/dist/classes/Cam.d.ts +91 -91
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +124 -124
  13. package/dist/classes/Entity.d.ts +507 -502
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +723 -714
  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/ItemSet.d.ts +2 -2
  20. package/dist/classes/ItemSet.d.ts.map +1 -1
  21. package/dist/classes/ItemSet.js +3 -3
  22. package/dist/classes/Ped.d.ts +286 -286
  23. package/dist/classes/Ped.d.ts.map +1 -1
  24. package/dist/classes/Ped.js +425 -425
  25. package/dist/classes/PedModel.d.ts +1 -1
  26. package/dist/classes/PedModel.d.ts.map +1 -1
  27. package/dist/classes/PedModel.js +2 -2
  28. package/dist/classes/PedTask.d.ts +770 -770
  29. package/dist/classes/PedTask.d.ts.map +1 -1
  30. package/dist/classes/PedTask.js +985 -985
  31. package/dist/classes/PersChar.d.ts +11 -11
  32. package/dist/classes/PersChar.d.ts.map +1 -1
  33. package/dist/classes/PersChar.js +23 -23
  34. package/dist/classes/Pickup.d.ts +6 -6
  35. package/dist/classes/Pickup.d.ts.map +1 -1
  36. package/dist/classes/Pickup.js +12 -12
  37. package/dist/classes/Player.d.ts +237 -233
  38. package/dist/classes/Player.d.ts.map +1 -1
  39. package/dist/classes/Player.js +309 -303
  40. package/dist/classes/Prop.d.ts +126 -126
  41. package/dist/classes/Prop.d.ts.map +1 -1
  42. package/dist/classes/Prop.js +180 -180
  43. package/dist/classes/PropSet.d.ts +16 -16
  44. package/dist/classes/PropSet.d.ts.map +1 -1
  45. package/dist/classes/PropSet.js +22 -22
  46. package/dist/classes/Vehicle.d.ts +122 -122
  47. package/dist/classes/Vehicle.d.ts.map +1 -1
  48. package/dist/classes/Vehicle.js +147 -147
  49. package/dist/classes/VehicleModel.d.ts +1 -1
  50. package/dist/classes/VehicleModel.d.ts.map +1 -1
  51. package/dist/classes/VehicleModel.js +2 -2
  52. package/dist/classes/VehicleTask.d.ts +17 -17
  53. package/dist/classes/VehicleTask.d.ts.map +1 -1
  54. package/dist/classes/VehicleTask.js +24 -24
  55. package/dist/classes/Volume.d.ts +44 -44
  56. package/dist/classes/Volume.d.ts.map +1 -1
  57. package/dist/classes/Volume.js +58 -58
  58. package/dist/classes/Weapon.d.ts +243 -243
  59. package/dist/classes/Weapon.d.ts.map +1 -1
  60. package/dist/classes/Weapon.js +339 -339
  61. package/dist/namespaces/Aicoverpoint.d.ts +23 -23
  62. package/dist/namespaces/Aicoverpoint.d.ts.map +1 -1
  63. package/dist/namespaces/Aicoverpoint.js +35 -35
  64. package/dist/namespaces/Aitransport.d.ts +78 -78
  65. package/dist/namespaces/Aitransport.d.ts.map +1 -1
  66. package/dist/namespaces/Aitransport.js +95 -95
  67. package/dist/namespaces/Animscene.d.ts +37 -37
  68. package/dist/namespaces/Animscene.d.ts.map +1 -1
  69. package/dist/namespaces/Animscene.js +51 -51
  70. package/dist/namespaces/Audio.d.ts +395 -395
  71. package/dist/namespaces/Audio.d.ts.map +1 -1
  72. package/dist/namespaces/Audio.js +530 -530
  73. package/dist/namespaces/Bounty.d.ts +23 -23
  74. package/dist/namespaces/Bounty.d.ts.map +1 -1
  75. package/dist/namespaces/Bounty.js +40 -40
  76. package/dist/namespaces/Brain.d.ts +15 -15
  77. package/dist/namespaces/Brain.d.ts.map +1 -1
  78. package/dist/namespaces/Brain.js +20 -20
  79. package/dist/namespaces/CamStatics.d.ts +483 -483
  80. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  81. package/dist/namespaces/CamStatics.js +693 -693
  82. package/dist/namespaces/Clock.d.ts +51 -51
  83. package/dist/namespaces/Clock.d.ts.map +1 -1
  84. package/dist/namespaces/Clock.js +73 -73
  85. package/dist/namespaces/Collection.d.ts +6 -6
  86. package/dist/namespaces/Collection.d.ts.map +1 -1
  87. package/dist/namespaces/Collection.js +11 -11
  88. package/dist/namespaces/Compapp.js +1 -1
  89. package/dist/namespaces/Compendium.d.ts +58 -58
  90. package/dist/namespaces/Compendium.d.ts.map +1 -1
  91. package/dist/namespaces/Compendium.js +83 -83
  92. package/dist/namespaces/Crashlog.js +9 -9
  93. package/dist/namespaces/Crew.d.ts +9 -9
  94. package/dist/namespaces/Crew.d.ts.map +1 -1
  95. package/dist/namespaces/Crew.js +18 -18
  96. package/dist/namespaces/Databinding.d.ts +146 -146
  97. package/dist/namespaces/Databinding.d.ts.map +1 -1
  98. package/dist/namespaces/Databinding.js +218 -218
  99. package/dist/namespaces/Datafile.js +4 -4
  100. package/dist/namespaces/Decorator.d.ts +19 -19
  101. package/dist/namespaces/Decorator.d.ts.map +1 -1
  102. package/dist/namespaces/Decorator.js +34 -34
  103. package/dist/namespaces/Dlc.js +2 -2
  104. package/dist/namespaces/EntityStatics.d.ts +186 -186
  105. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  106. package/dist/namespaces/EntityStatics.js +249 -249
  107. package/dist/namespaces/Event.js +4 -4
  108. package/dist/namespaces/Fire.d.ts +89 -89
  109. package/dist/namespaces/Fire.d.ts.map +1 -1
  110. package/dist/namespaces/Fire.js +115 -115
  111. package/dist/namespaces/Flock.js +2 -2
  112. package/dist/namespaces/Gang.js +2 -2
  113. package/dist/namespaces/GoogleAnalytics.js +2 -2
  114. package/dist/namespaces/Graphics.d.ts +776 -776
  115. package/dist/namespaces/Graphics.d.ts.map +1 -1
  116. package/dist/namespaces/Graphics.js +1120 -1120
  117. package/dist/namespaces/Hud.d.ts +497 -497
  118. package/dist/namespaces/Hud.d.ts.map +1 -1
  119. package/dist/namespaces/Hud.js +748 -748
  120. package/dist/namespaces/Ik.js +1 -1
  121. package/dist/namespaces/Interaction.js +3 -3
  122. package/dist/namespaces/InteriorStatics.d.ts +40 -40
  123. package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
  124. package/dist/namespaces/InteriorStatics.js +57 -57
  125. package/dist/namespaces/Inventory.d.ts +205 -205
  126. package/dist/namespaces/Inventory.d.ts.map +1 -1
  127. package/dist/namespaces/Inventory.js +340 -340
  128. package/dist/namespaces/Itemdatabase.d.ts +78 -78
  129. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  130. package/dist/namespaces/Itemdatabase.js +109 -109
  131. package/dist/namespaces/Itemset.js +2 -2
  132. package/dist/namespaces/Law.d.ts +1 -1
  133. package/dist/namespaces/Law.d.ts.map +1 -1
  134. package/dist/namespaces/Law.js +19 -19
  135. package/dist/namespaces/Localization.js +1 -1
  136. package/dist/namespaces/Map.d.ts +156 -156
  137. package/dist/namespaces/Map.d.ts.map +1 -1
  138. package/dist/namespaces/Map.js +209 -209
  139. package/dist/namespaces/Minigame.d.ts +66 -66
  140. package/dist/namespaces/Minigame.d.ts.map +1 -1
  141. package/dist/namespaces/Minigame.js +111 -111
  142. package/dist/namespaces/Misc.d.ts +3 -3
  143. package/dist/namespaces/Misc.d.ts.map +1 -1
  144. package/dist/namespaces/Misc.js +35 -35
  145. package/dist/namespaces/Missiondata.js +1 -1
  146. package/dist/namespaces/Money.js +3 -3
  147. package/dist/namespaces/Netshopping.d.ts +58 -58
  148. package/dist/namespaces/Netshopping.d.ts.map +1 -1
  149. package/dist/namespaces/Netshopping.js +89 -89
  150. package/dist/namespaces/Network.d.ts +1199 -1199
  151. package/dist/namespaces/Network.d.ts.map +1 -1
  152. package/dist/namespaces/Network.js +1650 -1650
  153. package/dist/namespaces/Object.d.ts +262 -262
  154. package/dist/namespaces/Object.d.ts.map +1 -1
  155. package/dist/namespaces/Object.js +367 -367
  156. package/dist/namespaces/Pad.d.ts +102 -102
  157. package/dist/namespaces/Pad.d.ts.map +1 -1
  158. package/dist/namespaces/Pad.js +141 -141
  159. package/dist/namespaces/Pathfind.js +10 -10
  160. package/dist/namespaces/PedStatics.d.ts +2 -2
  161. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  162. package/dist/namespaces/PedStatics.js +10 -10
  163. package/dist/namespaces/Perschar.d.ts +42 -42
  164. package/dist/namespaces/Perschar.d.ts.map +1 -1
  165. package/dist/namespaces/Perschar.js +59 -59
  166. package/dist/namespaces/Physics.d.ts +37 -37
  167. package/dist/namespaces/Physics.d.ts.map +1 -1
  168. package/dist/namespaces/Physics.js +54 -54
  169. package/dist/namespaces/PlayerStatics.d.ts +68 -68
  170. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  171. package/dist/namespaces/PlayerStatics.js +104 -104
  172. package/dist/namespaces/Population.d.ts +86 -86
  173. package/dist/namespaces/Population.d.ts.map +1 -1
  174. package/dist/namespaces/Population.js +116 -116
  175. package/dist/namespaces/Posse.d.ts +48 -48
  176. package/dist/namespaces/Posse.d.ts.map +1 -1
  177. package/dist/namespaces/Posse.js +78 -78
  178. package/dist/namespaces/Propset.d.ts +59 -59
  179. package/dist/namespaces/Propset.d.ts.map +1 -1
  180. package/dist/namespaces/Propset.js +81 -81
  181. package/dist/namespaces/Replay.d.ts +1 -1
  182. package/dist/namespaces/Replay.d.ts.map +1 -1
  183. package/dist/namespaces/Replay.js +2 -2
  184. package/dist/namespaces/Scripts.d.ts +1 -1
  185. package/dist/namespaces/Scripts.d.ts.map +1 -1
  186. package/dist/namespaces/Scripts.js +12 -12
  187. package/dist/namespaces/Socialclub.js +8 -8
  188. package/dist/namespaces/Socialclubfeed.js +1 -1
  189. package/dist/namespaces/Spactionproxy.js +4 -4
  190. package/dist/namespaces/Stats.d.ts +203 -203
  191. package/dist/namespaces/Stats.d.ts.map +1 -1
  192. package/dist/namespaces/Stats.js +294 -294
  193. package/dist/namespaces/Streaming.d.ts +128 -128
  194. package/dist/namespaces/Streaming.d.ts.map +1 -1
  195. package/dist/namespaces/Streaming.js +202 -202
  196. package/dist/namespaces/Task.d.ts +366 -366
  197. package/dist/namespaces/Task.d.ts.map +1 -1
  198. package/dist/namespaces/Task.js +517 -517
  199. package/dist/namespaces/Telemetry.d.ts +83 -83
  200. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  201. package/dist/namespaces/Telemetry.js +111 -111
  202. package/dist/namespaces/Txd.js +1 -1
  203. package/dist/namespaces/Uiapps.d.ts +25 -25
  204. package/dist/namespaces/Uiapps.d.ts.map +1 -1
  205. package/dist/namespaces/Uiapps.js +36 -36
  206. package/dist/namespaces/Uievents.js +1 -1
  207. package/dist/namespaces/Uifeed.js +1 -1
  208. package/dist/namespaces/Uistickyfeed.d.ts +16 -16
  209. package/dist/namespaces/Uistickyfeed.d.ts.map +1 -1
  210. package/dist/namespaces/Uistickyfeed.js +21 -21
  211. package/dist/namespaces/Unlock.js +5 -5
  212. package/dist/namespaces/VehicleStatics.js +12 -12
  213. package/dist/namespaces/Voice.js +7 -7
  214. package/dist/namespaces/VolumeStatics.d.ts +99 -99
  215. package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
  216. package/dist/namespaces/VolumeStatics.js +137 -137
  217. package/dist/namespaces/Water.d.ts +27 -27
  218. package/dist/namespaces/Water.d.ts.map +1 -1
  219. package/dist/namespaces/Water.js +41 -41
  220. package/dist/namespaces/WeaponStatics.d.ts +206 -206
  221. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  222. package/dist/namespaces/WeaponStatics.js +303 -303
  223. package/dist/types/NativeAliases.d.ts +3 -1
  224. package/dist/types/NativeAliases.d.ts.map +1 -1
  225. package/dist/types/NativeAliases.js +3 -1
  226. package/package.json +1 -1
  227. package/src/classes/AnimScene.ts +164 -164
  228. package/src/classes/BaseModel.ts +60 -60
  229. package/src/classes/BaseTask.ts +46 -46
  230. package/src/classes/Cam.ts +136 -136
  231. package/src/classes/Entity.ts +738 -727
  232. package/src/classes/Interior.ts +43 -43
  233. package/src/classes/ItemSet.ts +3 -3
  234. package/src/classes/Ped.ts +432 -432
  235. package/src/classes/PedModel.ts +2 -2
  236. package/src/classes/PedTask.ts +1023 -1023
  237. package/src/classes/PersChar.ts +28 -28
  238. package/src/classes/Pickup.ts +13 -13
  239. package/src/classes/Player.ts +326 -319
  240. package/src/classes/Prop.ts +185 -185
  241. package/src/classes/PropSet.ts +25 -25
  242. package/src/classes/Vehicle.ts +147 -147
  243. package/src/classes/VehicleModel.ts +2 -2
  244. package/src/classes/VehicleTask.ts +27 -27
  245. package/src/classes/Volume.ts +62 -62
  246. package/src/classes/Weapon.ts +358 -358
  247. package/src/namespaces/Aicoverpoint.ts +40 -40
  248. package/src/namespaces/Aitransport.ts +104 -104
  249. package/src/namespaces/Animscene.ts +55 -55
  250. package/src/namespaces/Audio.ts +565 -565
  251. package/src/namespaces/Bounty.ts +46 -46
  252. package/src/namespaces/Brain.ts +22 -22
  253. package/src/namespaces/CamStatics.ts +706 -706
  254. package/src/namespaces/Clock.ts +82 -82
  255. package/src/namespaces/Collection.ts +12 -12
  256. package/src/namespaces/Compapp.ts +1 -1
  257. package/src/namespaces/Compendium.ts +94 -94
  258. package/src/namespaces/Crashlog.ts +9 -9
  259. package/src/namespaces/Crew.ts +20 -20
  260. package/src/namespaces/Databinding.ts +222 -222
  261. package/src/namespaces/Datafile.ts +4 -4
  262. package/src/namespaces/Decorator.ts +37 -37
  263. package/src/namespaces/Dlc.ts +2 -2
  264. package/src/namespaces/EntityStatics.ts +259 -259
  265. package/src/namespaces/Event.ts +4 -4
  266. package/src/namespaces/Fire.ts +127 -127
  267. package/src/namespaces/Flock.ts +2 -2
  268. package/src/namespaces/Gang.ts +2 -2
  269. package/src/namespaces/GoogleAnalytics.ts +2 -2
  270. package/src/namespaces/Graphics.ts +1081 -1081
  271. package/src/namespaces/Hud.ts +767 -767
  272. package/src/namespaces/Ik.ts +1 -1
  273. package/src/namespaces/Interaction.ts +3 -3
  274. package/src/namespaces/InteriorStatics.ts +65 -65
  275. package/src/namespaces/Inventory.ts +352 -352
  276. package/src/namespaces/Itemdatabase.ts +121 -121
  277. package/src/namespaces/Itemset.ts +2 -2
  278. package/src/namespaces/Law.ts +20 -20
  279. package/src/namespaces/Localization.ts +1 -1
  280. package/src/namespaces/Map.ts +217 -217
  281. package/src/namespaces/Minigame.ts +119 -119
  282. package/src/namespaces/Misc.ts +38 -38
  283. package/src/namespaces/Missiondata.ts +1 -1
  284. package/src/namespaces/Money.ts +3 -3
  285. package/src/namespaces/Netshopping.ts +99 -99
  286. package/src/namespaces/Network.ts +1738 -1738
  287. package/src/namespaces/Object.ts +370 -370
  288. package/src/namespaces/Pad.ts +155 -155
  289. package/src/namespaces/Pathfind.ts +10 -10
  290. package/src/namespaces/PedStatics.ts +12 -12
  291. package/src/namespaces/Perschar.ts +67 -67
  292. package/src/namespaces/Physics.ts +62 -62
  293. package/src/namespaces/PlayerStatics.ts +112 -112
  294. package/src/namespaces/Population.ts +131 -131
  295. package/src/namespaces/Posse.ts +81 -81
  296. package/src/namespaces/Propset.ts +92 -92
  297. package/src/namespaces/Replay.ts +3 -3
  298. package/src/namespaces/Scripts.ts +13 -13
  299. package/src/namespaces/Socialclub.ts +8 -8
  300. package/src/namespaces/Socialclubfeed.ts +1 -1
  301. package/src/namespaces/Spactionproxy.ts +4 -4
  302. package/src/namespaces/Stats.ts +296 -296
  303. package/src/namespaces/Streaming.ts +236 -236
  304. package/src/namespaces/Task.ts +583 -583
  305. package/src/namespaces/Telemetry.ts +125 -125
  306. package/src/namespaces/Txd.ts +1 -1
  307. package/src/namespaces/Uiapps.ts +43 -43
  308. package/src/namespaces/Uievents.ts +1 -1
  309. package/src/namespaces/Uifeed.ts +1 -1
  310. package/src/namespaces/Uistickyfeed.ts +23 -23
  311. package/src/namespaces/Unlock.ts +5 -5
  312. package/src/namespaces/VehicleStatics.ts +12 -12
  313. package/src/namespaces/Voice.ts +7 -7
  314. package/src/namespaces/VolumeStatics.ts +143 -143
  315. package/src/namespaces/Water.ts +47 -47
  316. package/src/namespaces/WeaponStatics.ts +311 -311
  317. package/src/types/NativeAliases.ts +6 -1
@@ -1,108 +1,94 @@
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
- static disableRealtimeMultiplayer() {
5
- inv('0x236905C700FDB54D');
6
- }
7
4
  /**
8
- * @param volume
5
+ * @param description
6
+ * @returns
9
7
  */
10
- static spawnConfigRemoveExclusionVolume(volume) {
11
- inv('0xA35E7BF20FA269E0', volume.handle);
8
+ static ugcDidDescriptionRequestSucceed(description) {
9
+ return !!inv('0x162C23CA83ED0A62', _h(description), rai());
12
10
  }
13
11
  /**
14
- * @param tunableContext
15
- * @param tunableName
16
12
  * @returns
17
13
  */
18
- static doesTunableExist(tunableContext, tunableName) {
19
- return inv('0x85E5F8B9B898B20A', _h(tunableContext), _h(tunableName), rai());
14
+ static getGameMode() {
15
+ return inv('0x225640E09EFFDC3F', rai());
20
16
  }
21
17
  /**
22
- * Note: this native was added in build 1311.23
23
- *
24
- * @param p0
25
- * @returns
18
+ * @param amount
26
19
  */
27
- static N_0x982D7AD755B8F62C(p0) {
28
- return inv('0x982D7AD755B8F62C', p0, rai());
29
- }
30
- static startSoloTutorialSession() {
31
- inv('0x17E0198B3882C2CB');
20
+ static reserveNetworkClientMissionPeds(amount) {
21
+ inv('0x807E119F80231732', amount);
32
22
  }
33
23
  /**
34
24
  * @param p0
25
+ * @param p1
35
26
  * @param p2
36
27
  * @param p3
37
- * @returns p1
38
28
  */
39
- static setRichPresence(p0, p2, p3) {
40
- const result = inv('0x1DCCACDCFC569362', p0, pvi(), p2, p3);
41
- return result;
29
+ static setInMpCutscene(p0, p1, p2, p3) {
30
+ inv('0x9CA5DE655269FEC4', p0, p1, p2, p3);
42
31
  }
43
32
  /**
44
- * @returns
33
+ * @param toggle
34
+ * @param playerPed
45
35
  */
46
- static pedmugshotTake() {
47
- return inv('0xCD954F330693F5F2');
36
+ static setInSpectatorMode(toggle, playerPed) {
37
+ inv('0x423DE3854BB50894', toggle, playerPed.handle);
48
38
  }
49
39
  /**
50
- * @param entity
40
+ * @param p0
51
41
  */
52
- static N_0xBB1EC8C2EEF33BAA(entity) {
53
- inv('0xBB1EC8C2EEF33BAA', entity.handle);
42
+ static N_0x3E74A687A73979C6(p0) {
43
+ inv('0x3E74A687A73979C6', p0);
54
44
  }
55
45
  /**
56
- * @returns
46
+ * @returns sessionRequestId
57
47
  */
58
- static haveOnlinePrivileges() {
59
- return inv('0x25CB5A9F37BFD063', rai());
48
+ static sessionIsRequestPendingTransition() {
49
+ const result = inv('0xCCF878D50F8AB10D', pvi());
50
+ return [result[0], result[1]];
60
51
  }
61
52
  /**
62
- * @param p0
63
- * @param index
64
- * @returns
53
+ * @param offset
65
54
  */
66
- static ugcQueryGetRootContentId(p0, index) {
67
- return inv('0x566CEB0542EF5ECF', p0, index, ras());
55
+ static spawnConfigSetGroundToRootOffset(offset) {
56
+ inv('0x59577799F6AE2F34', f(offset));
68
57
  }
69
58
  /**
70
59
  * @returns
71
60
  */
72
- static didFindGamersSucceed() {
73
- return inv('0xF9B83B77929D8863');
74
- }
75
- static N_0x0BF90CBB6B72977B() {
76
- inv('0x0BF90CBB6B72977B');
61
+ static checkAccessAndAlertIfFail() {
62
+ return inv('0x2A8112A974DE1EF6');
77
63
  }
78
64
  /**
79
- * @returns gamerHandle
65
+ * Note: this native was added in build 1311.23
66
+ *
67
+ * @returns
80
68
  */
81
- static getLocalHandle() {
82
- const result = inv('0xE86051786B66CD8E', pvi());
83
- return result;
69
+ static N_0xFB3205788F8AFA3F() {
70
+ return inv('0xFB3205788F8AFA3F', rai());
84
71
  }
85
72
  /**
86
- * nullsub, doesn't do anything
87
- *
88
- * @param p0
73
+ * @returns
89
74
  */
90
- static N_0x2C4E98DDA475364F(p0) {
91
- inv('0x2C4E98DDA475364F', p0);
75
+ static getNumRecentGamers() {
76
+ return inv('0x37A834AEC6A4F74A', rai());
92
77
  }
93
78
  /**
94
- * @param entity
95
79
  * @returns
96
80
  */
97
- static getGlobalEntityFlags(entity) {
98
- return inv('0xDD7806FD0543BC3D', entity.handle, rai());
81
+ static N_0xD3A3C8B9F3BDEF81() {
82
+ return inv('0xD3A3C8B9F3BDEF81');
99
83
  }
100
84
  /**
101
- * @param description
85
+ * Returns the entity's network ID.
86
+ *
87
+ * @param entity
102
88
  * @returns
103
89
  */
104
- static ugcHasDescriptionRequestFinished(description) {
105
- return inv('0xEBFA8D50ADDC54C4', _h(description), rai());
90
+ static N_0xF302AB9D978352EE(entity) {
91
+ return inv('0xF302AB9D978352EE', entity.handle, rai());
106
92
  }
107
93
  /**
108
94
  * @param contentTypeName
@@ -155,7 +141,7 @@ export class Network {
155
141
  * @returns
156
142
  */
157
143
  static isPlayerConcealed(player) {
158
- return inv('0x919B3C98ED8292F9', player.handle, rai());
144
+ return !!inv('0x919B3C98ED8292F9', player.handle, rai());
159
145
  }
160
146
  /**
161
147
  * @param description
@@ -168,7 +154,7 @@ export class Network {
168
154
  * @returns
169
155
  */
170
156
  static sessionLeaveSession() {
171
- return inv('0x17C21B7319A05047', rai());
157
+ return !!inv('0x17C21B7319A05047', rai());
172
158
  }
173
159
  /**
174
160
  * Hardcoded to return false.
@@ -204,7 +190,7 @@ export class Network {
204
190
  * @returns
205
191
  */
206
192
  static N_0xDCA4A74135E1DEA5(p0) {
207
- return inv('0xDCA4A74135E1DEA5', p0, rai());
193
+ return !!inv('0xDCA4A74135E1DEA5', p0, rai());
208
194
  }
209
195
  /**
210
196
  * @returns gamerHandle
@@ -229,732 +215,691 @@ export class Network {
229
215
  return createFromHandle('Entity', inv('0xCE4E5D9B0A4FF560', netId, rai()));
230
216
  }
231
217
  /**
232
- * Returns string for GET_STATUS_OF_LOAD_MISSION_CREATOR_PHOTO
233
- *
234
- * @param p0
235
- * @param p1
236
- * @param p2
237
- * @returns
218
+ * Note: this native was added in build 1311.23, but was only used after build 1436.25
238
219
  */
239
- static ugcQueryGetCreatorPhoto(p0, p1, p2) {
240
- return inv('0x409FE0CA6A4D1D49', p0, p1, p2, ras());
220
+ static requestCloudTunables() {
221
+ inv('0x42FB3B532D526E6C');
241
222
  }
242
223
  /**
243
224
  * @param toggle
244
225
  */
245
- static setRecentGamersEnabled(toggle) {
246
- inv('0x29FE035D35B8589C', toggle);
226
+ static setScriptReadyForEvents(toggle) {
227
+ inv('0x7AC752103856FB20', toggle);
247
228
  }
248
229
  /**
230
+ * @param amount
249
231
  * @returns
250
232
  */
251
- static getLaunchParamString() {
252
- return inv('0xC59AB6A04333C502', ras());
233
+ static canRegisterMissionPeds(amount) {
234
+ return !!inv('0xBCBF4FEF9FA5D781', amount, rai());
253
235
  }
254
236
  /**
255
- * @param entity
256
- * @param toggle
237
+ * @returns gamerHandle1; gamerHandle2
257
238
  */
258
- static setEntityRemainsWhenUnnetworked(entity, toggle) {
259
- inv('0xD785864798258032', entity.handle, toggle);
239
+ static areHandlesTheSame() {
240
+ const result = inv('0x57DBA049E110F217', pvi(), pvi(), rai());
241
+ return [!!result[0], result[1], result[2]];
260
242
  }
261
243
  /**
262
- * @param flags
263
- * @param userHash
264
- * @param p2
265
- * @returns sessionRequestId
244
+ * Old name: _SET_LOCAL_PLAYER_AS_GHOST
245
+ *
246
+ * @param toggle
266
247
  */
267
- static sessionRequestSessionNominated(flags, userHash, p2) {
268
- const result = inv('0x4F4672457FF597D1', flags, userHash, p2, pvi(), rai());
269
- return [!!result[0], result[1]];
248
+ static setLocalPlayerAsGhost(toggle) {
249
+ inv('0x5FFE9B4144F9712F', toggle);
270
250
  }
271
251
  /**
272
- * @param description
273
- * @returns
252
+ * Example: char displayName[64];
253
+ * if (_NETWORK_GET_DISPLAY_NAME_FROM_HANDLE(handle, displayName))
254
+ * {
255
+ * // use displayName
256
+ * }
257
+ *
258
+ * @param displayName
259
+ * @returns gamerHandle
274
260
  */
275
- static ugcIsDescriptionRequestInProgress(description) {
276
- return inv('0x2D5DC831176D0114', _h(description), rai());
261
+ static getDisplayNameFromHandle(displayName) {
262
+ const result = inv('0x7FEE4F07C54B6B3C', pvi(), displayName);
263
+ return [result[0], result[1]];
277
264
  }
278
- /**
279
- * @param ugcRequestId
280
- */
281
- static ugcClearQueryResults(ugcRequestId) {
282
- inv('0xE931354FEA710038', ugcRequestId);
265
+ static endTutorialSession() {
266
+ inv('0xD0AFAFF5A51D72F7');
283
267
  }
284
268
  /**
285
- * @param threadId
286
- * @returns
269
+ * @param p0
270
+ * @param p2
271
+ * @returns p1
287
272
  */
288
- static getHostOfThread(threadId) {
289
- return createFromHandle('Player', inv('0xB4A25351D79B444C', threadId, rai()));
273
+ static isPlayerAParticipantOnScript(p0, p2) {
274
+ const result = inv('0x1AD5B71586B94820', p0.handle, pvi(), p2, rai());
275
+ return [!!result[0], result[1]];
290
276
  }
291
277
  /**
292
278
  * @returns
293
279
  */
294
- static isGameInProgress() {
295
- return inv('0x10FAB35428CCC9D7', rai());
280
+ static getTotalNumFriends() {
281
+ return inv('0xDB7ABDD203FA3704', rai());
296
282
  }
297
283
  /**
298
- * @param rangeStart
299
- * @param rangeEnd
284
+ * Returns ugcRequestId
285
+ *
286
+ * @param p0
287
+ * @param maxGet
288
+ * @param contentTypeName
289
+ * @param p3
290
+ * @param p4
291
+ * @param p5
300
292
  * @returns
301
293
  */
302
- static getRandomIntRanged(rangeStart, rangeEnd) {
303
- return inv('0xE30CF56F1EFA5F43', rangeStart, rangeEnd, rai());
294
+ static ugcQueryByContentType(p0, maxGet, contentTypeName, p3, p4, p5) {
295
+ return inv('0xF40EF49B3099E98E', p0, maxGet, contentTypeName, p3, p4, p5, rai());
304
296
  }
305
297
  /**
306
298
  * @param p0
299
+ * @param index
300
+ * @param p2
307
301
  * @returns
308
302
  */
309
- static acceptRsInvite(p0) {
310
- return inv('0xB2CEA5105AAC8DDE', p0);
303
+ static ugcQueryGetRating(p0, index, p2) {
304
+ return inv('0x24CD8FAEA1368379', p0, index, p2, raf());
311
305
  }
312
306
  /**
313
307
  * @param player
314
- * @param toggle
315
308
  */
316
- static concealPlayer(player, toggle) {
317
- inv('0xBBDF066252829606', player.handle, toggle);
309
+ static N_0xD78A26024BB13E08(player) {
310
+ inv('0xD78A26024BB13E08', player.handle);
318
311
  }
319
312
  /**
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
313
+ * Only used in R* Script fm_race_controller
321
314
  *
322
- * @param entity
323
- * @param toggle
315
+ * @param p0
324
316
  */
325
- static setEntityOnlyExistsForParticipants(entity, toggle) {
326
- inv('0xF1CA12B18AEF5298', entity.handle, toggle);
317
+ static N_0x71FA2D1880C48032(p0) {
318
+ inv('0x71FA2D1880C48032', p0);
327
319
  }
328
320
  /**
329
- * @param doorHash
321
+ * Note: this native was added in build 1311.23
322
+ *
323
+ * @param p0
324
+ * @param p1
325
+ * @param p2
326
+ * @param p3
327
+ * @returns
330
328
  */
331
- static setDoorNetworked(doorHash) {
332
- inv('0x51D99497ABF3F451', _h(doorHash));
329
+ static N_0x5F328FC909F0E0FF(p0, p1, p2, p3) {
330
+ return !!inv('0x5F328FC909F0E0FF', p0, p1, p2, p3, rai());
333
331
  }
334
332
  /**
335
- * @param p0
336
- * @param index
337
- * @returns gamerHandle
333
+ * Old name: _NETWORK_SET_VEHICLE_WHEELS_DESTRUCTIBLE
334
+ *
335
+ * @param entity
336
+ * @param p1
338
337
  */
339
- static ugcQueryGetCreatorHandle(p0, index) {
340
- const result = inv('0xADB56322EEDFBDC9', p0, index, pvi());
341
- return [result[0], result[1]];
338
+ static triggerDamageEventForZeroDamage(entity, p1) {
339
+ inv('0x0C8BC052AE87D744', entity.handle, p1);
342
340
  }
343
341
  /**
344
- * @param paramName
342
+ * nullsub, doesn't do anything
343
+ *
345
344
  * @returns
346
345
  */
347
- static getLaunchParamExists(paramName) {
348
- return inv('0x02E97CE283648CD9', paramName);
346
+ static getNetStatisticsInfo() {
347
+ return inv('0x6FD992C4A1C1B986');
349
348
  }
350
349
  /**
351
- * @returns gamerHandle
350
+ * nullsub, doesn't do anything
352
351
  */
353
- static canReceiveInviteFromHandle() {
354
- const result = inv('0xF23D6475640D29EB', pvi());
355
- return [result[0], result[1]];
352
+ static N_0xFC6FCF4C03F1BBF6() {
353
+ inv('0xFC6FCF4C03F1BBF6');
356
354
  }
357
- /**
358
- * @param player
359
- * @param p1
360
- */
361
- static addPlayerToRecentGamersList(player, p1) {
362
- inv('0x157D8F3DE12B307F', player.handle, p1);
355
+ static N_0x43CF999205084B4B() {
356
+ inv('0x43CF999205084B4B');
363
357
  }
364
358
  /**
359
+ * p0 appears to be for MP
360
+ *
361
+ * @param p0
365
362
  * @returns
366
363
  */
367
- static N_0x232E1EB23CDB313C() {
368
- return inv('0x232E1EB23CDB313C', rai());
369
- }
370
- /**
371
- * Note: this native was added in build 1311.23
372
- *
373
- * @returns sessionId1; sessionId2
374
- */
375
- static sessionAreSessionIdsEqual() {
376
- const result = inv('0x4DEC5000F7B508F0', pvi(), pvi(), rai());
377
- return [!!result[0], result[1], result[2]];
364
+ static getNumReservedMissionVehicles(p0) {
365
+ return inv('0xCF3A965906452031', p0, rai());
378
366
  }
379
367
  /**
368
+ * @param name
380
369
  * @returns
381
370
  */
382
- static isTutorialSessionChangePending() {
383
- return inv('0x35F0B98A8387274D', rai());
384
- }
385
- static ugcReleaseAllCachedDescriptions() {
386
- inv('0x68103E2247887242');
371
+ static textureDownloadTextureNameIsValid(name) {
372
+ return inv('0xE2C3CEC3C0903A00', name);
387
373
  }
388
374
  /**
389
- * @param animScene
375
+ * @param scriptName
376
+ * @param p1
377
+ * @param p2
378
+ * @param p3
390
379
  * @returns
391
380
  */
392
- static requestControlOfAnimScene(animScene) {
393
- return inv('0xAAA92B631B13F614', animScene.handle);
394
- }
395
- static setMissionFinished() {
396
- inv('0x3B3D11CD9FFCDFC9');
381
+ static isScriptActive(scriptName, p1, p2, p3) {
382
+ return !!inv('0x9D40DF90FAD26098', scriptName, p1, p2, p3, rai());
397
383
  }
398
384
  /**
399
- * Note: this native was added in build 1311.23
400
- *
401
385
  * @param p0
402
- * @returns
403
386
  */
404
- static N_0x1E4E097D71D449FB(p0) {
405
- return inv('0x1E4E097D71D449FB', p0, rai());
387
+ static N_0x5CB8B0C846D0F30B(p0) {
388
+ inv('0x5CB8B0C846D0F30B', p0);
406
389
  }
407
390
  /**
408
- * Note: this native was added in build 1311.23
409
- *
410
- * @param p0
391
+ * @returns loadingState
411
392
  */
412
- static N_0xC1968045EEB563B7(p0) {
413
- inv('0xC1968045EEB563B7', p0);
393
+ static canAccessMultiplayer() {
394
+ const result = inv('0xAF50DA1A3F8B1BA4', pvi(), rai());
395
+ return [!!result[0], result[1]];
414
396
  }
415
397
  /**
416
- * Old name: _CLEAR_LAUNCH_PARAMS
398
+ * @returns p0
417
399
  */
418
- static clearServiceEventArguments() {
419
- inv('0x966DD84FB6A46017');
400
+ static getCurrentFriendPageData() {
401
+ const result = inv('0xA3EEC0A5AFF3FC5B', pvi());
402
+ return [result[0], result[1]];
420
403
  }
421
404
  /**
422
- * Old name: _NETWORK_ALLOW_LOCAL_ENTITY_ATTACHMENT
423
- *
424
- * @param entity
425
- * @param toggle
405
+ * @returns p0
426
406
  */
427
- static allowRemoteAttachmentModification(entity, toggle) {
428
- inv('0x267C78C60E806B9A', entity.handle, toggle);
407
+ static getSizeOfHostBroadcastDataStorage() {
408
+ const result = inv('0xBA24095EA96DFE17', pvi(), rai());
409
+ return [result[0], result[1]];
429
410
  }
430
411
  /**
431
- * @param volume
412
+ * @returns
432
413
  */
433
- static spawnConfigAddExclusionVolume(volume) {
434
- inv('0xEEB7818B1D307212', volume.handle);
414
+ static getInstanceIdOfThisScript() {
415
+ return inv('0x638A3A81733086DB', rai());
435
416
  }
436
417
  /**
437
- * Note: this native was added in build 1436.31
438
- *
439
418
  * @param p0
440
419
  * @returns
441
420
  */
442
- static N_0x78271BC02AE9AF83(p0) {
443
- return inv('0x78271BC02AE9AF83', p0, rai());
421
+ static awardHasReachedMaxclaim(p0) {
422
+ return inv('0xFBE782B3165AC8EC', p0);
444
423
  }
445
424
  /**
446
- * @param netID
425
+ * @param p0
447
426
  * @returns
448
427
  */
449
- static isDamageTrackerActiveOnNetworkId(netID) {
450
- return inv('0x6E192E33AD436366', netID, rai());
451
- }
452
- /**
453
- * Always returns -1. Seems to be XB1 specific.
454
- *
455
- * @returns gamerHandle
456
- */
457
- static startUserContentPermissionsCheck() {
458
- const result = inv('0xDEB2B99A1AF1A2A6', pvi(), rai());
459
- return [result[0], result[1]];
460
- }
461
- /**
462
- * gets the object id of a network id
463
- *
464
- * @param netHandle
465
- * @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist.
466
- */
467
- static netToObj(netHandle) {
468
- return createFromHandle('Prop', inv('0xD8515F5FEA14CB3F', netHandle, rai()));
428
+ static N_0xBB697756309D77EE(p0) {
429
+ return inv('0xBB697756309D77EE', p0);
469
430
  }
470
431
  /**
471
- * Note: this native was added in build 1311.23
472
- *
473
- * @param ctx
474
- * @param ec
475
- * @param ex
476
- * @param ro
432
+ * @returns
477
433
  */
478
- static N_0x19447FCAE97704DC(ctx, ec, ex, ro) {
479
- inv('0x19447FCAE97704DC', _h(ctx), ec, ex, ro);
434
+ static autoSessionIsInstancedSession() {
435
+ return inv('0x277865A734918AE6');
480
436
  }
481
437
  /**
482
- * Hardcoded to return zero.
483
- *
438
+ * @param p0
439
+ * @param p1
484
440
  * @returns
485
441
  */
486
- static getPromotionDlgSeenCount() {
487
- return inv('0x2FB53C631A49BE92', rai());
442
+ static resetPopulation(p0, p1) {
443
+ return inv('0x101F538C25ABB39A', p0, p1);
488
444
  }
489
445
  /**
490
- * @param waterDepthLevel
446
+ * @param ped
447
+ * @returns Returns the network id for the specified `ped` or `0` if the entity isn't networked.
491
448
  */
492
- static spawnConfigSetLevelWaterDepth(waterDepthLevel) {
493
- inv('0xBDCC671B911040F9', waterDepthLevel);
449
+ static pedToNet(ped) {
450
+ return inv('0x0EDEC3C276198689', ped.handle, rai());
494
451
  }
495
452
  /**
453
+ * @param p0
496
454
  * @returns
497
455
  */
498
- static N_0x41452E8A3B9C0C4B() {
499
- return inv('0x41452E8A3B9C0C4B', rai());
456
+ static N_0x27B1AE4D8C652F08(p0) {
457
+ return inv('0x27B1AE4D8C652F08', p0, rai());
500
458
  }
501
459
  /**
502
- * If you are host, returns true else returns false.
503
- *
460
+ * @param entity
504
461
  * @returns
505
462
  */
506
- static isHost() {
507
- return inv('0x8DB296B814EDDA07', rai());
508
- }
509
- /**
510
- * @returns p0
511
- */
512
- static N_0xA6F1BAABFF6AD7B9() {
513
- const result = inv('0xA6F1BAABFF6AD7B9', pvi());
514
- return result;
463
+ static hasEntityBeenRegisteredWithThisThread(entity) {
464
+ return !!inv('0xB07D3185E11657A5', entity.handle, rai());
515
465
  }
516
466
  /**
517
- * @returns
467
+ * @param entity
468
+ * @param toggle
518
469
  */
519
- static spawnConfigSearchInProgress() {
520
- return inv('0x89EC2FC89ECB1005');
470
+ static setEntityGhostedToLocalPlayer(entity, toggle) {
471
+ inv('0xEE5AE9956743BA20', entity.handle, toggle);
521
472
  }
522
473
  /**
523
- * @param pos
474
+ * @param player
475
+ * @returns weaponHash: Refer to [enum: eWeaponHash]
524
476
  */
525
- static N_0x2686BD9566B65EDA(pos) {
526
- inv('0x2686BD9566B65EDA', f(pos.x), f(pos.y), f(pos.z));
477
+ static getEntityKillerOfPlayer(player) {
478
+ const result = inv('0x42B2DAA6B596F5F8', player.handle, pvi(), rai());
479
+ return [createFromHandle('Entity', result[0]), result[1]];
527
480
  }
528
481
  /**
529
- * Note: this native was added in build 1311.23
530
- *
531
482
  * @param p0
532
483
  * @returns
533
484
  */
534
- static N_0x9E5A47744C0F0376(p0) {
535
- return inv('0x9E5A47744C0F0376', p0, rai());
485
+ static getNumCreatedMissionPickups(p0) {
486
+ return inv('0xD2BA051B94CA9BCC', p0, rai());
536
487
  }
537
488
  /**
538
- * @param p0
489
+ * @param entity
539
490
  * @param p1
540
491
  * @param p2
541
- * @returns
542
- */
543
- static N_0xC0CFFDA87C2C163D(p0, p1, p2) {
544
- return inv('0xC0CFFDA87C2C163D', p0, p1, p2);
545
- }
546
- /**
547
- * @param amount
492
+ * @param p3
548
493
  */
549
- static reserveNetworkMissionPickups(amount) {
550
- inv('0x4D40E7D749BC6E6D', amount);
494
+ static setEntityVisibleInCutscene(entity, p1, p2, p3) {
495
+ inv('0xE0031D3C8F36AB82', entity.handle, p1, p2, p3);
551
496
  }
552
497
  /**
553
- * Note: this native was added in build 1311.23
498
+ * Hardcoded to return -1.
554
499
  *
555
- * @param p0
556
- */
557
- static N_0xD3B6EBC6C3D77D44(p0) {
558
- inv('0xD3B6EBC6C3D77D44', p0);
559
- }
560
- /**
561
500
  * @param p1
562
- * @param p2
563
- * @param p3
564
- * @param p5
565
- * @returns p0; p4
501
+ * @returns p0
566
502
  */
567
- static ugcTextureDownloadRequest(p1, p2, p3, p5) {
568
- const result = inv('0x308F96458B7087CC', pvi(), p1, p2, p3, pvi(), p5, rai());
569
- return [result[0], result[1], result[2]];
503
+ static displaynamesFromHandlesStart(p1) {
504
+ const result = inv('0xD66C9E72B3CC4982', pvi(), p1, rai());
505
+ return [result[0], result[1]];
570
506
  }
571
507
  /**
572
- * p0 appears to be for MP
573
- *
574
- * @param p0
575
508
  * @returns
576
509
  */
577
- static getNumReservedMissionPeds(p0) {
578
- return inv('0x1F13D5AE5CB17E17', p0, rai());
510
+ static N_0xCC4E72C339461ED1() {
511
+ return inv('0xCC4E72C339461ED1');
579
512
  }
580
513
  /**
514
+ * nullsub, doesn't do anything
515
+ *
581
516
  * @returns
582
517
  */
583
- static isInSession() {
584
- return inv('0xCA97246103B63917', rai());
518
+ static N_0x160F0CE6D76A39C9() {
519
+ return inv('0x160F0CE6D76A39C9');
585
520
  }
586
521
  /**
522
+ * Old name: _NETWORK_GET_OLDEST_RESEND_COUNT_FOR_PLAYER
523
+ *
524
+ * @param player
587
525
  * @returns
588
526
  */
589
- static isTunableCloudRequestPending() {
590
- return inv('0x0467C11ED88B7D28', rai());
527
+ static getHighestReliableResendCount(player) {
528
+ return inv('0x52C1EADAF7B10302', player.handle, rai());
591
529
  }
592
530
  /**
593
- * Old name: _NETWORK_IS_CONNECTION_ENDPOINT_RELAY_SERVER
531
+ * Checks for session flag 'SF_PRIVATE'
594
532
  *
595
- * @param player
596
533
  * @returns
597
534
  */
598
- static isConnectedViaRelay(player) {
599
- return inv('0x16D3D49902F697BB', player.handle, rai());
535
+ static sessionIsPrivate() {
536
+ return !!inv('0xCEF70AA5B3F89BA1', rai());
600
537
  }
601
538
  /**
602
- * @param p0
603
539
  * @param toggle
604
540
  */
605
- static setDoorUnnetworked(p0, toggle) {
606
- inv('0xC1E1A3D5ED7617B8', p0, toggle);
541
+ static autoSessionSetAllowedToSplit(toggle) {
542
+ inv('0x0A428058079EE65C', toggle);
607
543
  }
608
- /**
609
- * @param pos
610
- * @param heading
611
- * @param p4
612
- * @param p5
613
- * @param p6
614
- * @param p7
615
- */
616
- static resurrectLocalPlayer(pos, heading, p4, p5, p6, p7) {
617
- inv('0xEA23C49EAA83ACFB', f(pos.x), f(pos.y), f(pos.z), f(heading), p4, p5, p6, p7);
544
+ static N_0x19B52C20B5C4757C() {
545
+ inv('0x19B52C20B5C4757C');
618
546
  }
619
547
  /**
620
548
  * @returns sessionRequestId
621
549
  */
622
- static sessionLeftQueueOrRequestedSession() {
623
- const result = inv('0xECE6A0C1B59CD8BE', pvi());
550
+ static sessionIsNsrrSuccess() {
551
+ const result = inv('0x0F44A5C78D114922', pvi());
624
552
  return [result[0], result[1]];
625
553
  }
626
554
  /**
627
- * @param flags Refer to [enum: eSessionFlags]
628
555
  * @returns
629
556
  */
630
- static sessionRemoveSessionFlags(flags) {
631
- return inv('0x78335E12DB0BF961', flags);
557
+ static isPlatformInvitePending() {
558
+ return inv('0xFC4165C9165C166F');
632
559
  }
633
560
  /**
634
561
  * @returns
635
562
  */
636
- static haveRosBannedPriv() {
637
- return inv('0x8020A73847E0CA7D', rai());
563
+ static isInMpCutscene() {
564
+ return !!inv('0x6CC27C9FA2040220', rai());
638
565
  }
639
566
  /**
640
- * @param p0
641
567
  * @returns
642
568
  */
643
- static N_0xCA58D4FD20D70F24(p0) {
644
- return inv('0xCA58D4FD20D70F24', p0, rai());
569
+ static N_0x273E04A3A7AD1F2D() {
570
+ return !!inv('0x273E04A3A7AD1F2D', rai());
645
571
  }
646
572
  /**
573
+ * Old name: _NETWORK_GET_AVERAGE_PACKET_LOSS_FOR_PLAYER
574
+ *
575
+ * @param player
647
576
  * @returns
648
577
  */
649
- static refreshCurrentFriendPage() {
650
- return inv('0x1F51F367B710A832');
578
+ static getAveragePacketLoss(player) {
579
+ return inv('0x350C23949E43686C', player.handle, raf());
651
580
  }
652
581
  /**
653
- * Same Native Handler as VEH_TO_NET, PED_TO_NET, OBJ_TO_NET and NETWORK_GET_NETWORK_ID_FROM_ENTITY
654
- *
655
- * @param handle
656
- * @returns
582
+ * @returns hour; minute; second
657
583
  */
658
- static N_0xF260AF6F43953316(handle) {
659
- return inv('0xF260AF6F43953316', handle, rai());
584
+ static getGlobalClock() {
585
+ const result = inv('0x11A7ADCD629E170F', pvi(), pvi(), pvi(), rai());
586
+ return [!!result[0], result[1], result[2], result[3]];
660
587
  }
661
588
  /**
589
+ * @param player
662
590
  * @returns
663
591
  */
664
- static N_0xA94ECE191D90637A() {
665
- return inv('0xA94ECE191D90637A', rai());
592
+ static isPlayerAParticipant(player) {
593
+ return !!inv('0x3CA58F6CB7CBD784', player.handle, rai());
594
+ }
595
+ /**
596
+ * @returns
597
+ */
598
+ static getXp() {
599
+ return inv('0xDB438CC9BC6F4022', rai());
666
600
  }
667
601
  /**
668
602
  * @param p0
603
+ * @param index
669
604
  * @returns
670
605
  */
671
- static getNumReservedMissionPickups(p0) {
672
- return inv('0x62BE3ECC79FBD004', p0, rai());
606
+ static ugcQueryGetPlaylistName(p0, index) {
607
+ return inv('0xCAF50048C8D0FBA0', p0, index, ras());
608
+ }
609
+ static N_0xD39A72AE5EBD57E5() {
610
+ inv('0xD39A72AE5EBD57E5');
673
611
  }
674
612
  /**
675
- * @param toggle
613
+ * @param p0
676
614
  */
677
- static allowAllEntityFadingForInstances(toggle) {
678
- inv('0x4B05B97BA46F419D', toggle);
615
+ static N_0xD42C543F73233041(p0) {
616
+ inv('0xD42C543F73233041', p0);
617
+ }
618
+ static N_0xE5FF65CFF5160752() {
619
+ inv('0xE5FF65CFF5160752');
679
620
  }
680
621
  /**
681
- * @param netId
622
+ * @param player
623
+ * @param reportType
624
+ * @param description
625
+ * @param horseName
682
626
  */
683
- static preventNetworkIdMigration(netId) {
684
- inv('0x7182EDDA1EE7DB5A', netId);
627
+ static reportPlayer(player, reportType, description, horseName) {
628
+ inv('0xA197C35F73AC0F12', player.handle, reportType, description, horseName);
685
629
  }
686
630
  /**
687
- * Returns whether the signed-in user has valid Rockstar Online Services (ROS) credentials.
688
- *
689
- * @returns
631
+ * @returns p0
690
632
  */
691
- static hasValidRosCredentials() {
692
- return inv('0x85443FF4C328F53B', rai());
633
+ static getSizeOfPlayerBroadcastDataStorage() {
634
+ const result = inv('0x690806BC83BC8CA2', pvi(), rai());
635
+ return [result[0], result[1]];
693
636
  }
694
637
  /**
695
- * @param ped_amt
696
- * @param vehicle_amt
697
- * @param object_amt
698
- * @param pickup_amt
699
638
  * @returns
700
639
  */
701
- static canRegisterMissionEntities(ped_amt, vehicle_amt, object_amt, pickup_amt) {
702
- return inv('0x69778E7564BADE6D', ped_amt, vehicle_amt, object_amt, pickup_amt, rai());
640
+ static N_0x3E4A16BC669E71B3() {
641
+ return !!inv('0x3E4A16BC669E71B3', rai());
703
642
  }
704
643
  /**
705
644
  * @returns
706
645
  */
707
- static didRecentGamerNamesRequestSucceed() {
708
- return inv('0x12AEB56B489415C5');
646
+ static getNumParticipants() {
647
+ return inv('0x18D0456E86604654', rai());
648
+ }
649
+ static autoSessionFinishInstance() {
650
+ inv('0xBB51299166B844F3');
709
651
  }
710
652
  /**
711
- * @returns sessionRequestId
653
+ * @returns
712
654
  */
713
- static sessionCancelRequest() {
714
- const result = inv('0xE72E5C1289BD1F40', pvi());
715
- return [result[0], result[1]];
655
+ static getThisScriptIsNetworkScript() {
656
+ return !!inv('0x2910669969E9535E', rai());
716
657
  }
717
658
  /**
718
- * @param message
719
- * @returns gamerHandle
659
+ * @param p0
660
+ * @param index
661
+ * @returns p2
720
662
  */
721
- static N_0x5759160AC17C13CE(message) {
722
- const result = inv('0x5759160AC17C13CE', pvi(), message);
663
+ static ugcQueryGetDate(p0, index) {
664
+ const result = inv('0xE0CB4AB15CB32710', p0, index, pvi());
723
665
  return result;
724
666
  }
725
667
  /**
726
- * @param id
727
- * @returns
668
+ * @param amount
728
669
  */
729
- static cloudHasRequestCompleted(id) {
730
- return inv('0x4C61B39930D045DA', id, rai());
670
+ static reserveNetworkMissionVehicles(amount) {
671
+ inv('0x76B02E21ED27A469', amount);
731
672
  }
732
673
  /**
733
- * nullsub, doesn't do anything
674
+ * @param player1
675
+ * @param player2
676
+ * @returns
734
677
  */
735
- static N_0xACC44768AF229042() {
736
- inv('0xACC44768AF229042');
678
+ static N_0x862C5040F4888741(player1, player2) {
679
+ return !!inv('0x862C5040F4888741', player1.handle, player2.handle, rai());
737
680
  }
738
681
  /**
739
- * Hardcoded to return zero. ==== PS4 specific info ==== Returns some sort of unavailable reason:
740
- * -1 = REASON_INVALID
741
- * 0 = REASON_OTHER
742
- * 1 = REASON_SYSTEM_UPDATE
743
- * 2 = REASON_GAME_UPDATE
744
- * 3 = REASON_SIGNED_OUT
745
- * 4 = REASON_AGE
746
- * 5 = REASON_CONNECTION =================================
747
- *
748
- * @returns
682
+ * @param player
683
+ * @param damageMultiplier
749
684
  */
750
- static getNpUnavailableReason() {
751
- return inv('0x74FB3E29E6D10FA9', rai());
685
+ static setLocalPlayerDamageMultiplierForPlayer(player, damageMultiplier) {
686
+ inv('0xD041A32992A55F84', player.handle, f(damageMultiplier));
752
687
  }
753
688
  /**
754
- * @param netId
755
- * @returns
689
+ * @param toggle
756
690
  */
757
- static netToPropset(netId) {
758
- return createFromHandle('PropSet', inv('0xD08066E00D26C448', netId, rai()));
691
+ static disableLeaveRemotePedBehind(toggle) {
692
+ inv('0xC505036A35AFD01B', toggle);
759
693
  }
760
694
  /**
761
- * @param paramName
695
+ * @param netHandle
696
+ * @param p1
762
697
  */
763
- static clearLaunchParam(paramName) {
764
- inv('0x782C94DB6469634D', paramName);
698
+ static N_0x894B5ECAB45D2342(netHandle, p1) {
699
+ inv('0x894B5ECAB45D2342', netHandle, p1);
765
700
  }
766
701
  /**
767
- * @param p0
702
+ * @param name
768
703
  */
769
- static N_0x603469298A4308AF(p0) {
770
- inv('0x603469298A4308AF', p0);
704
+ static textureDownloadReleaseByName(name) {
705
+ inv('0x7A17B7981560FFA5', name);
771
706
  }
772
707
  /**
773
- * @param player
708
+ * @param ugcRequestId
774
709
  * @returns
775
710
  */
776
- static isAimCamActive(player) {
777
- return inv('0x8E7CE19219669AEB', player.handle);
711
+ static ugcIsRequestPending(ugcRequestId) {
712
+ return inv('0xF4AC4FA844FD559A', ugcRequestId);
778
713
  }
779
714
  /**
780
- * Note: scripts seem to indicate that this was renamed to NETWORK_IS_PLAYER_IN_MP_FAST_INSTANCE
715
+ * Only used in fm_race_controller R* Script (PROCESS_LOCAL_PLAYER_INIT)
781
716
  *
782
- * @param player
783
- * @returns
717
+ * @param p0
784
718
  */
785
- static isPlayerInMpCutscene(player) {
786
- return inv('0x63F9EE203C3619F2', player.handle, rai());
719
+ static N_0xBC7D36946D19E60E(p0) {
720
+ inv('0xBC7D36946D19E60E', p0);
787
721
  }
788
722
  /**
789
- * @param time
723
+ * @param setting
790
724
  */
791
- static setLocalPlayerInvincibleTime(time) {
792
- inv('0x2D95C7E2D7E07307', time);
725
+ static N_0x704F92B3AF20D857(setting) {
726
+ inv('0x704F92B3AF20D857', setting);
793
727
  }
794
728
  /**
795
729
  * @param p0
730
+ * @param p1
796
731
  * @returns
797
732
  */
798
- static N_0x3F2EE18A3E294801(p0) {
799
- return inv('0x3F2EE18A3E294801', p0, rai());
733
+ static ugcQueryGetPosixPublishedDate(p0, p1) {
734
+ return inv('0x104080CA9E519B00', p0, p1, rai());
800
735
  }
801
736
  /**
802
- * @param player
737
+ * @returns
803
738
  */
804
- static N_0x7B3FF2D193628126(player) {
805
- inv('0x7B3FF2D193628126', player.handle);
739
+ static getSocialMatchmakingAllowed() {
740
+ return inv('0xD0541EF28E9C4783');
806
741
  }
807
742
  /**
808
- * @param milliseconds
743
+ * @param toggle
809
744
  */
810
- static clearClockOverrideOvertime(milliseconds) {
811
- inv('0x65F040D91001ED4B', milliseconds);
745
+ static setSocialMatchmakingAllowed(toggle) {
746
+ inv('0x777D0571A466B520', toggle);
812
747
  }
813
748
  /**
814
- * @param player
749
+ * @param p0
750
+ * @param p1
751
+ * @param p2
815
752
  * @returns
816
753
  */
817
- static getPlayerTutorialSessionInstance(player) {
818
- return inv('0x3B39236746714134', player.handle, rai());
754
+ static N_0x77B299E8799B1332(p0, p1, p2) {
755
+ return inv('0x77B299E8799B1332', p0, p1, p2);
819
756
  }
820
757
  /**
821
- * @param amount
758
+ * @param p0
822
759
  * @returns
823
760
  */
824
- static canRegisterMissionVehicles(amount) {
825
- return inv('0x7277F1F2E085EE74', amount, rai());
761
+ static N_0xE59F4924BD3A718D(p0) {
762
+ return inv('0xE59F4924BD3A718D', p0, ras());
826
763
  }
827
764
  /**
828
- * Takes the specified time and writes it to the structure specified in the second argument. struct date_time
829
- * {
830
- * int year;
831
- * int PADDING1;
832
- * int month;
833
- * int PADDING2;
834
- * int day;
835
- * int PADDING3;
836
- * int hour;
837
- * int PADDING4;
838
- * int minute;
839
- * int PADDING5;
840
- * int second;
841
- * int PADDING6;
842
- * };
843
- *
844
- * @param posixTime
845
- * @returns timeStructure
765
+ * @param p0
766
+ * @returns
846
767
  */
847
- static convertPosixTime(posixTime) {
848
- const result = inv('0xAC97AF97FA68E5D5', posixTime, pvi());
849
- return result;
768
+ static checkUserContentPrivileges(p0) {
769
+ return !!inv('0x595F028698072DD9', p0, rai());
850
770
  }
851
771
  /**
852
- * @param ugcRequestId
772
+ * @param player
853
773
  * @returns
854
774
  */
855
- static N_0xCD53E6CBF609C012(ugcRequestId) {
856
- return inv('0xCD53E6CBF609C012', ugcRequestId, rai());
775
+ static getPlayerFastInstanceId(player) {
776
+ return inv('0xD9267375834C5EAB', player.handle, rai());
857
777
  }
858
778
  /**
859
- * @param p0
860
- * @param index
779
+ * @returns hours; minutes; seconds
780
+ */
781
+ static getGlobalMultiplayerClock() {
782
+ const result = inv('0x6D03BFBD643B2A02', pvi(), pvi(), pvi());
783
+ return [result[0], result[1], result[2]];
784
+ }
785
+ /**
786
+ * @param description
787
+ * @param length
861
788
  * @returns
862
789
  */
863
- static ugcQueryGetMissionDescHash(p0, index) {
864
- return (inv('0xA6BF569956C60A60', p0, index, rai())) & 0xFFFFFFFF;
790
+ static ugcGetCachedDescription(description, length) {
791
+ return inv('0x40F7E66472DF3E5C', _h(description), length, ras());
865
792
  }
866
793
  /**
867
- * Note: this native was added in build 1311.23
868
- *
869
- * @param p0
794
+ * @param toggle
870
795
  */
871
- static N_0x335AF56613CA0F49(p0) {
872
- inv('0x335AF56613CA0F49', p0);
796
+ static N_0x780A13F780A13F1B(toggle) {
797
+ inv('0x780A13F780A13F1B', toggle);
798
+ }
799
+ /**
800
+ * @param p1
801
+ * @returns gamerHandle
802
+ */
803
+ static requestPedshotTextureMultiplayerDownload(p1) {
804
+ const result = inv('0xB5C4B18B12A2AF23', pvi(), p1, ras());
805
+ return [result[0], result[1]];
806
+ }
807
+ /**
808
+ * @param setting
809
+ */
810
+ static N_0xE3AB5EEFCB6671A2(setting) {
811
+ inv('0xE3AB5EEFCB6671A2', setting);
873
812
  }
874
813
  /**
875
814
  * @param p0
876
815
  * @returns
877
816
  */
878
- static N_0xE10F2D7715ABABEC(p0) {
879
- return inv('0xE10F2D7715ABABEC', p0);
817
+ static N_0x3AA0CDC63696166D(p0) {
818
+ return !!inv('0x3AA0CDC63696166D', p0, rai());
880
819
  }
881
820
  /**
882
- * Note: this native was added in build 1311.23
821
+ * @param p0
822
+ * @param p1
823
+ * @returns
883
824
  */
884
- static N_0xFD8112109A96877C() {
885
- inv('0xFD8112109A96877C');
825
+ static N_0xE39600E50D608693(p0, p1) {
826
+ return !!inv('0xE39600E50D608693', p0, p1, rai());
886
827
  }
887
828
  /**
888
- * Always returns 80
889
- *
829
+ * @param flags Refer to [enum: eSessionFlags]
890
830
  * @returns
891
831
  */
892
- static getMaxNumNetworkPickups() {
893
- return inv('0xA72835064DD63E4C', rai());
832
+ static sessionAddSessionFlags(flags) {
833
+ return inv('0xE546BDA1B3E288EE', flags);
894
834
  }
895
835
  /**
896
- * Old name: _NETWORK_GET_AVERAGE_LATENCY_FOR_PLAYER
897
- *
898
- * @param player
836
+ * @param p0
837
+ * @param playerCount
899
838
  * @returns
900
839
  */
901
- static getAverageLatency(player) {
902
- return inv('0xD414BE129BB81B32', player.handle, raf());
840
+ static requestRecentGamerNames(p0, playerCount) {
841
+ return inv('0x6D206D383BB5F6B1', p0, playerCount);
903
842
  }
904
843
  /**
905
- * @param netId
906
- * @param toggle
844
+ * @returns
907
845
  */
908
- static setNetworkIdExistsOnAllMachines(netId, toggle) {
909
- inv('0xE05E81A888FA63C8', netId, toggle);
846
+ static getHostOfThisScript() {
847
+ return createFromHandle('Player', inv('0xC7B4D79B01FA7A5C', rai()));
910
848
  }
911
849
  /**
912
- * @param completed
850
+ * @param animScene
913
851
  * @returns
914
852
  */
915
- static setCompletedMpIntroFlowOnCurrentSlot(completed) {
916
- return inv('0x2C5BD9A43987AA27', completed);
853
+ static hasControlOfAnimScene(animScene) {
854
+ return inv('0x26A5C12FACFF8724', animScene.handle);
917
855
  }
918
856
  /**
919
- * Only used in R* SP Script map_app_event_handler
857
+ * Equivalent to NETWORK_REQUEST_SESSION_SEAMLESS if userHash == 0.
858
+ * Otherwise it is equivalent to NETWORK_SESSION_REQUEST_SESSION_COMPETITIVE(flags, MATCHTYPE_SEAMLESS, userHash, 0, sessionRequestId); p1 is unused
920
859
  *
921
- * @param p1
922
- * @returns gamerHandle
860
+ * @param flags
861
+ * @param seamlessType
862
+ * @param userHash
863
+ * @returns sessionRequestId
923
864
  */
924
- static requestPedshotTextureLocalDownload(p1) {
925
- const result = inv('0xCAF4CA2F87779F8F', pvi(), p1, ras());
865
+ static sessionRequestSessionSeamless(flags, seamlessType, userHash) {
866
+ const result = inv('0x2989E131FDE37E97', flags, seamlessType, userHash, pvi());
926
867
  return [result[0], result[1]];
927
868
  }
928
869
  /**
929
870
  * @returns
930
871
  */
931
- static autoSessionIsProcessingSessionSplit() {
932
- return inv('0xA021095C983F20D8');
872
+ static hasCompletedMpIntroFlowOnCurrentSlot() {
873
+ return inv('0xDD73C9838CE7181D');
874
+ }
875
+ /**
876
+ * @param configProperty
877
+ * @param include
878
+ */
879
+ static spawnConfigAddPropertyScripted(configProperty, include) {
880
+ inv('0x44D59EC597BBF348', configProperty, include);
933
881
  }
934
882
  /**
883
+ * @param p0
935
884
  * @returns
936
885
  */
937
- static N_0x1413B6BF27AB7A95() {
938
- return inv('0x1413B6BF27AB7A95', rai());
886
+ static N_0xA2837A5E21FB5A58(p0) {
887
+ return !!inv('0xA2837A5E21FB5A58', p0, rai());
939
888
  }
940
889
  /**
941
- * nullsub, doesn't do anything
942
- *
943
- * @param player
890
+ * @returns
944
891
  */
945
- static showChatRestrictionMsc(player) {
946
- inv('0x6BFF5F84102DF80A', player.handle);
892
+ static N_0x0E54D4DA6018FF8E() {
893
+ return !!inv('0x0E54D4DA6018FF8E', rai());
947
894
  }
948
895
  /**
949
- * Returns false if pedshot push failed
896
+ * Returns the entity associated with the given network ID.
950
897
  *
951
- * @param texture
952
- * @param personaPhotoType
953
- * @param formatIndex
898
+ * @param networkId
954
899
  * @returns
955
900
  */
956
- static personaPhotoWriteScProfile(texture, personaPhotoType, formatIndex) {
957
- return inv('0xB72999D3120599DF', texture, personaPhotoType, formatIndex);
901
+ static N_0x4538EE7C321590BC(networkId) {
902
+ return createFromHandle('Entity', inv('0x4538EE7C321590BC', networkId, rai()));
958
903
  }
959
904
  static N_0x9B39B0555CC692B5() {
960
905
  inv('0x9B39B0555CC692B5');
@@ -1005,7 +950,7 @@ export class Network {
1005
950
  * @returns
1006
951
  */
1007
952
  static getEntityIsNetworked(entity) {
1008
- return inv('0xC7827959479DCC78', entity.handle, rai());
953
+ return !!inv('0xC7827959479DCC78', entity.handle, rai());
1009
954
  }
1010
955
  /**
1011
956
  * @param vehicle
@@ -1178,7 +1123,7 @@ export class Network {
1178
1123
  * @returns
1179
1124
  */
1180
1125
  static isParticipantActive(p0) {
1181
- return inv('0x6FF8FF40B6357D45', p0, rai());
1126
+ return !!inv('0x6FF8FF40B6357D45', p0, rai());
1182
1127
  }
1183
1128
  /**
1184
1129
  * @param p0
@@ -1187,125 +1132,6 @@ export class Network {
1187
1132
  static getNumCreatedMissionPeds(p0) {
1188
1133
  return inv('0xCB215C4B56A7FAE7', p0, rai());
1189
1134
  }
1190
- /**
1191
- * @returns
1192
- */
1193
- static isInTutorialSession() {
1194
- return inv('0xADA24309FE08DACF', rai());
1195
- }
1196
- /**
1197
- * @param tunableContext
1198
- * @param tunableName
1199
- * @returns value
1200
- */
1201
- static accessTunableInt(tunableContext, tunableName) {
1202
- const result = inv('0x8BE1146DFD5D4468', _h(tunableContext), _h(tunableName), pvi(), rai());
1203
- return [!!result[0], result[1]];
1204
- }
1205
- /**
1206
- * @param tunableContext
1207
- * @param tunableName
1208
- * @param defaultValue
1209
- * @returns
1210
- */
1211
- static tryAccessTunableIntHash(tunableContext, tunableName, defaultValue) {
1212
- return inv('0xA25E006B36719774', _h(tunableContext), _h(tunableName), defaultValue, rai());
1213
- }
1214
- /**
1215
- * @param tunableContext
1216
- * @param tunableName
1217
- * @param defaultValue
1218
- * @returns
1219
- */
1220
- static tryAccessTunableBoolHash(tunableContext, tunableName, defaultValue) {
1221
- return inv('0xB2AD5D29A99D4B26', _h(tunableContext), _h(tunableName), defaultValue, rai());
1222
- }
1223
- /**
1224
- * @param seed
1225
- */
1226
- static seedRandomNumberGenerator(seed) {
1227
- inv('0xF1B84178F8674195', seed);
1228
- }
1229
- /**
1230
- * @param netId
1231
- * @returns
1232
- */
1233
- static isNetworkIdOwnedByParticipant(netId) {
1234
- return inv('0xA1607996431332DF', netId, rai());
1235
- }
1236
- /**
1237
- * @param scriptName
1238
- * @param p1
1239
- * @param p2
1240
- * @returns
1241
- */
1242
- static getHostOfScript(scriptName, p1, p2) {
1243
- return createFromHandle('Player', inv('0x1D6A14F1F9A736FC', scriptName, p1, p2, rai()));
1244
- }
1245
- static spawnConfigSetCancelSearch() {
1246
- inv('0x765E60A1DCB8B1CE');
1247
- }
1248
- /**
1249
- * @param player
1250
- * @returns
1251
- */
1252
- static getPlayerIndex(player) {
1253
- return inv('0x24FB80D107371267', player.handle, rai());
1254
- }
1255
- /**
1256
- * @param ugcRequestId
1257
- * @returns
1258
- */
1259
- static ugcQueryGetContentNum(ugcRequestId) {
1260
- return inv('0x76160E0396142765', ugcRequestId, rai());
1261
- }
1262
- /**
1263
- * @param ctx
1264
- * @param lh
1265
- * @param ec
1266
- * @param h
1267
- */
1268
- static alert(ctx, lh, ec, h) {
1269
- inv('0x1BAA028F52EED310', _h(ctx), _h(lh), ec, h);
1270
- }
1271
- /**
1272
- * @param contentId
1273
- * @returns
1274
- */
1275
- static ugcIsBookMarked(contentId) {
1276
- return inv('0xE42D1042F09865FE', contentId, rai());
1277
- }
1278
- /**
1279
- * @returns p0
1280
- */
1281
- static autoSessionCanSplitSession() {
1282
- const result = inv('0xE404BFF0ABA23CDC', pvi());
1283
- return [result[0], result[1]];
1284
- }
1285
- /**
1286
- * _NETWORK_A* - _NETWORK_C*
1287
- *
1288
- * @param p0
1289
- */
1290
- static N_0x34BC1E79546BA543(p0) {
1291
- inv('0x34BC1E79546BA543', p0);
1292
- }
1293
- /**
1294
- * @param count
1295
- * @returns data
1296
- */
1297
- static getGamerSessionFromHandle(count) {
1298
- const result = inv('0xFBDFE1C1356E12E8', pvi(), count);
1299
- return [result[0], result[1]];
1300
- }
1301
- /**
1302
- * @param p0
1303
- * @param p1
1304
- * @param p2
1305
- */
1306
- static registerHostBroadcastVariables(p0, p1, p2) {
1307
- inv('0x3E9B2F01C50DF595', p0, p1, p2);
1308
- }
1309
1135
  /**
1310
1136
  * _NETWORK_GET_A* - _NETWORK_GET_D*
1311
1137
  *
@@ -1361,7 +1187,7 @@ export class Network {
1361
1187
  * @returns
1362
1188
  */
1363
1189
  static N_0xA47D48D06AA5A188() {
1364
- return inv('0xA47D48D06AA5A188', rai());
1190
+ return !!inv('0xA47D48D06AA5A188', rai());
1365
1191
  }
1366
1192
  /**
1367
1193
  * @returns
@@ -1377,7 +1203,7 @@ export class Network {
1377
1203
  * @returns
1378
1204
  */
1379
1205
  static N_0x26A867C0B7A456D1(entity) {
1380
- return inv('0x26A867C0B7A456D1', entity.handle, rai());
1206
+ return !!inv('0x26A867C0B7A456D1', entity.handle, rai());
1381
1207
  }
1382
1208
  /**
1383
1209
  * @param netHandle
@@ -1397,7 +1223,7 @@ export class Network {
1397
1223
  * @returns
1398
1224
  */
1399
1225
  static N_0xDA1BFED8582F61F0() {
1400
- return inv('0xDA1BFED8582F61F0', rai());
1226
+ return !!inv('0xDA1BFED8582F61F0', rai());
1401
1227
  }
1402
1228
  /**
1403
1229
  * Note: this native was added in build 1311.23
@@ -1412,7 +1238,7 @@ export class Network {
1412
1238
  * @returns
1413
1239
  */
1414
1240
  static isCloudAvailable() {
1415
- return inv('0x9A4CF4F48AD77302', rai());
1241
+ return !!inv('0x9A4CF4F48AD77302', rai());
1416
1242
  }
1417
1243
  /**
1418
1244
  * @param p0
@@ -1474,14 +1300,14 @@ export class Network {
1474
1300
  * @returns
1475
1301
  */
1476
1302
  static canRegisterMissionObjects(amount) {
1477
- return inv('0x800DD4721A8B008B', amount, rai());
1303
+ return !!inv('0x800DD4721A8B008B', amount, rai());
1478
1304
  }
1479
1305
  /**
1480
1306
  * @param description
1481
1307
  * @returns
1482
1308
  */
1483
1309
  static ugcReleaseCachedDescription(description) {
1484
- return inv('0x5A34CD9C3C5BEC44', _h(description), rai());
1310
+ return !!inv('0x5A34CD9C3C5BEC44', _h(description), rai());
1485
1311
  }
1486
1312
  /**
1487
1313
  * @param toggle
@@ -1543,7 +1369,7 @@ export class Network {
1543
1369
  * @returns
1544
1370
  */
1545
1371
  static N_0xD7BAD4062074B9C1(p0) {
1546
- return inv('0xD7BAD4062074B9C1', p0, rai());
1372
+ return !!inv('0xD7BAD4062074B9C1', p0, rai());
1547
1373
  }
1548
1374
  /**
1549
1375
  * @param hour
@@ -1564,256 +1390,244 @@ export class Network {
1564
1390
  inv('0xA8A024587329F36A', netId, player.handle, toggle);
1565
1391
  }
1566
1392
  /**
1567
- * @returns
1393
+ * @param p0
1394
+ * @returns gamerHandle
1568
1395
  */
1569
- static N_0xB389289F031F059A() {
1570
- return inv('0xB389289F031F059A', rai());
1396
+ static N_0x16EFB123C4451032(p0) {
1397
+ const result = inv('0x16EFB123C4451032', p0, pvi(), rai());
1398
+ return [!!result[0], result[1]];
1571
1399
  }
1572
1400
  /**
1573
- * Subtracts the first argument from the second, then returns whether the result is negative.
1401
+ * Return the local Participant ID
1574
1402
  *
1575
- * @param timeA
1576
- * @param timeB
1577
1403
  * @returns
1578
1404
  */
1579
- static isTimeMoreThan(timeA, timeB) {
1580
- return inv('0xDE350F8651E4346C', timeA, timeB, rai());
1405
+ static participantId() {
1406
+ return createFromHandle('Player', inv('0x90986E8876CE0A83', rai()));
1407
+ }
1408
+ static N_0x97BCE4C4B3191228() {
1409
+ inv('0x97BCE4C4B3191228');
1581
1410
  }
1582
1411
  /**
1583
- * @returns
1412
+ * @param volume
1413
+ * @param p1
1414
+ * @param originalWeight
1415
+ * @param p3
1416
+ * @param p4
1584
1417
  */
1585
- static pedmugshotRequestSend() {
1586
- return inv('0xFBC30B70B3CDB87E');
1418
+ static N_0x13F592FC3BF0EA84(volume, p1, originalWeight, p3, p4) {
1419
+ inv('0x13F592FC3BF0EA84', volume.handle, p1, f(originalWeight), p3, p4);
1587
1420
  }
1588
1421
  /**
1589
- * Old name: _NETWORK_SET_PASSIVE_MODE_OPTION
1590
- *
1591
- * @param toggle
1422
+ * @returns
1592
1423
  */
1593
- static setPlayerIsPassive(toggle) {
1594
- inv('0x9C25E8EC4C535FBD', toggle);
1424
+ static N_0xBF8276E51761F9DA() {
1425
+ return inv('0xBF8276E51761F9DA', rai());
1595
1426
  }
1596
1427
  /**
1597
- * Seems to always return 0, but it's used in quite a few loops. for (num3 = 0; num3 < NETWORK::0xCCD8C02D(); num3++)
1598
- * {
1599
- * if (NETWORK::NETWORK_IS_PARTICIPANT_ACTIVE(PLAYER::0x98F3B274(num3)) != 0)
1600
- * {
1601
- * var num5 = NETWORK::NETWORK_GET_PLAYER_INDEX(PLAYER::0x98F3B274(num3));
1428
+ * Note: this native was added in build 1311.23
1602
1429
  *
1603
1430
  * @returns
1604
1431
  */
1605
- static getMaxNumParticipants() {
1606
- return inv('0xA6C90FBC38E395EE', rai());
1432
+ static N_0x316FD416C432C761() {
1433
+ return !!inv('0x316FD416C432C761', rai());
1607
1434
  }
1608
1435
  /**
1609
- * @param ropeId
1436
+ * nullsub, doesn't do anything
1437
+ *
1610
1438
  * @returns
1611
1439
  */
1612
- static getNetworkIdFromRopeId(ropeId) {
1613
- return inv('0x42871327315EDAE8', ropeId, rai());
1440
+ static N_0xEC089F84A9C16C62() {
1441
+ return inv('0xEC089F84A9C16C62');
1614
1442
  }
1615
1443
  /**
1616
- * @param ugcRequestId
1444
+ * @param netId
1617
1445
  * @returns
1618
1446
  */
1619
- static ugcQueryWasForceCancelled(ugcRequestId) {
1620
- return inv('0xF8F0705E77A0E705', ugcRequestId);
1447
+ static getRopeIdFromNetworkId(netId) {
1448
+ return inv('0xEB1A4DD8352EC828', netId, rai());
1621
1449
  }
1622
1450
  /**
1623
- * @param p0
1451
+ * @param ugcRequestId
1452
+ * @returns
1624
1453
  */
1625
- static ugcSetQueryDataFromOffline(p0) {
1626
- inv('0xF98DDE0A8ED09323', p0);
1454
+ static ugcDidRequestSucceed(ugcRequestId) {
1455
+ return inv('0x0B6009A90B8495F1', ugcRequestId);
1627
1456
  }
1628
1457
  /**
1629
- * @returns gamerHandle
1458
+ * @returns
1630
1459
  */
1631
- static isFriendHandleInSameTitle() {
1632
- const result = inv('0x665161D250850A9F', pvi(), rai());
1633
- return [!!result[0], result[1]];
1460
+ static getNetworkTimeAccurate() {
1461
+ return inv('0x89023FBBF9200E9F', rai());
1634
1462
  }
1635
1463
  /**
1636
1464
  * @param p0
1637
1465
  * @returns
1638
1466
  */
1639
- static N_0xE8E633215471BB5D(p0) {
1640
- return inv('0xE8E633215471BB5D', p0, rai());
1467
+ static getNumCreatedMissionVehicles(p0) {
1468
+ return inv('0x0CD9AB83489430EA', p0, rai());
1469
+ }
1470
+ static showAccountUpgradeUi() {
1471
+ inv('0x83FE8D7229593017');
1641
1472
  }
1642
1473
  /**
1643
- * Note: this native was added in build 1311.23
1474
+ * Hardcoded to return false.
1644
1475
  *
1645
- * @param p0
1646
1476
  * @returns
1647
1477
  */
1648
- static N_0x917AD74BDCF8B6E9(p0) {
1649
- return inv('0x917AD74BDCF8B6E9', p0, rai());
1478
+ static isInSessionLobby() {
1479
+ return inv('0xC5196C42DE19F646');
1650
1480
  }
1651
1481
  /**
1652
- * nullsub, doesn't do anything
1482
+ * Always returns a null string.
1653
1483
  *
1654
- * @param p0
1484
+ * @returns gamerHandle
1655
1485
  */
1656
- static N_0x0CC28C08613BA9E5(p0) {
1657
- inv('0x0CC28C08613BA9E5', p0);
1486
+ static getGamertagFromHandle() {
1487
+ const result = inv('0x426141162EBE5CDB', pvi(), ras());
1488
+ return [result[0], result[1]];
1658
1489
  }
1659
1490
  /**
1660
- * Old name: _IS_ENTITY_GHOSTED_TO_LOCAL_PLAYER
1491
+ * Returns the network ID of the given object.
1661
1492
  *
1662
- * @param entity
1663
- * @returns
1493
+ * @param object
1494
+ * @returns Returns the network id for the specified `object`, or `0` if the entity isn't networked.
1664
1495
  */
1665
- static isEntityAGhost(entity) {
1666
- return inv('0x21D04D7BC538C146', entity.handle, rai());
1667
- }
1668
- static clearGetGamerStatus() {
1669
- inv('0x86E0660E4F5C956D');
1496
+ static objToNet(object) {
1497
+ return inv('0x99BFDC94A603E541', object.handle, rai());
1670
1498
  }
1671
1499
  /**
1672
- * @param player
1673
- * @param entity
1674
- * @returns p2
1500
+ * @param p0
1501
+ * @returns
1675
1502
  */
1676
- static getAssistedDamageOfEntity(player, entity) {
1677
- const result = inv('0x4CACA84440FA26F6', player.handle, entity.handle, pvi(), rai());
1678
- return [!!result[0], result[1]];
1503
+ static requestJoin(p0) {
1504
+ return inv('0xE483BB6BE686F632', p0, rai());
1679
1505
  }
1680
1506
  /**
1681
- * flags:
1682
- * enum eSessionRequestOptionFlags
1683
- * {
1684
- * SESSION_REQUEST_OPTION_FLAG_INCLUDE_GANG_MEMBERS = (1 << 1),
1685
- * SESSION_REQUEST_OPTION_FLAG_LEADER_KEEPS_GANG = (1 << 7),
1686
- * }; seamlessType:
1687
- * enum eSeamlessType
1688
- * {
1689
- * SEAMLESS_TYPE_NORMAL,
1690
- * SEAMLESS_TYPE_PVE,
1691
- * SEAMLESS_TYPE_DEV,
1692
- * SEAMLESS_TYPE_NO_SEAMLESS
1693
- * };
1507
+ * Note: this native was added in build 1311.23
1694
1508
  *
1695
- * @param flags
1696
- * @param seamlessType
1697
- * @returns sessionRequestId
1509
+ * @param p0
1510
+ * @returns
1698
1511
  */
1699
- static requestSessionSeamless(flags, seamlessType) {
1700
- const result = inv('0x04019AE4956D4393', flags, seamlessType, pvi());
1701
- return [result[0], result[1]];
1512
+ static N_0x4835413EA6F9C9CD(p0) {
1513
+ return inv('0x4835413EA6F9C9CD', p0, rai());
1702
1514
  }
1703
1515
  /**
1704
- * Note: this native was added in build 1311.16
1516
+ * Returns ugcRequestId
1705
1517
  *
1518
+ * @param contentId
1519
+ * @param latestVersion
1520
+ * @param contentTypeName
1706
1521
  * @returns
1707
1522
  */
1708
- static isObjectReassignmentInProgress() {
1709
- return inv('0x8FE9EB11EC9CC23A', rai());
1523
+ static ugcQueryByContentId(contentId, latestVersion, contentTypeName) {
1524
+ return inv('0x69D22E183580113F', contentId, latestVersion, contentTypeName, rai());
1710
1525
  }
1711
1526
  /**
1712
- * @param scriptName
1713
- * @param instanceId
1714
- * @param position
1715
- * @returns
1527
+ * @param p0
1716
1528
  */
1717
- static getNumScriptParticipants(scriptName, instanceId, position) {
1718
- return inv('0x3658E8CD94FC121A', scriptName, instanceId, _h(position), rai());
1529
+ static N_0x3034C77C79A58880(p0) {
1530
+ inv('0x3034C77C79A58880', p0);
1719
1531
  }
1720
1532
  /**
1721
- * @param p0
1533
+ * @param paramName
1722
1534
  * @returns
1723
1535
  */
1724
- static N_0x6C27442A225A241A(p0) {
1725
- return inv('0x6C27442A225A241A', p0, rai());
1536
+ static getLaunchParamValue(paramName) {
1537
+ return inv('0x65E65CA6A0FE59D4', paramName, ras());
1726
1538
  }
1727
1539
  /**
1728
1540
  * @param p0
1729
- * @param p1
1730
- */
1731
- static spawnConfigSetTuningFloat(p0, p1) {
1732
- inv('0x0608326F7B98C08D', _h(p0), f(p1));
1733
- }
1734
- /**
1735
- * @param p1
1736
- * @returns outData
1737
1541
  */
1738
- static N_0x7BCA0A3972708436(p1) {
1739
- const result = inv('0x7BCA0A3972708436', pvi(), p1, rai());
1740
- return [result[0], result[1]];
1542
+ static N_0xCF23AB5BD47B384D(p0) {
1543
+ inv('0xCF23AB5BD47B384D', p0);
1741
1544
  }
1742
1545
  /**
1743
- * Hardcoded to return zero.
1546
+ * Note: this native was added in build 1311.23
1744
1547
  *
1745
1548
  * @param p0
1746
1549
  * @param p1
1747
1550
  * @param p2
1551
+ */
1552
+ static N_0x3CBD6565D9C3B133(p0, p1, p2) {
1553
+ inv('0x3CBD6565D9C3B133', p0, p1, f(p2));
1554
+ }
1555
+ /**
1748
1556
  * @returns
1749
1557
  */
1750
- static getDisplaynamesFromHandles(p0, p1, p2) {
1751
- return inv('0x58CC181719256197', p0, p1, p2, rai());
1558
+ static hasReceivedHostBroadcastData() {
1559
+ return !!inv('0x5D10B3795F3FC886', rai());
1752
1560
  }
1753
1561
  /**
1562
+ * @param languageId
1754
1563
  * @returns
1755
1564
  */
1756
- static isHostOfThisScript() {
1757
- return inv('0x83CD99A1E6061AB5', rai());
1565
+ static ugcIsLanguageSupported(languageId) {
1566
+ return !!inv('0xF53E48461B71EECB', languageId, rai());
1758
1567
  }
1759
1568
  /**
1760
- * @param p0
1761
- * @param index
1762
1569
  * @returns
1763
1570
  */
1764
- static ugcQueryGetLanguage(p0, index) {
1765
- return inv('0x97764E8AC6487A9A', p0, index, rai());
1571
+ static actionPlatformInvite() {
1572
+ return inv('0x3B82ACC3F4B6240C');
1766
1573
  }
1767
1574
  /**
1768
- * Note: this native was added in build 1355.30
1575
+ * nullsub, doesn't do anything
1769
1576
  *
1770
- * @param p0
1577
+ * @returns
1771
1578
  */
1772
- static N_0x422F9D6D6C7BC290(p0) {
1773
- inv('0x422F9D6D6C7BC290', p0);
1579
+ static dumpNetIfConfig() {
1580
+ return inv('0xAEDF1BC1C133D6E3');
1774
1581
  }
1775
1582
  /**
1776
- * @param propSet
1777
1583
  * @returns
1778
1584
  */
1779
- static propsetToNet(propSet) {
1780
- return inv('0x74F99EF7EF503398', propSet.handle, rai());
1585
+ static sessionIsTransitioning() {
1586
+ return inv('0xF2CBC969C4F090C7');
1781
1587
  }
1782
1588
  /**
1783
1589
  * @param p0
1590
+ * @param index
1591
+ * @param p2
1592
+ * @returns
1784
1593
  */
1785
- static N_0x5CD3AAD8FF9ED121(p0) {
1786
- inv('0x5CD3AAD8FF9ED121', p0);
1594
+ static ugcQueryGetVersion(p0, index, p2) {
1595
+ return inv('0x63E9DCBC8B0931ED', p0, index, p2, rai());
1787
1596
  }
1788
1597
  /**
1789
- * @param netId
1790
- * @returns
1598
+ * @param p0
1599
+ * @param p1
1791
1600
  */
1792
- static netToAnimScene(netId) {
1793
- return createFromHandle('AnimScene', inv('0xD7F6781A0ABAF6FB', netId, rai()));
1601
+ static N_0x3F0ABAE38A0515AD(p0, p1) {
1602
+ inv('0x3F0ABAE38A0515AD', p0, p1);
1794
1603
  }
1795
1604
  /**
1796
- * @param p0
1797
- * @param index
1605
+ * Subtracts the second argument from the first, then returns whether the result is negative.
1606
+ *
1607
+ * @param timeA
1608
+ * @param timeB
1798
1609
  * @returns
1799
1610
  */
1800
- static ugcQueryGetContentHasPlayerRecord(p0, index) {
1801
- return inv('0xF794765390A6DCA5', p0, index);
1802
- }
1803
- static N_0x814729078AED6D30() {
1804
- inv('0x814729078AED6D30');
1611
+ static isTimeLessThan(timeA, timeB) {
1612
+ return !!inv('0xCB2CF5148012C8D0', timeA, timeB, rai());
1805
1613
  }
1806
1614
  /**
1615
+ * Old name: _NETWORK_GET_UNRELIABLE_RESEND_COUNT_FOR_PLAYER
1616
+ *
1617
+ * @param player
1807
1618
  * @returns
1808
1619
  */
1809
- static isSignedOnline() {
1810
- return inv('0x1077788E268557C2', rai());
1620
+ static getUnreliableResendCount(player) {
1621
+ return inv('0x3765C3A3E8192E10', player.handle, rai());
1811
1622
  }
1812
1623
  /**
1624
+ * Note: this native was added in build 1311.23
1625
+ *
1626
+ * @param p0
1813
1627
  * @returns
1814
1628
  */
1815
- static isInSpectatorMode() {
1816
- return inv('0x048746E388762E11', rai());
1629
+ static N_0x106CBDD5077DEDE1(p0) {
1630
+ return inv('0x106CBDD5077DEDE1', p0, rai());
1817
1631
  }
1818
1632
  static N_0x49CF17A564918E8D() {
1819
1633
  inv('0x49CF17A564918E8D');
@@ -1907,7 +1721,7 @@ export class Network {
1907
1721
  * @returns
1908
1722
  */
1909
1723
  static requestControlOfNetworkId(netId) {
1910
- return inv('0xA670B3662FAFFBD0', netId, rai());
1724
+ return !!inv('0xA670B3662FAFFBD0', netId, rai());
1911
1725
  }
1912
1726
  /**
1913
1727
  * @param volume
@@ -1949,395 +1763,480 @@ export class Network {
1949
1763
  * @returns
1950
1764
  */
1951
1765
  static commerceStoreIsOpen() {
1952
- return inv('0xCE5E79D9E303628E', rai());
1766
+ return !!inv('0xCE5E79D9E303628E', rai());
1953
1767
  }
1954
- static clearClockTimeOverride() {
1955
- inv('0xD972DF67326F966E');
1768
+ /**
1769
+ * @param flags
1770
+ * @returns
1771
+ */
1772
+ static sessionRemovePlayerFlags(flags) {
1773
+ return inv('0x3215BBE34D3418C5', flags);
1956
1774
  }
1957
- static N_0xC8B6D18E22484643() {
1958
- inv('0xC8B6D18E22484643');
1775
+ /**
1776
+ * @returns
1777
+ */
1778
+ static getTimeoutTime() {
1779
+ return inv('0x5ED0356A0CE3A34F', rai());
1959
1780
  }
1960
1781
  /**
1961
1782
  * @param p0
1962
- * @param p1
1963
1783
  */
1964
- static N_0xDC6AD5C046F33AB4(p0, p1) {
1965
- inv('0xDC6AD5C046F33AB4', p0, p1);
1784
+ static setLocalPlayerInvisibleLocally(p0) {
1785
+ inv('0xE5F773C1A1D9D168', p0);
1966
1786
  }
1967
1787
  /**
1968
- * @param entity
1788
+ * @param threadId
1969
1789
  * @returns
1970
1790
  */
1971
- static hasControlOfEntity(entity) {
1972
- return inv('0x01BF60A500E28887', entity.handle, rai());
1791
+ static isThreadActive(threadId) {
1792
+ return inv('0x31DAD2CD6D49546E', threadId);
1973
1793
  }
1974
1794
  /**
1975
- * @param player
1795
+ * Returns false if pedshot push failed
1796
+ *
1797
+ * @param texture
1798
+ * @param playerSlot
1799
+ * @param p2
1800
+ * @param personaPhotoLocalCacheType
1976
1801
  * @returns
1977
1802
  */
1978
- static getUniqueIntForPlayer(player) {
1979
- return inv('0x07F723401B9D921C', player.handle, rai());
1803
+ static personaPhotoWriteLocal(texture, playerSlot, p2, personaPhotoLocalCacheType) {
1804
+ return inv('0x2A48D9567940598F', texture, playerSlot, p2, personaPhotoLocalCacheType);
1980
1805
  }
1981
1806
  /**
1982
- * @param tunableContext
1983
- * @param tunableName
1807
+ * @param index
1984
1808
  * @returns
1985
1809
  */
1986
- static accessTunableBool(tunableContext, tunableName) {
1987
- return inv('0xAA6A47A573ABB75A', _h(tunableContext), _h(tunableName), rai());
1810
+ static getParticipantIndex(index) {
1811
+ return inv('0x1B84DF6AF2A46938', index, rai());
1988
1812
  }
1989
1813
  /**
1990
- * @returns gamerHandle
1814
+ * @param p0
1991
1815
  */
1992
- static removeFriend() {
1993
- const result = inv('0x55F618F68AB854D3', pvi());
1994
- return [result[0], result[1]];
1816
+ static N_0xD637D327080CD86E(p0) {
1817
+ inv('0xD637D327080CD86E', p0);
1995
1818
  }
1996
- static N_0x6C7E04E9DE451789() {
1997
- inv('0x6C7E04E9DE451789');
1819
+ /**
1820
+ * @returns
1821
+ */
1822
+ static sessionIsAnyRequestInProgress() {
1823
+ return inv('0xBAFFDE5F953720D9');
1998
1824
  }
1999
1825
  /**
1826
+ * @param p0
1827
+ * @param p1
1828
+ * @param p2
1829
+ * @param p3
1830
+ * @param p4
1831
+ * @param p5
2000
1832
  * @returns
2001
1833
  */
2002
- static N_0x0B6B4507AC5EA8B8() {
2003
- return inv('0x0B6B4507AC5EA8B8', rai());
1834
+ static isSphereVisibleToPlayer(p0, p1, p2, p3, p4, p5) {
1835
+ return !!inv('0xDC3A310219E5DA62', p0, p1, p2, p3, p4, p5, rai());
2004
1836
  }
2005
1837
  /**
2006
- * @param netID
2007
- * @param toggle
1838
+ * @param netHandle
1839
+ * @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist.
2008
1840
  */
2009
- static activateDamageTrackerOnNetworkId(netID, toggle) {
2010
- inv('0xD45B1FFCCD52FF19', netID, toggle);
1841
+ static netToEnt(netHandle) {
1842
+ return createFromHandle('Entity', inv('0xBFFEAB45A9A9094A', netHandle, rai()));
2011
1843
  }
2012
1844
  /**
2013
- * *NETWORK_SPAWN_CONFIG**
1845
+ * Note: this native was added in build 1311.23
1846
+ *
1847
+ * @returns
2014
1848
  */
2015
- static N_0x6CEE2E30021DAEC6() {
2016
- inv('0x6CEE2E30021DAEC6');
1849
+ static N_0x062842D61D0D53FD() {
1850
+ return !!inv('0x062842D61D0D53FD', rai());
1851
+ }
1852
+ /**
1853
+ * @param p0
1854
+ */
1855
+ static N_0xFF36F36B07E69059(p0) {
1856
+ inv('0xFF36F36B07E69059', p0);
1857
+ }
1858
+ /**
1859
+ * @param flags
1860
+ * @returns
1861
+ */
1862
+ static sessionSetPlayerFlags(flags) {
1863
+ return inv('0x0AE241A4A9ADEEEC', flags);
1864
+ }
1865
+ /**
1866
+ * @param contentId
1867
+ * @param dataSize
1868
+ * @param p4
1869
+ * @param flags
1870
+ * @returns gamerHandle; data
1871
+ */
1872
+ static sendSessionInvite(contentId, dataSize, p4, flags) {
1873
+ const result = inv('0xE47001B7CB8B98AE', pvi(), contentId, pvi(), dataSize, p4, flags);
1874
+ return [result[0], result[1], result[2]];
2017
1875
  }
2018
- static N_0x5B9C6AC118FD4774() {
2019
- inv('0x5B9C6AC118FD4774');
1876
+ static N_0x61BFBAA795E712AD() {
1877
+ inv('0x61BFBAA795E712AD');
2020
1878
  }
2021
1879
  /**
2022
- * @param player
2023
- * @param trackedPlayer
1880
+ * @param playerSlot
1881
+ * @param personaPhotoLocalCacheType
2024
1882
  * @returns
2025
1883
  */
2026
- static isTrackedPlayerVisible(player, trackedPlayer) {
2027
- return inv('0xE525878A35B9EEBD', player.handle, trackedPlayer.handle);
2028
- }
2029
- static activityResetToIdle() {
2030
- inv('0x3FE141FDB990E3D1');
1884
+ static localPlayerPedshotTextureDownloadRequest(playerSlot, personaPhotoLocalCacheType) {
1885
+ return inv('0x6E2FD8CF7EB10E53', playerSlot, personaPhotoLocalCacheType, rai());
2031
1886
  }
2032
1887
  /**
2033
- * @param p0
1888
+ * Hardcoded to return zero.
1889
+ *
2034
1890
  * @returns
2035
1891
  */
2036
- static hasControlOfPickupPlacement(p0) {
2037
- return inv('0x51EABCF2786515AB', p0, rai());
1892
+ static N_0x5133CF81924F1129() {
1893
+ return inv('0x5133CF81924F1129', rai());
2038
1894
  }
2039
1895
  /**
2040
- * Converts the specified entity into a local entity, removing it from the networked pool. This will only work if you're the owner of the entity.
1896
+ * Returns the Player associated to a given Ped when in an online session.
2041
1897
  *
2042
- * @param entity The entity to un-network
1898
+ * @param ped
1899
+ * @returns
2043
1900
  */
2044
- static unregisterNetworkedEntity(entity) {
2045
- inv('0xE31A04513237DC89', entity.handle);
1901
+ static getPlayerIndexFromPed(ped) {
1902
+ return createFromHandle('Player', inv('0x6C0E2E0125610278', ped.handle, rai()));
2046
1903
  }
2047
1904
  /**
2048
- * nullsub, doesn't do anything
1905
+ * @param netID
1906
+ * @returns
2049
1907
  */
2050
- static showPsnUgcRestriction() {
2051
- inv('0x5C497525F803486B');
1908
+ static doesNetworkIdExist(netID) {
1909
+ return !!inv('0x38CE16C96BD11344', netID, rai());
2052
1910
  }
2053
1911
  /**
2054
- * @param p0
2055
- * @param p1
2056
- * @returns
1912
+ * @param local
1913
+ * @param remote
1914
+ * @param instanceId
2057
1915
  */
2058
- static ugcQueryGetPosixUpdatedDate(p0, p1) {
2059
- return inv('0x21A99A72B00D8002', p0, p1, rai());
1916
+ static setLocalPlayerVisibleInCutscene(local, remote, instanceId) {
1917
+ inv('0xD1065D68947E7B6E', local, remote, instanceId);
2060
1918
  }
2061
1919
  /**
2062
- * @param index
2063
- * @returns
1920
+ * Params: p5 = 50.f, p6 = 0 in R* Script net_fetch (NET_FETCH_CLIENT_UPDATE_PED_ROLE_CLUE_IDLE)
1921
+ *
1922
+ * @param pos
1923
+ * @param p5
1924
+ * @param p6
1925
+ * @returns p0; p1
2064
1926
  */
2065
- static hasRosPrivilege(index) {
2066
- return inv('0xA699957E60D80214', index, rai());
1927
+ static N_0x880A7202301E282B(pos, p5, p6) {
1928
+ const result = inv('0x880A7202301E282B', pvi(), pvi(), f(pos.x), f(pos.y), f(pos.z), f(p5), p6, rai());
1929
+ return [!!result[0], result[1], result[2]];
2067
1930
  }
2068
1931
  /**
1932
+ * Note: this native was added in build 1491.50
1933
+ *
1934
+ * @param p0
2069
1935
  * @returns
2070
1936
  */
2071
- static isSessionStarted() {
2072
- return inv('0x9DE624D2FC4B603F', rai());
1937
+ static N_0xDBDF80673BBA3D65(p0) {
1938
+ return !!inv('0xDBDF80673BBA3D65', p0, rai());
2073
1939
  }
2074
1940
  /**
2075
- * @param toggle
1941
+ * @param p0
2076
1942
  */
2077
- static setLocalPlayerSyncLookAt(toggle) {
2078
- inv('0x524FF0AEFF9C3973', toggle);
1943
+ static N_0x9F24A34863FD35DA(p0) {
1944
+ inv('0x9F24A34863FD35DA', p0);
1945
+ }
1946
+ static clearPlatformInvite() {
1947
+ inv('0xA4484173759749B1');
2079
1948
  }
2080
1949
  /**
2081
- * @returns gamerHandle
1950
+ * @param toggle
1951
+ * @param p2
1952
+ * @returns p1
2082
1953
  */
2083
- static showProfileUi() {
2084
- const result = inv('0x859ED1CEA343FCA8', pvi());
1954
+ static autoSessionSetAllowedToMerge(toggle, p2) {
1955
+ const result = inv('0x63246A24F5747510', toggle, pvi(), p2);
2085
1956
  return result;
2086
1957
  }
2087
1958
  /**
2088
- * @param player
2089
- * @param toggle
1959
+ * @returns
2090
1960
  */
2091
- static setPlayerVisibleLocally(player, toggle) {
2092
- inv('0xFAA10F1FAFB11AF2', player.handle, toggle);
1961
+ static getTotalNumPlayers() {
1962
+ return inv('0xCF61D4B4702EE9EB', rai());
2093
1963
  }
2094
1964
  /**
2095
- * *NETWORK_SPAWN_CONFIG**
1965
+ * Note: this native was added in build 1311.23
2096
1966
  *
2097
- * @param nsctf
1967
+ * @param p0
1968
+ * @returns
2098
1969
  */
2099
- static N_0x5D3C528B7A7DF836(nsctf) {
2100
- inv('0x5D3C528B7A7DF836', _h(nsctf));
1970
+ static N_0x744BFBB0CA908161(p0) {
1971
+ return inv('0x744BFBB0CA908161', p0, rai());
2101
1972
  }
2102
1973
  /**
1974
+ * @param player
2103
1975
  * @returns
2104
1976
  */
2105
- static autoSessionIsAutoWarpDisabled() {
2106
- return inv('0xE258570E0C116A66');
1977
+ static isPlayerActive(player) {
1978
+ return !!inv('0xB8DFD30D6973E135', player.handle, rai());
2107
1979
  }
2108
1980
  /**
2109
1981
  * @returns
2110
1982
  */
2111
- static didGetGamerStatusSucceed() {
2112
- return inv('0x5AE17C6B0134B7F1');
1983
+ static getPlatformInviteId() {
1984
+ return inv('0x9BCF28FB5D65A9BE', rai());
2113
1985
  }
2114
1986
  /**
2115
1987
  * @param p0
2116
- * @param p1
2117
- * @param p2
2118
- * @param p3
2119
- * @param p4
1988
+ * @param index
2120
1989
  * @returns
2121
1990
  */
2122
- static isSphereVisibleToAnotherMachine(p0, p1, p2, p3, p4) {
2123
- return inv('0xD82CF8E64C8729D8', p0, p1, p2, p3, p4, rai());
1991
+ static ugcQueryGetOwnerId(p0, index) {
1992
+ return inv('0xF9F0B3028431967B', p0, index, ras());
2124
1993
  }
2125
1994
  /**
2126
- * @param p0
1995
+ * @param tunableContext
1996
+ * @param tunableName
1997
+ * @param defaultValue
2127
1998
  * @returns
2128
1999
  */
2129
- static checkCommunicationPrivileges(p0) {
2130
- return inv('0x83F28CE49FBBFFBA', p0, rai());
2000
+ static tryAccessTunableFloatHash(tunableContext, tunableName, defaultValue) {
2001
+ return inv('0xA18393089C05E49C', _h(tunableContext), _h(tunableName), f(defaultValue), raf());
2131
2002
  }
2132
2003
  /**
2133
- * Note: this native was added in build 1355.30
2004
+ * @returns
2134
2005
  */
2135
- static N_0x40FEDB13870042F1() {
2136
- inv('0x40FEDB13870042F1');
2006
+ static hasNetworkTimeStarted() {
2007
+ return !!inv('0x46718ACEEDEAFC84', rai());
2137
2008
  }
2138
2009
  /**
2139
- * @param player1
2140
- * @param player2
2010
+ * Hardcoded to return false.
2011
+ *
2141
2012
  * @returns
2142
2013
  */
2143
- static N_0xFE53B1F8D43F19BF(player1, player2) {
2144
- return inv('0xFE53B1F8D43F19BF', player1.handle, player2.handle, rai());
2014
+ static isInPlatformParty() {
2015
+ return !!inv('0x2FC5650B0271CB57', rai());
2145
2016
  }
2146
2017
  /**
2147
- * @param id
2018
+ * Return the local Participant ID. This native is exactly the same as 'PARTICIPANT_ID' native.
2019
+ *
2148
2020
  * @returns
2149
2021
  */
2150
- static cloudDidRequestSucceed(id) {
2151
- return inv('0x3A3D5568AF297CD5', id, rai());
2022
+ static participantIdToInt() {
2023
+ return inv('0x57A3BDDAD8E5AA0A', rai());
2152
2024
  }
2153
2025
  /**
2154
- * @param player
2026
+ * @param toggle
2027
+ * @param pos
2028
+ */
2029
+ static setInStaticSpectatorMode(toggle, pos) {
2030
+ inv('0xFBF1ECFB39A77B5F', toggle, f(pos.x), f(pos.y), f(pos.z));
2031
+ }
2032
+ /**
2033
+ * @param p0
2155
2034
  * @returns
2156
2035
  */
2157
- static isPlayerConnected(player) {
2158
- return inv('0x93DC1BE4E1ABE9D1', player.handle, rai());
2036
+ static requestControlOfPickupPlacement(p0) {
2037
+ return !!inv('0x56ED2C48558DAB78', p0, rai());
2159
2038
  }
2160
2039
  /**
2161
- * Hardcoded to return false.
2162
- *
2163
- * @returns gamerHandle
2040
+ * @param entity
2164
2041
  */
2165
- static isPendingFriend() {
2166
- const result = inv('0x0BE73DA6984A6E33', pvi());
2167
- return [result[0], result[1]];
2042
+ static registerEntityAsNetworked(entity) {
2043
+ inv('0x06FAACD625D80CAA', entity.handle);
2168
2044
  }
2169
2045
  /**
2170
- * Note: this native was added in build 1311.23
2046
+ * Session flag 'SF_PRIVATE' is set internally
2047
+ * p1 represents max amount of players in private session
2171
2048
  *
2172
- * @param p0
2049
+ * @param flags
2050
+ * @param numPlayers
2051
+ * @param userHash
2052
+ * @returns sessionRequestId
2173
2053
  */
2174
- static N_0xA7670F7991099680(p0) {
2175
- inv('0xA7670F7991099680', p0);
2054
+ static sessionRequestSessionPrivate(flags, numPlayers, userHash) {
2055
+ const result = inv('0x39A8EF7AF29A192C', flags, numPlayers, userHash, pvi());
2056
+ return [result[0], result[1]];
2176
2057
  }
2177
2058
  /**
2178
- * @param instanceId
2059
+ * @param textureDownloadId
2179
2060
  */
2180
- static setLocalPlayerPendingFastInstanceId(instanceId) {
2181
- inv('0x007FF852DCF49DA4', instanceId);
2061
+ static textureDownloadRelease(textureDownloadId) {
2062
+ inv('0x487EB90B98E9FB19', textureDownloadId);
2182
2063
  }
2183
2064
  /**
2184
- * @param p0
2065
+ * Only used in R* Script net_rolling_playlist
2185
2066
  */
2186
- static N_0xF342F6BD0A8287D5(p0) {
2187
- inv('0xF342F6BD0A8287D5', p0);
2067
+ static sessionPlaylistGoToNextContent() {
2068
+ inv('0xBDE605F925B07127');
2188
2069
  }
2189
2070
  /**
2190
- * @returns
2071
+ * Note: this native was added in build 1311.23
2072
+ *
2073
+ * @returns sessionId
2191
2074
  */
2192
- static isFindingGamers() {
2193
- return inv('0xDDDF64C91BFCF0AA', rai());
2075
+ static sessionGetSessionId() {
2076
+ const result = inv('0xE9B356C330C0A806', pvi());
2077
+ return result;
2194
2078
  }
2195
2079
  /**
2196
- * Returns textureDownloadId
2197
- *
2198
- * @param filePath
2199
- * @param name
2200
- * @param p3
2201
- * @returns gamerHandle
2080
+ * @returns
2202
2081
  */
2203
- static textureDownloadRequest(filePath, name, p3) {
2204
- const result = inv('0x16160DA74A8E74A2', pvi(), filePath, name, p3, rai());
2205
- return [result[0], result[1]];
2082
+ static autoSessionSplitSessionSuccessful() {
2083
+ return inv('0x6D87BA8EF15226CD');
2206
2084
  }
2207
2085
  /**
2208
- * @returns gamerHandle
2086
+ * @param ugcRequestId
2087
+ * @returns
2209
2088
  */
2210
- static isFriendHandleOnline() {
2211
- const result = inv('0xE348D1404BD80146', pvi(), rai());
2212
- return [!!result[0], result[1]];
2089
+ static ugcHasRequestFinished(ugcRequestId) {
2090
+ return inv('0xA9EB4D606076615D', ugcRequestId);
2213
2091
  }
2214
2092
  /**
2215
- * @param netId
2216
- * @returns weaponHash: Refer to [enum: eWeaponHash]
2093
+ * @returns sessionRequestId
2217
2094
  */
2218
- static getDestroyerOfNetworkId(netId) {
2219
- const result = inv('0x7A1ADEEF01740A24', netId, pvi(), rai());
2095
+ static sessionIsRequestInProgress() {
2096
+ const result = inv('0x8FB7C254CFCBF78E', pvi());
2220
2097
  return [result[0], result[1]];
2221
2098
  }
2222
2099
  /**
2223
- * Returns value of fwuiCachedSetting "general.onlineNotificationsInStoryMode"
2100
+ * Adds the first argument to the second.
2224
2101
  *
2102
+ * @param timeA
2103
+ * @param timeB
2225
2104
  * @returns
2226
2105
  */
2227
- static areOnlineNotificationsShownInStoryMode() {
2228
- return inv('0xF5C5929E07512F80', rai());
2106
+ static getTimeOffset(timeA, timeB) {
2107
+ return inv('0x017008CCDAD48503', timeA, timeB, rai());
2229
2108
  }
2230
2109
  /**
2231
- * Subtracts the second argument from the first.
2110
+ * @param p0
2111
+ * @returns
2112
+ */
2113
+ static N_0xC028B3F52C707C49(p0) {
2114
+ return !!inv('0xC028B3F52C707C49', p0, rai());
2115
+ }
2116
+ /**
2117
+ * nullsub, doesn't do anything
2232
2118
  *
2233
- * @param timeA
2234
- * @param timeB
2235
2119
  * @returns
2236
2120
  */
2237
- static getTimeDifference(timeA, timeB) {
2238
- return inv('0xA2C6FC031D46FFF0', timeA, timeB, rai());
2121
+ static N_0xC964FCD3D1720697() {
2122
+ return inv('0xC964FCD3D1720697');
2239
2123
  }
2240
2124
  /**
2241
2125
  * @param p0
2126
+ * @param p1
2242
2127
  * @returns
2243
2128
  */
2244
- static N_0xD1FFB246F4E088AC(p0) {
2245
- return inv('0xD1FFB246F4E088AC', p0, rai());
2129
+ static ugcQueryGetPublished(p0, p1) {
2130
+ return inv('0x9993F1E11944A3DD', p0, p1);
2131
+ }
2132
+ static disableRealtimeMultiplayer() {
2133
+ inv('0x236905C700FDB54D');
2246
2134
  }
2247
2135
  /**
2248
- * @param description
2249
- * @returns
2136
+ * @param volume
2250
2137
  */
2251
- static ugcDidDescriptionRequestSucceed(description) {
2252
- return inv('0x162C23CA83ED0A62', _h(description), rai());
2138
+ static spawnConfigRemoveExclusionVolume(volume) {
2139
+ inv('0xA35E7BF20FA269E0', volume.handle);
2253
2140
  }
2254
2141
  /**
2142
+ * @param tunableContext
2143
+ * @param tunableName
2255
2144
  * @returns
2256
2145
  */
2257
- static getGameMode() {
2258
- return inv('0x225640E09EFFDC3F', rai());
2146
+ static doesTunableExist(tunableContext, tunableName) {
2147
+ return !!inv('0x85E5F8B9B898B20A', _h(tunableContext), _h(tunableName), rai());
2259
2148
  }
2260
2149
  /**
2261
- * @param amount
2150
+ * Note: this native was added in build 1311.23
2151
+ *
2152
+ * @param p0
2153
+ * @returns
2262
2154
  */
2263
- static reserveNetworkClientMissionPeds(amount) {
2264
- inv('0x807E119F80231732', amount);
2155
+ static N_0x982D7AD755B8F62C(p0) {
2156
+ return inv('0x982D7AD755B8F62C', p0, rai());
2157
+ }
2158
+ static startSoloTutorialSession() {
2159
+ inv('0x17E0198B3882C2CB');
2265
2160
  }
2266
2161
  /**
2267
2162
  * @param p0
2268
- * @param p1
2269
2163
  * @param p2
2270
2164
  * @param p3
2165
+ * @returns p1
2271
2166
  */
2272
- static setInMpCutscene(p0, p1, p2, p3) {
2273
- inv('0x9CA5DE655269FEC4', p0, p1, p2, p3);
2167
+ static setRichPresence(p0, p2, p3) {
2168
+ const result = inv('0x1DCCACDCFC569362', p0, pvi(), p2, p3);
2169
+ return result;
2274
2170
  }
2275
2171
  /**
2276
- * @param toggle
2277
- * @param playerPed
2172
+ * @returns
2278
2173
  */
2279
- static setInSpectatorMode(toggle, playerPed) {
2280
- inv('0x423DE3854BB50894', toggle, playerPed.handle);
2174
+ static pedmugshotTake() {
2175
+ return inv('0xCD954F330693F5F2');
2281
2176
  }
2282
2177
  /**
2283
- * @param p0
2178
+ * @param entity
2284
2179
  */
2285
- static N_0x3E74A687A73979C6(p0) {
2286
- inv('0x3E74A687A73979C6', p0);
2180
+ static N_0xBB1EC8C2EEF33BAA(entity) {
2181
+ inv('0xBB1EC8C2EEF33BAA', entity.handle);
2287
2182
  }
2288
2183
  /**
2289
- * @returns sessionRequestId
2184
+ * @returns
2290
2185
  */
2291
- static sessionIsRequestPendingTransition() {
2292
- const result = inv('0xCCF878D50F8AB10D', pvi());
2293
- return [result[0], result[1]];
2186
+ static haveOnlinePrivileges() {
2187
+ return !!inv('0x25CB5A9F37BFD063', rai());
2294
2188
  }
2295
2189
  /**
2296
- * @param offset
2190
+ * @param p0
2191
+ * @param index
2192
+ * @returns
2297
2193
  */
2298
- static spawnConfigSetGroundToRootOffset(offset) {
2299
- inv('0x59577799F6AE2F34', f(offset));
2194
+ static ugcQueryGetRootContentId(p0, index) {
2195
+ return inv('0x566CEB0542EF5ECF', p0, index, ras());
2300
2196
  }
2301
2197
  /**
2302
2198
  * @returns
2303
2199
  */
2304
- static checkAccessAndAlertIfFail() {
2305
- return inv('0x2A8112A974DE1EF6');
2200
+ static didFindGamersSucceed() {
2201
+ return inv('0xF9B83B77929D8863');
2202
+ }
2203
+ static N_0x0BF90CBB6B72977B() {
2204
+ inv('0x0BF90CBB6B72977B');
2306
2205
  }
2307
2206
  /**
2308
- * Note: this native was added in build 1311.23
2309
- *
2310
- * @returns
2207
+ * @returns gamerHandle
2311
2208
  */
2312
- static N_0xFB3205788F8AFA3F() {
2313
- return inv('0xFB3205788F8AFA3F', rai());
2209
+ static getLocalHandle() {
2210
+ const result = inv('0xE86051786B66CD8E', pvi());
2211
+ return result;
2314
2212
  }
2315
2213
  /**
2316
- * @returns
2214
+ * nullsub, doesn't do anything
2215
+ *
2216
+ * @param p0
2317
2217
  */
2318
- static getNumRecentGamers() {
2319
- return inv('0x37A834AEC6A4F74A', rai());
2218
+ static N_0x2C4E98DDA475364F(p0) {
2219
+ inv('0x2C4E98DDA475364F', p0);
2320
2220
  }
2321
2221
  /**
2222
+ * @param entity
2322
2223
  * @returns
2323
2224
  */
2324
- static N_0xD3A3C8B9F3BDEF81() {
2325
- return inv('0xD3A3C8B9F3BDEF81');
2225
+ static getGlobalEntityFlags(entity) {
2226
+ return inv('0xDD7806FD0543BC3D', entity.handle, rai());
2326
2227
  }
2327
2228
  /**
2328
- * Returns the entity's network ID.
2329
- *
2330
- * @param entity
2229
+ * @param description
2331
2230
  * @returns
2332
2231
  */
2333
- static N_0xF302AB9D978352EE(entity) {
2334
- return inv('0xF302AB9D978352EE', entity.handle, rai());
2232
+ static ugcHasDescriptionRequestFinished(description) {
2233
+ return !!inv('0xEBFA8D50ADDC54C4', _h(description), rai());
2335
2234
  }
2336
2235
  /**
2337
2236
  * @returns
2338
2237
  */
2339
2238
  static canSessionEnd() {
2340
- return inv('0x4EEBC3694E49C572', rai());
2239
+ return !!inv('0x4EEBC3694E49C572', rai());
2341
2240
  }
2342
2241
  /**
2343
2242
  * @returns
@@ -2359,7 +2258,7 @@ export class Network {
2359
2258
  * @returns
2360
2259
  */
2361
2260
  static isInPlatformPartyChat() {
2362
- return inv('0xFD8B834A8BA05048', rai());
2261
+ return !!inv('0xFD8B834A8BA05048', rai());
2363
2262
  }
2364
2263
  /**
2365
2264
  * @param friendIndex
@@ -2373,7 +2272,7 @@ export class Network {
2373
2272
  * @returns
2374
2273
  */
2375
2274
  static commerceStoreIsEnabled() {
2376
- return inv('0xDBC754CB6CCB9378', rai());
2275
+ return !!inv('0xDBC754CB6CCB9378', rai());
2377
2276
  }
2378
2277
  /**
2379
2278
  * @param p0
@@ -2386,7 +2285,7 @@ export class Network {
2386
2285
  * @returns
2387
2286
  */
2388
2287
  static hasControlOfNetworkId(netId) {
2389
- return inv('0x4D36070FE0215186', netId, rai());
2288
+ return !!inv('0x4D36070FE0215186', netId, rai());
2390
2289
  }
2391
2290
  /**
2392
2291
  * @param flags
@@ -2434,7 +2333,7 @@ export class Network {
2434
2333
  * @returns
2435
2334
  */
2436
2335
  static isClockTimeOverridden() {
2437
- return inv('0xD7C95D322FF57522', rai());
2336
+ return !!inv('0xD7C95D322FF57522', rai());
2438
2337
  }
2439
2338
  /**
2440
2339
  * @param player
@@ -2445,691 +2344,732 @@ export class Network {
2445
2344
  return result;
2446
2345
  }
2447
2346
  /**
2448
- * Note: this native was added in build 1311.23, but was only used after build 1436.25
2347
+ * Returns string for GET_STATUS_OF_LOAD_MISSION_CREATOR_PHOTO
2348
+ *
2349
+ * @param p0
2350
+ * @param p1
2351
+ * @param p2
2352
+ * @returns
2449
2353
  */
2450
- static requestCloudTunables() {
2451
- inv('0x42FB3B532D526E6C');
2354
+ static ugcQueryGetCreatorPhoto(p0, p1, p2) {
2355
+ return inv('0x409FE0CA6A4D1D49', p0, p1, p2, ras());
2452
2356
  }
2453
2357
  /**
2454
2358
  * @param toggle
2455
2359
  */
2456
- static setScriptReadyForEvents(toggle) {
2457
- inv('0x7AC752103856FB20', toggle);
2360
+ static setRecentGamersEnabled(toggle) {
2361
+ inv('0x29FE035D35B8589C', toggle);
2458
2362
  }
2459
2363
  /**
2460
- * @param amount
2461
2364
  * @returns
2462
2365
  */
2463
- static canRegisterMissionPeds(amount) {
2464
- return inv('0xBCBF4FEF9FA5D781', amount, rai());
2465
- }
2466
- /**
2467
- * @returns gamerHandle1; gamerHandle2
2468
- */
2469
- static areHandlesTheSame() {
2470
- const result = inv('0x57DBA049E110F217', pvi(), pvi(), rai());
2471
- return [!!result[0], result[1], result[2]];
2366
+ static getLaunchParamString() {
2367
+ return inv('0xC59AB6A04333C502', ras());
2472
2368
  }
2473
2369
  /**
2474
- * Old name: _SET_LOCAL_PLAYER_AS_GHOST
2475
- *
2370
+ * @param entity
2476
2371
  * @param toggle
2477
2372
  */
2478
- static setLocalPlayerAsGhost(toggle) {
2479
- inv('0x5FFE9B4144F9712F', toggle);
2480
- }
2481
- /**
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
2490
- */
2491
- static getDisplayNameFromHandle(displayName) {
2492
- const result = inv('0x7FEE4F07C54B6B3C', pvi(), displayName);
2493
- return [result[0], result[1]];
2494
- }
2495
- static endTutorialSession() {
2496
- inv('0xD0AFAFF5A51D72F7');
2373
+ static setEntityRemainsWhenUnnetworked(entity, toggle) {
2374
+ inv('0xD785864798258032', entity.handle, toggle);
2497
2375
  }
2498
2376
  /**
2499
- * @param p0
2377
+ * @param flags
2378
+ * @param userHash
2500
2379
  * @param p2
2501
- * @returns p1
2380
+ * @returns sessionRequestId
2502
2381
  */
2503
- static isPlayerAParticipantOnScript(p0, p2) {
2504
- const result = inv('0x1AD5B71586B94820', p0.handle, pvi(), p2, rai());
2382
+ static sessionRequestSessionNominated(flags, userHash, p2) {
2383
+ const result = inv('0x4F4672457FF597D1', flags, userHash, p2, pvi(), rai());
2505
2384
  return [!!result[0], result[1]];
2506
2385
  }
2507
2386
  /**
2387
+ * @param description
2508
2388
  * @returns
2509
2389
  */
2510
- static getTotalNumFriends() {
2511
- return inv('0xDB7ABDD203FA3704', rai());
2390
+ static ugcIsDescriptionRequestInProgress(description) {
2391
+ return !!inv('0x2D5DC831176D0114', _h(description), rai());
2512
2392
  }
2513
2393
  /**
2514
- * Returns ugcRequestId
2515
- *
2516
- * @param p0
2517
- * @param maxGet
2518
- * @param contentTypeName
2519
- * @param p3
2520
- * @param p4
2521
- * @param p5
2522
- * @returns
2394
+ * @param ugcRequestId
2523
2395
  */
2524
- static ugcQueryByContentType(p0, maxGet, contentTypeName, p3, p4, p5) {
2525
- return inv('0xF40EF49B3099E98E', p0, maxGet, contentTypeName, p3, p4, p5, rai());
2396
+ static ugcClearQueryResults(ugcRequestId) {
2397
+ inv('0xE931354FEA710038', ugcRequestId);
2526
2398
  }
2527
2399
  /**
2528
- * @param p0
2529
- * @param index
2530
- * @param p2
2400
+ * @param threadId
2531
2401
  * @returns
2532
2402
  */
2533
- static ugcQueryGetRating(p0, index, p2) {
2534
- return inv('0x24CD8FAEA1368379', p0, index, p2, raf());
2403
+ static getHostOfThread(threadId) {
2404
+ return createFromHandle('Player', inv('0xB4A25351D79B444C', threadId, rai()));
2535
2405
  }
2536
2406
  /**
2537
- * @param player
2407
+ * @returns
2538
2408
  */
2539
- static N_0xD78A26024BB13E08(player) {
2540
- inv('0xD78A26024BB13E08', player.handle);
2409
+ static isGameInProgress() {
2410
+ return !!inv('0x10FAB35428CCC9D7', rai());
2541
2411
  }
2542
2412
  /**
2543
- * Only used in R* Script fm_race_controller
2544
- *
2545
- * @param p0
2413
+ * @param rangeStart
2414
+ * @param rangeEnd
2415
+ * @returns
2546
2416
  */
2547
- static N_0x71FA2D1880C48032(p0) {
2548
- inv('0x71FA2D1880C48032', p0);
2417
+ static getRandomIntRanged(rangeStart, rangeEnd) {
2418
+ return inv('0xE30CF56F1EFA5F43', rangeStart, rangeEnd, rai());
2549
2419
  }
2550
2420
  /**
2551
- * Note: this native was added in build 1311.23
2552
- *
2553
2421
  * @param p0
2554
- * @param p1
2555
- * @param p2
2556
- * @param p3
2557
2422
  * @returns
2558
2423
  */
2559
- static N_0x5F328FC909F0E0FF(p0, p1, p2, p3) {
2560
- return inv('0x5F328FC909F0E0FF', p0, p1, p2, p3, rai());
2424
+ static acceptRsInvite(p0) {
2425
+ return inv('0xB2CEA5105AAC8DDE', p0);
2561
2426
  }
2562
2427
  /**
2563
- * Old name: _NETWORK_SET_VEHICLE_WHEELS_DESTRUCTIBLE
2564
- *
2565
- * @param entity
2566
- * @param p1
2428
+ * @param player
2429
+ * @param toggle
2567
2430
  */
2568
- static triggerDamageEventForZeroDamage(entity, p1) {
2569
- inv('0x0C8BC052AE87D744', entity.handle, p1);
2431
+ static concealPlayer(player, toggle) {
2432
+ inv('0xBBDF066252829606', player.handle, toggle);
2570
2433
  }
2571
2434
  /**
2572
- * nullsub, doesn't do anything
2435
+ * ^^ 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
2573
2436
  *
2574
- * @returns
2437
+ * @param entity
2438
+ * @param toggle
2575
2439
  */
2576
- static getNetStatisticsInfo() {
2577
- return inv('0x6FD992C4A1C1B986');
2440
+ static setEntityOnlyExistsForParticipants(entity, toggle) {
2441
+ inv('0xF1CA12B18AEF5298', entity.handle, toggle);
2578
2442
  }
2579
2443
  /**
2580
- * nullsub, doesn't do anything
2444
+ * @param doorHash
2581
2445
  */
2582
- static N_0xFC6FCF4C03F1BBF6() {
2583
- inv('0xFC6FCF4C03F1BBF6');
2584
- }
2585
- static N_0x43CF999205084B4B() {
2586
- inv('0x43CF999205084B4B');
2446
+ static setDoorNetworked(doorHash) {
2447
+ inv('0x51D99497ABF3F451', _h(doorHash));
2587
2448
  }
2588
2449
  /**
2589
- * p0 appears to be for MP
2590
- *
2591
2450
  * @param p0
2592
- * @returns
2451
+ * @param index
2452
+ * @returns gamerHandle
2593
2453
  */
2594
- static getNumReservedMissionVehicles(p0) {
2595
- return inv('0xCF3A965906452031', p0, rai());
2454
+ static ugcQueryGetCreatorHandle(p0, index) {
2455
+ const result = inv('0xADB56322EEDFBDC9', p0, index, pvi());
2456
+ return [result[0], result[1]];
2596
2457
  }
2597
2458
  /**
2598
- * @param name
2459
+ * @param paramName
2599
2460
  * @returns
2600
2461
  */
2601
- static textureDownloadTextureNameIsValid(name) {
2602
- return inv('0xE2C3CEC3C0903A00', name);
2462
+ static getLaunchParamExists(paramName) {
2463
+ return inv('0x02E97CE283648CD9', paramName);
2603
2464
  }
2604
2465
  /**
2605
- * @param scriptName
2606
- * @param p1
2607
- * @param p2
2608
- * @param p3
2609
- * @returns
2466
+ * @returns gamerHandle
2610
2467
  */
2611
- static isScriptActive(scriptName, p1, p2, p3) {
2612
- return inv('0x9D40DF90FAD26098', scriptName, p1, p2, p3, rai());
2468
+ static canReceiveInviteFromHandle() {
2469
+ const result = inv('0xF23D6475640D29EB', pvi());
2470
+ return [result[0], result[1]];
2613
2471
  }
2614
2472
  /**
2615
- * @param p0
2473
+ * @param player
2474
+ * @param p1
2616
2475
  */
2617
- static N_0x5CB8B0C846D0F30B(p0) {
2618
- inv('0x5CB8B0C846D0F30B', p0);
2476
+ static addPlayerToRecentGamersList(player, p1) {
2477
+ inv('0x157D8F3DE12B307F', player.handle, p1);
2619
2478
  }
2620
2479
  /**
2621
- * @returns loadingState
2480
+ * @returns
2622
2481
  */
2623
- static canAccessMultiplayer() {
2624
- const result = inv('0xAF50DA1A3F8B1BA4', pvi(), rai());
2625
- return [!!result[0], result[1]];
2482
+ static N_0x232E1EB23CDB313C() {
2483
+ return !!inv('0x232E1EB23CDB313C', rai());
2626
2484
  }
2627
2485
  /**
2628
- * @returns p0
2486
+ * Note: this native was added in build 1311.23
2487
+ *
2488
+ * @returns sessionId1; sessionId2
2629
2489
  */
2630
- static getCurrentFriendPageData() {
2631
- const result = inv('0xA3EEC0A5AFF3FC5B', pvi());
2632
- return [result[0], result[1]];
2490
+ static sessionAreSessionIdsEqual() {
2491
+ const result = inv('0x4DEC5000F7B508F0', pvi(), pvi(), rai());
2492
+ return [!!result[0], result[1], result[2]];
2633
2493
  }
2634
2494
  /**
2635
- * @returns p0
2495
+ * @returns
2636
2496
  */
2637
- static getSizeOfHostBroadcastDataStorage() {
2638
- const result = inv('0xBA24095EA96DFE17', pvi(), rai());
2639
- return [result[0], result[1]];
2497
+ static isTutorialSessionChangePending() {
2498
+ return !!inv('0x35F0B98A8387274D', rai());
2499
+ }
2500
+ static ugcReleaseAllCachedDescriptions() {
2501
+ inv('0x68103E2247887242');
2640
2502
  }
2641
2503
  /**
2504
+ * @param animScene
2642
2505
  * @returns
2643
2506
  */
2644
- static getInstanceIdOfThisScript() {
2645
- return inv('0x638A3A81733086DB', rai());
2507
+ static requestControlOfAnimScene(animScene) {
2508
+ return inv('0xAAA92B631B13F614', animScene.handle);
2509
+ }
2510
+ static setMissionFinished() {
2511
+ inv('0x3B3D11CD9FFCDFC9');
2646
2512
  }
2647
2513
  /**
2514
+ * Note: this native was added in build 1311.23
2515
+ *
2648
2516
  * @param p0
2649
2517
  * @returns
2650
2518
  */
2651
- static awardHasReachedMaxclaim(p0) {
2652
- return inv('0xFBE782B3165AC8EC', p0);
2519
+ static N_0x1E4E097D71D449FB(p0) {
2520
+ return inv('0x1E4E097D71D449FB', p0, rai());
2653
2521
  }
2654
2522
  /**
2523
+ * Note: this native was added in build 1311.23
2524
+ *
2655
2525
  * @param p0
2656
- * @returns
2657
2526
  */
2658
- static N_0xBB697756309D77EE(p0) {
2659
- return inv('0xBB697756309D77EE', p0);
2527
+ static N_0xC1968045EEB563B7(p0) {
2528
+ inv('0xC1968045EEB563B7', p0);
2660
2529
  }
2661
2530
  /**
2662
- * @returns
2531
+ * Old name: _CLEAR_LAUNCH_PARAMS
2663
2532
  */
2664
- static autoSessionIsInstancedSession() {
2665
- return inv('0x277865A734918AE6');
2533
+ static clearServiceEventArguments() {
2534
+ inv('0x966DD84FB6A46017');
2666
2535
  }
2667
2536
  /**
2668
- * @param p0
2669
- * @param p1
2670
- * @returns
2537
+ * Old name: _NETWORK_ALLOW_LOCAL_ENTITY_ATTACHMENT
2538
+ *
2539
+ * @param entity
2540
+ * @param toggle
2671
2541
  */
2672
- static resetPopulation(p0, p1) {
2673
- return inv('0x101F538C25ABB39A', p0, p1);
2542
+ static allowRemoteAttachmentModification(entity, toggle) {
2543
+ inv('0x267C78C60E806B9A', entity.handle, toggle);
2674
2544
  }
2675
2545
  /**
2676
- * @param ped
2677
- * @returns Returns the network id for the specified `ped` or `0` if the entity isn't networked.
2546
+ * @param volume
2678
2547
  */
2679
- static pedToNet(ped) {
2680
- return inv('0x0EDEC3C276198689', ped.handle, rai());
2548
+ static spawnConfigAddExclusionVolume(volume) {
2549
+ inv('0xEEB7818B1D307212', volume.handle);
2681
2550
  }
2682
2551
  /**
2552
+ * Note: this native was added in build 1436.31
2553
+ *
2683
2554
  * @param p0
2684
2555
  * @returns
2685
2556
  */
2686
- static N_0x27B1AE4D8C652F08(p0) {
2687
- return inv('0x27B1AE4D8C652F08', p0, rai());
2557
+ static N_0x78271BC02AE9AF83(p0) {
2558
+ return inv('0x78271BC02AE9AF83', p0, rai());
2688
2559
  }
2689
2560
  /**
2690
- * @param entity
2561
+ * @param netID
2691
2562
  * @returns
2692
2563
  */
2693
- static hasEntityBeenRegisteredWithThisThread(entity) {
2694
- return inv('0xB07D3185E11657A5', entity.handle, rai());
2564
+ static isDamageTrackerActiveOnNetworkId(netID) {
2565
+ return !!inv('0x6E192E33AD436366', netID, rai());
2695
2566
  }
2696
2567
  /**
2697
- * @param entity
2698
- * @param toggle
2568
+ * Always returns -1. Seems to be XB1 specific.
2569
+ *
2570
+ * @returns gamerHandle
2699
2571
  */
2700
- static setEntityGhostedToLocalPlayer(entity, toggle) {
2701
- inv('0xEE5AE9956743BA20', entity.handle, toggle);
2572
+ static startUserContentPermissionsCheck() {
2573
+ const result = inv('0xDEB2B99A1AF1A2A6', pvi(), rai());
2574
+ return [result[0], result[1]];
2702
2575
  }
2703
2576
  /**
2704
- * @param player
2705
- * @returns weaponHash: Refer to [enum: eWeaponHash]
2577
+ * gets the object id of a network id
2578
+ *
2579
+ * @param netHandle
2580
+ * @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist.
2706
2581
  */
2707
- static getEntityKillerOfPlayer(player) {
2708
- const result = inv('0x42B2DAA6B596F5F8', player.handle, pvi(), rai());
2709
- return [createFromHandle('Entity', result[0]), result[1]];
2582
+ static netToObj(netHandle) {
2583
+ return createFromHandle('Prop', inv('0xD8515F5FEA14CB3F', netHandle, rai()));
2710
2584
  }
2711
2585
  /**
2712
- * @param p0
2586
+ * Note: this native was added in build 1311.23
2587
+ *
2588
+ * @param ctx
2589
+ * @param ec
2590
+ * @param ex
2591
+ * @param ro
2592
+ */
2593
+ static N_0x19447FCAE97704DC(ctx, ec, ex, ro) {
2594
+ inv('0x19447FCAE97704DC', _h(ctx), ec, ex, ro);
2595
+ }
2596
+ /**
2597
+ * Hardcoded to return zero.
2598
+ *
2713
2599
  * @returns
2714
2600
  */
2715
- static getNumCreatedMissionPickups(p0) {
2716
- return inv('0xD2BA051B94CA9BCC', p0, rai());
2601
+ static getPromotionDlgSeenCount() {
2602
+ return inv('0x2FB53C631A49BE92', rai());
2717
2603
  }
2718
2604
  /**
2719
- * @param entity
2720
- * @param p1
2721
- * @param p2
2722
- * @param p3
2605
+ * @param waterDepthLevel
2723
2606
  */
2724
- static setEntityVisibleInCutscene(entity, p1, p2, p3) {
2725
- inv('0xE0031D3C8F36AB82', entity.handle, p1, p2, p3);
2607
+ static spawnConfigSetLevelWaterDepth(waterDepthLevel) {
2608
+ inv('0xBDCC671B911040F9', waterDepthLevel);
2726
2609
  }
2727
2610
  /**
2728
- * Hardcoded to return -1.
2611
+ * @returns
2612
+ */
2613
+ static N_0x41452E8A3B9C0C4B() {
2614
+ return inv('0x41452E8A3B9C0C4B', rai());
2615
+ }
2616
+ /**
2617
+ * If you are host, returns true else returns false.
2729
2618
  *
2730
- * @param p1
2619
+ * @returns
2620
+ */
2621
+ static isHost() {
2622
+ return !!inv('0x8DB296B814EDDA07', rai());
2623
+ }
2624
+ /**
2731
2625
  * @returns p0
2732
2626
  */
2733
- static displaynamesFromHandlesStart(p1) {
2734
- const result = inv('0xD66C9E72B3CC4982', pvi(), p1, rai());
2735
- return [result[0], result[1]];
2627
+ static N_0xA6F1BAABFF6AD7B9() {
2628
+ const result = inv('0xA6F1BAABFF6AD7B9', pvi());
2629
+ return result;
2736
2630
  }
2737
2631
  /**
2738
2632
  * @returns
2739
2633
  */
2740
- static N_0xCC4E72C339461ED1() {
2741
- return inv('0xCC4E72C339461ED1');
2634
+ static spawnConfigSearchInProgress() {
2635
+ return inv('0x89EC2FC89ECB1005');
2742
2636
  }
2743
2637
  /**
2744
- * nullsub, doesn't do anything
2745
- *
2746
- * @returns
2638
+ * @param pos
2747
2639
  */
2748
- static N_0x160F0CE6D76A39C9() {
2749
- return inv('0x160F0CE6D76A39C9');
2640
+ static N_0x2686BD9566B65EDA(pos) {
2641
+ inv('0x2686BD9566B65EDA', f(pos.x), f(pos.y), f(pos.z));
2750
2642
  }
2751
2643
  /**
2752
- * Old name: _NETWORK_GET_OLDEST_RESEND_COUNT_FOR_PLAYER
2644
+ * Note: this native was added in build 1311.23
2753
2645
  *
2754
- * @param player
2646
+ * @param p0
2755
2647
  * @returns
2756
2648
  */
2757
- static getHighestReliableResendCount(player) {
2758
- return inv('0x52C1EADAF7B10302', player.handle, rai());
2649
+ static N_0x9E5A47744C0F0376(p0) {
2650
+ return !!inv('0x9E5A47744C0F0376', p0, rai());
2759
2651
  }
2760
2652
  /**
2761
- * Checks for session flag 'SF_PRIVATE'
2762
- *
2653
+ * @param p0
2654
+ * @param p1
2655
+ * @param p2
2763
2656
  * @returns
2764
2657
  */
2765
- static sessionIsPrivate() {
2766
- return inv('0xCEF70AA5B3F89BA1', rai());
2658
+ static N_0xC0CFFDA87C2C163D(p0, p1, p2) {
2659
+ return inv('0xC0CFFDA87C2C163D', p0, p1, p2);
2767
2660
  }
2768
2661
  /**
2769
- * @param toggle
2662
+ * @param amount
2770
2663
  */
2771
- static autoSessionSetAllowedToSplit(toggle) {
2772
- inv('0x0A428058079EE65C', toggle);
2664
+ static reserveNetworkMissionPickups(amount) {
2665
+ inv('0x4D40E7D749BC6E6D', amount);
2773
2666
  }
2774
- static N_0x19B52C20B5C4757C() {
2775
- inv('0x19B52C20B5C4757C');
2667
+ /**
2668
+ * Note: this native was added in build 1311.23
2669
+ *
2670
+ * @param p0
2671
+ */
2672
+ static N_0xD3B6EBC6C3D77D44(p0) {
2673
+ inv('0xD3B6EBC6C3D77D44', p0);
2776
2674
  }
2777
2675
  /**
2778
- * @returns sessionRequestId
2676
+ * @param p1
2677
+ * @param p2
2678
+ * @param p3
2679
+ * @param p5
2680
+ * @returns p0; p4
2779
2681
  */
2780
- static sessionIsNsrrSuccess() {
2781
- const result = inv('0x0F44A5C78D114922', pvi());
2782
- return [result[0], result[1]];
2682
+ static ugcTextureDownloadRequest(p1, p2, p3, p5) {
2683
+ const result = inv('0x308F96458B7087CC', pvi(), p1, p2, p3, pvi(), p5, rai());
2684
+ return [result[0], result[1], result[2]];
2783
2685
  }
2784
2686
  /**
2687
+ * p0 appears to be for MP
2688
+ *
2689
+ * @param p0
2785
2690
  * @returns
2786
2691
  */
2787
- static isPlatformInvitePending() {
2788
- return inv('0xFC4165C9165C166F');
2692
+ static getNumReservedMissionPeds(p0) {
2693
+ return inv('0x1F13D5AE5CB17E17', p0, rai());
2789
2694
  }
2790
2695
  /**
2791
2696
  * @returns
2792
2697
  */
2793
- static isInMpCutscene() {
2794
- return inv('0x6CC27C9FA2040220', rai());
2698
+ static isInSession() {
2699
+ return !!inv('0xCA97246103B63917', rai());
2795
2700
  }
2796
2701
  /**
2797
2702
  * @returns
2798
2703
  */
2799
- static N_0x273E04A3A7AD1F2D() {
2800
- return inv('0x273E04A3A7AD1F2D', rai());
2704
+ static isTunableCloudRequestPending() {
2705
+ return !!inv('0x0467C11ED88B7D28', rai());
2801
2706
  }
2802
2707
  /**
2803
- * Old name: _NETWORK_GET_AVERAGE_PACKET_LOSS_FOR_PLAYER
2708
+ * Old name: _NETWORK_IS_CONNECTION_ENDPOINT_RELAY_SERVER
2804
2709
  *
2805
2710
  * @param player
2806
2711
  * @returns
2807
2712
  */
2808
- static getAveragePacketLoss(player) {
2809
- return inv('0x350C23949E43686C', player.handle, raf());
2713
+ static isConnectedViaRelay(player) {
2714
+ return !!inv('0x16D3D49902F697BB', player.handle, rai());
2810
2715
  }
2811
2716
  /**
2812
- * @returns hour; minute; second
2717
+ * @param p0
2718
+ * @param toggle
2813
2719
  */
2814
- static getGlobalClock() {
2815
- const result = inv('0x11A7ADCD629E170F', pvi(), pvi(), pvi(), rai());
2816
- return [!!result[0], result[1], result[2], result[3]];
2720
+ static setDoorUnnetworked(p0, toggle) {
2721
+ inv('0xC1E1A3D5ED7617B8', p0, toggle);
2817
2722
  }
2818
2723
  /**
2819
- * @param player
2820
- * @returns
2724
+ * @param pos
2725
+ * @param heading
2726
+ * @param p4
2727
+ * @param p5
2728
+ * @param p6
2729
+ * @param p7
2821
2730
  */
2822
- static isPlayerAParticipant(player) {
2823
- return inv('0x3CA58F6CB7CBD784', player.handle, rai());
2731
+ static resurrectLocalPlayer(pos, heading, p4, p5, p6, p7) {
2732
+ inv('0xEA23C49EAA83ACFB', f(pos.x), f(pos.y), f(pos.z), f(heading), p4, p5, p6, p7);
2824
2733
  }
2825
2734
  /**
2826
- * @returns
2735
+ * @returns sessionRequestId
2827
2736
  */
2828
- static getXp() {
2829
- return inv('0xDB438CC9BC6F4022', rai());
2737
+ static sessionLeftQueueOrRequestedSession() {
2738
+ const result = inv('0xECE6A0C1B59CD8BE', pvi());
2739
+ return [result[0], result[1]];
2830
2740
  }
2831
2741
  /**
2832
- * @param p0
2833
- * @param index
2742
+ * @param flags Refer to [enum: eSessionFlags]
2834
2743
  * @returns
2835
2744
  */
2836
- static ugcQueryGetPlaylistName(p0, index) {
2837
- return inv('0xCAF50048C8D0FBA0', p0, index, ras());
2838
- }
2839
- static N_0xD39A72AE5EBD57E5() {
2840
- inv('0xD39A72AE5EBD57E5');
2745
+ static sessionRemoveSessionFlags(flags) {
2746
+ return inv('0x78335E12DB0BF961', flags);
2841
2747
  }
2842
2748
  /**
2843
- * @param p0
2749
+ * @returns
2844
2750
  */
2845
- static N_0xD42C543F73233041(p0) {
2846
- inv('0xD42C543F73233041', p0);
2847
- }
2848
- static N_0xE5FF65CFF5160752() {
2849
- inv('0xE5FF65CFF5160752');
2751
+ static haveRosBannedPriv() {
2752
+ return !!inv('0x8020A73847E0CA7D', rai());
2850
2753
  }
2851
2754
  /**
2852
- * @param player
2853
- * @param reportType
2854
- * @param description
2855
- * @param horseName
2755
+ * @param p0
2756
+ * @returns
2856
2757
  */
2857
- static reportPlayer(player, reportType, description, horseName) {
2858
- inv('0xA197C35F73AC0F12', player.handle, reportType, description, horseName);
2758
+ static N_0xCA58D4FD20D70F24(p0) {
2759
+ return inv('0xCA58D4FD20D70F24', p0, rai());
2859
2760
  }
2860
2761
  /**
2861
- * @returns p0
2762
+ * @returns
2862
2763
  */
2863
- static getSizeOfPlayerBroadcastDataStorage() {
2864
- const result = inv('0x690806BC83BC8CA2', pvi(), rai());
2865
- return [result[0], result[1]];
2764
+ static refreshCurrentFriendPage() {
2765
+ return inv('0x1F51F367B710A832');
2866
2766
  }
2867
2767
  /**
2768
+ * Same Native Handler as VEH_TO_NET, PED_TO_NET, OBJ_TO_NET and NETWORK_GET_NETWORK_ID_FROM_ENTITY
2769
+ *
2770
+ * @param handle
2868
2771
  * @returns
2869
2772
  */
2870
- static N_0x3E4A16BC669E71B3() {
2871
- return inv('0x3E4A16BC669E71B3', rai());
2773
+ static N_0xF260AF6F43953316(handle) {
2774
+ return inv('0xF260AF6F43953316', handle, rai());
2872
2775
  }
2873
2776
  /**
2874
2777
  * @returns
2875
2778
  */
2876
- static getNumParticipants() {
2877
- return inv('0x18D0456E86604654', rai());
2878
- }
2879
- static autoSessionFinishInstance() {
2880
- inv('0xBB51299166B844F3');
2779
+ static N_0xA94ECE191D90637A() {
2780
+ return inv('0xA94ECE191D90637A', rai());
2881
2781
  }
2882
2782
  /**
2783
+ * @param p0
2883
2784
  * @returns
2884
2785
  */
2885
- static getThisScriptIsNetworkScript() {
2886
- return inv('0x2910669969E9535E', rai());
2786
+ static getNumReservedMissionPickups(p0) {
2787
+ return inv('0x62BE3ECC79FBD004', p0, rai());
2887
2788
  }
2888
2789
  /**
2889
- * @param p0
2890
- * @param index
2891
- * @returns p2
2790
+ * @param toggle
2892
2791
  */
2893
- static ugcQueryGetDate(p0, index) {
2894
- const result = inv('0xE0CB4AB15CB32710', p0, index, pvi());
2895
- return result;
2792
+ static allowAllEntityFadingForInstances(toggle) {
2793
+ inv('0x4B05B97BA46F419D', toggle);
2896
2794
  }
2897
2795
  /**
2898
- * @param amount
2796
+ * @param netId
2899
2797
  */
2900
- static reserveNetworkMissionVehicles(amount) {
2901
- inv('0x76B02E21ED27A469', amount);
2798
+ static preventNetworkIdMigration(netId) {
2799
+ inv('0x7182EDDA1EE7DB5A', netId);
2902
2800
  }
2903
2801
  /**
2904
- * @param player1
2905
- * @param player2
2802
+ * Returns whether the signed-in user has valid Rockstar Online Services (ROS) credentials.
2803
+ *
2906
2804
  * @returns
2907
2805
  */
2908
- static N_0x862C5040F4888741(player1, player2) {
2909
- return inv('0x862C5040F4888741', player1.handle, player2.handle, rai());
2806
+ static hasValidRosCredentials() {
2807
+ return !!inv('0x85443FF4C328F53B', rai());
2910
2808
  }
2911
2809
  /**
2912
- * @param player
2913
- * @param damageMultiplier
2810
+ * @param ped_amt
2811
+ * @param vehicle_amt
2812
+ * @param object_amt
2813
+ * @param pickup_amt
2814
+ * @returns
2914
2815
  */
2915
- static setLocalPlayerDamageMultiplierForPlayer(player, damageMultiplier) {
2916
- inv('0xD041A32992A55F84', player.handle, f(damageMultiplier));
2816
+ static canRegisterMissionEntities(ped_amt, vehicle_amt, object_amt, pickup_amt) {
2817
+ return !!inv('0x69778E7564BADE6D', ped_amt, vehicle_amt, object_amt, pickup_amt, rai());
2917
2818
  }
2918
2819
  /**
2919
- * @param toggle
2820
+ * @returns
2920
2821
  */
2921
- static disableLeaveRemotePedBehind(toggle) {
2922
- inv('0xC505036A35AFD01B', toggle);
2822
+ static didRecentGamerNamesRequestSucceed() {
2823
+ return inv('0x12AEB56B489415C5');
2923
2824
  }
2924
2825
  /**
2925
- * @param netHandle
2926
- * @param p1
2826
+ * @returns sessionRequestId
2927
2827
  */
2928
- static N_0x894B5ECAB45D2342(netHandle, p1) {
2929
- inv('0x894B5ECAB45D2342', netHandle, p1);
2828
+ static sessionCancelRequest() {
2829
+ const result = inv('0xE72E5C1289BD1F40', pvi());
2830
+ return [result[0], result[1]];
2930
2831
  }
2931
2832
  /**
2932
- * @param name
2833
+ * @param message
2834
+ * @returns gamerHandle
2933
2835
  */
2934
- static textureDownloadReleaseByName(name) {
2935
- inv('0x7A17B7981560FFA5', name);
2836
+ static N_0x5759160AC17C13CE(message) {
2837
+ const result = inv('0x5759160AC17C13CE', pvi(), message);
2838
+ return result;
2936
2839
  }
2937
2840
  /**
2938
- * @param ugcRequestId
2841
+ * @param id
2939
2842
  * @returns
2940
2843
  */
2941
- static ugcIsRequestPending(ugcRequestId) {
2942
- return inv('0xF4AC4FA844FD559A', ugcRequestId);
2844
+ static cloudHasRequestCompleted(id) {
2845
+ return !!inv('0x4C61B39930D045DA', id, rai());
2943
2846
  }
2944
2847
  /**
2945
- * Only used in fm_race_controller R* Script (PROCESS_LOCAL_PLAYER_INIT)
2946
- *
2947
- * @param p0
2848
+ * nullsub, doesn't do anything
2948
2849
  */
2949
- static N_0xBC7D36946D19E60E(p0) {
2950
- inv('0xBC7D36946D19E60E', p0);
2850
+ static N_0xACC44768AF229042() {
2851
+ inv('0xACC44768AF229042');
2951
2852
  }
2952
2853
  /**
2953
- * @param setting
2854
+ * Hardcoded to return zero. ==== PS4 specific info ==== Returns some sort of unavailable reason:
2855
+ * -1 = REASON_INVALID
2856
+ * 0 = REASON_OTHER
2857
+ * 1 = REASON_SYSTEM_UPDATE
2858
+ * 2 = REASON_GAME_UPDATE
2859
+ * 3 = REASON_SIGNED_OUT
2860
+ * 4 = REASON_AGE
2861
+ * 5 = REASON_CONNECTION =================================
2862
+ *
2863
+ * @returns
2954
2864
  */
2955
- static N_0x704F92B3AF20D857(setting) {
2956
- inv('0x704F92B3AF20D857', setting);
2865
+ static getNpUnavailableReason() {
2866
+ return inv('0x74FB3E29E6D10FA9', rai());
2957
2867
  }
2958
2868
  /**
2959
- * @param p0
2960
- * @param p1
2869
+ * @param netId
2961
2870
  * @returns
2962
2871
  */
2963
- static ugcQueryGetPosixPublishedDate(p0, p1) {
2964
- return inv('0x104080CA9E519B00', p0, p1, rai());
2872
+ static netToPropset(netId) {
2873
+ return createFromHandle('PropSet', inv('0xD08066E00D26C448', netId, rai()));
2965
2874
  }
2966
2875
  /**
2967
- * @returns
2876
+ * @param paramName
2968
2877
  */
2969
- static getSocialMatchmakingAllowed() {
2970
- return inv('0xD0541EF28E9C4783');
2878
+ static clearLaunchParam(paramName) {
2879
+ inv('0x782C94DB6469634D', paramName);
2971
2880
  }
2972
2881
  /**
2973
- * @param toggle
2882
+ * @param p0
2974
2883
  */
2975
- static setSocialMatchmakingAllowed(toggle) {
2976
- inv('0x777D0571A466B520', toggle);
2884
+ static N_0x603469298A4308AF(p0) {
2885
+ inv('0x603469298A4308AF', p0);
2977
2886
  }
2978
2887
  /**
2979
- * @param p0
2980
- * @param p1
2981
- * @param p2
2888
+ * @param player
2982
2889
  * @returns
2983
2890
  */
2984
- static N_0x77B299E8799B1332(p0, p1, p2) {
2985
- return inv('0x77B299E8799B1332', p0, p1, p2);
2891
+ static isAimCamActive(player) {
2892
+ return inv('0x8E7CE19219669AEB', player.handle);
2986
2893
  }
2987
2894
  /**
2988
- * @param p0
2895
+ * Note: scripts seem to indicate that this was renamed to NETWORK_IS_PLAYER_IN_MP_FAST_INSTANCE
2896
+ *
2897
+ * @param player
2989
2898
  * @returns
2990
2899
  */
2991
- static N_0xE59F4924BD3A718D(p0) {
2992
- return inv('0xE59F4924BD3A718D', p0, ras());
2900
+ static isPlayerInMpCutscene(player) {
2901
+ return !!inv('0x63F9EE203C3619F2', player.handle, rai());
2902
+ }
2903
+ /**
2904
+ * @param time
2905
+ */
2906
+ static setLocalPlayerInvincibleTime(time) {
2907
+ inv('0x2D95C7E2D7E07307', time);
2993
2908
  }
2994
2909
  /**
2995
2910
  * @param p0
2996
2911
  * @returns
2997
2912
  */
2998
- static checkUserContentPrivileges(p0) {
2999
- return inv('0x595F028698072DD9', p0, rai());
2913
+ static N_0x3F2EE18A3E294801(p0) {
2914
+ return inv('0x3F2EE18A3E294801', p0, rai());
3000
2915
  }
3001
2916
  /**
3002
2917
  * @param player
3003
- * @returns
3004
2918
  */
3005
- static getPlayerFastInstanceId(player) {
3006
- return inv('0xD9267375834C5EAB', player.handle, rai());
2919
+ static N_0x7B3FF2D193628126(player) {
2920
+ inv('0x7B3FF2D193628126', player.handle);
3007
2921
  }
3008
2922
  /**
3009
- * @returns hours; minutes; seconds
2923
+ * @param milliseconds
3010
2924
  */
3011
- static getGlobalMultiplayerClock() {
3012
- const result = inv('0x6D03BFBD643B2A02', pvi(), pvi(), pvi());
3013
- return [result[0], result[1], result[2]];
2925
+ static clearClockOverrideOvertime(milliseconds) {
2926
+ inv('0x65F040D91001ED4B', milliseconds);
3014
2927
  }
3015
2928
  /**
3016
- * @param description
3017
- * @param length
2929
+ * @param player
3018
2930
  * @returns
3019
2931
  */
3020
- static ugcGetCachedDescription(description, length) {
3021
- return inv('0x40F7E66472DF3E5C', _h(description), length, ras());
2932
+ static getPlayerTutorialSessionInstance(player) {
2933
+ return inv('0x3B39236746714134', player.handle, rai());
3022
2934
  }
3023
2935
  /**
3024
- * @param toggle
2936
+ * @param amount
2937
+ * @returns
3025
2938
  */
3026
- static N_0x780A13F780A13F1B(toggle) {
3027
- inv('0x780A13F780A13F1B', toggle);
2939
+ static canRegisterMissionVehicles(amount) {
2940
+ return !!inv('0x7277F1F2E085EE74', amount, rai());
3028
2941
  }
3029
2942
  /**
3030
- * @param p1
3031
- * @returns gamerHandle
2943
+ * Takes the specified time and writes it to the structure specified in the second argument. struct date_time
2944
+ * {
2945
+ * int year;
2946
+ * int PADDING1;
2947
+ * int month;
2948
+ * int PADDING2;
2949
+ * int day;
2950
+ * int PADDING3;
2951
+ * int hour;
2952
+ * int PADDING4;
2953
+ * int minute;
2954
+ * int PADDING5;
2955
+ * int second;
2956
+ * int PADDING6;
2957
+ * };
2958
+ *
2959
+ * @param posixTime
2960
+ * @returns timeStructure
3032
2961
  */
3033
- static requestPedshotTextureMultiplayerDownload(p1) {
3034
- const result = inv('0xB5C4B18B12A2AF23', pvi(), p1, ras());
3035
- return [result[0], result[1]];
2962
+ static convertPosixTime(posixTime) {
2963
+ const result = inv('0xAC97AF97FA68E5D5', posixTime, pvi());
2964
+ return result;
3036
2965
  }
3037
2966
  /**
3038
- * @param setting
2967
+ * @param ugcRequestId
2968
+ * @returns
3039
2969
  */
3040
- static N_0xE3AB5EEFCB6671A2(setting) {
3041
- inv('0xE3AB5EEFCB6671A2', setting);
2970
+ static N_0xCD53E6CBF609C012(ugcRequestId) {
2971
+ return !!inv('0xCD53E6CBF609C012', ugcRequestId, rai());
3042
2972
  }
3043
2973
  /**
3044
2974
  * @param p0
2975
+ * @param index
3045
2976
  * @returns
3046
2977
  */
3047
- static N_0x3AA0CDC63696166D(p0) {
3048
- return inv('0x3AA0CDC63696166D', p0, rai());
2978
+ static ugcQueryGetMissionDescHash(p0, index) {
2979
+ return (inv('0xA6BF569956C60A60', p0, index, rai())) & 0xFFFFFFFF;
3049
2980
  }
3050
2981
  /**
2982
+ * Note: this native was added in build 1311.23
2983
+ *
3051
2984
  * @param p0
3052
- * @param p1
3053
- * @returns
3054
2985
  */
3055
- static N_0xE39600E50D608693(p0, p1) {
3056
- return inv('0xE39600E50D608693', p0, p1, rai());
2986
+ static N_0x335AF56613CA0F49(p0) {
2987
+ inv('0x335AF56613CA0F49', p0);
3057
2988
  }
3058
2989
  /**
3059
- * @param flags Refer to [enum: eSessionFlags]
2990
+ * @param p0
3060
2991
  * @returns
3061
2992
  */
3062
- static sessionAddSessionFlags(flags) {
3063
- return inv('0xE546BDA1B3E288EE', flags);
2993
+ static N_0xE10F2D7715ABABEC(p0) {
2994
+ return inv('0xE10F2D7715ABABEC', p0);
3064
2995
  }
3065
2996
  /**
3066
- * @param p0
3067
- * @param playerCount
2997
+ * Note: this native was added in build 1311.23
2998
+ */
2999
+ static N_0xFD8112109A96877C() {
3000
+ inv('0xFD8112109A96877C');
3001
+ }
3002
+ /**
3003
+ * Always returns 80
3004
+ *
3068
3005
  * @returns
3069
3006
  */
3070
- static requestRecentGamerNames(p0, playerCount) {
3071
- return inv('0x6D206D383BB5F6B1', p0, playerCount);
3007
+ static getMaxNumNetworkPickups() {
3008
+ return inv('0xA72835064DD63E4C', rai());
3072
3009
  }
3073
3010
  /**
3011
+ * Old name: _NETWORK_GET_AVERAGE_LATENCY_FOR_PLAYER
3012
+ *
3013
+ * @param player
3074
3014
  * @returns
3075
3015
  */
3076
- static getHostOfThisScript() {
3077
- return createFromHandle('Player', inv('0xC7B4D79B01FA7A5C', rai()));
3016
+ static getAverageLatency(player) {
3017
+ return inv('0xD414BE129BB81B32', player.handle, raf());
3018
+ }
3019
+ /**
3020
+ * @param netId
3021
+ * @param toggle
3022
+ */
3023
+ static setNetworkIdExistsOnAllMachines(netId, toggle) {
3024
+ inv('0xE05E81A888FA63C8', netId, toggle);
3078
3025
  }
3079
3026
  /**
3080
- * @param animScene
3027
+ * @param completed
3081
3028
  * @returns
3082
3029
  */
3083
- static hasControlOfAnimScene(animScene) {
3084
- return inv('0x26A5C12FACFF8724', animScene.handle);
3030
+ static setCompletedMpIntroFlowOnCurrentSlot(completed) {
3031
+ return inv('0x2C5BD9A43987AA27', completed);
3085
3032
  }
3086
3033
  /**
3087
- * Equivalent to NETWORK_REQUEST_SESSION_SEAMLESS if userHash == 0.
3088
- * Otherwise it is equivalent to NETWORK_SESSION_REQUEST_SESSION_COMPETITIVE(flags, MATCHTYPE_SEAMLESS, userHash, 0, sessionRequestId); p1 is unused
3034
+ * Only used in R* SP Script map_app_event_handler
3089
3035
  *
3090
- * @param flags
3091
- * @param seamlessType
3092
- * @param userHash
3093
- * @returns sessionRequestId
3036
+ * @param p1
3037
+ * @returns gamerHandle
3094
3038
  */
3095
- static sessionRequestSessionSeamless(flags, seamlessType, userHash) {
3096
- const result = inv('0x2989E131FDE37E97', flags, seamlessType, userHash, pvi());
3039
+ static requestPedshotTextureLocalDownload(p1) {
3040
+ const result = inv('0xCAF4CA2F87779F8F', pvi(), p1, ras());
3097
3041
  return [result[0], result[1]];
3098
3042
  }
3099
3043
  /**
3100
3044
  * @returns
3101
3045
  */
3102
- static hasCompletedMpIntroFlowOnCurrentSlot() {
3103
- return inv('0xDD73C9838CE7181D');
3104
- }
3105
- /**
3106
- * @param configProperty
3107
- * @param include
3108
- */
3109
- static spawnConfigAddPropertyScripted(configProperty, include) {
3110
- inv('0x44D59EC597BBF348', configProperty, include);
3046
+ static autoSessionIsProcessingSessionSplit() {
3047
+ return inv('0xA021095C983F20D8');
3111
3048
  }
3112
3049
  /**
3113
- * @param p0
3114
3050
  * @returns
3115
3051
  */
3116
- static N_0xA2837A5E21FB5A58(p0) {
3117
- return inv('0xA2837A5E21FB5A58', p0, rai());
3052
+ static N_0x1413B6BF27AB7A95() {
3053
+ return inv('0x1413B6BF27AB7A95', rai());
3118
3054
  }
3119
3055
  /**
3120
- * @returns
3056
+ * nullsub, doesn't do anything
3057
+ *
3058
+ * @param player
3121
3059
  */
3122
- static N_0x0E54D4DA6018FF8E() {
3123
- return inv('0x0E54D4DA6018FF8E', rai());
3060
+ static showChatRestrictionMsc(player) {
3061
+ inv('0x6BFF5F84102DF80A', player.handle);
3124
3062
  }
3125
3063
  /**
3126
- * Returns the entity associated with the given network ID.
3064
+ * Returns false if pedshot push failed
3127
3065
  *
3128
- * @param networkId
3066
+ * @param texture
3067
+ * @param personaPhotoType
3068
+ * @param formatIndex
3129
3069
  * @returns
3130
3070
  */
3131
- static N_0x4538EE7C321590BC(networkId) {
3132
- return createFromHandle('Entity', inv('0x4538EE7C321590BC', networkId, rai()));
3071
+ static personaPhotoWriteScProfile(texture, personaPhotoType, formatIndex) {
3072
+ return inv('0xB72999D3120599DF', texture, personaPhotoType, formatIndex);
3133
3073
  }
3134
3074
  /**
3135
3075
  * @param p0
@@ -3232,7 +3172,7 @@ export class Network {
3232
3172
  * @returns
3233
3173
  */
3234
3174
  static N_0x981146E5C9CE9250(inviteIndex) {
3235
- return inv('0x981146E5C9CE9250', inviteIndex, rai());
3175
+ return !!inv('0x981146E5C9CE9250', inviteIndex, rai());
3236
3176
  }
3237
3177
  /**
3238
3178
  * @param netID
@@ -3250,11 +3190,130 @@ export class Network {
3250
3190
  const result = inv('0xFEFCC345CE357453', p0, p1, pvi(), dataSize);
3251
3191
  return [result[0], result[1]];
3252
3192
  }
3193
+ /**
3194
+ * @returns
3195
+ */
3196
+ static isInTutorialSession() {
3197
+ return !!inv('0xADA24309FE08DACF', rai());
3198
+ }
3199
+ /**
3200
+ * @param tunableContext
3201
+ * @param tunableName
3202
+ * @returns value
3203
+ */
3204
+ static accessTunableInt(tunableContext, tunableName) {
3205
+ const result = inv('0x8BE1146DFD5D4468', _h(tunableContext), _h(tunableName), pvi(), rai());
3206
+ return [!!result[0], result[1]];
3207
+ }
3208
+ /**
3209
+ * @param tunableContext
3210
+ * @param tunableName
3211
+ * @param defaultValue
3212
+ * @returns
3213
+ */
3214
+ static tryAccessTunableIntHash(tunableContext, tunableName, defaultValue) {
3215
+ return inv('0xA25E006B36719774', _h(tunableContext), _h(tunableName), defaultValue, rai());
3216
+ }
3217
+ /**
3218
+ * @param tunableContext
3219
+ * @param tunableName
3220
+ * @param defaultValue
3221
+ * @returns
3222
+ */
3223
+ static tryAccessTunableBoolHash(tunableContext, tunableName, defaultValue) {
3224
+ return !!inv('0xB2AD5D29A99D4B26', _h(tunableContext), _h(tunableName), defaultValue, rai());
3225
+ }
3226
+ /**
3227
+ * @param seed
3228
+ */
3229
+ static seedRandomNumberGenerator(seed) {
3230
+ inv('0xF1B84178F8674195', seed);
3231
+ }
3232
+ /**
3233
+ * @param netId
3234
+ * @returns
3235
+ */
3236
+ static isNetworkIdOwnedByParticipant(netId) {
3237
+ return !!inv('0xA1607996431332DF', netId, rai());
3238
+ }
3239
+ /**
3240
+ * @param scriptName
3241
+ * @param p1
3242
+ * @param p2
3243
+ * @returns
3244
+ */
3245
+ static getHostOfScript(scriptName, p1, p2) {
3246
+ return createFromHandle('Player', inv('0x1D6A14F1F9A736FC', scriptName, p1, p2, rai()));
3247
+ }
3248
+ static spawnConfigSetCancelSearch() {
3249
+ inv('0x765E60A1DCB8B1CE');
3250
+ }
3251
+ /**
3252
+ * @param player
3253
+ * @returns
3254
+ */
3255
+ static getPlayerIndex(player) {
3256
+ return inv('0x24FB80D107371267', player.handle, rai());
3257
+ }
3258
+ /**
3259
+ * @param ugcRequestId
3260
+ * @returns
3261
+ */
3262
+ static ugcQueryGetContentNum(ugcRequestId) {
3263
+ return inv('0x76160E0396142765', ugcRequestId, rai());
3264
+ }
3265
+ /**
3266
+ * @param ctx
3267
+ * @param lh
3268
+ * @param ec
3269
+ * @param h
3270
+ */
3271
+ static alert(ctx, lh, ec, h) {
3272
+ inv('0x1BAA028F52EED310', _h(ctx), _h(lh), ec, h);
3273
+ }
3274
+ /**
3275
+ * @param contentId
3276
+ * @returns
3277
+ */
3278
+ static ugcIsBookMarked(contentId) {
3279
+ return !!inv('0xE42D1042F09865FE', contentId, rai());
3280
+ }
3281
+ /**
3282
+ * @returns p0
3283
+ */
3284
+ static autoSessionCanSplitSession() {
3285
+ const result = inv('0xE404BFF0ABA23CDC', pvi());
3286
+ return [result[0], result[1]];
3287
+ }
3288
+ /**
3289
+ * _NETWORK_A* - _NETWORK_C*
3290
+ *
3291
+ * @param p0
3292
+ */
3293
+ static N_0x34BC1E79546BA543(p0) {
3294
+ inv('0x34BC1E79546BA543', p0);
3295
+ }
3296
+ /**
3297
+ * @param count
3298
+ * @returns data
3299
+ */
3300
+ static getGamerSessionFromHandle(count) {
3301
+ const result = inv('0xFBDFE1C1356E12E8', pvi(), count);
3302
+ return [result[0], result[1]];
3303
+ }
3304
+ /**
3305
+ * @param p0
3306
+ * @param p1
3307
+ * @param p2
3308
+ */
3309
+ static registerHostBroadcastVariables(p0, p1, p2) {
3310
+ inv('0x3E9B2F01C50DF595', p0, p1, p2);
3311
+ }
3253
3312
  /**
3254
3313
  * @returns
3255
3314
  */
3256
3315
  static N_0x18B94666CF610AEB() {
3257
- return inv('0x18B94666CF610AEB', rai());
3316
+ return !!inv('0x18B94666CF610AEB', rai());
3258
3317
  }
3259
3318
  /**
3260
3319
  * p0 appears to be for MP
@@ -3269,7 +3328,7 @@ export class Network {
3269
3328
  * @returns
3270
3329
  */
3271
3330
  static hasSocialClubAccount() {
3272
- return inv('0x67A5589628E0CFF6', rai());
3331
+ return !!inv('0x67A5589628E0CFF6', rai());
3273
3332
  }
3274
3333
  /**
3275
3334
  * @param netHandle
@@ -3347,7 +3406,7 @@ export class Network {
3347
3406
  * @returns
3348
3407
  */
3349
3408
  static isSessionActive() {
3350
- return inv('0xD83C2B94E7508980', rai());
3409
+ return !!inv('0xD83C2B94E7508980', rai());
3351
3410
  }
3352
3411
  /**
3353
3412
  * @param animScene
@@ -3371,244 +3430,256 @@ export class Network {
3371
3430
  return [!!result[0], result[1]];
3372
3431
  }
3373
3432
  /**
3374
- * @param p0
3375
- * @returns gamerHandle
3433
+ * @returns
3376
3434
  */
3377
- static N_0x16EFB123C4451032(p0) {
3378
- const result = inv('0x16EFB123C4451032', p0, pvi(), rai());
3379
- return [!!result[0], result[1]];
3435
+ static N_0xB389289F031F059A() {
3436
+ return inv('0xB389289F031F059A', rai());
3380
3437
  }
3381
3438
  /**
3382
- * Return the local Participant ID
3439
+ * Subtracts the first argument from the second, then returns whether the result is negative.
3383
3440
  *
3441
+ * @param timeA
3442
+ * @param timeB
3384
3443
  * @returns
3385
3444
  */
3386
- static participantId() {
3387
- return createFromHandle('Player', inv('0x90986E8876CE0A83', rai()));
3388
- }
3389
- static N_0x97BCE4C4B3191228() {
3390
- inv('0x97BCE4C4B3191228');
3391
- }
3392
- /**
3393
- * @param volume
3394
- * @param p1
3395
- * @param originalWeight
3396
- * @param p3
3397
- * @param p4
3398
- */
3399
- static N_0x13F592FC3BF0EA84(volume, p1, originalWeight, p3, p4) {
3400
- inv('0x13F592FC3BF0EA84', volume.handle, p1, f(originalWeight), p3, p4);
3445
+ static isTimeMoreThan(timeA, timeB) {
3446
+ return !!inv('0xDE350F8651E4346C', timeA, timeB, rai());
3401
3447
  }
3402
3448
  /**
3403
3449
  * @returns
3404
3450
  */
3405
- static N_0xBF8276E51761F9DA() {
3406
- return inv('0xBF8276E51761F9DA', rai());
3451
+ static pedmugshotRequestSend() {
3452
+ return inv('0xFBC30B70B3CDB87E');
3407
3453
  }
3408
3454
  /**
3409
- * Note: this native was added in build 1311.23
3455
+ * Old name: _NETWORK_SET_PASSIVE_MODE_OPTION
3410
3456
  *
3411
- * @returns
3457
+ * @param toggle
3412
3458
  */
3413
- static N_0x316FD416C432C761() {
3414
- return inv('0x316FD416C432C761', rai());
3459
+ static setPlayerIsPassive(toggle) {
3460
+ inv('0x9C25E8EC4C535FBD', toggle);
3415
3461
  }
3416
3462
  /**
3417
- * nullsub, doesn't do anything
3463
+ * Seems to always return 0, but it's used in quite a few loops. for (num3 = 0; num3 < NETWORK::0xCCD8C02D(); num3++)
3464
+ * {
3465
+ * if (NETWORK::NETWORK_IS_PARTICIPANT_ACTIVE(PLAYER::0x98F3B274(num3)) != 0)
3466
+ * {
3467
+ * var num5 = NETWORK::NETWORK_GET_PLAYER_INDEX(PLAYER::0x98F3B274(num3));
3418
3468
  *
3419
3469
  * @returns
3420
3470
  */
3421
- static N_0xEC089F84A9C16C62() {
3422
- return inv('0xEC089F84A9C16C62');
3471
+ static getMaxNumParticipants() {
3472
+ return inv('0xA6C90FBC38E395EE', rai());
3423
3473
  }
3424
3474
  /**
3425
- * @param netId
3475
+ * @param ropeId
3426
3476
  * @returns
3427
3477
  */
3428
- static getRopeIdFromNetworkId(netId) {
3429
- return inv('0xEB1A4DD8352EC828', netId, rai());
3478
+ static getNetworkIdFromRopeId(ropeId) {
3479
+ return inv('0x42871327315EDAE8', ropeId, rai());
3430
3480
  }
3431
3481
  /**
3432
3482
  * @param ugcRequestId
3433
3483
  * @returns
3434
3484
  */
3435
- static ugcDidRequestSucceed(ugcRequestId) {
3436
- return inv('0x0B6009A90B8495F1', ugcRequestId);
3485
+ static ugcQueryWasForceCancelled(ugcRequestId) {
3486
+ return inv('0xF8F0705E77A0E705', ugcRequestId);
3437
3487
  }
3438
3488
  /**
3439
- * @returns
3489
+ * @param p0
3440
3490
  */
3441
- static getNetworkTimeAccurate() {
3442
- return inv('0x89023FBBF9200E9F', rai());
3491
+ static ugcSetQueryDataFromOffline(p0) {
3492
+ inv('0xF98DDE0A8ED09323', p0);
3493
+ }
3494
+ /**
3495
+ * @returns gamerHandle
3496
+ */
3497
+ static isFriendHandleInSameTitle() {
3498
+ const result = inv('0x665161D250850A9F', pvi(), rai());
3499
+ return [!!result[0], result[1]];
3443
3500
  }
3444
3501
  /**
3445
3502
  * @param p0
3446
3503
  * @returns
3447
3504
  */
3448
- static getNumCreatedMissionVehicles(p0) {
3449
- return inv('0x0CD9AB83489430EA', p0, rai());
3450
- }
3451
- static showAccountUpgradeUi() {
3452
- inv('0x83FE8D7229593017');
3505
+ static N_0xE8E633215471BB5D(p0) {
3506
+ return inv('0xE8E633215471BB5D', p0, rai());
3453
3507
  }
3454
3508
  /**
3455
- * Hardcoded to return false.
3509
+ * Note: this native was added in build 1311.23
3456
3510
  *
3511
+ * @param p0
3457
3512
  * @returns
3458
- */
3459
- static isInSessionLobby() {
3460
- return inv('0xC5196C42DE19F646');
3513
+ */
3514
+ static N_0x917AD74BDCF8B6E9(p0) {
3515
+ return inv('0x917AD74BDCF8B6E9', p0, rai());
3461
3516
  }
3462
3517
  /**
3463
- * Always returns a null string.
3518
+ * nullsub, doesn't do anything
3464
3519
  *
3465
- * @returns gamerHandle
3520
+ * @param p0
3466
3521
  */
3467
- static getGamertagFromHandle() {
3468
- const result = inv('0x426141162EBE5CDB', pvi(), ras());
3469
- return [result[0], result[1]];
3522
+ static N_0x0CC28C08613BA9E5(p0) {
3523
+ inv('0x0CC28C08613BA9E5', p0);
3470
3524
  }
3471
3525
  /**
3472
- * Returns the network ID of the given object.
3526
+ * Old name: _IS_ENTITY_GHOSTED_TO_LOCAL_PLAYER
3473
3527
  *
3474
- * @param object
3475
- * @returns Returns the network id for the specified `object`, or `0` if the entity isn't networked.
3528
+ * @param entity
3529
+ * @returns
3476
3530
  */
3477
- static objToNet(object) {
3478
- return inv('0x99BFDC94A603E541', object.handle, rai());
3531
+ static isEntityAGhost(entity) {
3532
+ return !!inv('0x21D04D7BC538C146', entity.handle, rai());
3533
+ }
3534
+ static clearGetGamerStatus() {
3535
+ inv('0x86E0660E4F5C956D');
3479
3536
  }
3480
3537
  /**
3481
- * @param p0
3482
- * @returns
3538
+ * @param player
3539
+ * @param entity
3540
+ * @returns p2
3483
3541
  */
3484
- static requestJoin(p0) {
3485
- return inv('0xE483BB6BE686F632', p0, rai());
3542
+ static getAssistedDamageOfEntity(player, entity) {
3543
+ const result = inv('0x4CACA84440FA26F6', player.handle, entity.handle, pvi(), rai());
3544
+ return [!!result[0], result[1]];
3486
3545
  }
3487
3546
  /**
3488
- * Note: this native was added in build 1311.23
3547
+ * flags:
3548
+ * enum eSessionRequestOptionFlags
3549
+ * {
3550
+ * SESSION_REQUEST_OPTION_FLAG_INCLUDE_GANG_MEMBERS = (1 << 1),
3551
+ * SESSION_REQUEST_OPTION_FLAG_LEADER_KEEPS_GANG = (1 << 7),
3552
+ * }; seamlessType:
3553
+ * enum eSeamlessType
3554
+ * {
3555
+ * SEAMLESS_TYPE_NORMAL,
3556
+ * SEAMLESS_TYPE_PVE,
3557
+ * SEAMLESS_TYPE_DEV,
3558
+ * SEAMLESS_TYPE_NO_SEAMLESS
3559
+ * };
3489
3560
  *
3490
- * @param p0
3491
- * @returns
3561
+ * @param flags
3562
+ * @param seamlessType
3563
+ * @returns sessionRequestId
3492
3564
  */
3493
- static N_0x4835413EA6F9C9CD(p0) {
3494
- return inv('0x4835413EA6F9C9CD', p0, rai());
3565
+ static requestSessionSeamless(flags, seamlessType) {
3566
+ const result = inv('0x04019AE4956D4393', flags, seamlessType, pvi());
3567
+ return [result[0], result[1]];
3495
3568
  }
3496
3569
  /**
3497
- * Returns ugcRequestId
3570
+ * Note: this native was added in build 1311.16
3498
3571
  *
3499
- * @param contentId
3500
- * @param latestVersion
3501
- * @param contentTypeName
3502
3572
  * @returns
3503
3573
  */
3504
- static ugcQueryByContentId(contentId, latestVersion, contentTypeName) {
3505
- return inv('0x69D22E183580113F', contentId, latestVersion, contentTypeName, rai());
3574
+ static isObjectReassignmentInProgress() {
3575
+ return !!inv('0x8FE9EB11EC9CC23A', rai());
3506
3576
  }
3507
3577
  /**
3508
- * @param p0
3578
+ * @param scriptName
3579
+ * @param instanceId
3580
+ * @param position
3581
+ * @returns
3509
3582
  */
3510
- static N_0x3034C77C79A58880(p0) {
3511
- inv('0x3034C77C79A58880', p0);
3583
+ static getNumScriptParticipants(scriptName, instanceId, position) {
3584
+ return inv('0x3658E8CD94FC121A', scriptName, instanceId, _h(position), rai());
3512
3585
  }
3513
3586
  /**
3514
- * @param paramName
3587
+ * @param p0
3515
3588
  * @returns
3516
3589
  */
3517
- static getLaunchParamValue(paramName) {
3518
- return inv('0x65E65CA6A0FE59D4', paramName, ras());
3590
+ static N_0x6C27442A225A241A(p0) {
3591
+ return inv('0x6C27442A225A241A', p0, rai());
3519
3592
  }
3520
3593
  /**
3521
3594
  * @param p0
3595
+ * @param p1
3522
3596
  */
3523
- static N_0xCF23AB5BD47B384D(p0) {
3524
- inv('0xCF23AB5BD47B384D', p0);
3597
+ static spawnConfigSetTuningFloat(p0, p1) {
3598
+ inv('0x0608326F7B98C08D', _h(p0), f(p1));
3525
3599
  }
3526
3600
  /**
3527
- * Note: this native was added in build 1311.23
3528
- *
3529
- * @param p0
3530
3601
  * @param p1
3531
- * @param p2
3602
+ * @returns outData
3532
3603
  */
3533
- static N_0x3CBD6565D9C3B133(p0, p1, p2) {
3534
- inv('0x3CBD6565D9C3B133', p0, p1, f(p2));
3604
+ static N_0x7BCA0A3972708436(p1) {
3605
+ const result = inv('0x7BCA0A3972708436', pvi(), p1, rai());
3606
+ return [result[0], result[1]];
3535
3607
  }
3536
3608
  /**
3609
+ * Hardcoded to return zero.
3610
+ *
3611
+ * @param p0
3612
+ * @param p1
3613
+ * @param p2
3537
3614
  * @returns
3538
3615
  */
3539
- static hasReceivedHostBroadcastData() {
3540
- return inv('0x5D10B3795F3FC886', rai());
3616
+ static getDisplaynamesFromHandles(p0, p1, p2) {
3617
+ return inv('0x58CC181719256197', p0, p1, p2, rai());
3541
3618
  }
3542
3619
  /**
3543
- * @param languageId
3544
3620
  * @returns
3545
3621
  */
3546
- static ugcIsLanguageSupported(languageId) {
3547
- return inv('0xF53E48461B71EECB', languageId, rai());
3622
+ static isHostOfThisScript() {
3623
+ return !!inv('0x83CD99A1E6061AB5', rai());
3548
3624
  }
3549
3625
  /**
3626
+ * @param p0
3627
+ * @param index
3550
3628
  * @returns
3551
3629
  */
3552
- static actionPlatformInvite() {
3553
- return inv('0x3B82ACC3F4B6240C');
3630
+ static ugcQueryGetLanguage(p0, index) {
3631
+ return inv('0x97764E8AC6487A9A', p0, index, rai());
3554
3632
  }
3555
3633
  /**
3556
- * nullsub, doesn't do anything
3634
+ * Note: this native was added in build 1355.30
3557
3635
  *
3558
- * @returns
3636
+ * @param p0
3559
3637
  */
3560
- static dumpNetIfConfig() {
3561
- return inv('0xAEDF1BC1C133D6E3');
3638
+ static N_0x422F9D6D6C7BC290(p0) {
3639
+ inv('0x422F9D6D6C7BC290', p0);
3562
3640
  }
3563
3641
  /**
3642
+ * @param propSet
3564
3643
  * @returns
3565
3644
  */
3566
- static sessionIsTransitioning() {
3567
- return inv('0xF2CBC969C4F090C7');
3645
+ static propsetToNet(propSet) {
3646
+ return inv('0x74F99EF7EF503398', propSet.handle, rai());
3568
3647
  }
3569
3648
  /**
3570
3649
  * @param p0
3571
- * @param index
3572
- * @param p2
3573
- * @returns
3574
3650
  */
3575
- static ugcQueryGetVersion(p0, index, p2) {
3576
- return inv('0x63E9DCBC8B0931ED', p0, index, p2, rai());
3651
+ static N_0x5CD3AAD8FF9ED121(p0) {
3652
+ inv('0x5CD3AAD8FF9ED121', p0);
3577
3653
  }
3578
3654
  /**
3579
- * @param p0
3580
- * @param p1
3655
+ * @param netId
3656
+ * @returns
3581
3657
  */
3582
- static N_0x3F0ABAE38A0515AD(p0, p1) {
3583
- inv('0x3F0ABAE38A0515AD', p0, p1);
3658
+ static netToAnimScene(netId) {
3659
+ return createFromHandle('AnimScene', inv('0xD7F6781A0ABAF6FB', netId, rai()));
3584
3660
  }
3585
3661
  /**
3586
- * Subtracts the second argument from the first, then returns whether the result is negative.
3587
- *
3588
- * @param timeA
3589
- * @param timeB
3662
+ * @param p0
3663
+ * @param index
3590
3664
  * @returns
3591
3665
  */
3592
- static isTimeLessThan(timeA, timeB) {
3593
- return inv('0xCB2CF5148012C8D0', timeA, timeB, rai());
3666
+ static ugcQueryGetContentHasPlayerRecord(p0, index) {
3667
+ return inv('0xF794765390A6DCA5', p0, index);
3668
+ }
3669
+ static N_0x814729078AED6D30() {
3670
+ inv('0x814729078AED6D30');
3594
3671
  }
3595
3672
  /**
3596
- * Old name: _NETWORK_GET_UNRELIABLE_RESEND_COUNT_FOR_PLAYER
3597
- *
3598
- * @param player
3599
3673
  * @returns
3600
3674
  */
3601
- static getUnreliableResendCount(player) {
3602
- return inv('0x3765C3A3E8192E10', player.handle, rai());
3675
+ static isSignedOnline() {
3676
+ return !!inv('0x1077788E268557C2', rai());
3603
3677
  }
3604
3678
  /**
3605
- * Note: this native was added in build 1311.23
3606
- *
3607
- * @param p0
3608
3679
  * @returns
3609
3680
  */
3610
- static N_0x106CBDD5077DEDE1(p0) {
3611
- return inv('0x106CBDD5077DEDE1', p0, rai());
3681
+ static isInSpectatorMode() {
3682
+ return !!inv('0x048746E388762E11', rai());
3612
3683
  }
3613
3684
  /**
3614
3685
  * @param featureId
@@ -3689,14 +3760,14 @@ export class Network {
3689
3760
  * @returns
3690
3761
  */
3691
3762
  static requestControlOfEntity(entity) {
3692
- return inv('0xB69317BF5E782347', entity.handle, rai());
3763
+ return !!inv('0xB69317BF5E782347', entity.handle, rai());
3693
3764
  }
3694
3765
  /**
3695
3766
  * @param p0
3696
3767
  * @returns
3697
3768
  */
3698
3769
  static N_0xD7D0DF27CB1765B5(p0) {
3699
- return inv('0xD7D0DF27CB1765B5', p0, rai());
3770
+ return !!inv('0xD7D0DF27CB1765B5', p0, rai());
3700
3771
  }
3701
3772
  /**
3702
3773
  * @returns
@@ -3712,7 +3783,7 @@ export class Network {
3712
3783
  * @returns
3713
3784
  */
3714
3785
  static arePlayersInSameTutorialSession(player, index) {
3715
- return inv('0x9DE986FC9A87C474', player.handle, index, rai());
3786
+ return !!inv('0x9DE986FC9A87C474', player.handle, index, rai());
3716
3787
  }
3717
3788
  static clearFoundGamers() {
3718
3789
  inv('0x6D14CCEE1B40381A');
@@ -3816,7 +3887,7 @@ export class Network {
3816
3887
  * @returns
3817
3888
  */
3818
3889
  static isPlayerInSpectatorMode(player) {
3819
- return inv('0x5B709519997ECF0F', player.handle, rai());
3890
+ return !!inv('0x5B709519997ECF0F', player.handle, rai());
3820
3891
  }
3821
3892
  /**
3822
3893
  * _SET_PLAYER_V* - _SET_S*
@@ -3832,13 +3903,13 @@ export class Network {
3832
3903
  * @returns
3833
3904
  */
3834
3905
  static hasControlOfPickup(pickup) {
3835
- return inv('0x5BC9495F0B3B6FA6', pickup.handle, rai());
3906
+ return !!inv('0x5BC9495F0B3B6FA6', pickup.handle, rai());
3836
3907
  }
3837
3908
  /**
3838
3909
  * @returns
3839
3910
  */
3840
3911
  static N_0x67CCDF74C4DF7169() {
3841
- return inv('0x67CCDF74C4DF7169', rai());
3912
+ return !!inv('0x67CCDF74C4DF7169', rai());
3842
3913
  }
3843
3914
  /**
3844
3915
  * @param textureDownloadId
@@ -3855,368 +3926,297 @@ export class Network {
3855
3926
  static getNumPeerNegotiationResponses() {
3856
3927
  return inv('0x4FE932E84FE932E8', rai());
3857
3928
  }
3858
- /**
3859
- * @param flags
3860
- * @returns
3861
- */
3862
- static sessionRemovePlayerFlags(flags) {
3863
- return inv('0x3215BBE34D3418C5', flags);
3929
+ static clearClockTimeOverride() {
3930
+ inv('0xD972DF67326F966E');
3864
3931
  }
3865
- /**
3866
- * @returns
3867
- */
3868
- static getTimeoutTime() {
3869
- return inv('0x5ED0356A0CE3A34F', rai());
3932
+ static N_0xC8B6D18E22484643() {
3933
+ inv('0xC8B6D18E22484643');
3870
3934
  }
3871
3935
  /**
3872
3936
  * @param p0
3937
+ * @param p1
3873
3938
  */
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);
3939
+ static N_0xDC6AD5C046F33AB4(p0, p1) {
3940
+ inv('0xDC6AD5C046F33AB4', p0, p1);
3883
3941
  }
3884
3942
  /**
3885
- * Returns false if pedshot push failed
3886
- *
3887
- * @param texture
3888
- * @param playerSlot
3889
- * @param p2
3890
- * @param personaPhotoLocalCacheType
3943
+ * @param entity
3891
3944
  * @returns
3892
3945
  */
3893
- static personaPhotoWriteLocal(texture, playerSlot, p2, personaPhotoLocalCacheType) {
3894
- return inv('0x2A48D9567940598F', texture, playerSlot, p2, personaPhotoLocalCacheType);
3946
+ static hasControlOfEntity(entity) {
3947
+ return !!inv('0x01BF60A500E28887', entity.handle, rai());
3895
3948
  }
3896
3949
  /**
3897
- * @param index
3950
+ * @param player
3898
3951
  * @returns
3899
3952
  */
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);
3953
+ static getUniqueIntForPlayer(player) {
3954
+ return inv('0x07F723401B9D921C', player.handle, rai());
3908
3955
  }
3909
3956
  /**
3957
+ * @param tunableContext
3958
+ * @param tunableName
3910
3959
  * @returns
3911
3960
  */
3912
- static sessionIsAnyRequestInProgress() {
3913
- return inv('0xBAFFDE5F953720D9');
3961
+ static accessTunableBool(tunableContext, tunableName) {
3962
+ return !!inv('0xAA6A47A573ABB75A', _h(tunableContext), _h(tunableName), rai());
3914
3963
  }
3915
3964
  /**
3916
- * @param p0
3917
- * @param p1
3918
- * @param p2
3919
- * @param p3
3920
- * @param p4
3921
- * @param p5
3922
- * @returns
3965
+ * @returns gamerHandle
3923
3966
  */
3924
- static isSphereVisibleToPlayer(p0, p1, p2, p3, p4, p5) {
3925
- return inv('0xDC3A310219E5DA62', p0, p1, p2, p3, p4, p5, rai());
3967
+ static removeFriend() {
3968
+ const result = inv('0x55F618F68AB854D3', pvi());
3969
+ return [result[0], result[1]];
3926
3970
  }
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()));
3971
+ static N_0x6C7E04E9DE451789() {
3972
+ inv('0x6C7E04E9DE451789');
3933
3973
  }
3934
3974
  /**
3935
- * Note: this native was added in build 1311.23
3936
- *
3937
3975
  * @returns
3938
3976
  */
3939
- static N_0x062842D61D0D53FD() {
3940
- return inv('0x062842D61D0D53FD', rai());
3941
- }
3942
- /**
3943
- * @param p0
3944
- */
3945
- static N_0xFF36F36B07E69059(p0) {
3946
- inv('0xFF36F36B07E69059', p0);
3977
+ static N_0x0B6B4507AC5EA8B8() {
3978
+ return !!inv('0x0B6B4507AC5EA8B8', rai());
3947
3979
  }
3948
3980
  /**
3949
- * @param flags
3950
- * @returns
3951
- */
3952
- static sessionSetPlayerFlags(flags) {
3953
- return inv('0x0AE241A4A9ADEEEC', flags);
3981
+ * @param netID
3982
+ * @param toggle
3983
+ */
3984
+ static activateDamageTrackerOnNetworkId(netID, toggle) {
3985
+ inv('0xD45B1FFCCD52FF19', netID, toggle);
3954
3986
  }
3955
3987
  /**
3956
- * @param contentId
3957
- * @param dataSize
3958
- * @param p4
3959
- * @param flags
3960
- * @returns gamerHandle; data
3988
+ * *NETWORK_SPAWN_CONFIG**
3961
3989
  */
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]];
3990
+ static N_0x6CEE2E30021DAEC6() {
3991
+ inv('0x6CEE2E30021DAEC6');
3965
3992
  }
3966
- static N_0x61BFBAA795E712AD() {
3967
- inv('0x61BFBAA795E712AD');
3993
+ static N_0x5B9C6AC118FD4774() {
3994
+ inv('0x5B9C6AC118FD4774');
3968
3995
  }
3969
3996
  /**
3970
- * @param playerSlot
3971
- * @param personaPhotoLocalCacheType
3997
+ * @param player
3998
+ * @param trackedPlayer
3972
3999
  * @returns
3973
4000
  */
3974
- static localPlayerPedshotTextureDownloadRequest(playerSlot, personaPhotoLocalCacheType) {
3975
- return inv('0x6E2FD8CF7EB10E53', playerSlot, personaPhotoLocalCacheType, rai());
4001
+ static isTrackedPlayerVisible(player, trackedPlayer) {
4002
+ return inv('0xE525878A35B9EEBD', player.handle, trackedPlayer.handle);
4003
+ }
4004
+ static activityResetToIdle() {
4005
+ inv('0x3FE141FDB990E3D1');
3976
4006
  }
3977
4007
  /**
3978
- * Hardcoded to return zero.
3979
- *
4008
+ * @param p0
3980
4009
  * @returns
3981
4010
  */
3982
- static N_0x5133CF81924F1129() {
3983
- return inv('0x5133CF81924F1129', rai());
4011
+ static hasControlOfPickupPlacement(p0) {
4012
+ return !!inv('0x51EABCF2786515AB', p0, rai());
3984
4013
  }
3985
4014
  /**
3986
- * Returns the Player associated to a given Ped when in an online session.
4015
+ * Converts the specified entity into a local entity, removing it from the networked pool. This will only work if you're the owner of the entity.
3987
4016
  *
3988
- * @param ped
3989
- * @returns
4017
+ * @param entity The entity to un-network
3990
4018
  */
3991
- static getPlayerIndexFromPed(ped) {
3992
- return createFromHandle('Player', inv('0x6C0E2E0125610278', ped.handle, rai()));
4019
+ static unregisterNetworkedEntity(entity) {
4020
+ inv('0xE31A04513237DC89', entity.handle);
3993
4021
  }
3994
4022
  /**
3995
- * @param netID
3996
- * @returns
4023
+ * nullsub, doesn't do anything
3997
4024
  */
3998
- static doesNetworkIdExist(netID) {
3999
- return inv('0x38CE16C96BD11344', netID, rai());
4025
+ static showPsnUgcRestriction() {
4026
+ inv('0x5C497525F803486B');
4000
4027
  }
4001
4028
  /**
4002
- * @param local
4003
- * @param remote
4004
- * @param instanceId
4029
+ * @param p0
4030
+ * @param p1
4031
+ * @returns
4005
4032
  */
4006
- static setLocalPlayerVisibleInCutscene(local, remote, instanceId) {
4007
- inv('0xD1065D68947E7B6E', local, remote, instanceId);
4033
+ static ugcQueryGetPosixUpdatedDate(p0, p1) {
4034
+ return inv('0x21A99A72B00D8002', p0, p1, rai());
4008
4035
  }
4009
4036
  /**
4010
- * Params: p5 = 50.f, p6 = 0 in R* Script net_fetch (NET_FETCH_CLIENT_UPDATE_PED_ROLE_CLUE_IDLE)
4011
- *
4012
- * @param pos
4013
- * @param p5
4014
- * @param p6
4015
- * @returns p0; p1
4037
+ * @param index
4038
+ * @returns
4016
4039
  */
4017
- static N_0x880A7202301E282B(pos, p5, p6) {
4018
- const result = inv('0x880A7202301E282B', pvi(), pvi(), f(pos.x), f(pos.y), f(pos.z), f(p5), p6, rai());
4019
- return [!!result[0], result[1], result[2]];
4040
+ static hasRosPrivilege(index) {
4041
+ return !!inv('0xA699957E60D80214', index, rai());
4020
4042
  }
4021
4043
  /**
4022
- * Note: this native was added in build 1491.50
4023
- *
4024
- * @param p0
4025
4044
  * @returns
4026
4045
  */
4027
- static N_0xDBDF80673BBA3D65(p0) {
4028
- return inv('0xDBDF80673BBA3D65', p0, rai());
4046
+ static isSessionStarted() {
4047
+ return !!inv('0x9DE624D2FC4B603F', rai());
4029
4048
  }
4030
4049
  /**
4031
- * @param p0
4050
+ * @param toggle
4032
4051
  */
4033
- static N_0x9F24A34863FD35DA(p0) {
4034
- inv('0x9F24A34863FD35DA', p0);
4035
- }
4036
- static clearPlatformInvite() {
4037
- inv('0xA4484173759749B1');
4052
+ static setLocalPlayerSyncLookAt(toggle) {
4053
+ inv('0x524FF0AEFF9C3973', toggle);
4038
4054
  }
4039
4055
  /**
4040
- * @param toggle
4041
- * @param p2
4042
- * @returns p1
4056
+ * @returns gamerHandle
4043
4057
  */
4044
- static autoSessionSetAllowedToMerge(toggle, p2) {
4045
- const result = inv('0x63246A24F5747510', toggle, pvi(), p2);
4058
+ static showProfileUi() {
4059
+ const result = inv('0x859ED1CEA343FCA8', pvi());
4046
4060
  return result;
4047
4061
  }
4048
4062
  /**
4049
- * @returns
4063
+ * @param player
4064
+ * @param toggle
4050
4065
  */
4051
- static getTotalNumPlayers() {
4052
- return inv('0xCF61D4B4702EE9EB', rai());
4066
+ static setPlayerVisibleLocally(player, toggle) {
4067
+ inv('0xFAA10F1FAFB11AF2', player.handle, toggle);
4053
4068
  }
4054
4069
  /**
4055
- * Note: this native was added in build 1311.23
4070
+ * *NETWORK_SPAWN_CONFIG**
4056
4071
  *
4057
- * @param p0
4058
- * @returns
4072
+ * @param nsctf
4059
4073
  */
4060
- static N_0x744BFBB0CA908161(p0) {
4061
- return inv('0x744BFBB0CA908161', p0, rai());
4074
+ static N_0x5D3C528B7A7DF836(nsctf) {
4075
+ inv('0x5D3C528B7A7DF836', _h(nsctf));
4062
4076
  }
4063
4077
  /**
4064
- * @param player
4065
4078
  * @returns
4066
4079
  */
4067
- static isPlayerActive(player) {
4068
- return inv('0xB8DFD30D6973E135', player.handle, rai());
4080
+ static autoSessionIsAutoWarpDisabled() {
4081
+ return inv('0xE258570E0C116A66');
4069
4082
  }
4070
4083
  /**
4071
4084
  * @returns
4072
4085
  */
4073
- static getPlatformInviteId() {
4074
- return inv('0x9BCF28FB5D65A9BE', rai());
4086
+ static didGetGamerStatusSucceed() {
4087
+ return inv('0x5AE17C6B0134B7F1');
4075
4088
  }
4076
4089
  /**
4077
4090
  * @param p0
4078
- * @param index
4091
+ * @param p1
4092
+ * @param p2
4093
+ * @param p3
4094
+ * @param p4
4079
4095
  * @returns
4080
4096
  */
4081
- static ugcQueryGetOwnerId(p0, index) {
4082
- return inv('0xF9F0B3028431967B', p0, index, ras());
4097
+ static isSphereVisibleToAnotherMachine(p0, p1, p2, p3, p4) {
4098
+ return !!inv('0xD82CF8E64C8729D8', p0, p1, p2, p3, p4, rai());
4083
4099
  }
4084
4100
  /**
4085
- * @param tunableContext
4086
- * @param tunableName
4087
- * @param defaultValue
4101
+ * @param p0
4088
4102
  * @returns
4089
4103
  */
4090
- static tryAccessTunableFloatHash(tunableContext, tunableName, defaultValue) {
4091
- return inv('0xA18393089C05E49C', _h(tunableContext), _h(tunableName), f(defaultValue), raf());
4104
+ static checkCommunicationPrivileges(p0) {
4105
+ return !!inv('0x83F28CE49FBBFFBA', p0, rai());
4092
4106
  }
4093
4107
  /**
4094
- * @returns
4108
+ * Note: this native was added in build 1355.30
4095
4109
  */
4096
- static hasNetworkTimeStarted() {
4097
- return inv('0x46718ACEEDEAFC84', rai());
4110
+ static N_0x40FEDB13870042F1() {
4111
+ inv('0x40FEDB13870042F1');
4098
4112
  }
4099
4113
  /**
4100
- * Hardcoded to return false.
4101
- *
4114
+ * @param player1
4115
+ * @param player2
4102
4116
  * @returns
4103
4117
  */
4104
- static isInPlatformParty() {
4105
- return inv('0x2FC5650B0271CB57', rai());
4118
+ static N_0xFE53B1F8D43F19BF(player1, player2) {
4119
+ return inv('0xFE53B1F8D43F19BF', player1.handle, player2.handle, rai());
4106
4120
  }
4107
4121
  /**
4108
- * Return the local Participant ID. This native is exactly the same as 'PARTICIPANT_ID' native.
4109
- *
4122
+ * @param id
4110
4123
  * @returns
4111
4124
  */
4112
- static participantIdToInt() {
4113
- return inv('0x57A3BDDAD8E5AA0A', rai());
4114
- }
4115
- /**
4116
- * @param toggle
4117
- * @param pos
4118
- */
4119
- static setInStaticSpectatorMode(toggle, pos) {
4120
- inv('0xFBF1ECFB39A77B5F', toggle, f(pos.x), f(pos.y), f(pos.z));
4125
+ static cloudDidRequestSucceed(id) {
4126
+ return !!inv('0x3A3D5568AF297CD5', id, rai());
4121
4127
  }
4122
4128
  /**
4123
- * @param p0
4129
+ * @param player
4124
4130
  * @returns
4125
4131
  */
4126
- static requestControlOfPickupPlacement(p0) {
4127
- return inv('0x56ED2C48558DAB78', p0, rai());
4128
- }
4129
- /**
4130
- * @param entity
4131
- */
4132
- static registerEntityAsNetworked(entity) {
4133
- inv('0x06FAACD625D80CAA', entity.handle);
4132
+ static isPlayerConnected(player) {
4133
+ return !!inv('0x93DC1BE4E1ABE9D1', player.handle, rai());
4134
4134
  }
4135
4135
  /**
4136
- * Session flag 'SF_PRIVATE' is set internally
4137
- * p1 represents max amount of players in private session
4136
+ * Hardcoded to return false.
4138
4137
  *
4139
- * @param flags
4140
- * @param numPlayers
4141
- * @param userHash
4142
- * @returns sessionRequestId
4138
+ * @returns gamerHandle
4143
4139
  */
4144
- static sessionRequestSessionPrivate(flags, numPlayers, userHash) {
4145
- const result = inv('0x39A8EF7AF29A192C', flags, numPlayers, userHash, pvi());
4140
+ static isPendingFriend() {
4141
+ const result = inv('0x0BE73DA6984A6E33', pvi());
4146
4142
  return [result[0], result[1]];
4147
4143
  }
4148
4144
  /**
4149
- * @param textureDownloadId
4145
+ * Note: this native was added in build 1311.23
4146
+ *
4147
+ * @param p0
4150
4148
  */
4151
- static textureDownloadRelease(textureDownloadId) {
4152
- inv('0x487EB90B98E9FB19', textureDownloadId);
4149
+ static N_0xA7670F7991099680(p0) {
4150
+ inv('0xA7670F7991099680', p0);
4153
4151
  }
4154
4152
  /**
4155
- * Only used in R* Script net_rolling_playlist
4153
+ * @param instanceId
4156
4154
  */
4157
- static sessionPlaylistGoToNextContent() {
4158
- inv('0xBDE605F925B07127');
4155
+ static setLocalPlayerPendingFastInstanceId(instanceId) {
4156
+ inv('0x007FF852DCF49DA4', instanceId);
4159
4157
  }
4160
4158
  /**
4161
- * Note: this native was added in build 1311.23
4162
- *
4163
- * @returns sessionId
4159
+ * @param p0
4164
4160
  */
4165
- static sessionGetSessionId() {
4166
- const result = inv('0xE9B356C330C0A806', pvi());
4167
- return result;
4161
+ static N_0xF342F6BD0A8287D5(p0) {
4162
+ inv('0xF342F6BD0A8287D5', p0);
4168
4163
  }
4169
4164
  /**
4170
4165
  * @returns
4171
4166
  */
4172
- static autoSessionSplitSessionSuccessful() {
4173
- return inv('0x6D87BA8EF15226CD');
4167
+ static isFindingGamers() {
4168
+ return !!inv('0xDDDF64C91BFCF0AA', rai());
4174
4169
  }
4175
4170
  /**
4176
- * @param ugcRequestId
4177
- * @returns
4171
+ * Returns textureDownloadId
4172
+ *
4173
+ * @param filePath
4174
+ * @param name
4175
+ * @param p3
4176
+ * @returns gamerHandle
4178
4177
  */
4179
- static ugcHasRequestFinished(ugcRequestId) {
4180
- return inv('0xA9EB4D606076615D', ugcRequestId);
4178
+ static textureDownloadRequest(filePath, name, p3) {
4179
+ const result = inv('0x16160DA74A8E74A2', pvi(), filePath, name, p3, rai());
4180
+ return [result[0], result[1]];
4181
4181
  }
4182
4182
  /**
4183
- * @returns sessionRequestId
4183
+ * @returns gamerHandle
4184
4184
  */
4185
- static sessionIsRequestInProgress() {
4186
- const result = inv('0x8FB7C254CFCBF78E', pvi());
4187
- return [result[0], result[1]];
4185
+ static isFriendHandleOnline() {
4186
+ const result = inv('0xE348D1404BD80146', pvi(), rai());
4187
+ return [!!result[0], result[1]];
4188
4188
  }
4189
4189
  /**
4190
- * Adds the first argument to the second.
4191
- *
4192
- * @param timeA
4193
- * @param timeB
4194
- * @returns
4190
+ * @param netId
4191
+ * @returns weaponHash: Refer to [enum: eWeaponHash]
4195
4192
  */
4196
- static getTimeOffset(timeA, timeB) {
4197
- return inv('0x017008CCDAD48503', timeA, timeB, rai());
4193
+ static getDestroyerOfNetworkId(netId) {
4194
+ const result = inv('0x7A1ADEEF01740A24', netId, pvi(), rai());
4195
+ return [result[0], result[1]];
4198
4196
  }
4199
4197
  /**
4200
- * @param p0
4198
+ * Returns value of fwuiCachedSetting "general.onlineNotificationsInStoryMode"
4199
+ *
4201
4200
  * @returns
4202
4201
  */
4203
- static N_0xC028B3F52C707C49(p0) {
4204
- return inv('0xC028B3F52C707C49', p0, rai());
4202
+ static areOnlineNotificationsShownInStoryMode() {
4203
+ return !!inv('0xF5C5929E07512F80', rai());
4205
4204
  }
4206
4205
  /**
4207
- * nullsub, doesn't do anything
4206
+ * Subtracts the second argument from the first.
4208
4207
  *
4208
+ * @param timeA
4209
+ * @param timeB
4209
4210
  * @returns
4210
4211
  */
4211
- static N_0xC964FCD3D1720697() {
4212
- return inv('0xC964FCD3D1720697');
4212
+ static getTimeDifference(timeA, timeB) {
4213
+ return inv('0xA2C6FC031D46FFF0', timeA, timeB, rai());
4213
4214
  }
4214
4215
  /**
4215
4216
  * @param p0
4216
- * @param p1
4217
4217
  * @returns
4218
4218
  */
4219
- static ugcQueryGetPublished(p0, p1) {
4220
- return inv('0x9993F1E11944A3DD', p0, p1);
4219
+ static N_0xD1FFB246F4E088AC(p0) {
4220
+ return !!inv('0xD1FFB246F4E088AC', p0, rai());
4221
4221
  }
4222
4222
  }