diff --git a/client/hospital.lua b/client/hospital.lua index 2e76345..876d837 100644 --- a/client/hospital.lua +++ b/client/hospital.lua @@ -131,23 +131,26 @@ if config.useTarget then CreateThread(function() for hospitalName, hospital in pairs(sharedConfig.locations.hospitals) do if hospital.checkIn then - exports.ox_target:addBoxZone({ - name = hospitalName..'_checkin', - coords = hospital.checkIn, - size = vec3(2, 1, 2), - rotation = 18, - debug = config.debugPoly, - options = { - { - onSelect = function() - checkIn(hospitalName) - end, - icon = 'fas fa-clipboard', - label = locale('text.check'), - distance = 3.0, + if type(hospital.checkIn) ~= 'table' then hospital.checkIn = { hospital.checkIn } end + for i = 1, #hospital.checkIn do + exports.ox_target:addBoxZone({ + name = hospitalName..'_checkin', + coords = hospital.checkIn[i], + size = vec3(2, 1, 2), + rotation = 18, + debug = config.debugPoly, + options = { + { + onSelect = function() + checkIn(hospitalName) + end, + icon = 'fas fa-clipboard', + label = locale('text.check'), + distance = 3.0, + } } - } - }) + }) + end end for i = 1, #hospital.beds do diff --git a/config/shared.lua b/config/shared.lua index 80a0ce3..2de1b5f 100644 --- a/config/shared.lua +++ b/config/shared.lua @@ -55,7 +55,7 @@ return { ---@field coords vector4 ---@field model number - ---@type table + ---@type table hospitals = { pillbox = { coords = vec3(350, -580, 43),