This category is for people who know what they do and want to know what's the possibility of our script.
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.
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.
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.
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:
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 ------>)
Airport["Cayo"] = { -- Code name of the airport----------------------------------------------------------------------------------------------- ---- MENU DATA ---- ----------------------------------------------------------------------------------------------- Key ="Cayo", -- Must be the same as the line 1 DisplayName ="Cayo Perico Airfield", -- This is the name who are displayed MapMarkerCoords = {top ="14.00%", left ="73.89%"}, -- This is the Menu Coords that you can obtain by putting DevMode = true in the Pata_Airflight/html/app.js refer to this file for more info Image ="tooltip-CAYO.jpg", -- This is the image displayed on the Menu , the file has to be present in Pata_Airflight/html/img Description ="We will be able to accompany you to your dream destination. Come and join our heavenly island.", -- This is the description of the airport displayed on the menu UseVendor =true, -- This enable the ped who sell tickets at the airport if you put this to false you can take off from here but still can land VendorModel ="s_m_y_pilot_01", -- This is the ped model used for the guy who sell ticket TargettingIcon ="fa-solid fa-plane-departure", -- This is the logo used by the targetting system (third eye) TargettingLabel ="Open Menu", -- This is the text displayed by the targetting (third eye) system when pointing on the ticket vendor PlayerMenuCoords =vector4(4458.41, -4475.92, 4.29, 197.12), -- This is the coords where spawn the ped who sell ticket BlipEnable =true, -- This enable or not the blip on the gta5 map BlipCoords =vector3(4458.41, -4475.92, 4.29), -- This is the coords of the blip on the gta5 map BlipId =307, -- This is the id of the blip displayed on the gta5 map BlipSize =1.0, -- This is the size of the blip on the gta5 map BlipColor =1, -- This is the color of the blip on the gta5 map BlipName ="CayoPerico", -- This is the name of the blip on the gta5 map--------------------------------------------------------------------------------------------- -- -- -- ROUTE DATA -- -- -- --------------------------------------------------------------------------------------------- AvailableDestination = { --This part define all the available destination FROM this airport and the price and model for airplane and helicopter ["LSIA"] = { PlanePrice =500, PlaneModel ="luxor", HelicoPrice =250, HelicoModel ="supervolito", }, ["SandyShores"] = { PlanePrice =500, PlaneModel ="miljet", HelicoPrice =250, HelicoModel ="cargobob2", }, ["GrapeSeed"] = { PlanePrice =500, PlaneModel ="shamal", HelicoPrice =250, HelicoModel ="frogger", }, ["Paleto"] = { PlanePrice =500, PlaneModel ="mammatus", HelicoPrice =250, HelicoModel ="frogger", }, },----------------------------------------------------------------------------------------------- ---- PLANE DATA ---- ----------------------------------------------------------------------------------------------- PlaneAvailable =true, --This define if you can LAND here with an airplane SpawnPlaneCoords =vector4(3937.12, -4696.81, 4.18, 288.17), --This define the coords where plane are spawn at the departure DeparturePlaneFlyingCoords = { --This is the part of all coords followed by the plane when he take off : [1] = {coords =vector4(3990.66, -4677.23, 4.18, 290.06), tag ="stripPositioning", radius =25.0}, -- *tag* : define the speed of the plane : [2] = {coords =vector4(4170.07, -4613.21, 4.18, 289.66), tag ="stripAlign", radius =25.0}, -- "stripPositioning" and "stripAlign" are low speed and "TakeOff" and "Flyaway" high speed [3] = {coords =vector4(4513.19, -4490.21, 55.18, 289.59), tag ="TakeOff", radius =100.0}, -- *radius* : define how near the plane need to be to the coords before going to the next one [4] = {coords =vector4(4627.89, -3937.72, 200.9, 73.29), tag ="FlyAway", radius =500.0}, }, airstripPlaneData = { --This is the part of all coords followed by the plane when he land : [1] = {coords =vec4(2073.921387, -5372.953125, 149.179993, 290.101044), tag ="prepos", radius =300.0}, -- *tag* : define the speed of the plane : [2] = {coords =vec4(2668.346191, -5155.412109, 99.180000, 290.101044) , tag ="alignement", radius =250.0}, -- "slow" are low speed, "alignement" medium speed and "prepos" are 80% speed [3] = {coords =vec4(3262.770752, -4937.871582, 49.180000, 290.101044) , tag ="alignement", radius =200.0}, -- *radius* : define how near the plane need to be to the coords before going to the next one [4] = {coords =vec4(3659.053955, -4792.844238, 19.180000, 290.101044) , tag ="alignement", radius =150.0}, [5] = {coords =vec4(3997.448242, -4669.163086, 8.180000, 290.118896) , tag ="slow", radius =100.0}, }, airstripStarting =vector3(3996.31, -4669.58, 4.18), -- This define the beginning of the airstrip airstripEnding =vector3(4451.62, -4502.79, 4.19), -- This define the ending of the airstrip and the coords where the plane will go after touched the ground needToBeTeleportedAfterPlaneArrival =false, -- Put this to true if you want people being teleported when landing here TeleportCoordsAtPlaneArrival =vector4(-1034.64, -2748.91, 14.6, 154.47), -- This is the coords where people will be teleported----------------------------------------------------------------------------------------------- ---- HELICO DATA ---- ----------------------------------------------------------------------------------------------- HelicoAvailable =true, --This define if you can LAND here with an helicopter SpawnHelicoCoords =vector4(4347.91, -4579.67, 5.18, 109.17), --This define the coords where helicopter are spawn at the departure DepartureHelipadData = { --This part define the helipad for the departure : useHelipad =true, -- This define if a helipad props is spawned or not helipadModel ="prop_helipad_01", -- or prop_helipad_02 -- This define which helipad props is spawned helipadCoords =vector4(4347.91, -4579.67, 2.9, 109.17) -- This define the coords of the helipad (if used) }, DepartureHelicoFlyingCoords = { --This is the part of all coords followed by the plane when he take off : [1] = {coords =vector4(4347.91, -4579.67, 52.9, 109.17), tag ="starting", radius =25.0}, --this is the coords that the helicopter will reach after take off }, ArrivalHelipadData = { --This part define the helipad for the arrival : useHelipad =true, -- This define if a helipad props is spawned or not helipadModel ="prop_helipad_01", -- or prop_helipad_02 -- This define which helipad props is spawned helipadCoords =vector4(4383.01, -4564.95, 2.9, 109.17) -- This define the coords of the helipad (if used) }, ArrivalHelicoFlyingCoords = { [1] = {coords =vector4(4383.01, -4564.95, 52.9, 109.17), tag ="flying", radius =100.0}, --this is the coords that the helicopter will reach before landing }, needToBeTeleportedAfterHelicoArrival =false, -- Put this to true if you want people being teleported when landing here TeleportCoordsAtHelicoArrival =vector4(-1034.64, -2748.91, 14.6, 154.47), -- This is the coords where people will be teleported }
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.