zp_items_force_buy

Syntax

native zp_items_force_buy(id, itemid, ignorecost = false)

Usage

id
Player index.
itemid
A valid extra item ID.
ignorecost
If set, item's cost won't be deduced from player.

Description

Forces a player to buy an extra item.

Return

True on success, false otherwise.