import type { AnimScene } from '../classes/AnimScene'; import type { Entity } from '../classes/Entity'; import type { Ped } from '../classes/Ped'; import type { Pickup } from '../classes/Pickup'; import type { Player } from '../classes/Player'; import type { Prop } from '../classes/Prop'; import type { PropSet } from '../classes/PropSet'; import type { Vehicle } from '../classes/Vehicle'; import type { Volume } from '../classes/Volume'; import { Vector3 } from '../types/Vector3'; import { int, float } from '../types/NativeAliases'; export declare class Network { /** * @param contentTypeName * @param contentId * @param fileId * @param fileVersion * @param languageId * @returns */ static ugcRequestContentDataFromParams(contentTypeName: string, contentId: string, fileId: int, fileVersion: int, languageId: int): int; /** * @param maxNumMissionParticipants * @param p1 * @param instanceId */ static setThisScriptIsNetworkScript(maxNumMissionParticipants: int, p1: boolean, instanceId: int): void; /** * Stadia only; always returns -1 on other platforms. p0 may be a BOOL. * * @param p0 * @returns */ static N_0x3E8CCE6769DB5F34(p0: int): int; /** * @returns gamerHandle1; gamerHandle2 */ static arePlayersInSamePlatformParty(): [any, number, number]; /** * @param hour * @param minute * @param second * @param transitionTime * @param pauseClock * @param clockwise */ static clockTimeOverride2(hour: int, minute: int, second: int, transitionTime: int, pauseClock: boolean, clockwise: boolean): void; /** * @param player * @returns */ static isPlayerConcealed(player: Player): boolean; /** * @param description * @returns */ static ugcRequestCachedDescription(description: string | number): int; /** * @returns */ static sessionLeaveSession(): boolean; /** * Hardcoded to return false. * * @returns */ static isCustomUpsellEnabled(): any; /** * @returns */ static getNetworkTime(): int; /** * @param threadId * @returns */ static getInstanceIdOfThread(threadId: int): int; /** * @param configProperty * @param include * @param weight */ static spawnConfigAddPropertyPreference(configProperty: int, include: boolean, weight: float): void; /** * @param p0 * @returns */ static N_0xDCA4A74135E1DEA5(p0: any): boolean; /** * @returns gamerHandle */ static getPlayerFromGamerHandle(): [Player | null, number]; /** * Returns the amount of players connected in the current session. Only works when connected to a session/server. * * @returns */ static getNumConnectedPlayers(): int; /** * @param netId * @returns */ static getEntityFromNetworkId(netId: int): Entity | null; /** * Note: this native was added in build 1311.23, but was only used after build 1436.25 */ static requestCloudTunables(): void; /** * @param toggle */ static setScriptReadyForEvents(toggle: boolean): void; /** * @param amount * @returns */ static canRegisterMissionPeds(amount: int): boolean; /** * @returns gamerHandle1; gamerHandle2 */ static areHandlesTheSame(): [boolean, number, number]; /** * Old name: _SET_LOCAL_PLAYER_AS_GHOST * * @param toggle */ static setLocalPlayerAsGhost(toggle: boolean): void; /** * Example: char displayName[64]; * if (_NETWORK_GET_DISPLAY_NAME_FROM_HANDLE(handle, displayName)) * { * // use displayName * } * * @param displayName * @returns gamerHandle */ static getDisplayNameFromHandle(displayName: string): [any, number]; static endTutorialSession(): void; /** * @param p0 * @param p2 * @returns p1 */ static isPlayerAParticipantOnScript(p0: Player, p2: any): [boolean, number]; /** * @returns */ static getTotalNumFriends(): int; /** * Returns ugcRequestId * * @param p0 * @param maxGet * @param contentTypeName * @param p3 * @param p4 * @param p5 * @returns */ static ugcQueryByContentType(p0: int, maxGet: int, contentTypeName: string, p3: int, p4: int, p5: int): int; /** * @param p0 * @param index * @param p2 * @returns */ static ugcQueryGetRating(p0: any, index: int, p2: int): float; /** * @param player */ static N_0xD78A26024BB13E08(player: Player): void; /** * Only used in R* Script fm_race_controller * * @param p0 */ static N_0x71FA2D1880C48032(p0: boolean): void; /** * Note: this native was added in build 1311.23 * * @param p0 * @param p1 * @param p2 * @param p3 * @returns */ static N_0x5F328FC909F0E0FF(p0: int, p1: int, p2: int, p3: int): boolean; /** * Old name: _NETWORK_SET_VEHICLE_WHEELS_DESTRUCTIBLE * * @param entity * @param p1 */ static triggerDamageEventForZeroDamage(entity: Entity, p1: boolean): void; /** * nullsub, doesn't do anything * * @returns */ static getNetStatisticsInfo(): any; /** * @returns gamerHandle */ static canReceiveInviteFromHandle(): [any, number]; /** * @param player * @param p1 */ static addPlayerToRecentGamersList(player: Player, p1: int): void; /** * @returns */ static N_0x232E1EB23CDB313C(): boolean; /** * Note: this native was added in build 1311.23 * * @returns sessionId1; sessionId2 */ static sessionAreSessionIdsEqual(): [boolean, number, number]; /** * @returns */ static isTutorialSessionChangePending(): boolean; static ugcReleaseAllCachedDescriptions(): void; /** * @param animScene * @returns */ static requestControlOfAnimScene(animScene: AnimScene): any; static setMissionFinished(): void; /** * Note: this native was added in build 1311.23 * * @param p0 * @returns */ static N_0x1E4E097D71D449FB(p0: boolean): int; /** * Note: this native was added in build 1311.23 * * @param p0 */ static N_0xC1968045EEB563B7(p0: int): void; /** * Old name: _CLEAR_LAUNCH_PARAMS */ static clearServiceEventArguments(): void; /** * Old name: _NETWORK_ALLOW_LOCAL_ENTITY_ATTACHMENT * * @param entity * @param toggle */ static allowRemoteAttachmentModification(entity: Entity, toggle: boolean): void; /** * @param volume */ static spawnConfigAddExclusionVolume(volume: Volume): void; /** * Note: this native was added in build 1436.31 * * @param p0 * @returns */ static N_0x78271BC02AE9AF83(p0: int): int; /** * @param netID * @returns */ static isDamageTrackerActiveOnNetworkId(netID: int): boolean; /** * Always returns -1. Seems to be XB1 specific. * * @returns gamerHandle */ static startUserContentPermissionsCheck(): [int, number]; /** * @param entity * @returns */ static hasEntityBeenRegisteredWithThisThread(entity: Entity): boolean; /** * @param entity * @param toggle */ static setEntityGhostedToLocalPlayer(entity: Entity, toggle: boolean): void; /** * @param player * @returns weaponHash: Refer to {@link eWeaponHash} */ static getEntityKillerOfPlayer(player: Player): [Entity | null, number]; /** * @param p0 * @returns */ static getNumCreatedMissionPickups(p0: boolean): int; /** * @param entity * @param p1 * @param p2 * @param p3 */ static setEntityVisibleInCutscene(entity: Entity, p1: boolean, p2: boolean, p3: int): void; /** * Hardcoded to return -1. * * @param p1 * @returns p0 */ static displaynamesFromHandlesStart(p1: any): [int, number]; /** * @returns */ static N_0xCC4E72C339461ED1(): any; /** * nullsub, doesn't do anything * * @returns */ static N_0x160F0CE6D76A39C9(): any; /** * Old name: _NETWORK_GET_OLDEST_RESEND_COUNT_FOR_PLAYER * * @param player * @returns */ static getHighestReliableResendCount(player: Player): int; /** * Checks for session flag 'SF_PRIVATE' * * @returns */ static sessionIsPrivate(): boolean; /** * @param toggle */ static autoSessionSetAllowedToSplit(toggle: boolean): void; static N_0x19B52C20B5C4757C(): void; /** * @returns sessionRequestId */ static sessionIsNsrrSuccess(): [any, number]; /** * @returns */ static isPlatformInvitePending(): any; /** * @returns */ static isInMpCutscene(): boolean; /** * @returns */ static N_0x273E04A3A7AD1F2D(): boolean; /** * Old name: _NETWORK_GET_AVERAGE_PACKET_LOSS_FOR_PLAYER * * @param player * @returns */ static getAveragePacketLoss(player: Player): float; /** * @returns hour; minute; second */ static getGlobalClock(): [boolean, number, number, number]; /** * @param player * @returns */ static isPlayerAParticipant(player: Player): boolean; /** * @returns */ static getXp(): int; /** * @param p0 * @param index * @returns */ static ugcQueryGetPlaylistName(p0: any, index: int): string; static N_0xD39A72AE5EBD57E5(): void; /** * @param p0 */ static N_0xD42C543F73233041(p0: boolean): void; static N_0xE5FF65CFF5160752(): void; /** * @param player * @param reportType * @param description * @param horseName */ static reportPlayer(player: Player, reportType: int, description: string, horseName: string): void; /** * @returns p0 */ static getSizeOfPlayerBroadcastDataStorage(): [int, number]; /** * @returns */ static N_0x3E4A16BC669E71B3(): boolean; /** * @returns */ static getNumParticipants(): int; static autoSessionFinishInstance(): void; /** * @returns */ static getThisScriptIsNetworkScript(): boolean; /** * @param p0 * @param index * @returns p2 */ static ugcQueryGetDate(p0: any, index: int): number; /** * @param amount */ static reserveNetworkMissionVehicles(amount: int): void; /** * @returns */ static isTunableCloudRequestPending(): boolean; /** * Old name: _NETWORK_IS_CONNECTION_ENDPOINT_RELAY_SERVER * * @param player * @returns */ static isConnectedViaRelay(player: Player): boolean; /** * @param p0 * @param toggle */ static setDoorUnnetworked(p0: any, toggle: boolean): void; /** * @param pos * @param heading * @param p4 * @param p5 * @param p6 * @param p7 */ static resurrectLocalPlayer(pos: Vector3, heading: float, p4: int, p5: boolean, p6: any, p7: boolean): void; /** * @returns sessionRequestId */ static sessionLeftQueueOrRequestedSession(): [any, number]; /** * @param flags Refer to {@link eSessionFlags} * @returns */ static sessionRemoveSessionFlags(flags: int): any; /** * @returns */ static haveRosBannedPriv(): boolean; /** * @param p0 * @returns */ static N_0xCA58D4FD20D70F24(p0: any): int; /** * @returns */ static refreshCurrentFriendPage(): any; /** * Same Native Handler as VEH_TO_NET, PED_TO_NET, OBJ_TO_NET and NETWORK_GET_NETWORK_ID_FROM_ENTITY * * @param handle * @returns */ static N_0xF260AF6F43953316(handle: number): int; /** * @returns */ static N_0xA94ECE191D90637A(): int; /** * @param p0 * @returns */ static getNumReservedMissionPickups(p0: boolean): int; /** * @param toggle */ static allowAllEntityFadingForInstances(toggle: boolean): void; /** * @param netId */ static preventNetworkIdMigration(netId: int): void; /** * Returns whether the signed-in user has valid Rockstar Online Services (ROS) credentials. * * @returns */ static hasValidRosCredentials(): boolean; /** * @param ped_amt * @param vehicle_amt * @param object_amt * @param pickup_amt * @returns */ static canRegisterMissionEntities(ped_amt: int, vehicle_amt: int, object_amt: int, pickup_amt: int): boolean; /** * @returns */ static didRecentGamerNamesRequestSucceed(): any; /** * @returns sessionRequestId */ static sessionCancelRequest(): [any, number]; /** * @param message * @returns gamerHandle */ static N_0x5759160AC17C13CE(message: string): number; /** * @param id * @returns */ static cloudHasRequestCompleted(id: int): boolean; /** * nullsub, doesn't do anything */ static N_0xACC44768AF229042(): void; /** * Hardcoded to return zero. ==== PS4 specific info ==== Returns some sort of unavailable reason: * -1 = REASON_INVALID * 0 = REASON_OTHER * 1 = REASON_SYSTEM_UPDATE * 2 = REASON_GAME_UPDATE * 3 = REASON_SIGNED_OUT * 4 = REASON_AGE * 5 = REASON_CONNECTION ================================= * * @returns */ static getNpUnavailableReason(): int; /** * @param netId * @returns */ static netToPropset(netId: int): PropSet | null; /** * @param paramName */ static clearLaunchParam(paramName: string): void; /** * @param p0 */ static N_0x603469298A4308AF(p0: boolean): void; /** * @param player * @returns */ static isAimCamActive(player: Player): any; /** * Note: scripts seem to indicate that this was renamed to NETWORK_IS_PLAYER_IN_MP_FAST_INSTANCE * * @param player * @returns */ static isPlayerInMpCutscene(player: Player): boolean; /** * @param time */ static setLocalPlayerInvincibleTime(time: int): void; /** * @param p0 * @returns */ static N_0x3F2EE18A3E294801(p0: int): int; /** * @param player */ static N_0x7B3FF2D193628126(player: Player): void; /** * @param milliseconds */ static clearClockOverrideOvertime(milliseconds: int): void; /** * @param player * @returns */ static getPlayerTutorialSessionInstance(player: Player): int; /** * @param amount * @returns */ static canRegisterMissionVehicles(amount: int): boolean; /** * Takes the specified time and writes it to the structure specified in the second argument. struct date_time * { * int year; * int PADDING1; * int month; * int PADDING2; * int day; * int PADDING3; * int hour; * int PADDING4; * int minute; * int PADDING5; * int second; * int PADDING6; * }; * * @param posixTime * @returns timeStructure */ static convertPosixTime(posixTime: int): number; /** * @param ugcRequestId * @returns */ static N_0xCD53E6CBF609C012(ugcRequestId: int): boolean; /** * @param p0 * @param index * @returns */ static ugcQueryGetMissionDescHash(p0: any, index: int): number; /** * Note: this native was added in build 1311.23 * * @param p0 */ static N_0x335AF56613CA0F49(p0: int): void; /** * @param p0 * @returns */ static N_0xE10F2D7715ABABEC(p0: any): any; /** * Note: this native was added in build 1311.23 */ static N_0xFD8112109A96877C(): void; /** * Always returns 80 * * @returns */ static getMaxNumNetworkPickups(): int; /** * Old name: _NETWORK_GET_AVERAGE_LATENCY_FOR_PLAYER * * @param player * @returns */ static getAverageLatency(player: Player): float; /** * @param netId * @param toggle */ static setNetworkIdExistsOnAllMachines(netId: int, toggle: boolean): void; /** * @param completed * @returns */ static setCompletedMpIntroFlowOnCurrentSlot(completed: boolean): any; /** * Only used in R* SP Script map_app_event_handler * * @param p1 * @returns gamerHandle */ static requestPedshotTextureLocalDownload(p1: int): [string, number]; /** * @returns */ static autoSessionIsProcessingSessionSplit(): any; /** * @returns */ static N_0x1413B6BF27AB7A95(): int; /** * nullsub, doesn't do anything * * @param player */ static showChatRestrictionMsc(player: Player): void; /** * Returns false if pedshot push failed * * @param texture * @param personaPhotoType * @param formatIndex * @returns */ static personaPhotoWriteScProfile(texture: string, personaPhotoType: int, formatIndex: int): any; /** * @param p0 * @param p1 * @returns */ static N_0x271F95E55C663B8B(p0: any, p1: any): any; /** * @returns */ static sessionGetSessionFlags(): int; /** * Note: this native was added in build 1311.23 * * @returns */ static N_0x039AD6B57D5179FF(): int; /** * Old name: _NETWORK_GET_NUM_UNACKED_FOR_PLAYER * * @param player * @returns */ static getNumUnackedReliables(player: Player): int; /** * @param entity * @param toggle */ static allowEntityFadingForInstances(entity: Entity, toggle: boolean): void; /** * Only used in R* Script startup_clip */ static N_0xFD4272A137703449(): void; /** * @param player * @param type */ static N_0x51951DE06C0D1C40(player: Player, type: int): void; /** * @param p0 * @returns */ static N_0x5ED39DA62BEB1330(p0: int): any; /** * @param p0 * @param index * @returns */ static ugcQueryGetName(p0: any, index: int): string; /** * @param p0 * @param index * @returns */ static ugcQueryGetBookMarked(p0: any, index: int): any; /** * @param entity * @param timer * @param p2 */ static setNetworkRespotTimer(entity: Entity, timer: int, p2: boolean): void; /** * @returns gamerHandle */ static getGamertagFromFriend(): [string, number]; /** * @param player * @returns */ static getPlayerWaypointIsActive(player: Player): any; /** * @param inviteIndex * @returns */ static N_0x981146E5C9CE9250(inviteIndex: int): boolean; /** * @param netID */ static disableProximityMigration(netID: int): void; /** * @param p0 * @param p1 * @param dataSize * @returns outData */ static getRecentGamerNames(p0: int, p1: int, dataSize: int): [any, number]; /** * @returns */ static isInTutorialSession(): boolean; /** * @param tunableContext * @param tunableName * @returns value */ static accessTunableInt(tunableContext: string | number, tunableName: string | number): [boolean, number]; /** * @param tunableContext * @param tunableName * @param defaultValue * @returns */ static tryAccessTunableIntHash(tunableContext: string | number, tunableName: string | number, defaultValue: int): int; /** * @param tunableContext * @param tunableName * @param defaultValue * @returns */ static tryAccessTunableBoolHash(tunableContext: string | number, tunableName: string | number, defaultValue: boolean): boolean; /** * @param seed */ static seedRandomNumberGenerator(seed: int): void; /** * @param netId * @returns */ static isNetworkIdOwnedByParticipant(netId: int): boolean; /** * @param scriptName * @param p1 * @param p2 * @returns */ static getHostOfScript(scriptName: string, p1: int, p2: int): Player | null; static spawnConfigSetCancelSearch(): void; /** * @param player * @returns */ static getPlayerIndex(player: Player): int; /** * @param ugcRequestId * @returns */ static ugcQueryGetContentNum(ugcRequestId: int): int; /** * @param ctx * @param lh * @param ec * @param h */ static alert(ctx: string | number, lh: string | number, ec: int, h: int): void; /** * @param contentId * @returns */ static ugcIsBookMarked(contentId: string): boolean; /** * @returns p0 */ static autoSessionCanSplitSession(): [any, number]; /** * _NETWORK_A* - _NETWORK_C* * * @param p0 */ static N_0x34BC1E79546BA543(p0: boolean): void; /** * @param count * @returns data */ static getGamerSessionFromHandle(count: int): [any, number]; /** * @param p0 * @param p1 * @param p2 */ static registerHostBroadcastVariables(p0: any, p1: any, p2: any): void; /** * @returns */ static N_0x18B94666CF610AEB(): boolean; /** * p0 appears to be for MP * * @param p0 * @returns */ static getNumReservedMissionObjects(p0: boolean): int; /** * @returns */ static hasSocialClubAccount(): boolean; /** * @param netHandle * @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist. */ static netToPed(netHandle: int): Ped | null; /** * 0 = succeeded * 1 = pending * 2 = failed * * @param textureDownloadId * @returns */ static getStatusOfTextureDownload(textureDownloadId: int): int; /** * @returns gamerHandle */ static N_0xF23A6D6C11D8EC15(): [boolean, number]; /** * Always returns 40 * * @returns */ static getMaxNumNetworkVehicles(): int; /** * @param netId * @param p1 * @param p2 */ static keepNetworkIdInFastInstance(netId: int, p1: boolean, p2: int): void; /** * @returns gamerHandle */ static isHandleValid(): [boolean, number]; /** * @param p0 * @returns p1 */ static N_0x691E4DE5309EAEFC(p0: any): number; /** * @param entity * @returns */ static getNetworkIdFromEntity(entity: Entity): int; /** * Only used in SP R* Script dominoes_sp: p1 = 0 * * @param player * @param p1 */ static N_0x02C4C6C2900D84DF(player: Player, p1: any): void; /** * @returns */ static isSessionActive(): boolean; /** * @param animScene * @returns */ static animSceneToNet(animScene: AnimScene): int; /** * @returns */ static getRank(): int; /** * @param message * @returns gamerHandle */ static addFriend(message: string): [boolean, number]; /** * @returns */ static N_0xB389289F031F059A(): int; /** * Subtracts the first argument from the second, then returns whether the result is negative. * * @param timeA * @param timeB * @returns */ static isTimeMoreThan(timeA: int, timeB: int): boolean; /** * @returns */ static pedmugshotRequestSend(): any; /** * Old name: _NETWORK_SET_PASSIVE_MODE_OPTION * * @param toggle */ static setPlayerIsPassive(toggle: boolean): void; /** * Seems to always return 0, but it's used in quite a few loops. for (num3 = 0; num3 < NETWORK::0xCCD8C02D(); num3++) * { * if (NETWORK::NETWORK_IS_PARTICIPANT_ACTIVE(PLAYER::0x98F3B274(num3)) != 0) * { * var num5 = NETWORK::NETWORK_GET_PLAYER_INDEX(PLAYER::0x98F3B274(num3)); * * @returns */ static getMaxNumParticipants(): int; /** * @param ropeId * @returns */ static getNetworkIdFromRopeId(ropeId: int): int; /** * @param ugcRequestId * @returns */ static ugcQueryWasForceCancelled(ugcRequestId: int): any; /** * @param p0 */ static ugcSetQueryDataFromOffline(p0: boolean): void; /** * @returns gamerHandle */ static isFriendHandleInSameTitle(): [boolean, number]; /** * @param p0 * @returns */ static N_0xE8E633215471BB5D(p0: any): int; /** * Note: this native was added in build 1311.23 * * @param p0 * @returns */ static N_0x917AD74BDCF8B6E9(p0: boolean): int; /** * nullsub, doesn't do anything * * @param p0 */ static N_0x0CC28C08613BA9E5(p0: int): void; /** * Old name: _IS_ENTITY_GHOSTED_TO_LOCAL_PLAYER * * @param entity * @returns */ static isEntityAGhost(entity: Entity): boolean; static clearGetGamerStatus(): void; /** * @param player * @param entity * @returns p2 */ static getAssistedDamageOfEntity(player: Player, entity: Entity): [boolean, number]; /** * flags: * enum eSessionRequestOptionFlags * { * SESSION_REQUEST_OPTION_FLAG_INCLUDE_GANG_MEMBERS = (1 << 1), * SESSION_REQUEST_OPTION_FLAG_LEADER_KEEPS_GANG = (1 << 7), * }; seamlessType: * enum eSeamlessType * { * SEAMLESS_TYPE_NORMAL, * SEAMLESS_TYPE_PVE, * SEAMLESS_TYPE_DEV, * SEAMLESS_TYPE_NO_SEAMLESS * }; * * @param flags * @param seamlessType * @returns sessionRequestId */ static requestSessionSeamless(flags: int, seamlessType: int): [any, number]; /** * Note: this native was added in build 1311.16 * * @returns */ static isObjectReassignmentInProgress(): boolean; /** * @param scriptName * @param instanceId * @param position * @returns */ static getNumScriptParticipants(scriptName: string, instanceId: int, position: string | number): int; /** * @param p0 * @returns */ static N_0x6C27442A225A241A(p0: int): int; /** * @param p0 * @param p1 */ static spawnConfigSetTuningFloat(p0: string | number, p1: float): void; /** * @param p1 * @returns outData */ static N_0x7BCA0A3972708436(p1: int): [int, number]; /** * Hardcoded to return zero. * * @param p0 * @param p1 * @param p2 * @returns */ static getDisplaynamesFromHandles(p0: any, p1: any, p2: any): int; /** * @returns */ static isHostOfThisScript(): boolean; /** * @param p0 * @param index * @returns */ static ugcQueryGetLanguage(p0: any, index: int): int; /** * Note: this native was added in build 1355.30 * * @param p0 */ static N_0x422F9D6D6C7BC290(p0: int): void; /** * @param propSet * @returns */ static propsetToNet(propSet: PropSet): int; /** * @param p0 */ static N_0x5CD3AAD8FF9ED121(p0: any): void; /** * @param netId * @returns */ static netToAnimScene(netId: int): AnimScene | null; /** * @param p0 * @param index * @returns */ static ugcQueryGetContentHasPlayerRecord(p0: any, index: int): any; static N_0x814729078AED6D30(): void; /** * @returns */ static isSignedOnline(): boolean; /** * @returns */ static isInSpectatorMode(): boolean; static N_0x49CF17A564918E8D(): void; /** * Returns ugcRequestId * * @param categoryType * @param p1 * @param maxGet * @param contentTypeName * @param p4 * @param p5 * @returns */ static ugcQueryByCategory(categoryType: int, p1: int, maxGet: int, contentTypeName: string, p4: int, p5: boolean): int; /** * category: * enum eOnCallType * { * NETWORK_SESSION_REQUEST_ON_CALL_TYPE_STORY = 2, * NETWORK_SESSION_REQUEST_ON_CALL_TYPE_MATCH = 3 * }; * * @param flags * @param category * @param userHash * @returns p2; sessionRequestId */ static sessionRequestSessionOnCall(flags: int, category: int, userHash: int): [any, number, number]; /** * @param p0 * @param p1 * @param p2 * @returns */ static N_0xD4022C7286B0DFA2(p0: string, p1: int, p2: int): any; static N_0xB131E686BD97B3F8(): void; /** * @param netId * @returns */ static getPlayerOwnerOfNetworkId(netId: int): Player | null; /** * @param toggle */ static autoSessionSetAutoWarpEnabled(toggle: boolean): void; /** * @returns */ static autoSessionIsObjectCreationPaused(): any; /** * matchType: * enum eMatchType * { * MATCHTYPE_DEPRECATED, * MATCHTYPE_UGCPLAYLIST, * MATCHTYPE_UGCMISSION, * MATCHTYPE_MINIGAME, * MATCHTYPE_SEAMLESS, * MATCHTYPE_PRIVATE_DO_NOT_USE * }; * * @param flags * @param matchType * @param userHash * @param p3 * @returns sessionRequestId */ static sessionRequestSessionCompetitive(flags: int, matchType: int, userHash: int, p3: int): [any, number]; /** * @param netId * @returns */ static requestControlOfNetworkId(netId: int): boolean; /** * @param volume * @param p1 * @param p2 * @param p3 */ static N_0x405DDEFB1F531B18(volume: Volume, p1: boolean, p2: any, p3: any): void; /** * Related to container entity (RANSACK_ATTACHED_LOCKBOX / RANSACK_ATTACHED_CHEST) * * @param p0 * @returns */ static N_0x950ACD8F05B7B9DF(p0: any): any; /** * Only used in R* Script net_rolling_playlist */ static sessionPlaylistGetUpcomingContent(): void; /** * @param p0 */ static N_0x455156F47DC6B78C(p0: boolean): void; /** * @param amount */ static reserveNetworkClientMissionObjects(amount: int): void; /** * @returns */ static commerceStoreIsOpen(): boolean; /** * @param flags * @returns */ static sessionRemovePlayerFlags(flags: int): any; /** * @returns */ static getTimeoutTime(): int; /** * @param p0 */ static setLocalPlayerInvisibleLocally(p0: boolean): void; /** * @param threadId * @returns */ static isThreadActive(threadId: int): any; /** * Returns false if pedshot push failed * * @param texture * @param playerSlot * @param p2 * @param personaPhotoLocalCacheType * @returns */ static personaPhotoWriteLocal(texture: string, playerSlot: int, p2: int, personaPhotoLocalCacheType: int): any; /** * @param index * @returns */ static getParticipantIndex(index: int): int; /** * @param p0 */ static N_0xD637D327080CD86E(p0: int): void; /** * @returns */ static sessionIsAnyRequestInProgress(): any; /** * @param p0 * @param p1 * @param p2 * @param p3 * @param p4 * @param p5 * @returns */ static isSphereVisibleToPlayer(p0: any, p1: any, p2: any, p3: any, p4: any, p5: any): boolean; /** * @param netHandle * @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist. */ static netToEnt(netHandle: int): Entity | null; /** * Note: this native was added in build 1311.23 * * @returns */ static N_0x062842D61D0D53FD(): boolean; /** * @param p0 */ static N_0xFF36F36B07E69059(p0: any): void; /** * @param flags * @returns */ static sessionSetPlayerFlags(flags: int): any; /** * @param contentId * @param dataSize * @param p4 * @param flags * @returns gamerHandle; data */ static sendSessionInvite(contentId: string, dataSize: int, p4: int, flags: int): [any, number, number]; static N_0x61BFBAA795E712AD(): void; /** * @param playerSlot * @param personaPhotoLocalCacheType * @returns */ static localPlayerPedshotTextureDownloadRequest(playerSlot: int, personaPhotoLocalCacheType: int): int; /** * Hardcoded to return zero. * * @returns */ static N_0x5133CF81924F1129(): int; /** * Returns the Player associated to a given Ped when in an online session. * * @param ped * @returns */ static getPlayerIndexFromPed(ped: Ped): Player | null; /** * @param netID * @returns */ static doesNetworkIdExist(netID: int): boolean; /** * @param local * @param remote * @param instanceId */ static setLocalPlayerVisibleInCutscene(local: boolean, remote: boolean, instanceId: int): void; /** * Params: p5 = 50.f, p6 = 0 in R* Script net_fetch (NET_FETCH_CLIENT_UPDATE_PED_ROLE_CLUE_IDLE) * * @param pos * @param p5 * @param p6 * @returns p0; p1 */ static N_0x880A7202301E282B(pos: Vector3, p5: float, p6: any): [boolean, number, number]; /** * Note: this native was added in build 1491.50 * * @param p0 * @returns */ static N_0xDBDF80673BBA3D65(p0: int): boolean; /** * @param p0 */ static N_0x9F24A34863FD35DA(p0: any): void; static clearPlatformInvite(): void; /** * @param toggle * @param p2 * @returns p1 */ static autoSessionSetAllowedToMerge(toggle: boolean, p2: int): number; /** * @returns */ static getTotalNumPlayers(): int; /** * Note: this native was added in build 1311.23 * * @param p0 * @returns */ static N_0x744BFBB0CA908161(p0: boolean): int; /** * @param player * @returns */ static isPlayerActive(player: Player): boolean; /** * @returns */ static getPlatformInviteId(): int; /** * @param p0 * @param index * @returns */ static ugcQueryGetOwnerId(p0: any, index: int): string; /** * @param tunableContext * @param tunableName * @param defaultValue * @returns */ static tryAccessTunableFloatHash(tunableContext: string | number, tunableName: string | number, defaultValue: float): float; /** * @returns */ static hasNetworkTimeStarted(): boolean; /** * nullsub, doesn't do anything */ static showPsnUgcRestriction(): void; /** * @param p0 * @param p1 * @returns */ static ugcQueryGetPosixUpdatedDate(p0: any, p1: any): int; /** * @param index * @returns */ static hasRosPrivilege(index: int): boolean; /** * @returns */ static isSessionStarted(): boolean; /** * @param toggle */ static setLocalPlayerSyncLookAt(toggle: boolean): void; /** * @returns gamerHandle */ static showProfileUi(): number; /** * @param player * @param toggle */ static setPlayerVisibleLocally(player: Player, toggle: boolean): void; /** * *NETWORK_SPAWN_CONFIG** * * @param nsctf */ static N_0x5D3C528B7A7DF836(nsctf: string | number): void; /** * @returns */ static autoSessionIsAutoWarpDisabled(): any; /** * @returns */ static didGetGamerStatusSucceed(): any; /** * @param p0 * @param p1 * @param p2 * @param p3 * @param p4 * @returns */ static isSphereVisibleToAnotherMachine(p0: any, p1: any, p2: any, p3: any, p4: any): boolean; /** * @param p0 * @returns */ static checkCommunicationPrivileges(p0: int): boolean; /** * Note: this native was added in build 1355.30 */ static N_0x40FEDB13870042F1(): void; /** * @param player1 * @param player2 * @returns */ static N_0xFE53B1F8D43F19BF(player1: Player, player2: Player): int; /** * @param id * @returns */ static cloudDidRequestSucceed(id: int): boolean; /** * @param player * @returns */ static isPlayerConnected(player: Player): boolean; /** * Hardcoded to return false. * * @returns gamerHandle */ static isPendingFriend(): [any, number]; /** * Note: this native was added in build 1311.23 * * @param p0 */ static N_0xA7670F7991099680(p0: int): void; /** * @param instanceId */ static setLocalPlayerPendingFastInstanceId(instanceId: int): void; /** * @param p0 */ static N_0xF342F6BD0A8287D5(p0: any): void; /** * @returns */ static isFindingGamers(): boolean; /** * Returns textureDownloadId * * @param filePath * @param name * @param p3 * @returns gamerHandle */ static textureDownloadRequest(filePath: string, name: string, p3: boolean): [int, number]; /** * @returns gamerHandle */ static isFriendHandleOnline(): [boolean, number]; /** * @param netId * @returns weaponHash: Refer to {@link eWeaponHash} */ static getDestroyerOfNetworkId(netId: int): [int, number]; /** * Returns value of fwuiCachedSetting "general.onlineNotificationsInStoryMode" * * @returns */ static areOnlineNotificationsShownInStoryMode(): boolean; /** * Subtracts the second argument from the first. * * @param timeA * @param timeB * @returns */ static getTimeDifference(timeA: int, timeB: int): int; /** * @param p0 * @returns */ static N_0xD1FFB246F4E088AC(p0: int): boolean; /** * @param description * @returns */ static ugcDidDescriptionRequestSucceed(description: string | number): boolean; /** * @returns */ static getGameMode(): int; /** * @param amount */ static reserveNetworkClientMissionPeds(amount: int): void; /** * @param p0 * @param p1 * @param p2 * @param p3 */ static setInMpCutscene(p0: boolean, p1: boolean, p2: int, p3: boolean): void; /** * @param toggle * @param playerPed */ static setInSpectatorMode(toggle: boolean, playerPed: Ped): void; /** * @param p0 */ static N_0x3E74A687A73979C6(p0: boolean): void; /** * @returns sessionRequestId */ static sessionIsRequestPendingTransition(): [any, number]; /** * @param offset */ static spawnConfigSetGroundToRootOffset(offset: float): void; /** * @returns */ static checkAccessAndAlertIfFail(): any; /** * Note: this native was added in build 1311.23 * * @returns */ static N_0xFB3205788F8AFA3F(): int; /** * @returns */ static getNumRecentGamers(): int; /** * @returns */ static N_0xD3A3C8B9F3BDEF81(): any; /** * Returns the entity's network ID. * * @param entity * @returns */ static N_0xF302AB9D978352EE(entity: Entity): int; static disableRealtimeMultiplayer(): void; /** * @param volume */ static spawnConfigRemoveExclusionVolume(volume: Volume): void; /** * @param tunableContext * @param tunableName * @returns */ static doesTunableExist(tunableContext: string | number, tunableName: string | number): boolean; /** * Note: this native was added in build 1311.23 * * @param p0 * @returns */ static N_0x982D7AD755B8F62C(p0: boolean): int; static startSoloTutorialSession(): void; /** * @param p0 * @param p2 * @param p3 * @returns p1 */ static setRichPresence(p0: int, p2: int, p3: int): number; /** * @returns */ static pedmugshotTake(): any; /** * @param entity */ static N_0xBB1EC8C2EEF33BAA(entity: Entity): void; /** * @returns */ static haveOnlinePrivileges(): boolean; /** * @param p0 * @param index * @returns */ static ugcQueryGetRootContentId(p0: any, index: int): string; /** * @returns */ static didFindGamersSucceed(): any; static N_0x0BF90CBB6B72977B(): void; /** * @returns gamerHandle */ static getLocalHandle(): number; /** * nullsub, doesn't do anything * * @param p0 */ static N_0x2C4E98DDA475364F(p0: string): void; /** * @param entity * @returns */ static getGlobalEntityFlags(entity: Entity): int; /** * @param description * @returns */ static ugcHasDescriptionRequestFinished(description: string | number): boolean; /** * @returns */ static canSessionEnd(): boolean; /** * @returns */ static hasCurrentGetGamerStatusStarted(): any; /** * @param enabled * @param flagIndex * @returns */ static setMpMissionFlagOnCurrentSlot(enabled: boolean, flagIndex: int): any; /** * Hardcoded to return false. * * @returns */ static isInPlatformPartyChat(): boolean; /** * @param friendIndex * @returns gamerHandle */ static handleFromFriend(friendIndex: int): number; /** * @returns */ static commerceStoreIsEnabled(): boolean; /** * @param p0 */ static N_0xA95470DA137587F5(p0: boolean): void; /** * @param netId * @returns */ static hasControlOfNetworkId(netId: int): boolean; /** * @param flags */ static spawnConfigSetFlags(flags: int): void; /** * Same as NETWORK_GET_AVERAGE_LATENCY (0xD414BE129BB81B32) Old name: _NETWORK_GET_AVERAGE_LATENCY_FOR_PLAYER_2 * * @param player * @returns */ static getAveragePing(player: Player): float; /** * @param p0 * @returns */ static getNumCreatedMissionObjects(p0: boolean): int; /** * Note: this native was added in build 1311.16 GET_NUM_* * * @returns */ static N_0x02B3CDD652B3CDD6(): int; /** * nullsub, doesn't do anything */ static N_0x2CD41AC000E6F611(): void; /** * @returns */ static sessionGetSessionType(): int; /** * @returns */ static isClockTimeOverridden(): boolean; /** * @param player * @returns gamerHandle */ static handleFromPlayer(player: Player): number; /** * Returns string for GET_STATUS_OF_LOAD_MISSION_CREATOR_PHOTO * * @param p0 * @param p1 * @param p2 * @returns */ static ugcQueryGetCreatorPhoto(p0: any, p1: int, p2: any): string; /** * @param toggle */ static setRecentGamersEnabled(toggle: boolean): void; /** * @returns */ static getLaunchParamString(): string; /** * @param entity * @param toggle */ static setEntityRemainsWhenUnnetworked(entity: Entity, toggle: boolean): void; /** * @param flags * @param userHash * @param p2 * @returns sessionRequestId */ static sessionRequestSessionNominated(flags: int, userHash: int, p2: int): [boolean, number]; /** * @param description * @returns */ static ugcIsDescriptionRequestInProgress(description: string | number): boolean; /** * @param ugcRequestId */ static ugcClearQueryResults(ugcRequestId: int): void; /** * @param threadId * @returns */ static getHostOfThread(threadId: int): Player | null; /** * @returns */ static isGameInProgress(): boolean; /** * @param rangeStart * @param rangeEnd * @returns */ static getRandomIntRanged(rangeStart: int, rangeEnd: int): int; /** * @param p0 * @returns */ static acceptRsInvite(p0: int): any; /** * @param player * @param toggle */ static concealPlayer(player: Player, toggle: boolean): void; /** * ^^ 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 * * @param entity * @param toggle */ static setEntityOnlyExistsForParticipants(entity: Entity, toggle: boolean): void; /** * @param doorHash */ static setDoorNetworked(doorHash: string | number): void; /** * @param p0 * @param index * @returns gamerHandle */ static ugcQueryGetCreatorHandle(p0: any, index: int): [any, number]; /** * @param paramName * @returns */ static getLaunchParamExists(paramName: string): any; /** * nullsub, doesn't do anything */ static N_0xFC6FCF4C03F1BBF6(): void; static N_0x43CF999205084B4B(): void; /** * p0 appears to be for MP * * @param p0 * @returns */ static getNumReservedMissionVehicles(p0: boolean): int; /** * @param name * @returns */ static textureDownloadTextureNameIsValid(name: string): any; /** * @param scriptName * @param p1 * @param p2 * @param p3 * @returns */ static isScriptActive(scriptName: string, p1: int, p2: boolean, p3: int): boolean; /** * @param p0 */ static N_0x5CB8B0C846D0F30B(p0: any): void; /** * @returns loadingState */ static canAccessMultiplayer(): [boolean, number]; /** * @returns p0 */ static getCurrentFriendPageData(): [any, number]; /** * @returns p0 */ static getSizeOfHostBroadcastDataStorage(): [int, number]; /** * @returns */ static getInstanceIdOfThisScript(): int; /** * @param p0 * @returns */ static awardHasReachedMaxclaim(p0: any): any; /** * @param p0 * @returns */ static N_0xBB697756309D77EE(p0: boolean): any; /** * @returns */ static autoSessionIsInstancedSession(): any; /** * @param p0 * @param p1 * @returns */ static resetPopulation(p0: boolean, p1: int): any; /** * @param ped * @returns Returns the network id for the specified `ped` or `0` if the entity isn't networked. */ static pedToNet(ped: Ped): int; /** * @param p0 * @returns */ static N_0x27B1AE4D8C652F08(p0: int): int; /** * gets the object id of a network id * * @param netHandle * @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist. */ static netToObj(netHandle: int): Prop | null; /** * Note: this native was added in build 1311.23 * * @param ctx * @param ec * @param ex * @param ro */ static N_0x19447FCAE97704DC(ctx: string | number, ec: int, ex: boolean, ro: boolean): void; /** * Hardcoded to return zero. * * @returns */ static getPromotionDlgSeenCount(): int; /** * @param waterDepthLevel */ static spawnConfigSetLevelWaterDepth(waterDepthLevel: int): void; /** * @returns */ static N_0x41452E8A3B9C0C4B(): int; /** * If you are host, returns true else returns false. * * @returns */ static isHost(): boolean; /** * @returns p0 */ static N_0xA6F1BAABFF6AD7B9(): number; /** * @returns */ static spawnConfigSearchInProgress(): any; /** * @param pos */ static N_0x2686BD9566B65EDA(pos: Vector3): void; /** * Note: this native was added in build 1311.23 * * @param p0 * @returns */ static N_0x9E5A47744C0F0376(p0: int): boolean; /** * @param p0 * @param p1 * @param p2 * @returns */ static N_0xC0CFFDA87C2C163D(p0: int, p1: any, p2: int): any; /** * @param amount */ static reserveNetworkMissionPickups(amount: int): void; /** * Note: this native was added in build 1311.23 * * @param p0 */ static N_0xD3B6EBC6C3D77D44(p0: int): void; /** * @param p1 * @param p2 * @param p3 * @param p5 * @returns p0; p4 */ static ugcTextureDownloadRequest(p1: any, p2: any, p3: any, p5: boolean): [int, number, number]; /** * p0 appears to be for MP * * @param p0 * @returns */ static getNumReservedMissionPeds(p0: boolean): int; /** * @returns */ static isInSession(): boolean; /** * @param player1 * @param player2 * @returns */ static N_0x862C5040F4888741(player1: Player, player2: Player): boolean; /** * @param player * @param damageMultiplier */ static setLocalPlayerDamageMultiplierForPlayer(player: Player, damageMultiplier: float): void; /** * @param toggle */ static disableLeaveRemotePedBehind(toggle: boolean): void; /** * @param netHandle * @param p1 */ static N_0x894B5ECAB45D2342(netHandle: int, p1: any): void; /** * @param name */ static textureDownloadReleaseByName(name: string): void; /** * @param ugcRequestId * @returns */ static ugcIsRequestPending(ugcRequestId: int): any; /** * Only used in fm_race_controller R* Script (PROCESS_LOCAL_PLAYER_INIT) * * @param p0 */ static N_0xBC7D36946D19E60E(p0: boolean): void; /** * @param setting */ static N_0x704F92B3AF20D857(setting: boolean): void; /** * @param p0 * @param p1 * @returns */ static ugcQueryGetPosixPublishedDate(p0: any, p1: any): int; /** * @returns */ static getSocialMatchmakingAllowed(): any; /** * @param toggle */ static setSocialMatchmakingAllowed(toggle: boolean): void; /** * @param p0 * @param p1 * @param p2 * @returns */ static N_0x77B299E8799B1332(p0: any, p1: any, p2: any): any; /** * @param p0 * @returns */ static N_0xE59F4924BD3A718D(p0: int): string; /** * @param p0 * @returns */ static checkUserContentPrivileges(p0: int): boolean; /** * @param player * @returns */ static getPlayerFastInstanceId(player: Player): int; /** * @returns hours; minutes; seconds */ static getGlobalMultiplayerClock(): [number, number, number]; /** * @param description * @param length * @returns */ static ugcGetCachedDescription(description: string | number, length: int): string; /** * @param toggle */ static N_0x780A13F780A13F1B(toggle: boolean): void; /** * @param p1 * @returns gamerHandle */ static requestPedshotTextureMultiplayerDownload(p1: int): [string, number]; /** * @param setting */ static N_0xE3AB5EEFCB6671A2(setting: int): void; /** * @param p0 * @returns */ static N_0x3AA0CDC63696166D(p0: int): boolean; /** * @param p0 * @param p1 * @returns */ static N_0xE39600E50D608693(p0: any, p1: any): boolean; /** * @param flags Refer to {@link eSessionFlags} * @returns */ static sessionAddSessionFlags(flags: int): any; /** * @param p0 * @param playerCount * @returns */ static requestRecentGamerNames(p0: int, playerCount: int): any; /** * @returns */ static getHostOfThisScript(): Player | null; /** * @param animScene * @returns */ static hasControlOfAnimScene(animScene: AnimScene): any; /** * Equivalent to NETWORK_REQUEST_SESSION_SEAMLESS if userHash == 0. * Otherwise it is equivalent to NETWORK_SESSION_REQUEST_SESSION_COMPETITIVE(flags, MATCHTYPE_SEAMLESS, userHash, 0, sessionRequestId); p1 is unused * * @param flags * @param seamlessType * @param userHash * @returns sessionRequestId */ static sessionRequestSessionSeamless(flags: int, seamlessType: int, userHash: int): [any, number]; /** * @returns */ static hasCompletedMpIntroFlowOnCurrentSlot(): any; /** * @param configProperty * @param include */ static spawnConfigAddPropertyScripted(configProperty: int, include: boolean): void; /** * @param p0 * @returns */ static N_0xA2837A5E21FB5A58(p0: any): boolean; /** * @returns */ static N_0x0E54D4DA6018FF8E(): boolean; /** * Returns the entity associated with the given network ID. * * @param networkId * @returns */ static N_0x4538EE7C321590BC(networkId: int): Entity | null; static N_0x9B39B0555CC692B5(): void; /** * @param p0 * @returns */ static N_0xE79BA3BC265895DA(p0: int): string; /** * @param netPlaylistActivity */ static activitySetCurrent(netPlaylistActivity: int): void; /** * @param queueGroup * @returns */ static sessionIsRequestInProgressByQueueGroup(queueGroup: int): any; /** * @returns */ static pedmugshotGetStatus(): int; /** * @returns */ static getTunableCloudCrc(): int; /** * Returns true if the passed value is less than 32. * * @param player * @returns */ static isPlayerIndexValid(player: Player): any; /** * @param entity * @returns */ static getEntityIsNetworked(entity: Entity): boolean; /** * @param vehicle * @returns Returns the network id for the specified `vehicle`, or `0` if the vehicle isn't networked. */ static vehToNet(vehicle: Vehicle): int; /** * Only used in R* SP Scripts * * @param player * @param personaPhotoLocalCacheType * @returns */ static requestPedshotTextureLocalBackupDownload(player: int, personaPhotoLocalCacheType: int): string; /** * @param p0 */ static N_0xE5634491A58C2703(p0: float): void; /** * @param p0 * @param p1 * @param p2 * @param p3 * @returns */ static N_0x64A36BA85CE01A81(p0: any, p1: any, p2: any, p3: any): any; /** * @returns sessionRequestId */ static sessionIsSessionRequestIdValid(): [any, number]; /** * @returns */ static isResettingPopulation(): any; /** * Note: this native was added in build 1311.23 * * @param p0 * @returns */ static N_0x039B692B3318FAB6(p0: boolean): int; /** * Always returns 60 * * @returns */ static getMaxNumNetworkObjects(): int; /** * Checks if the user has ROS privilege 14. * * @returns */ static ugcHasPrivilege(): any; /** * @param networkId * @param bStopCloning */ static setNetworkIdStopCloning(networkId: int, bStopCloning: boolean): void; /** * Returns CGameConfig->ConfigOnlineServices->RosTitleName (see gameconfig.xml) * * @returns */ static getRosTitleName(): string; /** * @returns */ static getScriptStatus(): int; /** * @param p0 * @param p1 * @param p2 * @param p3 */ static setNetworkIdVisibleInCutscene(p0: any, p1: any, p2: any, p3: any): void; /** * @param amount */ static reserveNetworkMissionObjects(amount: int): void; /** * @param entity * @param player * @returns p2 */ static N_0x75FC34A2BA345BD1(entity: Entity, player: Player): [boolean, number]; /** * @returns */ static autoSessionIsAllowedToMerge(): any; /** * @param p0 * @param p1 * @param p2 * @returns */ static N_0x7A8E8DF782B47EB0(p0: any, p1: any, p2: any): any; /** * Hardcoded to return false. * * @returns */ static shouldShowPromotionDlg(): any; /** * @param amount */ static reserveNetworkMissionPeds(amount: int): void; /** * @param pos * @param heading */ static spawnConfigAddSpawnPoint(pos: Vector3, heading: float): void; /** * @param paramName * @param value */ static setLaunchParamValue(paramName: string, value: string): void; /** * @returns gamerHandle */ static canViewGamerUserContent(): [any, number]; /** * @param p0 * @returns */ static isParticipantActive(p0: int): boolean; /** * @param p0 * @returns */ static getNumCreatedMissionPeds(p0: boolean): int; /** * _NETWORK_GET_A* - _NETWORK_GET_D* * * @param player * @param ped * @returns p2 */ static N_0x236321F1178A5446(player: Player, ped: Ped): [boolean, number]; /** * Must be called from a background script, otherwise it will do nothing. * * @param entity * @param p1 */ static N_0x979765465A6F25FC(entity: Entity, p1: boolean): void; /** * @param player * @param p1 */ static N_0x5A91BCEF74944E93(player: Player, p1: float): void; /** * @param params */ static setLaunchParamString(params: string): void; /** * Note: this native was added in build 1311.23 * * @param p0 * @param p1 */ static N_0x0D183D8490EE4366(p0: int, p1: int): void; /** * Note: this native was added in build 1311.23 * * @param p0 * @returns */ static N_0xF8DC69DC1AD19072(p0: boolean): int; /** * @returns */ static N_0xA47D48D06AA5A188(): boolean; /** * @returns */ static getCloudTimeAsInt(): int; /** * *GET_LAUNCH_PARAM*(RESPOT?)* * Name is probably invalid since this native only reads data from parsed entity. * * @param entity * @returns */ static N_0x26A867C0B7A456D1(entity: Entity): boolean; /** * @param netHandle * @returns Returns the `entity` handle for the `netHandle` or `0` if the entity doesn't exist. */ static netToVeh(netHandle: int): Vehicle | null; /** * @returns sessionRequestId */ static N_0xAFA14F98327791CE(): [boolean, number]; /** * @returns */ static N_0xDA1BFED8582F61F0(): boolean; /** * Note: this native was added in build 1311.23 * * @param p0 * @returns */ static N_0xBAF7E2979442B29F(p0: boolean): int; /** * @returns */ static isCloudAvailable(): boolean; /** * @param p0 * @param p1 * @param p2 */ static registerPlayerBroadcastVariables(p0: any, p1: any, p2: any): void; /** * _NETWORK_IS_T* - _NETWORK_RE* * * @returns */ static isPreviousUploadPending(): any; /** * _NETWORK_GET_A* - _NETWORK_GET_D* * * @param ped * @returns p1 */ static N_0x6CF82A7F65A5AD5F(ped: Ped): [Player | null, number]; /** * @param p1 * @returns gamerHandle */ static getGamerStatus(p1: int): [int, number]; /** * Returns result of session request: * 0 - NOT_FOUND * 1 - IN_PROGRESS * 2 - TIMEOUT * 3 - PLAYER_OFFLINE * 4 - GANG_MEMBERS_CHANGED * 5 - PLAYER_CANCELLED * 6 - PLAYER_SET_TOO_LARGE * 7 - MATCH_ACCEPTED * 8 - OTHER * * @returns sessionRequestId; p1 */ static sessionGetSessionRequestResult(): [int, number, number]; static N_0xA63E4F050F20021F(): void; /** * @param amount * @returns */ static canRegisterMissionObjects(amount: int): boolean; /** * @param description * @returns */ static ugcReleaseCachedDescription(description: string | number): boolean; /** * @param toggle */ static setFriendlyFireOption(toggle: boolean): void; /** * @returns sessionRequestId */ static sessionTransitionToSession(): [any, number]; /** * Hardcoded to return false. * * @returns */ static isPromotionEnabled(): any; /** * @param playersToTake * @param maxInstancePlayers * @param sessionFlags * @param bucketId * @returns */ static autoSessionSplitSession(playersToTake: int, maxInstancePlayers: int, sessionFlags: int, bucketId: int): any; /** * @param p0 * @returns */ static N_0x923346025512DFB7(p0: any): any; /** * @returns args */ static resurrectLocalPlayer2(): number; /** * Only used in R* Script net_stable_manager * * @param threadId * @returns pedMax; vehicleMax; unkMax; pedMin; vehicleMin; unkMin */ static getReservedMissionEntitiesForThread(threadId: int): [number, number, number, number, number, number]; /** * @param p0 * @returns */ static N_0xD7BAD4062074B9C1(p0: any): boolean; /** * @param hour * @param minute * @param second * @param transitionTime * @param pauseClock */ static clockTimeOverride(hour: int, minute: int, second: int, transitionTime: int, pauseClock: boolean): void; /** * @param netId * @param player * @param toggle */ static setNetworkIdAlwaysExistsForPlayer(netId: int, player: Player, toggle: boolean): void; /** * @param p0 * @returns gamerHandle */ static N_0x16EFB123C4451032(p0: int): [boolean, number]; /** * Return the local Participant ID * * @returns */ static participantId(): Player | null; static N_0x97BCE4C4B3191228(): void; /** * @param volume * @param p1 * @param originalWeight * @param p3 * @param p4 */ static N_0x13F592FC3BF0EA84(volume: Volume, p1: boolean, originalWeight: float, p3: any, p4: any): void; /** * @returns */ static N_0xBF8276E51761F9DA(): int; /** * Note: this native was added in build 1311.23 * * @returns */ static N_0x316FD416C432C761(): boolean; /** * nullsub, doesn't do anything * * @returns */ static N_0xEC089F84A9C16C62(): any; /** * @param netId * @returns */ static getRopeIdFromNetworkId(netId: int): int; /** * @param ugcRequestId * @returns */ static ugcDidRequestSucceed(ugcRequestId: int): any; /** * @returns */ static getNetworkTimeAccurate(): int; /** * @param p0 * @returns */ static getNumCreatedMissionVehicles(p0: boolean): int; static showAccountUpgradeUi(): void; /** * Hardcoded to return false. * * @returns */ static isInSessionLobby(): any; /** * Always returns a null string. * * @returns gamerHandle */ static getGamertagFromHandle(): [string, number]; /** * Returns the network ID of the given object. * * @param object * @returns Returns the network id for the specified `object`, or `0` if the entity isn't networked. */ static objToNet(object: Prop): int; /** * @param p0 * @returns */ static requestJoin(p0: any): int; /** * Note: this native was added in build 1311.23 * * @param p0 * @returns */ static N_0x4835413EA6F9C9CD(p0: boolean): int; /** * Returns ugcRequestId * * @param contentId * @param latestVersion * @param contentTypeName * @returns */ static ugcQueryByContentId(contentId: string, latestVersion: boolean, contentTypeName: string): int; /** * @param p0 */ static N_0x3034C77C79A58880(p0: boolean): void; /** * @param paramName * @returns */ static getLaunchParamValue(paramName: string): string; /** * @param p0 */ static N_0xCF23AB5BD47B384D(p0: any): void; /** * Note: this native was added in build 1311.23 * * @param p0 * @param p1 * @param p2 */ static N_0x3CBD6565D9C3B133(p0: int, p1: int, p2: float): void; /** * @returns */ static hasReceivedHostBroadcastData(): boolean; /** * @param languageId * @returns */ static ugcIsLanguageSupported(languageId: int): boolean; /** * @returns */ static actionPlatformInvite(): any; /** * nullsub, doesn't do anything * * @returns */ static dumpNetIfConfig(): any; /** * @returns */ static sessionIsTransitioning(): any; /** * @param p0 * @param index * @param p2 * @returns */ static ugcQueryGetVersion(p0: any, index: int, p2: int): int; /** * @param p0 * @param p1 */ static N_0x3F0ABAE38A0515AD(p0: int, p1: int): void; /** * Subtracts the second argument from the first, then returns whether the result is negative. * * @param timeA * @param timeB * @returns */ static isTimeLessThan(timeA: int, timeB: int): boolean; /** * Old name: _NETWORK_GET_UNRELIABLE_RESEND_COUNT_FOR_PLAYER * * @param player * @returns */ static getUnreliableResendCount(player: Player): int; /** * Note: this native was added in build 1311.23 * * @param p0 * @returns */ static N_0x106CBDD5077DEDE1(p0: boolean): int; /** * @param featureId * @returns */ static isFeatureSupported(featureId: int): any; /** * On PC this returns true if gamerHandle is a valid handle. * * @returns gamerHandle */ static canAddFriend(): [any, number]; /** * Note: this native was added in build 1311.23 */ static N_0x7673C0D2C5CDAC55(): void; /** * Always returns 110 * * @returns */ static getMaxNumNetworkPeds(): int; /** * Returns textureDownloadId * * @param p1 * @param name * @param p3 * @returns gamerHandle */ static mugshotTextureDownloadRequest(p1: int, name: string, p3: boolean): [int, number]; /** * @returns gamerHandle */ static isFriend(): [boolean, number]; /** * @returns */ static isRecentGamerNamesRequestInProgress(): any; /** * @param scriptHash * @param p1 * @param p2 * @param p3 * @returns */ static isScriptActiveByHash(scriptHash: string | number, p1: int, p2: boolean, p3: int): any; static N_0x564552C6AF1EEAB1(): void; /** * @returns */ static hasPendingInviteFailure(): any; /** * @param entity * @returns */ static requestControlOfEntity(entity: Entity): boolean; /** * @param p0 * @returns */ static N_0xD7D0DF27CB1765B5(p0: int): boolean; /** * @returns */ static canRefreshFriendPage(): any; /** * Old name: _NETWORK_IS_PLAYER_EQUAL_TO_INDEX * * @param player * @param index * @returns */ static arePlayersInSameTutorialSession(player: Player, index: int): boolean; static clearFoundGamers(): void; static preventScriptHostMigration(): void; /** * @param p0 * @param index * @param p2 * @returns */ static N_0x5F0E99071582DECA(p0: any, index: int, p2: int): any; /** * @param p1 * @param p2 * @param p3 * @param p4 * @param p5 * @param p6 * @param p7 * @param p8 * @param p9 * @param p10 * @param p11 * @param p12 * @param p13 * @param p14 * @returns p0 */ static N_0x7E300B5B86AB1D1A(p1: int, p2: int, p3: int, p4: int, p5: int, p6: int, p7: int, p8: int, p9: int, p10: int, p11: int, p12: int, p13: int, p14: int): number; /** * Must be called from a background script, otherwise it will do nothing. * * @returns p0 */ static debugRequestEntityPosition(): number; /** * @returns gamerHandle */ static isGamerInMySession(): [boolean, number]; /** * @param player * @param toggle */ static setPlayerInvisibleLocally(player: Player, toggle: boolean): void; /** * @returns */ static getSessionHost(): Player | null; /** * @param toggle */ static preventMigrationOfEntitiesInFastInstanceForLocalPlayer(toggle: boolean): void; /** * @param player * @returns */ static hashFromPlayerHandle(player: Player): number; /** * Used in Script Function NET_ACE_CLIENT_VERIFY_ENTITY_RESERVATIONS * Coords: Slot world position Old name: _GET_RESERVATIONS_FOR_SLOT_WORLD_POSITION * * @param pos * @param p3 * @returns peds; vehicles; objects; pickups */ static getReservedMissionEntitiesInArea(pos: Vector3, p3: boolean): [number, number, number, number]; /** * @param amount * @returns */ static canRegisterMissionPickups(amount: int): any; /** * @param player * @returns */ static isPlayerInSpectatorMode(player: Player): boolean; /** * _SET_PLAYER_V* - _SET_S* * * @param player * @param disabled */ static setPlayerVisibilityToLocalPlayerDisabled(player: Player, disabled: boolean): void; /** * @param pickup * @returns */ static hasControlOfPickup(pickup: Pickup): boolean; /** * @returns */ static N_0x67CCDF74C4DF7169(): boolean; /** * @param textureDownloadId * @returns */ static textureDownloadGetName(textureDownloadId: int): string; /** * Note: this native was added in build 1311.16 * * @returns */ static getNumPeerNegotiationResponses(): int; static clearClockTimeOverride(): void; static N_0xC8B6D18E22484643(): void; /** * @param p0 * @param p1 */ static N_0xDC6AD5C046F33AB4(p0: boolean, p1: boolean): void; /** * @param entity * @returns */ static hasControlOfEntity(entity: Entity): boolean; /** * @param player * @returns */ static getUniqueIntForPlayer(player: Player): int; /** * @param tunableContext * @param tunableName * @returns */ static accessTunableBool(tunableContext: string | number, tunableName: string | number): boolean; /** * @returns gamerHandle */ static removeFriend(): [any, number]; static N_0x6C7E04E9DE451789(): void; /** * @returns */ static N_0x0B6B4507AC5EA8B8(): boolean; /** * @param netID * @param toggle */ static activateDamageTrackerOnNetworkId(netID: int, toggle: boolean): void; /** * *NETWORK_SPAWN_CONFIG** */ static N_0x6CEE2E30021DAEC6(): void; static N_0x5B9C6AC118FD4774(): void; /** * @param player * @param trackedPlayer * @returns */ static isTrackedPlayerVisible(player: Player, trackedPlayer: Player): any; static activityResetToIdle(): void; /** * @param p0 * @returns */ static hasControlOfPickupPlacement(p0: any): boolean; /** * 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. * * @param entity The entity to un-network */ static unregisterNetworkedEntity(entity: Entity): void; /** * Hardcoded to return false. * * @returns */ static isInPlatformParty(): boolean; /** * Return the local Participant ID. This native is exactly the same as 'PARTICIPANT_ID' native. * * @returns */ static participantIdToInt(): int; /** * @param toggle * @param pos */ static setInStaticSpectatorMode(toggle: boolean, pos: Vector3): void; /** * @param p0 * @returns */ static requestControlOfPickupPlacement(p0: any): boolean; /** * @param entity */ static registerEntityAsNetworked(entity: Entity): void; /** * Session flag 'SF_PRIVATE' is set internally * p1 represents max amount of players in private session * * @param flags * @param numPlayers * @param userHash * @returns sessionRequestId */ static sessionRequestSessionPrivate(flags: int, numPlayers: int, userHash: int): [any, number]; /** * @param textureDownloadId */ static textureDownloadRelease(textureDownloadId: int): void; /** * Only used in R* Script net_rolling_playlist */ static sessionPlaylistGoToNextContent(): void; /** * Note: this native was added in build 1311.23 * * @returns sessionId */ static sessionGetSessionId(): number; /** * @returns */ static autoSessionSplitSessionSuccessful(): any; /** * @param ugcRequestId * @returns */ static ugcHasRequestFinished(ugcRequestId: int): any; /** * @returns sessionRequestId */ static sessionIsRequestInProgress(): [any, number]; /** * Adds the first argument to the second. * * @param timeA * @param timeB * @returns */ static getTimeOffset(timeA: int, timeB: int): int; /** * @param p0 * @returns */ static N_0xC028B3F52C707C49(p0: any): boolean; /** * nullsub, doesn't do anything * * @returns */ static N_0xC964FCD3D1720697(): any; /** * @param p0 * @param p1 * @returns */ static ugcQueryGetPublished(p0: any, p1: any): any; } //# sourceMappingURL=Network.d.ts.map