24.06.2020, 04:07
Hey guys, I am trying to create unbreakable atm machines, after a bit of research I see you need to set the Object Material, however this isn't working as it once used to, as I can drive into it, or punch it and it breaks.
would be nice to know how this works, thanks in advance.
Code:
DynamicAtms[atmid][ObjectID] = CreateDynamicObject(DynamicAtms[atmid][ModelID], DynamicAtms[atmid][PosX], DynamicAtms[atmid][PosY], DynamicAtms[atmid][PosZ], 0.0, 0.0, 0.0, 0, 0, -1, 100.0); SetDynamicObjectMaterialText(DynamicAtms[atmid][ObjectID],0,"None",50," Arial",24,0,0,0,1);