The spawn name is the name you use to spawn a car in FiveM. It's often different from the car's display name, so here's how to find it.
TL;DR:
-
Open
vehicles.metain the resource'sdatafolder. -
Find
<modelName>, the text inside it is the spawn name. -
Spawn it with your server's car command, for example
/car spawnname.
Jump to
1. Open vehicles.meta
Open the resource folder and go to the data folder. Open vehicles.meta with a text editor like Notepad, Notepad++ or Visual Studio Code.
2. Find the modelName
Search for modelName (Ctrl + F). The text between the tags is the spawn name:
<modelName>dlsentinel</modelName>
In this example the spawn name is dlsentinel.
In car packs, one vehicles.meta can hold many cars. Every <modelName> in the file is a different car, so you can copy them all into a list.
Another way: the stream folder
The car's model file in the stream folder is also named after the spawn name, for example dlsentinel.yft. Ignore the extra files that end in _hi, or that are tuning parts or liveries (they're often in a mods folder or end in something like _bumf or _livery1). The <modelName> in vehicles.meta is always the safest place to check.
3. Spawn the car
How you spawn it depends on your server:
-
ESX:
/car spawnname -
QBCore:
/car spawnname - vMenu: Vehicle Options → Vehicle Spawner → Spawn Vehicle By Model Name
Admin permissions are needed for these commands.
To sell the car in a dealership instead, see Adding Cars to QBCore and ESX Vehicle Shops.
If the car still won't spawn, go through Vehicle Not Spawning in FiveM.
FAQ
Is the spawn name the same as the folder name?
Not always. The folder can be called anything. The spawn name is the modelName in vehicles.meta.
How do I find spawn names in a car pack?
Open the pack's vehicles.meta. Every modelName in the file is a different car.
Is the spawn name case sensitive?
No, GTA turns it into the same model either way. Writing it in lowercase is still the safest.
Why does the spawn command say the model doesn't exist?
Either the name is wrong or the resource isn't started. See our guide on vehicles not spawning.
0 commentaire