native
zp_items_register
Syntax
native zp_items_register(const name[], cost)
Description
Registers a custom item which will be added to the extra items menu of ZP.
Note: The returned item ID can be later used to catch item
selection events for the zp_item_select_() forwards.
Parameters
| name | Caption to display on the menu. |
|---|---|
| cost | Cost to display on the menu. |
Return
An internal item ID, or ZP_INVALID_ITEM on failure.