CS_WeaponIDToLoadoutSlot Function

Returns the loadout slot based on the CSWeaponID. (CS:GO only)

int CS_WeaponIDToLoadoutSlot(CSWeaponID id)

Parameters

CSWeaponID id

CSWeaponID to get the loadout slot for.

Return Value

Returns loadout slot value for the weapon id.

Errors

Invalid weapon id.