Made LS Customs accept any car. (#2524)

This commit is contained in:
gir489 2023-12-13 12:25:39 -05:00 committed by GitHub
parent efef962fe8
commit cb5f01567c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,20 +60,15 @@ namespace big
5, 5,
{0x2E, 0x01, 0x00}, {0x2E, 0x01, 0x00},
&g.vehicle.ls_customs}); // disable camera &g.vehicle.ls_customs}); // disable camera
g_script_patcher_service->add_patch( g_script_patcher_service->add_patch({RAGE_JOAAT("carmod_shop"), "carmod_shop1", "2D 02 10 00 00 2C", 5, {0x71, 0x2E, 0x02, 0x01}, nullptr});
{RAGE_JOAAT("carmod_shop"), "carmod_shop1", "2D 02 10 00 00 2C", 5, {0x71, 0x2E, 0x02, 0x01}, &g.vehicle.ls_customs}); g_script_patcher_service->add_patch({RAGE_JOAAT("carmod_shop"), "carmod_shop2", "2D 00 B8 00 00", 5, {0x2E, 0x00, 0x00}, nullptr});
g_script_patcher_service->add_patch( g_script_patcher_service->add_patch({RAGE_JOAAT("carmod_shop"), "allow all vehicles", "2D 03 16 00 00 5D", 5, {0x72, 0x2E, 0x03, 0x01}, nullptr}); // allow all vehicles
{RAGE_JOAAT("carmod_shop"), "carmod_shop2", "2D 00 B8 00 00", 5, {0x2E, 0x00, 0x00}, &g.vehicle.ls_customs});
g_script_patcher_service->add_patch(
{RAGE_JOAAT("carmod_shop"), "buy mods for free in SP", "06 1F 56 ? ? 62 ? ? ? 56", 0, {0x2B, 0x2B, 0x55}, &g.vehicle.ls_customs}); // buy mods for free in SP
g_script_patcher_service->add_patch(
{RAGE_JOAAT("carmod_shop"), "allow all vehicles", "2D 03 16 00 00 5D", 5, {0x72, 0x2E, 0x03, 0x01}, &g.vehicle.ls_customs}); // allow all vehicles
g_script_patcher_service->add_patch({RAGE_JOAAT("carmod_shop"), g_script_patcher_service->add_patch({RAGE_JOAAT("carmod_shop"),
"allow all vehicles 2", "allow all vehicles 2",
"2D 03 07 00 00 71 38 02", "2D 03 07 00 00 71 38 02",
5, 5,
{0x72, 0x2E, 0x03, 0x01}, {0x72, 0x2E, 0x03, 0x01},
&g.vehicle.ls_customs}); // allow all vehicles 2 nullptr}); // allow all vehicles 2
for (auto& entry : *g_pointers->m_gta.m_script_program_table) for (auto& entry : *g_pointers->m_gta.m_script_program_table)
{ {