TmpMenu/src/hooks/protections/receive_pickup.cpp
2024-05-03 17:29:24 +02:00

16 lines
374 B
C++

#include "hooking/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"_T.data());
return false;
}
return g_hooking->get_original<hooks::receive_pickup>()(object, unk, ped);
}
}