Advertisement
Guest User

GTA V - NETWORK_CLAN_GET_MEMBERSHIP test code 2

a guest
Jan 22nd, 2022
518
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. std::uint64_t membershipDesc_result[unknown] = {}; // struct size needs more research
  2.  
  3. void loop()
  4. {
  5.     int membershipIndex = -1; // 0 to 9, or -1 for their active membership
  6.     std::uint64_t netHandle[13] = {};
  7.    
  8.    
  9.     NETWORK_HANDLE_FROM_PLAYER(selectedPlayer, &netHandle[0], 13); // probably use a nethandle of a player that isn't in current session
  10.     if (!NETWORK_CLAN_ANY_DOWNLOAD_MEMBERSHIP_PENDING())  
  11.     {  
  12.         if (NETWORK_CLAN_REMOTE_MEMBERSHIPS_ARE_IN_CACHE(&netHandle[0]))  
  13.         {  
  14.             if (NETWORK_CLAN_GET_MEMBERSHIP_COUNT(&netHandle[0]) > 0)  
  15.             {  
  16.                 if (NETWORK_CLAN_GET_MEMBERSHIP_VALID(&netHandle[0], membershipIndex))  
  17.                 {  
  18.                     NETWORK_CLAN_GET_MEMBERSHIP(&netHandle[0], &membershipDesc_result[0], membershipIndex);
  19.                 }  
  20.             }  
  21.         }
  22.         else  
  23.         {
  24.             NETWORK_CLAN_DOWNLOAD_MEMBERSHIP(&netHandle[0]);  
  25.         }      
  26.     }
  27. }  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement