Events

chevron-rightSTPhone:Client:OnPlayerLoadedhashtag

This event should be triggered when the player is loaded.

The default definition is as follows.

chevron-rightSTPhone:Client:OnPlayerUnloadhashtag

This event should be triggered when the player unloads.

The default definition is as follows.

chevron-rightSTPhone:GameNotifyhashtag

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

The default definition is as follows.

chevron-rightSTPhone:Client:CallEmergencyServiceshashtag

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.

chevron-rightSTPhone:Client:ExternalPayhashtag

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

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

chevron-rightSTPhone:Client:ScanQRhashtag

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.

Last updated