Skip to content

cache_get_field_name

imshooter edited this page Nov 29, 2026 · 1 revision

The name of a field of the active cache.

native bool:cache_get_field_name(field_index, destination[], max_len = sizeof (destination));

With open.mp names, from the same include:

native bool:Cache_GetFieldName(field_index, destination[], max_len = sizeof (destination));

Parameters

Parameter Description
field_index The field, from 0.
destination[] Array for the name.
max_len = sizeof (destination) Size of the array.

Returns

  • true when it was written.
  • false when no cache is active, or the field does not exist.

Home

Guides

Reference

Functions

Connections
Queries
Cache
JSON cells
ORM
Queries built in pieces
Prepared statements
Batches
Transactions
Passwords
Callbacks

Clone this wiki locally