If you store the resource status in dp.resource[].tags object you will be able to access it like this:
dp.resources = [
{ name: "Resource 1", id: 1, tags : {disabled: true } }
];
// ...
dp.onTimeRangeSelecting = function(args) {
var row = dp.rows.find(args.resource);
var disabled = row.tags && row.tags.disabled;
if (disabled) {
args.allowed = false;
}
};