DeleteOfficer


Delete officer from database

-- @param officer: { source = int, stateid = string }
-- @return boolean: Whether the officer was fired or not.
exports.drx_mdt:DeleteOfficer()

Example using source

local function deleteOfficerBySource(source)
  local result = exports.drx_mdt:DeleteOfficer({ source = source })
end

Example using stateid

local function deleteOfficerByStateid(source)
  local stateid = exports.drx_mdt:GetStateId({ source = source })
  local result = exports.drx_mdt:DeleteOfficer({ source = source })
end

Last updated