Skip to main content
Home
Shop
Free Mods
Tools
Bundles
Full Servers
  1. Home
  2. Blog
  3. Development

How to Disable AI Planes on Your FiveM Server

Published on September 23, 2024·by Lars Miller(Founder & Lead Editor)·Credentials·4 min read·Updated on March 3, 2026
Development

Want a cleaner sky and faster gameplay on your FiveM server? Learn how to quickly disable the pesky AI planes and helicopters that clutter airports and boost performance—step‑by‑step, with a ready‑to‑

How to Disable AI Planes on Your FiveM Server
How to Disable AI Planes on Your FiveM Server

How to Disable Airplanes and Helicopters in FiveM FiveM servers can become bogged down by artificial intelligence (AI) aircraft that randomly spawn at airports and airfields. Whether you’re running a realistic utopia or a post‑apocalyptic sandbox, those AI planes and helicopters can degrade performance, interfere with gameplay, and clash with your server’s theme. This guide walks you through a quick, easy script you can add to your server that disables all unwanted AI airplanes and helicopters, giving your players a smoother experience.

Why Disabling AI Planes and Helicopters Matters

- Improved Server Performance – Fewer entities mean less CPU and memory usage, freeing resources for other scripts and assets. - Cleaner Gameplay – Protect missions and role‑play scenarios from unplanned air traffic. - Thematic Coherence – A sandbox set in a destroyed city can feel more authentic when no airplanes drift overhead. - Reduced Lag – AI aircraft are resource-intensive. Knocking them out of the equation can lower ping and increase frame rates for your players.

Disabling AI Planes and Helicopters with the gd_airport_ai_begone Script

The gd_airport_ai_begone resource is a lightweight solution that removes a broad set of scenarios, models, and spawn points around all major San Andreas airports. Once injected into your server, the script automatically stops jets, turboprops, and various ground vehicles from appearing on the tarmacs. It also guards against remote spawn requests from distant sky locations.

Step‑by‑Step Implementation

1. Create a Resource Folder Navigate to your server’s `resources` directory and create a new folder named `gd_airport_ai_begone`. 2. Add a Manifest File Inside that directory, create either `__resource.lua` (for legacy servers) or, better yet, `fxmanifest.lua` if you use the latest server version: ```lua fx_version 'cerulean' game 'gta5' client_script 'client.lua' ``` 3. Write the Client Side Script Create `client.lua` and paste the following: ```lua Citizen.CreateThread(function() local SCENARIO_TYPES = { WORLD_VEHICLE_MILITARY_PLANES_SMALL, WORLD_VEHICLE_MILITARY_PLANES_BIG } local SCENARIO_GROUPS = { 2017590552, -- LSIA planes 2141866469, -- Sandy Shores planes 1409640232, -- Grapeseed planes ng_planes -- jets “high” in the sky } local SUPPRESSED_MODELS = { SHAMAL, LUXOR, LUXOR2, JET, LAZER, TITAN, BARRACKS, BARRACKS2, CRUSADER, RHINO, AIRTUG, RIPLEY } while true do for _, type in pairs(SCENARIO_TYPES) do SetScenarioTypeEnabled(type, false) end for _, group in pairs(SCENARIO_GROUPS) do SetScenarioGroupEnabled(group, false) end for _, model in pairs(SUPPRESSED_MODELS) do SetVehicleModelIsSuppressed(GetHashKey(model), true) end Citizen.Wait(10000) -- Re‑evaluate every 10 seconds end end) ``` The script revolves around three arrays: SCENARIO_TYPES (small and large military planes), SCENARIO_GROUPS (airport‑based spawn pools), and SUPPRESSED_MODELS (specific aircraft and support vehicles). Adjust these lists if you wish to re‑enable particular models. 4. Load the Resource Open `server.cfg` and add: ``` start gd_airport_ai_begone ``` Save and close. 5. Restart Reboot the server or run the console command `restart gd_airport_ai_begone` to activate the new script.

Customizing the Script

If you’re on a mixed‑traffic server and want a few aircraft left in the sky, edit the `SUPPRESSED_MODELS` array. Comment out or remove any model you wish to return. For example, to keep jets alive, delete the `JET` line. After adjusting, restart the resource to see the changes take effect.

Best Practices

