How to set Material on VehicleSkeletalMesh GetMesh()->SetMaterial() dont work

Hi, I want to hard code material on vehicle, I can do same thing on my actor no problem but I can’t get to work on vehicle GetMesh()->SetMaterial() dont work do I need to somehow cast to PrimitiveComponent ?
I was try but didn’t have success, if someone can gave me example how to do it, I’ll be very grateful

I solved my problem the problem was some naming conflicts.