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/util/globals.hpp

29 lines
653 B
C++
Raw Normal View History

#pragma once
#include "pointers.hpp"
#include "script_global.hpp"
namespace big::globals
{
namespace size
{
constexpr int globalplayer_bd = 453;
constexpr int gpbd_fm_3 = 599;
constexpr int gpbd_fm_1 = 888;
}
static inline script_global gpbd_fm_3(1892703);
static inline script_global gsbd_fm_events(1920255);
2022-05-24 15:59:54 -04:00
inline void clear_wanted_player(Player target)
{
constexpr size_t arg_count = 3;
int64_t args[arg_count] = {
static_cast<int64_t>(eRemoteEvent::ClearWantedLevel),
self::id,
2022-07-27 14:39:22 +02:00
*script_global(1892703).at(target, 599).at(510).as<int*>()
2022-05-24 15:59:54 -04:00
};
g_pointers->m_trigger_script_event(1, args, arg_count, 1 << target);
}
}