feat(CarmodShop): Hooked SET_VEHICLE_LIGHTS

This commit is contained in:
Yimura 2022-01-26 15:19:56 +01:00
parent 884c0147ba
commit 64f6cb759f
2 changed files with 12 additions and 0 deletions

View File

@ -33,5 +33,16 @@ namespace big
);
}
}
inline void SET_VEHICLE_LIGHTS(rage::scrNativeCallContext* src)
{
if (!g.vehicle.ls_customs)
{
VEHICLE::SET_VEHICLE_LIGHTS(
src->get_arg<Vehicle>(0),
src->get_arg<int>(1)
);
}
}
}
}

View File

@ -24,6 +24,7 @@ namespace big
{
this->add_native_detour(RAGE_JOAAT("carmod_shop"), 0x06843DA7060A026B, carmod_shop::SET_ENTITY_COORDS);
this->add_native_detour(RAGE_JOAAT("carmod_shop"), 0x8E2530AA8ADA980E, carmod_shop::SET_ENTITY_HEADING);
this->add_native_detour(RAGE_JOAAT("carmod_shop"), 0x34E710FF01247C5A, carmod_shop::SET_VEHICLE_LIGHTS);
this->add_native_detour(RAGE_JOAAT("freemode"), 0x95914459A87EBA28, freemode::NETWORK_BAIL);
for (auto native_detours_for_script : m_native_registrations)