mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-16 22:37:22 +08:00
crash protection
This commit is contained in:
parent
4aeadef81d
commit
98cbad3a86
@ -1539,6 +1539,11 @@ namespace big
|
||||
case sync_node_id("CPedGameStateDataNode"):
|
||||
{
|
||||
const auto game_state_node = (CPedGameStateDataNode*)(node);
|
||||
if (game_state_node->m_weapon_hash == "WEAPON_STRICKLER"_J)
|
||||
{
|
||||
notify::crash_blocked(sender, "invalid weapon");
|
||||
return true;
|
||||
}
|
||||
if (game_state_node->m_on_mount)
|
||||
{
|
||||
notify::crash_blocked(sender, "mount flag");
|
||||
|
Loading…
x
Reference in New Issue
Block a user