Page cover

4・Advanced Configuration

Some of our files are unencrypted.

This category is for people who know what they do and want to know what's the possibility of our script.

:arrowright:About notification system:

  • Go to [Pata_Airflight]\Pata_Airflight\config and open the notification.lua file. Replace line 6 to 32 by your notification system.

:arrowright:About Target system:

  • Go to [Pata_Airflight]\Pata_Airflight\config and open the target.lua file. Replace line 5 to 19 by your target system and keep "ox_target" set in the config.lua file.

:arrowright:About unencrypted folder:

Client folder:

  • In [Pata_Airflight]\Pata_Airflight\config\unencrypted\client\spawn.lua, at line 1 to 17 you can add your Fuel event when the plane spawn or any vehicle key system Client side.

  • At line 18 to 34, if you need to do anything with the Pilot, you can do it there. (Ped spawn, set invincible...)

  • At line 35 to 51, it's related to the ped selling tickets where you can take plane. (Ped spawn, set invincible...)

Server folder:

  • In [Pata_Airflight]\Pata_Airflight\config\unencrypted\server\spawn.lua, at line 1 to 15 you can add your Fuel event when the plane spawn or any vehicle key system Server side.

  • At line 16 to 28, if you need to do anything with the Pilot, you can do it there. (Ped spawn, set invincible...)

ESX, QB and STANDALONE folder:

This is where you can find the payement function if needed.

:arrowright:About VehicleData folder

This is where you define all the vehicles (Helicopter and Airplane) that you want to use with our script. Just follow the same patern as the others ones. You can translate the description Plane/helicopter here too.

Plane screenshot:

:arrowright:About AirportData folder

This is where you can add your new airports/heliports, define differents voicelines and translate the descriptions that are displayed in our UI. This is where you can add / delete any airport, or disable if you take a plane/helicopter or not, if you can land here or not...

Please read carefully, all are explained in each files.

To add a Airport and a Heliport:

  • Create a file named YourAirportNameHere.lua and copy/paste what you can found in CAYO.lua for exemple.

  • Go to our next step, it's explain how to add point on our UI map.

  • Adapt to your coords

  • Follow all the step inside the file, all are explained. (scroll on the right ------>)

:arrowright:About VoicelineCONFIG.lua

We made some voiceline to add more immersion at the departure and at the arrival. (+ when you have an issue at landing) French and English are available but you can add your records too.

  • Go to [Pata_Airflight]\Pata_Airflight\html\sound and create a new folder for your language (without spaces). Per exemple, if you are Spanish, then create a folder named ES

  • Add your records inside this folder. (.mp3)

  • After that, you need to declare them inside VoicelineCONFIG.lua, in [Pata_Airflight]\Pata_Airflight\config\AirportData

  • You can adjust the volume of the voicelines.

By the way, you can desactivate them if you don't want any voicelines. That's all ! Restart your server before your connexion.

Last updated