analyzing it a little further, I realized that when using the code above, this was happening:
__cfx_functionReference: rvn:491:28
which leads me to believe that it is referencing the methods and not creating copies, which in my mind leads me to believe that there would be no problems, I am analyzing the code available on github to see if I find anything else
the method below helped me, it’s the fivem standard:
function Citizen.GetFunctionReference(func)
if type(func) == 'function' then
return MakeFunctionReference(func)
elseif type(func) == 'table' and rawget(func, '__cfx_functionReference') then
return MakeFunctionReference(function(...)
return func(...)
end)
end
return nil
end