CS_WeaponIDToItemDefIndex Function

Returns a item definition index equivalent based on the CSWeaponID.

int CS_WeaponIDToItemDefIndex(CSWeaponID id)

Parameters

CSWeaponID id

CSWeaponID to get the item definition for.

Return Value

Returns item definition index value for the weapon id.

Errors

Invalid weapon id.

Notes

In most cases the item deinition index will be the id. Works for CS:GO ONLY.