UpdateCitizenData


-- @param data.stateid: { source = int, stateid = string }
-- @param data.column: string (image, notes, gallery, points)
-- @param data.value: string | number | boolean
exports.drx_mdt:UpdateCitizenPoints()

Example using source

local function updatePlayerImageBySource(source)
  local image = 'https://www.mypokecard.com/en/Gallery/my/galery/hHpqnYm7DRri.jpg'

  exports.drx_mdt:UpdateCitizenData({
    column = 'image',
    source = source,
    value = image
  })
end

Example using stateid

local function updatePlayerImageByStateid()
  local stateid = exports.drx_mdt:GetStateId({ source = 1 })
  local image = 'https://i.kym-cdn.com/entries/icons/original/000/001/313/DERP.jpg'

  exports.drx_mdt:UpdateCitizenData({
    column = 'image',
    stateid = stateid,
    value = image
  })
end

Last updated