3rd Party LibrariesRecent AdditionsHandles Parser
Discord
  • admin
  • adminmenu
  • adt_array
  • adt_stack
  • adt_trie
  • banning
  • basecomm
  • bitbuffer
  • clientprefs
  • clients
  • commandfilters
  • commandline
  • console
  • convars
  • core
  • cstrike
  • datapack
  • dbi
  • dhooks
  • entity
  • entity_prop_stocks
  • entitylump
  • events
  • files
  • float
  • functions
  • geoip
  • halflife
  • handles
  • helpers
  • keyvalues
  • lang
  • logging
  • mapchooser
  • menus
  • nextmap
  • profiler
  • protobuf
  • regex
  • sdkhooks
  • sdktools
  • sdktools_client
  • sdktools_engine
  • sdktools_entinput
  • sdktools_entoutput
  • sdktools_functions
  • sdktools_gamerules
  • sdktools_hooks
  • sdktools_sound
  • sdktools_stocks
  • sdktools_stringtables
  • sdktools_tempents
  • sdktools_tempents_stocks
  • sdktools_trace
  • sdktools_variant_t
  • sdktools_voice
  • sorting
  • sourcemod
  • string
  • testing
  • textparse
  • tf2
  • tf2_stocks
  • timers
  • topmenus
  • usermessages
  • vector
  • cstrike
  • CS_ItemDefIndexToID
File

CS_ItemDefIndexToID

Last Updated2017-11-03
Created At2017-11-03

Returns a CSWeaponID equivalent based on the item definition index.

Notes

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

native CSWeaponID CS_ItemDefIndexToID(int iDefIndex)

Parameters

int iDefIndex
Definition index to get the CSWeaponID value for.

Return Value

CSWeaponID Returns CSWeaponID value for the definition index.

Error

Invalid definition index.
Made with
1.4.0 b35d7e5 2026-09-25T02:06:02.447Z
by rumblefrog