CS2 Gen Code Generator
Pick a skin, dial in the float and pattern seed, and copy the !gen command for community servers running the gen plugin.
Frequently Asked Questions
Everything you need to know about CS2 gen codes, the !gen command format, and how to use them on community servers.
What is a gen code in CS2?
A gen code is a chat command used on CS2 community servers that run a skin-generation ("gen") plugin. Typing the command in chat spawns a weapon with the exact skin, float value, and pattern seed you specify, so you can preview any skin in-game before buying it. The command follows the format "!gen <weapon id> <paint kit id> <float> <seed>" — for example, "!gen 16 309 0.01 0" generates a Factory New M4A4 | Howl. Gen codes only work on community servers with the plugin installed; they have no effect in matchmaking and never create real, tradable items.
How do I use a gen code?
First join a CS2 community server that runs a gen plugin — search the community server browser for "skins" or "!gen" servers. Once connected, open chat and paste the command you copied from this tool, for example "!gen 7 180 0.15 42" for an AK-47 | Fire Serpent. The server will give your character the generated weapon so you can inspect it in-game. Each server may have its own limits or cooldowns, and some use slightly different command variants, so check the server's rules or MOTD if a command is rejected.
What do the four numbers in a gen code mean?
The command is "!gen <defindex> <paintkit> <float> <seed>". The defindex is the weapon's item-definition index — a fixed Valve ID like 7 for the AK-47, 9 for the AWP, or 16 for the M4A4. The paint kit ID identifies the skin finish, such as 180 for Fire Serpent, 344 for Dragon Lore, or 309 for Howl. The float is the wear value that controls how scratched the skin looks, and the seed (0–1000) controls where the pattern is positioned on the weapon — crucial for skins like Case Hardened or Fade.
Why doesn't my StatTrak or sticker choice show in the gen code?
The standard !gen command only carries four values: weapon ID, paint kit ID, float, and seed. StatTrak, Souvenir status, and stickers are not part of the command format — those attributes only exist in Steam inspect links, which encode a fuller item description. This tool intentionally generates only the four-value command so it works reliably across gen servers.
Are gen codes safe and legal to use?
Yes — using !gen commands on community servers that offer them is allowed and does not affect your account. The generated weapons exist only on that server while you play; they are not real inventory items, cannot be traded or sold, and disappear when you leave. Gen codes are a preview tool, most commonly used to check how a skin, float, and pattern combination looks in-game before spending money on the real item. Note that using third-party software to change skins in matchmaking is a different thing entirely and can lead to bans — gen codes on community servers carry no such risk.
Why does the float value matter in a gen code?
The float controls how worn the skin looks, from pristine at 0.00 to heavily battle-scarred at 1.00. Each skin also has its own allowed float range — the AWP | Dragon Lore only exists between 0.00 and 0.70, and the M4A4 | Howl between 0.00 and 0.40. This tool automatically clamps the float to each skin's valid range, so the command you copy always represents an item that could actually exist. That makes it ideal for previewing exactly what a listing with a specific float will look like before you buy it.
What are the most famous pattern seeds worth trying?
Pattern seeds shift where the finish texture sits on the weapon, and some placements are far more desirable than others. Legendary examples include seed 661 on the AK-47 | Case Hardened (the "Blue Gem" with a nearly full blue top), seed 387 on the Karambit | Case Hardened, and high-fade percentage seeds on Fade knives. Doppler phases, Marble Fade combinations, and Crimson Web spider placements also vary by seed. Generate the same skin with different seeds to compare patterns side by side in-game.
Where does the skin data come from?
The skin database is built from the open-source CSGO-API project (ByMykel), which tracks every CS2 skin with its paint kit index and minimum/maximum float straight from the game files. Weapon definition indexes are static Valve values from the game's item schema (items_game.txt). The database covers over 2,000 weapon, knife, and glove finishes and is refreshed regularly as new cases and collections are released.