Page cover

πŸ’ΎInstallation

Installation and download processes are straightforward and fixed. After following the specified steps, you can easily complete the installation.

Before Starting

Installation and download processes are straightforward and fixed. After following the specified steps, you can easily complete the installation. Skipping a small step can lead to significant errors in the future!

Installation

If you dont have knowledge, you can use this video for installation process

Installation video

Extract ls-phone from the downloaded folder and install it on your server.

After installing it on your server, import the SQL database named "phone.sql" into your server's database.

Requirements

First, make sure that the specified resources have been downloaded and installed on your server;

Image Capture

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.

How to create an webhook

Key Configuring

Phone mainly works as item instead key, but you can use keys too! You can change keybinding from Settings > Key Bindings > FiveM > Phone Shortcut this only affects you, if you want change for everyone, ls-phone/client/otherc.lua and find RegisterKeyMapping after that change M key whatever you want!

Executing Non-Included SQL

Some features not included with phone.sql, because they released with updates. You can check these step if you want to use these features.

Verified profiles can be used in some apps, if you want to add verified profiles to your phone execute this SQL,

Impementing Inventories

Some inventories doesn't uses metadata, and if you're using non metadata inventory execute this sql,

Process time depends your inventory script, most and common inventories added to this step.

qb-inventory

Expand these section if you're using this inventory

Before starting, locate your qb-inventory/server/main.lua after that find line 153, if your line 153 not the AddItem search function AddItem locate infoType["weapon"] and replace whole line with this code snippet,

The final result needs to be looks like,

lj-inventory

Expand these section if you're using this inventory

Before starting, locate your lj-inventory/server/main.lua after that find line 139, if your line 139 not the AddItem search function AddItem locate infoType["weapon"] and replace whole line with this code snippet,

The final result needs to be looks like, (Photo taken from qb-inventory because same process)

ox_inventory

Expand these section if you're using this inventory

Before starting, locate your ox_inventory/modules/items/server.lua after that find line 279, if your line 279 not the Items.Metadata search function Items.Metadata locate elseif item.name == 'garbage' then and replace whole line with this code snippet,

The final result needs to be looks like,

ls-inventoryhud

Expand these section if you're using this inventory

Before starting, locate your ls-inventory/resources/server/classes.lua after that find line 20, if your line 20 not the CreateItemData search function CreateItemData locate elseif createdItem._name == "scope" then and replace whole line with this code snippet,

The final result needs to be looks like,

More Inventories Added In Future

Configuration

Phone Configuration is important, if you dont configure probably will get an error.

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.

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

Last updated