Troubleshooting weapons and the release checklist
In short
The same few problems turn up on every server. Find the symptom, check the cause, then open the guide. The checklist at the end is for the day a pack goes onto a live server or into a store.
| Symptom | Likely cause | Fix |
|---|---|---|
| Pink or purple weapon | Texture dictionary missing or misnamed | Match txdName and file names; stream the .ytd |
| Invisible weapon | Model not streamed or modelName mismatch | Check weaponarchetypes.meta and the stream folder |
| Weapon not in the inventory | Not added to data/weapons.lua or shared items | Add it and restart the inventory |
| Name shows as NULL | No AddTextEntry for HumanNameHash | Register the label on the client |
| Attachment floats | Bone in the wrong place | Move WAPSupp/WAPScop in Blender |
| Oversized-asset warning | 4K or uncompressed textures | 2K/1K BC7 with mipmaps |
| Cannot reload | Wrong ammoname / AmmoInfo | Point it at an existing ammo item/type |
| Weapon removed after a moment | Anticheat or inventory sees an unowned weapon | Give it through the inventory on the server |
Each row has a guide of its own: pink textures, a weapon that does not stream, a weapon missing from the inventory and client crashes caused by weapons.
Before a pack is released, go through the list below. For the scripting side, the performance and security chapters of the Developer Handbook for FiveM go into more depth.
Checklist
- Each weapon has a unique
WEAPON_…name and a registered label - Archetype
modelNameandtxdNamematch the streamed files - Textures are 1K–2K, BC1 or BC7, with full mipmaps, and nothing raises an oversized-asset warning
- LODs are present and attachments sit on the right bones
- Weapons, ammo and attachments are in the inventory, each with an image
- Shops, licences and armory grades are configured
- Damage and headshot values are tested against your armour settings
- Weapons are only ever given from server code
- Everything is checked in first and third person, by day and by night
Go deeper:Why a FiveM weapon is pink, white or untextured →The weapon does not load at all →The weapon works, but the inventory shows an empty square →A custom weapon that crashes the client →How to add a custom weapon to a FiveM server →Adding a weapon to ox_inventory →Keeping weapon packs light →Balancing weapons on a roleplay server →