> For the complete documentation index, see [llms.txt](https://stachemsc.gitbook.io/stache-phone/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stachemsc.gitbook.io/stache-phone/making-adjustments/exports-and-events/client/events.md).

# Events

<details>

<summary>STPhone:Client:OnPlayerLoaded</summary>

This event should be triggered when the player is loaded.

The default definition is as follows.

<img src="https://i.imgur.com/vq5HDPm.png" alt="" data-size="original">

</details>

<details>

<summary>STPhone:Client:OnPlayerUnload</summary>

This event should be triggered when the player unloads.

The default definition is as follows.

<img src="https://i.imgur.com/4C4ONdB.png" alt="" data-size="original">

</details>

<details>

<summary>STPhone:GameNotify</summary>

This Evenet is triggered when Notification is sent. Place your notification event in it.

The default definition is as follows.

<img src="https://i.imgur.com/eOzWU8A.png" alt="" data-size="original">

</details>

<details>

<summary>STPhone:Client:CallEmergencyServices</summary>

This is triggered when an emergency call is sent via the Evenet 911 system. Detailed parameters are as follows.

* ResponseType (police | ambulance)
* Street (hash)
* StreetName (string)
* Location (vector3)

There is no default definition, you need to set it yourself.

</details>

<details>

<summary>STPhone:Client:ExternalPay</summary>

This event is triggered to inform lua when a payment is made with QR. Detailed parameters are as follows.

* PayFor (string) - Target Account
* Price (int) - Price
* Content (string) - Pay Description
* Success (boolean) - Payment Success&#x20;

There is no default definition, you need to set it yourself.

</details>

<details>

<summary>STPhone:Client:ScanQR</summary>

This event sends information to lua when a QR is scanned. Detailed parameters are as follows.

* Parameters (table) - URL Parameters
* URL (string) - Scanned URL

There is no default definition, you need to set it yourself.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://stachemsc.gitbook.io/stache-phone/making-adjustments/exports-and-events/client/events.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.
