Weapon Creator prepares a weapon model for GTA V / FiveM: a starter armature with the common attachment bones, Sollumz materials, binding and per-part weights, export into a resource and a weapon meta patch for testing. Panel: N panel › GTA Weapon Creator.
Needs Sollumz
The material setup and export use the official Sollumz exporter.
Workflow
Setup GTA Material
Turns the starter material into a real Sollumz shader (one shared material, no duplicates). Set Diffuse Texture to a
.ddsand it goes into the DiffuseSampler, embedded in the exported.ydr.Create Weapon Armature
Names the armature after Model Name (Sollumz uses it as the
.ydrfile name), marks it as a Sollumz Drawable and leaves the meshes selected, ready to bind.Bind Mesh / Assign Parts
Parents the meshes to the armature (keeping their position) as Drawable Models with a High LOD, renames the UV map to
UVMap 0, adds a whiteColor 1layer and weights each part 100% to one bone. Old weights are cleared, so a part never splits between bones.Validate
Checks UVs, Sollumz materials, parenting, the LOD mesh, unweighted vertices and the 4-bones-per-vertex limit.
Create FiveM Resource and Export GTA Assets
The resource gets
stream/,meta/,cl_weaponNames.luaandfxmanifest.lua. The export writes gen8 (Legacy) files only, sostream/doesn't get duplicategen8/andgen9/copies, and it tells you if Sollumz wrote nothing.
my_weapon/
├── stream/
├── meta/
├── cl_weaponNames.lua
└── fxmanifest.lua
Test it in-game
Create Weapon Meta Patch writes meta/weapon.meta and registers it in fxmanifest.lua. It swaps the model
of an existing weapon slot (such as WEAPON_PISTOL) for your Model Name. Running it or Create FiveM
Resource again never drops or duplicates the WEAPONINFO_FILE_PATCH line.
Weapon acting strange?
The patch only contains Name and Model. If the weapon misbehaves, copy the full CWeaponInfo entry for the
base weapon into meta/weapon.meta. For a pure model swap you can also stream a .ydr with the original model
name, such as w_pi_pistol.ydr.
Not yet included
Registering a brand-new weapon (rather than replacing a slot) needs a larger metadata definition, and automatic attachment-point placement is still to come.