cod_set_user_item

Syntax

native cod_set_user_item(id, item = 0, value = RANDOM, force = false);

Usage

id
Player index
item
Item index
value
Item value
force
Disable restrictions

Description

Sets player item with value.

Note

Set item index to 0 to remove player item.

Note

Set item index to RANDOM (-3) to give random item.

Note

Set value to RANDOM (-3) to set random value.

Note

COD_STOP (4) will be returned if item is not random and cannot be set.

Return

This function has no return value.