mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 23:46:03 +01:00
2
init.lua
2
init.lua
@@ -185,7 +185,7 @@ local cache = setmetatable({ game = GetGameName(), resource = resourceName }, {
|
|||||||
__call = function(self, key, func, timeout)
|
__call = function(self, key, func, timeout)
|
||||||
local value = rawget(self, key)
|
local value = rawget(self, key)
|
||||||
|
|
||||||
if not value then
|
if value == nil then
|
||||||
value = func()
|
value = func()
|
||||||
|
|
||||||
rawset(self, key, value)
|
rawset(self, key, value)
|
||||||
|
|||||||
Reference in New Issue
Block a user