Cargo Plane Spawn Code FiveM: What to Use
In this article
The cargo plane in FiveM is spawned with the model name cargoplane, not with a separate "cargo plane spawn code" resource or a special hash. In any script or console that accepts a model string, you request that name and the game loads the plane. The reason people search for a "code" is that FiveM does not give you a vehicle spawner by default — you need either an admin menu, a server command, or a small client script to turn that model name into a plane sitting on the runway.
What the Cargo Plane Model Name Is and Where It Works
The model is cargoplane. It is the same asset Rockstar shipped in single-player, so it exists in every stock FiveM server that has not removed base-game vehicles. You can use it in three places: a server-side command that calls a spawn function, a client-side script that runs CreateVehicle, or an admin trainer menu that has a model search box.
If a menu asks for a "spawn name" or "model," type cargoplane in lowercase. If it asks for a hash, you need to compute the hash from that string with the game's own hashing function rather than typing a number you found online — a wrong hash silently fails and the menu closes with no plane. In Lua, the call looks like RequestModel("cargoplane") followed by a load check and CreateVehicle. In JavaScript, the same pattern uses RequestModel and CreateVehicle from the natives.
One rule of thumb: if the spawn fails with no error, the model name is wrong or the model is not loaded yet. Request the model, wait until HasModelLoaded returns true, then create the vehicle. Skipping the wait is the most common reason a plane never appears.
Spawning It From a Server Command or Admin Menu
Most servers already have a vehicle command. On many frameworks it is /car, /veh, or /spawn followed by the model name, so the full line is /car cargoplane. Whether that works depends on the server's permissions: a normal player usually cannot spawn vehicles, and an admin can. If the command returns "unknown command," the server has no vehicle command installed and you need a resource that provides one.
Admin menus that ship with popular server frameworks have a vehicles tab with a search field. Type cargoplane, pick the result, and the menu places the plane at your position or at a configured spawn point. Menu labels vary by menu and by server version, so if you do not see a search field, look for a "Spawn Vehicle" or "Vehicles" entry first. The plane is large, so spawning it inside a hangar or a garage can clip it into geometry; spawn on open tarmac.
If you are writing the command yourself, the server-side event receives the player's source, then triggers a client event that does the model request and creation. Keep the model string on the client side where the natives run, and validate on the server that the requesting player is allowed to spawn vehicles. A command that lets any player type any model name is a quick way to fill a server with planes.
Why the Plane Drops, Flips, or Never Appears
The cargo plane is heavy and slow to accelerate, and it has a long takeoff roll. If you spawn it stationary on a short runway, it will not reach flying speed before the runway ends. Spawn it facing a long runway or already in the air with some forward speed. A plane created at zero speed on a taxiway will sit there; a plane created in the air without speed will stall and fall.
If the model loads but the plane appears as an invisible box or a placeholder, the client has not finished streaming the asset. Wait a few seconds and request the model again. If it never appears at all, check the server console for a model-not-found error, which means the vehicle has been removed from the server's vehicle pack or the model name has a typo.
Another failure mode is spawning inside another vehicle or a building. The game may delete the new plane immediately to resolve the collision. Move to open ground, then spawn. On servers with anti-cheat or spawn protection, a vehicle created by a script the server does not recognise can be removed within seconds; use the server's own spawn resource rather than a client-side hack.
Using the Cargo Plane in Scripts and Missions
For a scripted drop or a mission, create the plane in the air at a set altitude and give it a task to fly a route. The plane's size means it needs a wide turning radius, so route waypoints should be spaced well apart. If you want a stationary prop — a crashed plane or a parked one — spawn it on the ground and set it as mission entity so it does not despawn when the player walks away.
Set the plane's doors and landing gear through the vehicle's own controls rather than assuming a default state. A freshly created cargo plane may have its ramp closed; scripts that expect an open rear ramp for a parachute drop need to open it explicitly. Test the drop once with a short route before building a long mission around it.
For a player-facing spawn, give the plane a clear use: a supply run, a parachute jump, or a scenic flight. A cargo plane spawned with no purpose on a public server is usually abandoned on the runway within a minute, and abandoned large vehicles are a common source of clutter and collision complaints.
Checking the Spawn Worked and Cleaning Up
After spawning, confirm the plane exists by checking that it responds to control input and that its engine starts. If the engine will not start, the vehicle may be set as undriveable or the player may not be in the driver's seat; enter the plane through the pilot door. If the plane exists but cannot move, check that it is not set as a mission entity frozen in place.
Clean up by deleting the vehicle when it is no longer needed, using the server's delete command or the script's cleanup routine. Leaving spawned planes in the world consumes entity slots, and on a busy server those slots are limited. If a spawned plane becomes stuck in the ground, delete it and spawn a new one rather than trying to push it free.
To verify the model name on your own server, open the server's vehicle list or the admin menu's search and look for the cargo plane entry; the name shown there is the one to use in commands. If the entry is missing, the vehicle is not available on that server and no code will make it appear.