CS_GetWeaponPrice Function

Gets a weapon's price

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

Parameters

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)

Errors

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

Notes

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