> For the complete documentation index, see [llms.txt](https://wosa.gitbook.io/working-with-wosa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wosa.gitbook.io/working-with-wosa/functions/server/user.md).

# User

Server functions that are in some way related to the user aspects.

```lua
local license = Wosa.User.License(
    user --[[ int ]]
)

--[[

Parameters:
-> user: The PlayerID of the user.

Description:
Gets the r* license used by our framework mainly. Note, we do NOT use the steam
identifiers.

]]
```

```lua
local currentTable = Wosa.User.CurrentDB(
    user, --[[ int ]]
    type --[[ string ]]
)

--[[

Parameters:
-> user: The PlayerID of the user.
-> type: The database type you want returned, 'c' or 'i'.

Description:
Gets either the inventory or character table currently used by the user.

Example:
local character_table = Wosa.User.CurrentDB(user, 'c')
local inventory_table = Wosa.User.CurrentDB(user, 'i')

]]
```

```lua
local user = Wosa.User.UserFromLicense(
    license --[[ string ]]
)

--[[

Parameters:
-> license: The r* license of the user.

Description:
Used to return the user ID (server player ID) from a license string, Can be useful
to use if you do not have access to the playerID for example.

]]
```
