mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-23 17:12:35 +08:00
Fix an issue where spawn max could crash the game for some vehicles (#341)
This commit is contained in:
@ -104,11 +104,6 @@ namespace big
|
||||
|
||||
const Vehicle veh = vehicle::spawn(item.hash, spawn_location, spawn_heading);
|
||||
|
||||
if (g->spawn.spawn_inside)
|
||||
{
|
||||
vehicle::telport_into_veh(veh);
|
||||
}
|
||||
|
||||
if (g->spawn.spawn_maxed)
|
||||
{
|
||||
vehicle::max_vehicle(veh);
|
||||
@ -116,6 +111,11 @@ namespace big
|
||||
|
||||
vehicle::set_plate(veh, plate);
|
||||
|
||||
if (g->spawn.spawn_inside)
|
||||
{
|
||||
vehicle::teleport_into_vehicle(veh);
|
||||
}
|
||||
|
||||
g_vehicle_preview_service->stop_preview();
|
||||
});
|
||||
ImGui::PopID();
|
||||
|
Reference in New Issue
Block a user