Skip to content

cache_set_active

imshooter edited this page Nov 29, 2026 · 1 revision

Make a saved cache the active one, until the public that runs returns, or until another is chosen.

native bool:cache_set_active(Cache:cache_id);

With open.mp names, from the same include:

native bool:Cache_SetActive(Cache:cache_id);

Parameters

Parameter Description
Cache:cache_id The cache.

Returns

  • true when it is active.
  • false when it 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