Mapping assistance.
#1

So i've been told the MTA map editor can change the texture of objects? is that true if so how to do it?

Also i've went into my script after mapping with samp editor and would like to change the texture but no idea how i've tried this code but nothing happens when i join the localhost I have. The objects I want changed doesn't actually change so yea help please.

SetObjectMaterial(1408, 0, 0, "sfn_byofficeint", "CJ_LIGHTWOOD", 0xFFFFFFFF);
Reply
#2

https://sampwiki.blast.hk/wiki/SetObjectMaterial

One example:

PHP код:
myobject CreateObject(19371XYZ+0.50.00.00.0300.0);
SetObjectMaterial(myobjectmaterialindexmodelidtxdname[], texturename[], materialcolor); 
Second example:

PHP код:
SetObjectMaterial(CreateObject(19371XYZ+0.50.00.00.0300.0), materialindexmodelidtxdname[], texturename[], materialcolor); 
As first param "objectid" you can't use ID of object just, it is meant for created object ID (createobject...).
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)