> For the complete documentation index, see [llms.txt](https://joaos-organization-3.gitbook.io/jpresources-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://joaos-organization-3.gitbook.io/jpresources-documentation/installation/phone-system/common-problems.md).

# Common Problems

## Photos are not saving to gallery

* ***If your error is similar to this one:***

<figure><img src="https://3317815405-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAcw6nAW8IGe15skCfMoj%2Fuploads%2FXB8CLQZPXzGBWKTXkxc0%2FScreenshot_29.png?alt=media&amp;token=358bd213-e27e-46b1-9cb7-115a3ee11b98" alt=""><figcaption></figcaption></figure>

Return to [Installation Page](/jpresources-documentation/installation/phone-system/installation-page.md), choose your framework and scroll down till [QBCore](/jpresources-documentation/installation/phone-system/installation-page/qbcore.md#using-fivemanage) or [QBCore](/jpresources-documentation/installation/phone-system/installation-page/qbcore.md#using-fivemerr) part.

* ***If your error is similar to this one:***

<figure><img src="https://3317815405-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAcw6nAW8IGe15skCfMoj%2Fuploads%2FhPLk3Ol090GbM3XIhf5Q%2Fimage.png?alt=media&amp;token=9cbc5ff0-8386-4ae7-a7ab-e322df8b6b22" alt=""><figcaption></figcaption></figure>

Please, delete screenshot-basic, webpack and yarn and install this ones instead: <https://drive.google.com/drive/folders/1-rzI52Om5pQku8fPEHqo-XPE7fVQFhEi?usp=drive_link>&#x20;

Start all on server.cfg, screenshot-basic must be the last one of the three resources and then, phone system.

{% hint style="danger" %}
Do exatcly what we describe here, not just skip phases, do not just drop files in and start server, thats not the solution!
{% endhint %}

## Sounds / Musics are not working

Please, be sure you have xsound resource, using this link you can download it directly: [https://drive.google.com/drive/folders/1-rzI52Om5pQku8fPEHqo-XPE7fVQFhEi?usp=drive\_link](https://drive.google.com/file/d/1JcbWDai8h-YD5-eHct-lfvhSlajrgXLt/view?usp=drive_link)[ ](https://drive.google.com/file/d/1JcbWDai8h-YD5-eHct-lfvhSlajrgXLt/view?usp=sharing)

## Several errors with some names like this ones: deletePhone or GerirMetodosInput

Just need to start Phone System as last resource.

## Valet dont work

To solve this issue (**bad argument #1 to 'for iterator'**) you just need to open **main\_config.lua** file and set to **false** the **Config.DoCarDamageValet**.

<figure><img src="https://3317815405-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAcw6nAW8IGe15skCfMoj%2Fuploads%2FPhOv700V1JDVAv9tZpnE%2Fimage.png?alt=media&amp;token=d8e0b2e9-cee6-4b53-beca-8fbd83c7fff2" alt=""><figcaption></figcaption></figure>

## Error code 2 ( Can be check on F8 console when opening open )

People with this problem are on ESX with OX Inv, to fix this, just ensure your did all modifications needed to your OX Inv resource and dont have any other phone entries excluing ours.

{% hint style="danger" %}
On VRPex, if this error appears, you need to open server\_config.lua, find **GetVehiclePlates** function, locat&#x65;**:**

```lua
return getUserIdentity(param).registration

```

Change **.registration** to your **plate** field on **users** sql table, example:

If my plate sql collumn on users table is registro, then shoud look like this:

```lua
return getUserIdentity(param).registro
```

{% endhint %}

## Cant accept calls

Player cant have invalid phone formats like: 55-555-555, just can have numeric chars like: 55512312

{% hint style="info" %}
Also, if persists, update your PMA Voice ( if you use PMA ): <https://drive.google.com/file/d/1VDjOTtPpHnC59YLJesyryjIgOjZmAsf2/view?usp=drive_link>
{% endhint %}

## Phone Red Errors

<figure><img src="https://3317815405-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAcw6nAW8IGe15skCfMoj%2Fuploads%2FfVQ7nqTSMkq7zPKxHW5D%2FScreenshot_5.png?alt=media&amp;token=86564921-b2ed-49a9-b957-2078c1fa5acb" alt=""><figcaption></figcaption></figure>

This error just happens on **VRPex**, is simply to solve it, you need to open **server\_config.lua** file, scroll down till **GetFirstName** and **GetLastName** functions and edit the return to your sql collumns.

{% hint style="warning" %}
**Default**:

```lua
if Config.UsingCreative then
    function GetFirstName(SQLRow)
        return SQLRow.name
    end
    
    function GetLastName(SQLRow)
        return SQLRow.name2
    end
else
    function GetFirstName(SQLRow)
        return SQLRow.name
    end
    
    function GetLastName(SQLRow)
        return SQLRow.firstname
    end
end

```

**Example**:

After checking my **users sql** table, i reach to conclusion my **collumn** of **firstname** is **nome** and **lastname** is **apelido**, that means my code should be like this:

```lua
if Config.UsingCreative then
    function GetFirstName(SQLRow)
        return SQLRow.nome 
    end
    
    function GetLastName(SQLRow)
        return SQLRow.apelido
    end
else
    function GetFirstName(SQLRow)
        return SQLRow.nome 
    end
    
    function GetLastName(SQLRow)
        return SQLRow.apelido
    end
end
```

{% endhint %}

## Problem with camera blackout

<figure><img src="https://3317815405-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAcw6nAW8IGe15skCfMoj%2Fuploads%2FGh4j83Knx0T7MLcReXKb%2Fimage.png?alt=media&amp;token=9fe63f22-1a9f-46ab-ba72-cf6310134a37" alt="k" width="351"><figcaption></figcaption></figure>

Your problem is one of this one listed above:

* Currupted phone files (download fresh ones and replace all files);
* Wrongly setup tokens (use default ones to check if solves);
* Graphics mode problem (rare).

{% hint style="danger" %}
This is not a problem caused by phone, its very rare to happen, and happens majority by third-party.

This "issue" let you take photos at same, so dont be confused with the [#photos-are-not-saving-to-gallery](#photos-are-not-saving-to-gallery "mention")
{% endhint %}
