HUD
Functions

VC_get Settings

Returns a table of all current VCMod settings.

Used in: VCMod Main, VCMod ELS addons.

Shared VC_getSettings()

Returns

1. Table A table of all possible VCMod settings.

Example

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)
Page modified:
...2018-11-02 09:24:39