Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- discord: @gladeildivino
- this cause freeze to other player, easy patch it. (changes the clouds)
- 0xED88FC61 void LOAD_CLOUD_HAT(char* name, float transitionTime)
- Example: LOAD_CLOUD_HAT("CONTRAILS", 0.0f);
- void ChangeIP()
- {
- // Base pointer to PSN / Network Info structure
- // 0x1CF7304 likely holds a pointer to the full network info block (psn_ptr)
- unsigned char *networkDataPtr = (unsigned char *)(*(uint32_t *)0x1CF7304 );
- // Generate a fake local IP (bytes 0–3 in the structure)
- unsigned char localIP[4];
- localIP[0] = (rand() % 256);
- localIP[1] = (rand() % 256);
- localIP[2] = (rand() % 256);
- localIP[3] = (rand() % 256);
- // Generate a fake public IP (bytes 4–7 in the structure)
- unsigned char publicIP[4];
- publicIP[0] = (rand() % 256);
- publicIP[1] = (rand() % 256);
- publicIP[2] = (rand() % 256);
- publicIP[3] = (rand() % 256);
- // Write spoofed IPs into memory
- networkDataPtr[0] = localIP[0];
- networkDataPtr[1] = localIP[1];
- networkDataPtr[2] = localIP[2];
- networkDataPtr[3] = localIP[3];
- networkDataPtr[4] = publicIP[0];
- networkDataPtr[5] = publicIP[1];
- networkDataPtr[6] = publicIP[2];
- networkDataPtr[7] = publicIP[3];
- // Output spoofed IPs to console
- printf("Local IP spoofed to: %d.%d.%d.%d\n", localIP[0], localIP[1], localIP[2], localIP[3]);
- printf("Public IP spoofed to: %d.%d.%d.%d\n", publicIP[0], publicIP[1], publicIP[2], publicIP[3]);
- }
- The address 0x1CF7304 holds a large structure related to your network identity.
- It includes:
- Your local IP address
- Your public IP address
- Your PSN name
- Possibly more sensitive or spoofable networking data.
- You’ll likely face issues in story mode if you spoof the IP there — crashes or disconnects are possible.
- Best tips:
- Go online (pvt session) first, then spoof your IP.
- After spoofing, switch sessions.
- You may be looking for the real pointer to the actual IP struct.
- Based on analysis:
- uint32_t networkInfoPtr = *(uint32_t*)(0x1CF7304 + 0x54); // Could be the IP struct
- However, a more reliable guess might be:
- uint32_t networkInfoPtr = *(uint32_t*)(0x1CF7304 + 0x88);
- Once found, the layout will likely follow this structure:
- +0x00 → Local IP (4 bytes)
- +0x04 → Public IP (4 bytes)
- Additional fields (NAT type, PSN ID, etc.)
- 01CF72BC CNetworkPlayerMgr_ptr
- Manages the migration of a player's physical index (e.g., changing slots or internal network positions). This may affect the host or resource management.
- void MigratePhysicalIndex(int player) // this cause kick on player. Called "Disconnect Kick"
- {
- if (player != PLAYER::PLAYER_ID())
- {
- uint32_t network_player_mgr = *(uint32_t*)0x1CF72BC;
- if (network_player_mgr != NULL)
- {
- int player_ped = PLAYER::GET_PLAYER_PED(player);
- if (ENTITY::DOES_ENTITY_EXIST(player_ped))
- {
- uint32_t net_game_player = GetNetGamePlayer(player, 1);
- if (net_game_player != NULL)
- {
- call<void>(0x1340964)(network_player_mgr, net_game_player); // CNetworkPlayerMgr_MigratePhysicalIndex
- }
- }
- }
- }
- }
- // my method used for block entities, can you use in 0x133D6EC (CNetworkObjectMgr::HandleCloneSync)
- if (BlockAllEntities) // psss: you can block every single entities (so, select from menu what entity you want block) by using multiple array and your brain
- {
- switch (syncPool) // r6
- {
- case NET_OBJ_TYPE_AUTOMOBILE:
- case NET_OBJ_TYPE_BIKE:
- case NET_OBJ_TYPE_BOAT:
- case NET_OBJ_TYPE_DOOR:
- case NET_OBJ_TYPE_HELI:
- case NET_OBJ_TYPE_OBJECT:
- case NET_OBJ_TYPE_PED:
- case NET_OBJ_TYPE_PICKUP:
- case NET_OBJ_TYPE_PICKUP_PLACEMENT:
- case NET_OBJ_TYPE_PLANE:
- case NET_OBJ_TYPE_SUBMARINE:
- case NET_OBJ_TYPE_TRAILER:
- case NET_OBJ_TYPE_TRAIN:
- /*printf("Blocked entity sync from player: %s (Type: %d, ID: %X, Flag: %X)\n", playerName, _object_type, _object_id, _object_flag);
- return ACKCODE_FAIL; // Block sync note: everyone saw the trailers on 1.27 lol
- }
- }
- // I don't remember what I used this hook for (0x12F9760)
- void hook::CNetworkWorldStateDataUpdate(uint32_t r3, uint32_t r4, uint32_t r5, uint32_t r6, uint32_t r7)
- {
- printf("[HOOK] CNetworkWorldStateDataUpdate called:\n");
- printf(" r3: 0x%08X | r4: 0x%08X | r5: 0x%08X | r6: 0x%08X | r7: 0x%08X\n", r3, r4, r5, r6, r7);
- if (*(uint32_t*)(r3 + 0x4) == 0)
- {
- printf("[WARNING] r3 is null or unreadable — skipping execution.\n");
- return;
- }
- uint32_t dataCheck = *(uint32_t*)(r3 + 0x4);
- if (dataCheck == 0 || dataCheck < 0)
- {
- printf("[DETECTED] Potential freeze trigger — invalid value at [r3 + 0x4]: 0x%08X\n", dataCheck);
- return;
- }
- // Log info extra, not tested
- uint32_t nodeType = *(uint32_t*)r3;
- printf(" Node type (r3 + 0x0): 0x%08X | Data (r3 + 0x4): 0x%08X\n", nodeType, dataCheck);
- // TODO: Insert the original call logic
- }
- void SendGameInvite(char* PSN) {
- char buffer[70] = {};
- WriteBytes((int)0x1004004C, buffer, 0x100);
- WriteString(0x1004004C + 8, PSN);
- call<void>(0x139DE90)(0x40022280, 0x1004004C, 1, 0, 0, 0, 0x1CF72C4);
- }
- #define scrThread_array_ptr 0x1E70580
- void ForceHostOfCurrentScript(int m_lPlayerId)
- {
- uint32_t m_List = *(uint32_t*)(scrThread_array_ptr);
- if (m_List)
- {
- for (uint16_t i = 0; i < *(uint16_t*)(scrThread_array_ptr + 0x4); i++)
- {
- uint32_t m_lScrThread = *(uint32_t*)(m_List + (i << 2));
- if (m_lScrThread)
- {
- if (!strcmp((char*)(m_lScrThread + 0x68), "freemode"))
- {
- if (*(uint32_t*)(m_lScrThread + 0xC) == 1)
- {
- uint32_t m_GameScriptHandlerNetComponent = *(uint32_t*)(m_lScrThread + 0xAC);
- uint32_t m_NetGamePlayer = CNetGamePlayerfn(m_lPlayerId, 1);
- if (caseType == 1)
- {
- call<char>(0x483F50)(m_GameScriptHandlerNetComponent, m_NetGamePlayer, 0xFFFFFFFF, 1);
- }
- }
- }
- }
- }
- }
- }
- uint32_t hook::HandleIncomingEvent(uint32_t r3, uint32_t r4, uint32_t r5, uint32_t syncType, uint32_t r7, uint32_t r8, uint32_t r9, uint32_t r10)
- {
- // add more checks
- char* pName = (char*)(*(uint32_t*)(r4 + 0x78) + 0x10);
- if (syncType <= 0) // invalid sync
- {
- printf("[BLOCKED] %s attempted to send invalid SyncType: 0x%X (possible crash attempt)\n", pName, syncType);
- return 0; // check original return value of hook, then compare when sync is invalid
- }
- // Log optional
- // printf("[HOOK] Event from %s, SyncType: 0x%X\n", pName, syncType);
- // Call
- return call<uint32_t>(0xA033F4)(r3, r4, r5, syncType, r7, r8, r9, r10);
- }
- // do you think can send invalid "info" to players? I'll not release function address. Find self
- bool hook::WriteToBitBuffer(void* thisPtr, void* bitBuffer, uint32_t flags)
- {
- uint8_t* buf = (uint8_t*)bitBuffer;
- uint32_t modelHash = *(uint32_t*)(buf + 0x20);
- if (modelHash == Any Valid Model Hash)
- {
- *(uint32_t*)(buf + 0x20) = Model Hash you want Spoof;
- }
- // spoof handling ?
- uint32_t handling = *(uint32_t*)(buf + 0x474);
- if (handling == Any valid handling)
- {
- *(uint32_t*)(buf + 0x474) = Any valid handling you want set;
- }
- // return Write To Bit Buffer Original
- }
Add Comment
Please, Sign In to add comment