mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-09 18:58:58 +08:00
feat(Police): Fixed wanted level change.
This commit is contained in:
parent
12bd47576a
commit
265e905d3f
@ -2,15 +2,15 @@
|
|||||||
|
|
||||||
namespace big
|
namespace big
|
||||||
{
|
{
|
||||||
static int iLastWantedLevel = 0;
|
|
||||||
|
|
||||||
void looped::self_police()
|
void looped::self_police()
|
||||||
{
|
{
|
||||||
if (g_local_player == nullptr || g_local_player->m_player_info == nullptr) return;
|
if (g_local_player == nullptr || g_local_player->m_player_info == nullptr) return;
|
||||||
|
|
||||||
|
const auto playerInfo = g_local_player->m_player_info;
|
||||||
|
|
||||||
if (g.self.never_wanted)
|
if (g.self.never_wanted)
|
||||||
g_local_player->m_player_info->m_wanted_level = 0;
|
playerInfo->m_wanted_level = 0;
|
||||||
else if (g.self.wanted_level != iLastWantedLevel)
|
else if (playerInfo->m_wanted_level != g.self.wanted_level)
|
||||||
g_local_player->m_player_info->m_wanted_level = g.self.wanted_level;
|
playerInfo->m_wanted_level = g.self.wanted_level;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user