native
get_keyvalue
Syntax
native get_keyvalue(entity, const szKey[], value[], maxLength);
Description
Retrieves a value from an entities keyvalues.
Parameters
| entity | Entity index |
|---|---|
| szKey | Key to retrieve value of |
| value | Buffer to copy value to |
| maxLength | Maximum size of buffer |
Return
Number of cells written to buffer
Error
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.