Texture doesnt load in object
#1

I want make some los santos terrain be snow, so i texture it.

I dont know whats the problem, but only load the object, not the texture

code:

PHP код:
 CreateDynamicObject(131471945.10156, -325.2656329.92656,   356.858400.000003.14159); 
         
SetObjectMaterial(1314703902"libertyhi3""mp_snow"0xFFFFFFFF); 
Reply
#2

You are not using SetObjectMaterial correctly
Код:
SetObjectMaterial(objectid, materialindex, modelid, txdname[], texturename[], materialcolor)
objectid is NOT modelid
And, as you are using CreateDynamicObject, you must use SetDynamicObjectMaterial

PHP код:
new obj CreateDynamicObject(131471945.10156, -325.2656329.92656,   356.858400.000003.14159);  
SetDynamicObjectMaterial(obj03902"libertyhi3""mp_snow"0xFFFFFFFF); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)