cod_register_item

Syntax

native cod_register_item(const name[], const desc[], valueMin = 0, valueMax = 0, flag = NONE);

Usage

name
Item name
desc
Item description
valueMin
Mininum value for item (used for random value)
valueMax
Maximum value for item (used for random value)
flag
Item access flag

Description

Registers new item.

Return

Item index