- Back Up – Before touching any server files, make a copy of your current configuration and scripts. - Test Thoroughly – Once the server is running, hop into each airport area to confirm no unwanted aircraft appear. - Monitor Resource Usage – Use tools like the FiveM console’s `stats` command or external monitoring software to verify that CPU usage has decreased after disabling AI planes. - Keep Scripts Updated – If FiveM changes the underlying spawning mechanics, you may need to tweak scenario names or model hashes.

Conclusion

By adding the gd_airport_ai_begone script to your FiveM server, you effortlessly disable AI airplanes and helicopters that can otherwise clutter the sky, drain performance, and disrupt your desired gameplay atmosphere. This small change frees up computing power, delivers a cleaner experience, and keeps your server’s world cohesive. If you run into any hiccups or want to share additional tweaks, drop a comment below or participate in the FiveM community forums for support.

Related Premium HUD Scripts on FiveMX

  • 0R-HUD | Hud Script
  • Nation HUD
  • ESX Inventory HUD V16
  • VMS HUD

Related FiveM Guides & Tutorials

  • Disable Bridge Element in FiveM Loading Screen
  • FiveM Could Not Find Game Executable: Resolution Guide
  • FiveM Connection Failed: Diagnostic and Resolution Guide
Previous Article

Setting Up QBCore Scripts – Here's How

Next Article

How To Protect your FiveM Server from DDoS

More on This Topic

Best QBOX Scripts 2026: Essential Resources for Your ServerFiveM Server Management: The Complete Guide from Setup to ScaleUltimate Drift Server Guide: Top Cars, Mods & Setups for FiveMCFX Server List Ranking Guide: Settings & Listing HygieneHow To Create an alt:V Server (2026 Quickstart Guide)

Turn police research into a full department stack

Police systems perform best when they connect to jobs, framework choices, and launch-ready premium resources. These next pages move you closer to a working production setup.

Category hub

Compare police-ready script stacks

Move from the article into the main police landing page for MDT, dispatch, evidence, and department-management systems.

Open police hub

Category hub

Browse install-ready job scripts

Compare police, mechanic, drug, civilian, and economy systems in the main jobs hub before you commit to a single resource.

Open job scripts

Framework hub

Browse QBCore-ready scripts

Move into the QBCore landing page to compare verified scripts, framework fit, and install-ready products built for modern FiveM servers.

Open QBCore hub

Framework hub

Review the ESX script path

Use the ESX landing page to compare framework-specific resources, launch guidance, and premium products that fit ESX-first servers.

Open ESX hub

Disclosure: Some links below are affiliate links to FiveMX products. We may earn a commission at no extra cost to you.

Related Articles

How to Create a Logo for Your Gaming Server or Community (2026 Guide)

How to Create a Logo for Your Gaming Server or Community (2026 Guide)

Your server logo is the first thing a potential player sees — before they read your description, check your player count, or visit your Discord.

April 4, 2026
FiveM Full Server Download: Complete Server Packs Explained (2026)

FiveM Full Server Download: Complete Server Packs Explained (2026)

Everything you need to know about FiveM full server downloads in 2026 — what they include, how to evaluate them, install them end-to-end, and what to fix after your first boot. Includes a comparison of ESX, QBCore, QBox, and vRP server packs.

April 1, 2026
How to Run a FiveM Server Using Docker: Complete Setup Guide

How to Run a FiveM Server Using Docker: Complete Setup Guide

Running a FiveM server inside Docker gives you environment consistency, simplified backups, reproducible deployments, and the ability to run multiple isolated server instances on…

April 1, 2026
Secure CheckoutInstant AccessMoney-Back GuaranteeLifetime Updates
FiveMX

Premium FiveM scripts and mods for serious server owners.

Shop

  • Shop
  • QBCore Scripts
  • ESX Scripts
  • FiveM Scripts
  • Free Mods
  • Best Scripts & Mods

Help

  • About
  • FAQ
  • Support
  • Contact
  • Account
  • Affiliate Program

Legal

  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Cookie Policy
  • GDPR Compliance
  • DMCA
  • Imprint
  • Editorial Policy
© 2026 FiveMX. All rights reserved.·support@fivemx.com

FiveMX is not affiliated with Rockstar Games, Take-Two Interactive, or CFX.re. All trademarks are property of their respective owners.

Flash Sale — Up to 19% off!Flash Sale — 19% off!Shop Now