Shared VC_setSettings(Table tbl)
1. Table tbl; Table
A table of all possible VCMod settings.
hook.Add("VC_postInit", "VC_postInit", function() // Lets disable VCMod if the map is gm_construct local should_allow = game.GetMap() != "gm_construct" // Get VCMod settings local tbl_settings = VC_getSettings() // Set the Enabled setting to no tbl_settings.Enabled = should_allow // Apply the settings VC_setSettings(tbl_settings) // Fancy message if !should_allow then print("VCMod: map found to be gm_construct, turning off VCMod.") end end)