DK22Pac/plugin-sdk

How to access CPools?

Frouk3 opened this issue · 4 comments

Question: How

But without plugin?

GetVehiclePool() == CPools::ms_pVehiclePool

// 0x42C250
bool CCarCtrl::IsAnyoneParking() {
    for (auto i = 0; i < GetVehiclePool()->GetSize(); i++) {
        if (auto vehicle = GetVehiclePool()->GetAt(i)) {
          ...
        }
    }
    return false;
}

ty