[HELP] spawn animated object in script

Hey

I have an animated object which spawns with a ymap but isnt animated anymore when I use CreateObject.

Is there a way to keep it anymated when creating the object?

Thanks