diff --git a/metadata.json b/metadata.json index 9efb70cb..73dc0dee 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "game": { - "online": "1.66", - "build": "2845" + "online": "1.67", + "build": "2944" } } \ No newline at end of file diff --git a/scripts/gtav-classes.cmake b/scripts/gtav-classes.cmake index ade16681..702ea39d 100644 --- a/scripts/gtav-classes.cmake +++ b/scripts/gtav-classes.cmake @@ -3,7 +3,7 @@ include(FetchContent) FetchContent_Declare( gtav_classes GIT_REPOSITORY https://github.com/Yimura/GTAV-Classes.git - GIT_TAG 9de17746d2e7492725d2e7430ad0f27c05b6c2f0 + GIT_TAG 7b8bfba701d70e6a503c0767a5bc3b6c4c0294b8 GIT_PROGRESS TRUE CONFIGURE_COMMAND "" BUILD_COMMAND "" diff --git a/src/backend/commands/player/kick/breakup_kick.cpp b/src/backend/commands/player/kick/breakup_kick.cpp index e666a197..261b9111 100644 --- a/src/backend/commands/player/kick/breakup_kick.cpp +++ b/src/backend/commands/player/kick/breakup_kick.cpp @@ -21,9 +21,9 @@ namespace big virtual void execute(player_ptr player, const std::vector& _args, const std::shared_ptr ctx) { rage::snMsgRemoveGamersFromSessionCmd cmd{}; - cmd.m_session_id = gta_util::get_network()->m_game_session_ptr->m_rline_session.m_session_id; - cmd.m_num_peers = 1; - cmd.m_peer_ids[0] = player->get_session_peer()->m_peer_data.m_peer_id_2; + cmd.m_session_id = gta_util::get_network()->m_game_session_ptr->m_rline_session.m_session_id; + cmd.m_num_peers = 1; + cmd.m_handles[0] = player->get_net_data()->m_gamer_handle; if (g.session.show_cheating_message) cmd.m_unk = 19; @@ -39,7 +39,7 @@ namespace big if (plyr->id() != player->id()) g_pointers->m_gta.m_send_remove_gamer_cmd(gta_util::get_network()->m_game_session_ptr->m_net_connection_mgr, g_pointers->m_gta.m_get_connection_peer(gta_util::get_network()->m_game_session_ptr->m_net_connection_mgr, - (int)plyr->get_session_player()->m_player_data.m_peer_id_2), + plyr->get_session_player()->m_player_data.m_peer_id_2), gta_util::get_network()->m_game_session_ptr->m_connection_identifier, &cmd, 0x1000000); @@ -55,7 +55,7 @@ namespace big { g_pointers->m_gta.m_send_remove_gamer_cmd(gta_util::get_network()->m_game_session_ptr->m_net_connection_mgr, g_pointers->m_gta.m_get_connection_peer(gta_util::get_network()->m_game_session_ptr->m_net_connection_mgr, - (int)plyr->get_session_player()->m_player_data.m_peer_id_2), + plyr->get_session_player()->m_player_data.m_peer_id_2), gta_util::get_network()->m_game_session_ptr->m_connection_identifier, &cmd, 0x1000000); diff --git a/src/backend/commands/player/toxic/ceo_kick.cpp b/src/backend/commands/player/toxic/ceo_kick.cpp index 33de55f2..cc563021 100644 --- a/src/backend/commands/player/toxic/ceo_kick.cpp +++ b/src/backend/commands/player/toxic/ceo_kick.cpp @@ -3,6 +3,8 @@ #include "natives.hpp" #include "pointers.hpp" +#include