GetOfficer


Get a officers data

-- @param data table The data to be checked. { source = int, stateid = string }
-- @return table: { stateid, fullname, alias, callsign, badgeumber, status, image, department, rank, lastSeen, activity, activity_data, suspended, suspended_date, roles }
exports.drx_mdt:GetOfficer()

Example using source

local function getOfficerBySource(source)
  local officer = exports.drx_mdt:GetOfficer({ source = source })
end

Example using stateid

local function getOfficerByStateid(source)
  local stateid = exports.drx_mdt:GetStateId({ source = source })
  local officer = exports.drx_mdt:GetOfficer({ stateid = stateid })
end

Last updated

Was this helpful?