Redesigned Persist Car to check if the player is already in the car they want to spawn, and just forward self::veh as if it was the vehicle spawned. (#2418)
This commit is contained in:
@ -28,7 +28,7 @@ namespace big
|
||||
{
|
||||
g_notification_service->push_warning("PERSIST_CAR"_T.data(), "PERSIST_CAR_TO_MANY_SPAWNED"_T.data());
|
||||
}
|
||||
else if (g.persist_car.spawn_inside)
|
||||
else if (g.persist_car.spawn_inside && self::veh != vehicle)
|
||||
{
|
||||
teleport::into_vehicle(vehicle);
|
||||
}
|
||||
|
Reference in New Issue
Block a user