Skip to content
GuidesVehiclesServer Setup

How to Spawn Vehicles in FiveM (Spawn Names & Admin Commands)

· 5 min read · Updated

How to Spawn Vehicles in FiveM (Spawn Names & Admin Commands)

To spawn an add-on car in FiveM, use its spawn name: the <modelName> in the car's vehicles.meta, not the resource folder name. Type it after /car on QBCore or ESX, or into the spawn-vehicle box of the txAdmin menu or vMenu. "I installed the car but it won't spawn" is the most common beginner complaint, and it is almost always this naming mix-up.

What is the difference between the spawn name and the folder name?

The name you spawn a car with is its model/spawn name set inside the vehicle's meta files — not the resource folder name. A folder called cool_car_2026 might spawn as gtr. Always check the meta for the real spawn name.

The two names do different jobs. The folder name is what you write after ensure in server.cfg. The spawn name is what you type to put the car on the road, and what you later add to a dealership, garage or job vehicle list. One resource can also hold more than one model, each with its own spawn name.

How do you find a car's spawn name?

Open vehicles.meta and find the <modelName> tag — that string is what you spawn. Pack listings and readme files usually document spawn names too; on Goodara the spawn code is printed on every product page.

<Item>
  <modelName>spawncode</modelName>
  <txdName>spawncode</txdName>
  <handlingId>SPAWNCODE</handlingId>
  <gameName>SPAWNCODE</gameName>
  ...
</Item>
  • modelName is the spawn name. It matches the name of the car's .yft file in the stream folder.
  • gameName is not the spawn name. It is the label the game looks up to show the car's display name, which is why a car can spawn correctly and still be called NULL.
  • Spawn names are not case-sensitive: DLAmbulance and dlambulance spawn the same car. Framework vehicle lists are stricter, so write the name in lowercase there.

A real example: our Ambulance lists its spawn code as DLAmbulance on the product page, so an admin spawns it with /car DLAmbulance whatever the resource folder is called.

How do you spawn an added car?

  • Admin menu: the easiest. The txAdmin menu and vMenu both have a spawn-vehicle box that takes the spawn name.
  • Framework command: on QBCore and ESX, admins can type /car spawnname in chat.
  • Garage/shop: how regular players get cars in a finished server.

How do you spawn an added car through txAdmin?

Open the txAdmin menu in game with /tx, choose the vehicle spawn option on the main page and type the car's spawn name. An add-on car is spawned by typing its name, so you need the spawn code to hand. The menu has to be enabled in your txAdmin settings, and your admin account needs permission to spawn vehicles.

Why does nothing happen when you spawn the car?

  • The resource isn't ensured — check server.cfg.
  • You're using the folder name instead of the spawn name.
  • You don't have permission. Framework spawn commands are admin-only, so check your ACE or framework permissions.
  • Two resources define the same spawn name. Only one of them wins, so a car you just installed can spawn as an older model with the same name. Remove or rename the duplicate.
  • The model failed to load — see fixing vehicle errors.

Spawn names for police and EMS jobs

Job vehicles use the same spawn name, in a different place. A police car goes into your police job's authorised vehicle list and an ambulance into your ambulance job's, so officers and medics can take it out at the station by rank. Our police car guide covers that step.

Spawning by command is for testing. To let players buy the car, add it to your framework's vehicle list — see adding cars to QBCore, Qbox and ESX shops.

Once spawning works, the fun begins. Stock the garage from our add-on cars and car packs, each with its spawn code printed on the product page — or grab more from our partner Five Garage.

Buying for this? Read the buyer's guide: FiveM Cars for QBCore & ESX ›

Keep reading