new Obj = CreateDynamicObject(19005, 370.39343, 2512.93384, 15.56232, 0.00000, 0.00000, 0.00000); SetDynamicObjectMaterial(Obj, 0, 18956, \"matclothes\", \"BandanaElec\", 0);
materialindex The material index on the object to change
//tesztnew teszt = CreateDynamicObject(1632, 389.62848, 2494.92749, 16.97480, 0.00000, 0.00000, 0.00000); SetDynamicObjectMaterial(teszt, 0, 18827, \"mattextures\", \"multi086\", 0); SetDynamicObjectMaterial(teszt, 2, 18827, \"mattextures\", \"multi086\", 0); SetDynamicObjectMaterial(teszt, 3, 18827, \"mattextures\", \"multi086\", 0); SetDynamicObjectMaterial(teszt, 4, 18827, \"mattextures\", \"multi086\", 0); SetDynamicObjectMaterial(teszt, 5, 18827, \"mattextures\", \"multi086\", 0); SetDynamicObjectMaterial(teszt, 6, 18827, \"mattextures\", \"multi086\", 0); SetDynamicObjectMaterial(teszt, 7, 18827, \"mattextures\", \"multi086\", 0); SetDynamicObjectMaterial(teszt, 8, 18827, \"mattextures\", \"multi086\", 0); SetDynamicObjectMaterial(teszt, 9, 18827, \"mattextures\", \"multi086\", 0);