# Identify Player

> Get player source id by phone number, phone imei or identifier(citizen id).

### GetPlayerSourceIdByPhoneNumber

```lua
---@return string The source id of the player by phone number. Phone must be set as primary phone in the databse(e.g. last used phone)
exports.yseries:GetPlayerSourceIdByPhoneNumber(phoneNumber)
```

### GetPlayerSourceIdByPhoneImei

```lua
---@return string The source id of the player by phone imei. Phone must be set as primary phone in the databse(e.g. last used phone)
exports.yseries:GetPlayerSourceIdByPhoneImei(phoneImei)
```

### GetPlayerSourceIdByIdentifier

```lua
---@return string The source id of the player by identifier(citizen id). Phone must be set as primary phone in the databse(e.g. last used phone)
exports.yseries:GetPlayerSourceIdByIdentifier(phoneNumber)
```

> Get phone number by player source id, phone imei or identifier(citizen id).

### GetPhoneNumberByIdentifier

<pre class="language-lua"><code class="lang-lua"><strong>---@param identifier string The identifier of the player(citizenid, identifier)
</strong><strong>---@return string The phone number of the player
</strong>exports.yseries:GetPhoneNumberByIdentifier(phoneNumber)
</code></pre>

### GetPhoneNumberByImei

<pre class="language-lua"><code class="lang-lua"><strong>---@param identifier string The imei of the phone
</strong><strong>---@return string The phone number of the player
</strong>exports.yseries:GetPhoneNumberByImei(phoneNumber)
</code></pre>

### GetPhoneNumberBySourceId

<pre class="language-lua"><code class="lang-lua"><strong>---@param number string The player id
</strong><strong>---@return number The phone number of the player
</strong>exports.yseries:GetPhoneNumberBySourceId(source)
</code></pre>

> Get phone imei by player source id, phone number or identifier(citizen id).

### GetPhoneImeiByPhoneNumber

<pre class="language-lua"><code class="lang-lua"><strong>---@param phoneNumber string The phone number of the target phone
</strong><strong>---@return string The imei of the phone
</strong>exports.yseries:GetPhoneImeiByPhoneNumber(phoneNumber)
</code></pre>

### GetPhoneImeiByIdentifier

<pre class="language-lua"><code class="lang-lua"><strong>---@param identifier string The identifier of the target player's phone
</strong><strong>---@return string The imei of the phone
</strong>exports.yseries:GetPhoneImeiByIdentifier(phoneNumber)
</code></pre>

### GetPhoneImeiBySourceId

<pre class="language-lua"><code class="lang-lua"><strong>---@param source number The player id
</strong><strong>---@return string The imei of the phone
</strong>exports.yseries:GetPhoneImeiBySourceId(source)
</code></pre>
