CS_ItemDefIndexToID Function

Returns a CSWeaponID equivalent based on the item definition index.

CSWeaponID CS_ItemDefIndexToID(int iDefIndex)

Parameters

int iDefIndex

Definition index to get the CSWeaponID value for.

Return Value

Returns CSWeaponID value for the definition index.

Errors

Invalid definition index.

Notes

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