Misc

config.misc.lua
Config["Misc"] = {
    MaxPropDistance = 10.0, -- Max raycast distance to place a prop
    ObjectZOffset = 0, -- Don't touch it :)
    PlaceDistance = 20.0, -- Distance between desks placed
    OnDeskPlace = function() -- This function will be called when the player places a desk needs to return false or true
        if Config["Main"]['PlaceOnlyInAppartmentsAndHouses'] then
            local InsideAppart = IsInsideAppartment()
            local InsideHousing = IsInsideHousing()
            if InsideAppart or InsideHousing then
                return true
            end
        else
            -- Your code here
            return true
        end
    end,
    OnServerPlace = function() -- This function will be called when the player places a server needs to return false or true
        if Config["Main"]['PlaceOnlyInAppartmentsAndHouses'] then
            local InsideAppart = IsInsideAppartment()
            local InsideHousing = IsInsideHousing()
            if InsideAppart or InsideHousing then
                return true
            end
            return false
        else
            -- Your code here
            return true
        end
    end,
}