Cache

Supported value type

  • Ped

  • Vehicle

  • Object

  • Blip

  • ScenarioPoint

Init cache

local cache = Cache()

Add a value to the cache

--- Add a value to the cache
---@param key string
---@param value any
---@return any
function Cache:Add(key, value)

Return wether a value exists

Get a value from cache

Clear a cache value

Clear the cache

Last updated