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/render_ped.cpp

17 lines
362 B
C++
Raw Normal View History

#include "hooking/hooking.hpp"
#include "pointers.hpp"
namespace big
{
void* hooks::render_ped(__int64 renderer, CPed* ped, __int64 a3, __int64 a4)
{
if (*(int*)(((__int64)(*g_pointers->m_gta.m_draw_handler_mgr) + 0x14730)) >= 499)
{
return nullptr;
}
else
{
return g_hooking->get_original<hooks::render_ped>()(renderer, ped, a3, a4);
}
}
}