> For the complete documentation index, see [llms.txt](https://cylexdev.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cylexdev.gitbook.io/docs/cylex-phone/exports-and-events/server-console-commands/phone-number.md).

# Phone Number

#### `setUserData`

Updates a specific user data field for a player.

**Syntax**

```bash
setUserData <citizenid> <key> <value>
```

**Parameters**

| Parameter   | Description                             |
| ----------- | --------------------------------------- |
| `citizenid` | Unique citizen identifier of the player |
| `key`       | User data field to update               |
| `value`     | New value to assign                     |

**Example**

```bash
setUserData citizenid phoneNumber 123
```

**Description:**\
Changes the phone number of the specified user to `123`.

> ⚠️ Changes are applied immediately. Always verify the `citizenid` before executing this command.
