Page cover

πŸ–₯️Configurations, Exports & Events

Phone has exports, events, you can find all these from this list

Basics

You can learn in this guide for how to use phone, and phone how it works.

Phone usage mainly preffered as consume/usage, this means when you use phone like other items(water, sandwich etc.) it will appear to your screen!

Phone is using metadata, this means when someone stole your phone all data is gone and they can use everything in your phone.

This option can be configured by disabling! You can check this link for how to disable metadata.

Phone have a battery & internet, this means if you want to download an app or use probably requires an internet and can battery runout when over usage!

This option can be configured by disabling! You can check this link for how to disable battery and this link for how to disable internet.

Configuration

Webhook (Images)

You need to webhooks for take an photo in this section you'll learn how to add webhooks. First locate configs/config_server.lua and scroll to end find Config.Server.Webhook and modify.

configs/config_server.lua
Config.Server.Webhook = "your webhook link"
How to create an webhook

Custom Billing

If you're using custom billing script, locate configs/config_server.lua and find Config.Server.Paybilling after that you can modify the whole code,

After that locate server/others.lua and find ls-phone:s:getAllBilling modify the whole code,

If you're using client side paid function, locate client/others.lua and find PayInvoice modify the whole code,

Custom Garage

If you're using custom garage script, locate server/others.lua and find these code snippet and edit whole code,

Disabling Metadata

For changing metadata, configs/config_server.lua

Battery

Only way to charge your phone is powerbank. If you dont have "powerbank" item in your database, create one.

When holding phone, using battery will charge phone.

For changing battery, configs/config.js

Internet

There is 2 way to use internet, mobile data or wi-fi. Some apps requires internet for use. For disabling Internet, configs/config.js

Server Side Exports & Events

Phone

GivePhoneToPlayer - Default code for give phones to player. It can be used everywhere

ReCharge - Recharges the phone battery.

AirPods - Enables earphones to phone.

SendOfflineMail - Sends mail to player

Phone Metadata layout

Last updated