mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-10 11:09:45 +08:00
feat(CarmodShop): Hooked SET_VEHICLE_LIGHTS
This commit is contained in:
parent
884c0147ba
commit
64f6cb759f
@ -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)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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"), 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"), 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);
|
this->add_native_detour(RAGE_JOAAT("freemode"), 0x95914459A87EBA28, freemode::NETWORK_BAIL);
|
||||||
|
|
||||||
for (auto native_detours_for_script : m_native_registrations)
|
for (auto native_detours_for_script : m_native_registrations)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user