mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2026-10-10 11:53:07 +08:00
refactor(PlayerDB): Improve code (#1313)
This PR includes some improvements to the player DB service: - Added `Get Gamer Online State` function pointer - Added sorting of players alphabetically and grouping of players by their online state - The player DB service will now update 32 players at a time for their online state - Player entries will automatically save when changing any data from them - Update the player online states every 5min
This commit is contained in:
@@ -589,6 +589,15 @@ namespace big
|
||||
g_pointers->m_gta.m_send_chat_message = ptr.sub(21).as<functions::send_chat_message>();
|
||||
}
|
||||
},
|
||||
// Get Gamer Online State
|
||||
{
|
||||
"GGOS",
|
||||
"48 8B 44 24 70 44 8B CD 4D 8B C6 41 8B D7 48 8B CF 48 89 47 40",
|
||||
[](memory::handle ptr)
|
||||
{
|
||||
g_pointers->m_gta.m_get_gamer_online_state = ptr.sub(0x40).as<functions::get_gamer_online_state>();
|
||||
}
|
||||
},
|
||||
// Start Get Session By Gamer Handle
|
||||
{
|
||||
"SGSBGH",
|
||||
|
||||
Reference in New Issue
Block a user