CS_GetWeaponPrice Function

Gets a weapon's price

int CS_GetWeaponPrice(int client, CSWeaponID id, bool defaultprice)


int client

Client to check weapon price for.

CSWeaponID id

Weapon id for the weapon to check

bool defaultprice

Set to true to get defaultprice.

Return Value

Returns price of the weapon (even if modified)


Invalid client, failing to get weapon info, or failing to get price offset.


c4, knife and shield will always return 0. vest, vest helmet and night vision will always return default price.