# 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>
