feat: slagteklare dyr køres til dyrehandleren (pr. stald, lånt traktor + kreaturvogn)

This commit is contained in:
2026-10-19 16:31:34 +02:00
parent 4fe3c586eb
commit 139431e8de
13 changed files with 499 additions and 1 deletions
+1
View File
@@ -112,6 +112,7 @@ local function isBusy(vehicle)
local id = ADRunsController ~= nil and ADRunsController.getVehicleId(vehicle) or nil
if id ~= nil and ADFieldJobs ~= nil and ADFieldJobs.state ~= nil and (ADFieldJobs.state.assignments or {})[id] ~= nil then return true end
if ADRunsController ~= nil and ADRunsController.getActiveRunForVehicle(vehicle) ~= nil then return true end
if ADLivestock ~= nil and ADLivestock.isBusy ~= nil and ADLivestock.isBusy(vehicle) then return true end
if ADPlayerTransport ~= nil and ADPlayerTransport.isPickup ~= nil and ADPlayerTransport.isPickup(vehicle) then return true end
return ADFlowWagons ~= nil and ADFlowWagons.statusOf ~= nil and ADFlowWagons.statusOf(vehicle) ~= nil
end