Sending CanFD frame

Does anyone know how to send a canfd frame? I was going through the libraries to try to figure it out but my methods don’t work.

I use the examples found here

And then I tried to set msg:canfd(true) but then the script crashes. Would appreciate any help