native

rg_give_custom_item

Syntax

native rg_give_custom_item(const index, const pszName[], GiveType:type = GT_APPEND, const uid = 0);

Description

Gives the player an custom item, this means that don't handled API things.

Parameters

index Client index
pszName Item classname
type Look at the enums with name GiveType
uid Sets a unique index for the entity

Example

rg_give_custom_item(id, "weapon_c4"); doesn't sets the member m_bHasC4 to true, as the rg_give_item does.

Return

Index of entity if successfull, -1 otherwise