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/native_hooks/all_scripts.hpp

27 lines
723 B
C++
Raw Normal View History

#pragma once
#include "native_hooks.hpp"
#include "natives.hpp"
2022-11-21 15:42:12 +00:00
#include "core/scr_globals.hpp"
namespace big
{
namespace all_scripts
{
void IS_DLC_PRESENT(rage::scrNativeCallContext* src)
{
const auto hash = src->get_arg<rage::joaat_t>(0);
bool return_value = DLC::IS_DLC_PRESENT(hash);
if (hash == 0x96F02EE6)
return_value = return_value || g->settings.dev_dlc;
src->set_return_value(return_value);
}
2022-11-21 15:42:12 +00:00
void NETWORK_HAS_RECEIVED_HOST_BROADCAST_DATA(rage::scrNativeCallContext* src)
{
*scr_globals::gsbd.as<int*>() = 4;
src->set_return_value<BOOL>(TRUE);
}
}
}