native

zpn_item_set_prop

Syntax

native zpn_item_set_prop(const item_id, ePropItemRegisters:prop, any:...);

Description

Sets an extra item property.

Parameters

item_id Extra item index
prop Property to set, from ePropItemRegisters
... New property value

Note

The expected value type depends on the property. See
ePropItemRegisters in zombie_plague_next_const.inc.

Return

1 on success, 0 if item storage is unavailable

Error

If item_id is not a valid extra item index, an error can be
thrown by the underlying array access.