Cache
The default cache update timer is 10 seconds or when the current player ped changes.
Event name
plouffe_lib:cache
Structure
data.ped : the current player ped
data.pedCoords : the current player ped coords
data.gameTimer : the game timer update using GetGameTimer()Example
local ped = 0
AddEventHandler('plouffe_lib:cache', function(data)
ped = data.ped
end)