Skip to content

Commit 708186f

Browse files
committed
Add a temporary config option to the __resource.lua to allow for infinite persistent cars to be spawned.
1 parent df824cb commit 708186f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vMenu/Configuration.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ private static void SendErrorMessage(string details = null)
8585

8686

8787
#region vehicle related settings
88-
public static bool keepSpawnedVehiclesPersistent = false;
88+
// temporary solution (editable in resource.lua file)
89+
public static bool keepSpawnedVehiclesPersistent = (GetResourceMetadata(GetCurrentResourceName(), "keep_spawned_vehicles_persistent", 0) ?? "false") == "true";
8990
#endregion
9091

9192
}

0 commit comments

Comments
 (0)