Replacing vanilla weapons or adding new ones
A replace streams files with vanilla names (for example w_pi_pistol.ydr/.ytd), so the existing WEAPON_PISTOL changes look for everyone — no meta files needed. An add-on adds a new WEAPON_… with its own model, weapons.meta, weaponarchetypes.meta, weaponanimations.meta and data_file lines, and must be added to your inventory. Use replaces for skins and vanilla overhauls; add-ons when players should have both.
There are two ways to get a new gun into FiveM. You can replace a vanilla weapon — every Pistol now looks like your model — or add a brand-new weapon with its own name that sits next to the originals. Replacing is simpler; add-ons are more flexible. Most servers use both.

#Side by side
| Replace | Add-on | |
|---|---|---|
| Weapon name | Vanilla (WEAPON_PISTOL) | New (WEAPON_MYPISTOL) |
| Files | .ydr/.ytd with vanilla names | Model, textures, meta files |
| Meta / data_file | Not needed for looks | Required |
| Inventory changes | None | New item and weapon entry |
| Both versions in game | No | Yes |
| Stats | Vanilla unless you also stream a meta | Your own |
#Replacing a vanilla weapon
pistol_skin/
fxmanifest.lua -- fx_version, game
stream/
w_pi_pistol.ydr
w_pi_pistol.ytd
w_pi_pistol+hi.ytdFiles in stream/ with vanilla names override the originals. Include the +hi files the vanilla weapon uses, or first-person view keeps the old look — see editing YTDs.
#Adding a new weapon
fx_version 'cerulean'
game 'gta5'
files {
'meta/weapons.meta',
'meta/weaponarchetypes.meta',
'meta/weaponanimations.meta',
}
data_file 'WEAPONINFO_FILE' 'meta/weapons.meta'
data_file 'WEAPON_METADATA_FILE' 'meta/weaponarchetypes.meta'
data_file 'WEAPON_ANIMATIONS_FILE' 'meta/weaponanimations.meta'Some weapons also ship pedpersonality.meta (PED_PERSONALITY_FILE), loadouts.meta (LOADOUTS_FILE) or weaponcomponents.meta (WEAPONCOMPONENTSINFO_FILE). The full walkthrough is in adding custom weapons; then register it in ox_inventory, QBCore or ESX.
#Which to choose
- Want the police Pistol to look better? Replace.
- Want a Glock and the vanilla Pistol available separately? Add-on.
- Want different damage for one variant? Add-on (or a meta override for the vanilla weapon).
- Selling skins? Replaces are the easiest for buyers.
Questions
What is a replace weapon in FiveM?
What is an add-on weapon?
Do replace weapons need weapons.meta?
Why does my add-on weapon not appear in the inventory?
Ready to pick a map?
Twelve themes on three base map styles, $8 each, instant download.
Relevant to what you just read
Look it up while you work
The reference tables this guide leans on, free and without an account.
- The map modding glossary38 terms — file formats, radar parts, framework words — each with a one-line answer first.