ESX

You will receive the script in keymaster.fivem.net profile, after this click in blue "download" button.

After download, put the script in your server files.

Remeber:

You need to be logged with the same cfx.re account you used to buy in my tebex store.

  1. Install all dependencies, and follow their respective installation instructions.

Dependencies Part

Download all the scripts by clicking on their respective names, put them in the server files and ensure in server.cfg

Webhooks

JPR Phone System uses webhooks for photo system, video system and audios files. All you need to do is replace the default webhooks, via config.lua Our log system works for regular players as well as more detailed logs for staff.

For more info how to create a discord webhook follow this tutorial: https://www.youtube.com/watch?v=fKksxz2Gdnc&t=7s&ab_channel=NoIntroTutorials

Unique Phones

In the config.lua file, we have the Config.UniquePhones option.

The Phone System only supports this system on ESX if the server uses ox_inventory, otherwise you need to disable this option and use the normal system (global phones, i.e. each player with their own phone).

Integration with the home system

Due to the huge variety of home systems for ESX, if you want to make your system compatible with the phone system, please open a ticket on our discord, we will help you.

Add this inside server_config file of Phone System:

ESX.RegisterServerCallback('jpr-phonesystem:server:GetPlayerHouses', function(source, cb, serie)
    local src = source
    local Player = ESX.GetPlayerFromId(src)
    local MyHouses = {}
    local CitizenId = MySQL.Sync.fetchAll('SELECT * FROM jpr_phonesystem_base WHERE idtelemovel = ?', {serie})
    
    if (CitizenId[1]) then
        -- for housing system adaptation, please open a discord ticket and talk with us
        local pHouses = exports["esx_property"]:GetPlayerProperties(CitizenId[1].citizenid)
        
        if pHouses then
            for k, v in pairs(pHouses) do
                if (pHouses[k]) then
                    pHouses[k].house = pHouses[k].Name
                    pHouses[k].citizenid = pHouses[k].Owner
                    pHouses[k].HouseData = {
                        coords = {
                            enter = {
                                x = pHouses[k].Entrance.x,
                                y = pHouses[k].Entrance.y,
                            }
                        },
                        adress = pHouses[k].Name,
                    }
                    pHouses[k].tier = pHouses[k].Interior
                    pHouses[k].label = pHouses[k].Name
                end
            end
            cb(pHouses)
        else
            cb(nil)
        end
    else
        cb(nil)
    end
end)

MDT ⚠️

MDT app has all its code open, the filtering part is in openFunctions.js and the part that takes information from SQL is in client_config and server_config. Any change to your SQL can affect the way MDT works, so if you have the programming skills to adapt it to your server or it's already working (most of them) use it, otherwise disable it in the config.

Permissions to JPR Phone System

JPR Phone System needs permissions to record your voice, so you can send audio messages and record videos with audio by the phone.

If you receive a message like this, click F8, "Allow".

This message appears only once.

SQL

Execute JPR - Phone System.sql file in your SQL

This is mandatory!

Inventory

Dont need to do any changes, just be sure you have all phones items and powerbank item created on SQL items Table.

The default ESX inventory does not require any modification

Follow this little video to know how to use Fivemanage for media uploads ( avoid discord future problems ) with our Phone System:

(If you dont want this and keep "risking", we provide old system at same, just turn on UseOtherUploadSystem to true, UseFivemerrSystem to false and UseFiveManageSystem to false)

Using Fivemerr

Follow this little video to know how to use Fivemerr for media uploads ( avoid discord future problems ) with our Phone System:

(If you dont want this and keep "risking", we provide old system at same, just turn on UseOtherUploadSystem to true, UseFivemerrSystem to false and UseFiveManageSystem to false)

You can choice what system you want to use, Fivemanage or Fivemerr, they both work great, Fivemerr is know to have more space with free plans, so choice one of them and follow the video tutorial.

Last updated