Config File

All info about config file

City contacts, calls and messages

The JPR Phone System contains a city contacts feature. These contacts cannot be deleted unless you delete them from the config.lua file.

Within the config.lua file you can place new contacts, each contact has its own fields like first name, last name and job name.

By selecting the desired contact, you can see all available workers, make a call or send a text, audio, image, video or even gps message.

Battery system

The JPR Phone System has a battery system as long as you want to enable it in config.lua

This battery system includes:

  • Device charging (Multiple devices can be charged at once);

  • Discharging the device;

  • Power saving mode;

  • Battery damage ( Possibility to change the battery health percentage for the device start to show damage such as turning off by itself ).

All these features can be adjusted in config.lua, be it charging time, power saving bonus, battery damage, etc.

How to charge my phone?

To recharge your battery you can use a item called powerbank or using a charging zone, it will allow you to use it and progressively ( you can modify it ) increasing the battery of your phone until it reaches 100%

Phone signal

JPR Phone System has a functional network system that works in zones and can be completely adjusted in config.lua

Without a phone signal, you can't access mobile data, which means you can't do any kind of interaction with calls, receive calls, send messages via iMessage, and basic interactions that need internet.

Phone notifications

The JPR Phone System contains a wide variety of notifications, all original notifications are processed by itself, nothing needs to be done, but if you want to send a custom notification, you can do so by following the example below.

TriggerEvent("jpr-phonesystem:client:customnotification", {
    app = "Custom",
    title = "Custom Notification"
    img = "imagem.png",
    text = "Im a custom notification",
})

First time opening phone

All phones are unique (metadata), that means. when you buy a new phone it will come as new.

New phones will have this screen to create and adjust the device to your preferences.

All translations can be done in HTML File.

Phone mails

TriggerServerEvent('jpr-phonesystem:server:sendEmail', {
    Assunto = "Phone System", -- Subject
    Conteudo = "Hello, nice phone sir!" -- Content
    Enviado = "jpresources.client.fivem@gmail.com", -- Submitted by
    Destinatario = "jpresourcesfivem@gmail.com", -- Target
})

Offline or not, the player will receive the email.

Open phone / metadata

The JPR Phone System offers unique phones. It allows you to steal phones, without any changes to the inventory system being required ( tested in qs-inventory, qb-inventory, jpr-inventory).

To open your phone just use the item in your inventory either via hotbar or simply by using.

Any change made to a cell phone, such as a bank transfer, the bank account affected will be that of the original purchaser of the phone, not the person making the transaction, as it is a unique phone with the account of the first owner.

Wifi system

The JPR Phone System has an advanced wif system, which allows you to block certain applications when you are in a zone without wifi.

These zones can be adjusted in config.lua (zone, radius and wifi name).

Uber Eats config

The JPR Phone System has an advanced ubereats system, moreover it allows the buyer to change to his tastes by changing the deliveryman's bike, the ped, the spawn zone and finally all the information regarding the items sold in the application, all by config.lua.

Spotify config

The JPR Phone System has an advanced spotify system, plus it allows the buyer to change it to their liking by changing songs, artists, name, image, description, all through config.lua.

You can also add youtube links.

App Store config

JPR Phone System has an interactive App Store system, allowing you to download and uninstall apps, move apps around the available slots, assign slots intelligently, assign the initial apps, and all of this can be modified in config.lua.

Do not change name field of any APP.

Garage config

JPR Phone System has an easy and intuitive system to work with your vehicles, this system is also compatible with valet and many more interactions. By config.lua it is given the possibility to change valet preferences.

Sounds config

The JPR Phone System has its own sound system, enabling the player to activate the no sound ( vibration ) mode, change the ringtone, notification and alarm sounds. The buyer can add or remove sounds from the list that will be available to the player, as well as set the original sounds, all through config.lua.

You can also add youtube links.

Backgrounds and memojis config

JPR Phone System has its own system of backgrounds and contact avatar creation ( with memojis and custom colors ), all of which can be adjusted in config.lua for endless possibilities.

NPC config

The JPR Phone System offers an NPC that fixes the battery health to 100% as well as being able to unlock the phones by resetting their PIN. Possibility to change in config.lua.

Storage System config

Misc configs

Last updated