get_keyvalue

Синтаксис

native get_keyvalue(entity, const szKey[], value[], maxLength);

Употреба

entity
Entity index
szKey
Key to retrieve value of
value
Buffer to copy value to
maxLength
Maximum size of buffer

Описание

Retrieves a value from an entities keyvalues.

Връщаща стойност

Number of cells written to buffer

Грешка

If an invalid entity index is provided or, if the index
is a client index, the client is not connected, an error
will be thrown.