To check if your local player is authorized on a Tool Cupboard (TC) or detect enemy player IDs authorized on nearby bases:
- Locate
BuildingPrivlidgeentity in entity list. - Read
authorizedPlayerslist (List<PlayerNameID>at offset0x2A8). - Iterate the authorized SteamID64 array.
int authCount = Read<int>(authList + 0x18);
uintptr_t itemsArray = Read<uintptr_t>(authList + 0x10);
for (int i = 0; i < authCount; i++) {
uint64_t steamId = Read<uint64_t>(itemsArray + 0x20 + (i * 0x18));
std::string playerName = ReadUnicodeString(Read<uintptr_t>(itemsArray + 0x28 + (i * 0x18)));
printf("[TC AUTH]: %s (%llu)\n", playerName.c_str(), steamId);
}