Files
Project-Reboot-3.0/Project Reboot 3.0/FortInventoryInterface.cpp
2023-03-12 16:00:26 -04:00

14 lines
616 B
C++

#include "FortInventoryInterface.h"
#include "reboot.h"
char UFortInventoryInterface::RemoveInventoryItemHook(__int64 a1, FGuid a2, int Count, char bForceRemoveFromQuickBars, char bForceRemoval)
{
static auto FortPlayerControllerSuperSize = (*(UClass**)(__int64(FindObject<UClass>("/Script/FortniteGame.FortPlayerController")) + Offsets::SuperStruct))->GetPropertiesSize();
auto Controller = *(UObject**)(__int64(a1) - (FortPlayerControllerSuperSize + 8));
LOG_INFO(LogDev, "FortPlayerControllerSuperSize: {}", FortPlayerControllerSuperSize);
LOG_INFO(LogDev, "Controller: {}", Controller->GetFullName());
}