Skip to content

Commit

Permalink
Add a temporary config option to the __resource.lua to allow for infi…
Browse files Browse the repository at this point in the history
…nite persistent cars to be spawned.
  • Loading branch information
TomGrobbe committed Sep 25, 2018
1 parent df824cb commit 708186f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vMenu/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ private static void SendErrorMessage(string details = null)


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

}
Expand Down

0 comments on commit 708186f

Please sign in to comment.