Well done Bonsai, it helped me a lot, but the Wrapper does not work on map using custom scripts, it crashes MTA
_setTimer = setTimer
function setTimer(...)
timer = _setTimer(...)
table.insert(wrapper.timers, timer)
return timer
end
This part returns a "Not enough memory" error...
I'd try to fix it but I don't understand how works Wrappers, did you have a solution ?