# Configuring Your V3

In 

Welcome to customization heaven. (#2)


Your configuration module, found under each V3 door DWProx -> Settings, is structured as follows:

--[[        ____ _       ______                 
 		   / __ \ |     / / __ \_________  _  __
 		  / / / / | /| / / /_/ / ___/ __ \| |/_/
		 / /_/ /| |/ |/ / ____/ /  / /_/ />  <  
		/_____/ |__/|__/_/   /_/   \____/_/|_|  
		Made By DuckyProductions And Whitehill ET
		
		V3.5
]]

local Settings = {

	-- / General Settings / --	
	["OpenTime"] = 5,

	["Accepted"] = function (beans: number): ()
		print("The card that has beans inside got the id of: " .. beans)
	end,
	["Return"] = function (): ()
		return false
	end,
	["Denied"] = function (): ()
		return false
	end,

	-- / Whitelist Settings / --
	["AuthorisedPeople"] = {
		112672616, -- AlexG_1337
		199830788, -- Coco_Beagle
		780522, -- jakisall
		123570775, -- crazydoge2016
		88605917, -- DanielF
	    9109291923, -- roaxcean
	}, 
	["AuthorisedGroups"] = {
		["5203509"] = {255}, -- DuckyProductions
		["5150453"] = {255, 254, 253}, -- Whitehill
	},

	-- / Webhook Settings / --
	["LogCorrectScans"] = false,
	["LogIncorrectScans"] = false,
	["LogButtonPresses"] = false,

	["GameLogo"] = "",
	["DoorName"] = "",

	-- / Global API Settings / --
	["GAPI-Lock"] = true,
	["GAPI-Fire"] = true,
	["GAPI-Open"] = true,
	["GAPI-Hold"] = true,

	-- / Expanse Integration / --
	["ExpanseEnabled"] = false,
	["ExpanseLocation"] = script.ExpanseIntegration.Value,
	["ExpanseInterfaceID"] = 1,
}

return Settings

# General Settings

# OpenTime

For how long the door should stay open after accepting a card.


Example:

["OpenTime"] = 5

# Accepted

A custom function to run after accepting a card. Passing either the Card ID (number) as the first argument.


Example:

["Accepted"] = function (beans): ()
    print("The card that has beans inside got the id of: " .. beans)
end

# Return

A custom function to run after OpenTime has passed.


Example:

["Return"] = function (): ()
    return false
end

# Denied

A custom function to run after denying a card.


Example:

["Denied"] = function (): ()
    return false
end

# Whitelist Settings

# AuthorisedPeople

A table of Roblox User IDs that are whitelisted to use the readers/exit buttons when whitelist is enabled.


Example:

["AuthorisedPeople"] = {
	112672616, -- AlexG_1337
	199830788, -- Coco_Beagle
	780522, -- jakisall
	123570775, -- crazydoge2016
	88605917, -- DanielF
	9109291923, -- roaxcean
} 

# AuthorisedGroups

A dictionary of Roblox Community IDs holding Rank IDs that are whitelisted to use the readers/exit buttons when whitelist is enabled.


Example:

["AuthorisedGroups"] = {
	["5203509"] = {255}, -- DuckyProductions
	["5150453"] = {255, 254, 253}, -- Whitehill
}

# Webhook Settings

# LogCorrectScans

Should V3 log correct scans.


Example:

["LogCorrectScans"] = false

# LogIncorrectScans

Should V3 log incorrect scans.


Example:

["LogIncorrectScans"] = false

# LogButtonPresses

Should V3 log button presses.


Example:

["LogButtonPresses"] = false

Image URL, not a Roblox Image ID, for the webhook to use.


Example:

["GameLogo"] = "https://example.com/some/path/to/image.png"

# DoorName

Door name for the webhook to use.


Example:

["DoorName"] = "Main Entrace Door"

# Global API Settings

# GAPI-Lock

Should the doors listen to Global API Lock requests?


Example:

["GAPI-Lock"] = false

# GAPI-Fire

Should the doors listen to Global API Fire requests?


Example:

["GAPI-Fire"] = false

# GAPI-Open

Should the doors listen to Global API Open requests?


Example:

["GAPI-Open"] = false

# GAPI-Hold

Should the doors listen to Global API Hold requests?


Example:

["GAPI-Hold"] = false

# Expanse Integration Settings

# ExpanseEnabled

Should Expanse be used?


Example:

["ExpanseEnabled"] = false

# ExpanseLocation

Location of the Ae Expanse Folder.


Example:

["ExpanseLocation"] = script.ExpanseIntegration.Value

# ExpanseInterfaceID

The Expanse Interface ID to listen to.


Example:

["ExpanseInterfaceID"] = 1