# PDA

### Examples:

#### Add Contact:

```squirrel
function PDA_Callback()
{
    return false; // Return true if you wanna answer call...
}

PDA.AddContact("ContactName", "ContactPortrait", PDA_Callback);
```

### Static Functions:

#### .EndPhoneCall

`PDA.EndPhoneCall()`

Ends current phone call.

#### .AddContact

`PDA.AddContact(name: string, portrait: string, callback: function)`

<table><thead><tr><th width="149">Name</th><th width="129.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td>string</td><td>Name of the contact</td></tr><tr><td>portrait</td><td>string</td><td>Portrait of the contact</td></tr><tr><td>callback</td><td>function</td><td>Function that get called when player will call this contact</td></tr></tbody></table>

Adds new contact to the PDA's contacts list.

#### .RemoveContact

`PDA.RemoveContact(name: string)`

| Name | Type   | Description         |
| ---- | ------ | ------------------- |
| name | string | Name of the contact |

Removes contact from the PDA's contacts list that has been added by script.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sneakyevil.gitbook.io/sleeping-dogs-de-script-api/game-classes/pda.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
