Profilerr
CS2 Gen Code

CS2 Gen Codes are commands used for quick generation of specific in-game items (weapon skins, stickers, etc.). While you obviously can’t use these in regular games, they’re super convenient for creating cool item sets and sharing ideas with friends. Besides, a skin doesn't always look the same as in marketplace preview, so you might want to test specific items before making a purchase. In this guide, you'll learn how to generate and use CS2 gen codes for whatever needs you have.

What Is a CS2 Gen Code?

Basically, a gen code is a text command that allows a player to generate any CS2 skin. The structure of a CS2 gen code depends on the weapon or item you want to get, as well as its pattern and float value. Here's what a typical gen code consists of: !gen [Weapon ID] [Skin ID] [Pattern Index]  [Float Value].

What Is a CS2 Gen Code

Let’s generate an AK-47 Bloodsport, for example. First of all, you need to find a !gen compatible server. If you don’t know where to find one, we suggest you check our article about CS2 skin inspection servers. Once you find the server and connect, you’ll need to open the developer’s console and enter the desired item’s code. The code for a Factory New Bloodsport is !gen 7 639 1 0.05 (don’t worry, we’ll explain how to get a gen code in CS2 a bit later).

Code for a Factory New Bloodsport is !gen 7 639 1 0.05
AK-47 Bloodsport Factory New

Want to try out a higher float? You’ll just need to change the latest figure from 0.05 to 1, making the gen code look like this: !gen 7 639 1 1.

!gen 7 639 1 1 for float from 0.05 to 1

But how would you know which numbers to change to test different parameters? Let’s deconstruct a gen code and see how it works.

Weapon type ID

First, you need to specify what weapon you want to get. Each gun, knife, or glove set in the game has a unique identification number. You can find the full list below:

Knives

  1. Bayonet 500;
  2. Bowie 514;
  3. Butterfly 515;
  4. Default CT 42;
  5. Default T 59;
  6. Falchion 512;
  7. Flip 505;
  8. Gut 506;
  9. Huntsman 509;
  10. Karambit 507;
  11. M9 Bayonet 508;
  12. Navaja 520;
  13. Nomad 521;
  14. Paracord 517;
  15. Shadow Daggers 516;
  16. Skeleton 525 ;
  17. Stiletto 522;
  18. Survival 518;
  19. Talon 523.

Pistols

  1. P2000 32;
  2. P250 36;
  3. Desert Eagle 1;
  4. Dual Berettas 2;
  5. Five-Seven 3;
  6. Glock-18 4;
  7. Tec-9 30;
  8. USP-S 61;
  9. CZ75-Auto 63;
  10. R8 Revolver 64.

Rifles

  1. AK-47 7;
  2. AUG 8;
  3. AWP 9;
  4. Famas 10;
  5. G3SG1 11;
  6. Galil AR 13;
  7. M4A4 16;
  8. SCAR-20 38;
  9. SG 553 39;
  10. SSG 08 40;
  11. M4A1-S 60.

SMGs

  1. MAC-10 17;
  2. P90 19;
  3. MP5-SD 23;
  4. UMP-45 24;
  5. PP-Bizon 26;
  6. MP7 33;
  7. MP9 34.

Heavy

  1. M249 14;
  2. XM1014 25;
  3. MAG-7 27;
  4. Negev 28;
  5. Sawed-Off 29;
  6. Nova 35.

Gloves

  1. Bloodhound 5027;
  2. Sports 5030;
  3. Driver 5031;
  4. Hand Wraps 5032;
  5. Moto 5033;
  6. Specialist 5034;
  7. Hydra 5035.

Skin ID

The second figure indicates the skin applied to the weapon. Listing all the skin IDs here would take us another month, but luckily, you can check it on pretty much any marketplace. Choose the skin you’d like to try and look for lines like Finish Catalog. For example, for AK-47 | Bloodsport, the skin ID is 639.

Skin ID

Seed/Pattern Index

This value determines the item’s pattern, which is a number that decides how a skin’s texture wraps around a weapon model. Each weapon skin comes with 1,000 possible pattern variations, meaning even skins of the same type and quality can look different based on their pattern index.

For example, a skin like an AK-47 | Case Hardened can range from mostly blue (a rare and expensive "blue gem") to gold to random splashes of both, all depending on the pattern index. Let’s generate a blue gem #555 using !gen 7 44 555 0.38:

For AK-47 | Case Hardened blue gem #555 using !gen 7 44 555 0.38

Now, let’s switch the 3rd value to 237 and see what’ll happen to the finish:

AK-47 | Case Hardened blue gem #237

The difference is not always as striking as in this case, but pattern can be a determining factor in how pricey and desirable a skin is.

Wear value (float) ID

The last figure represents the float value, or, in other words, its condition. This indicator ranges from 0 (the best) to 1 (the worst) but may vary depending on the weapon. Here's how these numbers correspond to in-game wear:

  1. Factory New: 0–0.07;
  2. Minimal Wear: 0.07–0.15;
  3. Field-Tested: 0.15–0.38;
  4. Well-Worn: 0.38–0.45;
  5. Battle-Scarred: 0.45 – 1.00.
Note: The number of digits after the decimal point can well exceed 10+ if you have a very precise condition in mind.

Why is CS2 Gen Code Needed?

Here are the most common use cases for gen codes:

Inspect and Customize

Generally, if a player suddenly wants to know how to get a gen code in CS2, in nine cases out of ten it’s to inspect a skin they want to buy. Most people you’ll see on a gen server are giving their future weapon a test run. This feature is pretty useful, especially when dealing with high-value purchases.

Compare

There are situations when two skins that look almost identical have different prices. For example, FT weapons with lower float can cost 5 times less than the MW version of the same skin. For regular players, it’s more about the look than actual wear, so it’s a good idea to check if more expensive skin variants are worth overpaying.

Trade

Gen codes are also very handy when it comes to trading. People can use a CS2 gen code to showcase their items to potential buyers. While also more suitable to high-value deals, it surely saves time and prevents confusion later on.

Recreate

Another fun way to use CS2 skin gen code is to copy iconic weapons of pro players, streamers, etc. With all the information available today, players can easily get their hands on guns like s1mple’s Dragon Lore, kennyS’ Azimov, ScreaM’s AK, and more.

Final Thoughts

That’s it! Now you know how to use gen codes in CS2, and can go flex on your friends (or potential buyers). While the system might seem complex, it follows a simple formula and so shouldn’t create much trouble for you. Once you figure it out, just find a !gen server address and have fun exploring any skin variations you can come up with.

CS2 Online stats

In Game
859 117
24h Peak
1 625 169
All Time Peak
1 802 853

Players in game

Today’s top

Player KD Rating
1.391.27
1.381.24
1.271.23
1.451.22
1.341.2
1.321.19
1.331.19
1.241.17
1.291.16
1.161.16