native

custom_weapon_shot

Syntax

native custom_weapon_shot(weapon, index);

Description

Adds a shot event on a custom weapon to the internal stats.

Parameters

weapon Custom weapon id
index Client index

Return

This function has no return value.

Error

If the weapon id is not a custom weapon or an invalid client
index is provided, an error will be thrown.