> 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/events/client-events/phone.md).

# Phone

Client events that are in some way related to the phone aspects.

### On 911 call

This event is **triggered** when a user calls 911 through their phone in the main menu. This is the events that are being used in the emergency jobs for example.

{% tabs %}
{% tab title="CallerPlayerID" %}
The server id of the user who called.
{% endtab %}

{% tab title="coords" %}
The coords of the caller. Table are in **.x**, **.y**, **.z** form.
{% endtab %}

{% tab title="callInfo" %}
The description of the call.
{% endtab %}

{% tab title="serviceCalled" %}
The service required when calling 911. Can be either **"fire\_ems"** or **"police"** as a index.
{% endtab %}

{% tab title="callID" %}
The call id of the call, Basically gets the new size of the table.
{% endtab %}
{% endtabs %}

```lua
AddEventHandler('__WOSA:911_CALL', function(CallerPlayerID, coords, callInfo, serviceCalled, callID)

end)
```

###

### On service call

This event is **triggered** when a user calls a general service through their phone in the main menu.

{% tabs %}
{% tab title="CallerPlayerID" %}
The server id of the user who called.
{% endtab %}

{% tab title="coords" %}
The coords of the caller. Table are in **.x**, **.y**, **.z** form.
{% endtab %}

{% tab title="callInfo" %}
The description of the call.
{% endtab %}

{% tab title="serviceCalled" %}
The service required when calling 911. Can be either **"fire\_ems"** or **"police"** as a index.
{% endtab %}

{% tab title="callID" %}
The call id of the call, Basically gets the new size of the table.
{% endtab %}
{% endtabs %}

```lua
AddEventHandler('__WOSA:SERVICE_CALL', function(CallerPlayerID, coords, callInfo, serviceCalled, callID)

end)
```
