native

zpn_item_get_prop

Syntax

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

Description

Retrieves an extra item property.

Parameters

item_id Extra item index
prop Property to retrieve, from ePropItemRegisters
... Output buffer and length for string properties

Note

For string properties, pass an output buffer and its maximum length
after the property id.

Return

Property value for scalar properties, 1 for copied string
properties, or 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.