mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2026-10-11 09:48:03 +08:00
Refactored Allow All Weapons In Vehicle to force all vehicles to use … (#1730)
* Refactored Allow All Weapons In Vehicle to force all vehicles to use all GROUPs. * Refactored project to not depend on src/gta files that already exist in the GTA-V-Classes project. * feat(cmake): bump GTAV-Classes
This commit is contained in:
1 parent
ae5cb4d42f
commit
6a30fa348c
36 files changed
+108
-339
No files matched your search
@@ -383,7 +383,7 @@ namespace big
|
||||
{
|
||||
if (auto script = gta_util::find_script_thread(RAGE_JOAAT("freemode")))
|
||||
{
|
||||
if (script->m_net_component && script->m_net_component->m_host && script->m_net_component->m_host->m_net_game_player != player)
|
||||
if (script->m_net_component && ((CGameScriptHandlerNetComponent*)script->m_net_component)->m_host && ((CGameScriptHandlerNetComponent*)script->m_net_component)->m_host->m_net_game_player != player)
|
||||
{
|
||||
g.reactions.trigger_business_raid.process(plyr);
|
||||
}
|
||||
@@ -396,7 +396,7 @@ namespace big
|
||||
// TODO: Breaks stuff
|
||||
if (auto script = gta_util::find_script_thread(RAGE_JOAAT("freemode")))
|
||||
{
|
||||
if (script->m_net_component && script->m_net_component->m_host && script->m_net_component->m_host->m_net_game_player != player)
|
||||
if (script->m_net_component && ((CGameScriptHandlerNetComponent*)script->m_net_component)->m_host && ((CGameScriptHandlerNetComponent*)script->m_net_component)->m_host->m_net_game_player != player)
|
||||
{
|
||||
g.reactions.start_script.process(plyr);
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user