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:
gir489
2023-07-16 12:24:40 -04:00
committed by GitHub
parent ae5cb4d42f
commit 6a30fa348c
36 changed files with 108 additions and 339 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ namespace big::scripts
{
if (auto launcher = gta_util::find_script_thread(hash); launcher && launcher->m_net_component)
{
for (int i = 0; !launcher->m_net_component->is_local_player_host(); i++)
for (int i = 0; !((CGameScriptHandlerNetComponent*)launcher->m_net_component)->is_local_player_host(); i++)
{
if (i > 200)
return false;
@@ -100,7 +100,7 @@ namespace big::scripts
for (auto& [_, plyr] : g_player_service->players())
{
if (launcher->m_net_component->is_player_a_participant(plyr->get_net_game_player()))
if (((CGameScriptHandlerNetComponent*)launcher->m_net_component)->is_player_a_participant(plyr->get_net_game_player()))
{
if (*script_local(launcher->m_stack, 233).at(plyr->id(), 3).at(2).as<int*>() == state)
{