> For the complete documentation index, see [llms.txt](https://patamods.gitbook.io/patamods-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://patamods.gitbook.io/patamods-documentation/scripts/airplane-script/6-about-bugs-airplane-flying-in-circle-airplane-ped-didnt-spawn-etc.md).

# 6・❗ About BUGS ❗ Airplane flying in circle, Airplane/ped didn't spawn etc

<figure><img src="/files/Ym864pUJ2s064inKyiyM" alt=""><figcaption></figcaption></figure>

## ⭐ About Airplane/helicopter flying in circle:

![:PataArrow:](https://cdn.discordapp.com/emojis/1072214922295001222.gif?size=44\&quality=lossless)We found that some maps are using <mark style="color:red;">**heightmap.dat.**</mark> \
This file is used to define the altitude of the GTA V map. *(Mapping with water can use this file)*\
**So it mess with our Airplane script, since NPC&#x20;*****(AI)*****&#x20;cannot fly properly&#x20;*****(Fly in circle)*****&#x20;BUT only if the file isn't made correctly.**

* This bug will happen in **all AI scripts** *(script who use planes).* \
  **Same for all default AI from GTAV. (like Police's helicopter)**

<img src="https://cdn.discordapp.com/emojis/1048588819651375235.gif?size=44&#x26;quality=lossless" alt=":1careful:" data-size="line">**You need to know that this issue is not from our side. We are trying our best to fix that, but we aren't magicians, and cannot correct all the worries of others.**<img src="https://cdn.discordapp.com/emojis/1048588819651375235.gif?size=44&#x26;quality=lossless" alt=":1careful:" data-size="line">

![:PataArrow:](https://cdn.discordapp.com/emojis/1072214922295001222.gif?size=44\&quality=lossless)You can ask to the mapper to fix this problem by making a proper <mark style="color:red;">**heightmap.dat**</mark>**&#x20;file**, with the right altitude for the exact location of their mapping , and not a file with `00/ff` everywhere.

* We found this bug on **NTeam - LS river, but they only forget to declare the heightmap.dat inside their `fxmanifest.lua`**\
  &#x20;You can add it and it will correct the issu&#x65;**.**<br>
* This bug is on **Liberty City** map too.\
  Unfortunatly, we cannot do anything against that. You should contact the creator of the map to ask him. He need to make a proper **heightmap.dat.**\
  **Do not forget that this script isn't made for Liberty City map btw, since it's agaisnt new CFX's TOS.**<br>
* **This bug&#x20;**<mark style="color:red;">**WAS**</mark>**&#x20;on the Unicorn mapping from Fiv3Devs.** \
  They corrected this problem so please, download their update on your keymaster account and replace the old mapping folder.<br>

**You will probably find this bug on other maps.** \
On many mapping where i find this issue, i only replace by the default **heightmap.dat from GTAV,** and it was fixed for our script, and the water was working fine.\
\
We aren't mapper so you should contact the mapper to fix this problem, it's pretty important.

## ⭐The pilot is spawning, but without a plane / The ped aren't spawning at all

* The problem is your **anti-cheat** or **any script who can blacklist a vehicle / a ped**.\
  Do not forget to **unblacklist** or **whitelist** the plane / the ped inside your script.\
  \
  You can find all the name of the plane/ped that we used in `[Pata_Airflight]\Pata_Airflight\config\AirportData`

## ⭐**Failed to verify protected resource**&#x20;

* It's probably a corrupted download. \
  Please, donwload the file again on your keymaster account and be sure you use WINSCP instead of filezila to transfer your file to your server. *(Filezila mess with the esscrow system)*&#x20;

## ⭐**You lack the required entitlement to use \<resource>** &#x20;

* Make sure you are the owner of the CFX patreon key and have the file on your Keymaster account. *(Obviously, you need to download the file from your keymaster account)* \
  Don't forget to restart your server.&#x20;

## ⭐**Error parsing script / Failed to load script**&#x20;

* Your server artifacts are outdated. Update your server to version 5181 or above. \
  More information here: <https://forum.cfx.re/t/introducing-asset-escrow-for-your-resources/4777151>&#x20;

<figure><img src="/files/fA05RDoTC4I3di2wvEBv" alt=""><figcaption></figcaption></figure>
