feat(CarmodShop): Hooked SET_VEHICLE_LIGHTS
This commit is contained in:
parent
8247370a72
commit
92965594f0
@ -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"), 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)
|
||||
|
Reference in New Issue
Block a user