This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/src/hooks/protections/receive_pickup.cpp

15 lines
393 B
C++

#include "hooking.hpp"
namespace big
{
bool hooks::receive_pickup(rage::netObject* object, void* unk, CPed* ped)
{
if (g.protections.receive_pickup)
{
g_notification_service->push_error("PROTECTIONS"_T.data(), "Blocked pickup");
return false;
}
return g_hooking->get_original<hooks::receive_pickup>()(object, unk, ped);
}
}