> For the complete documentation index, see [llms.txt](https://docs.deltarix.store/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.deltarix.store/paid-assets/mdt-v2/exports/server/getstateid.md).

# GetStateId

***

```lua
-- @param data table The data to be ckecked. { source = int, framework_identifier= string }
-- @return string: the stateid of the player.
exports.drx_mdt:GetStateId()
```

***

Example using source

```lua
local function getStateIdBySource()
  local stateid = exports.drx_mdt:GetStateId({ source = 1 })
end
```

Example using framework identifier

```lua
local function getStateIdByFrameworkIdentifier()
  local stateid = exports.drx_mdt:GetStateId({ framework_identifier = 'char1:*******' })
end
```
