open.mp
open.mp copied to clipboard
SetPlayerObjectMaterial with custom models/textures
trafficstars
Describe the bug Unable to use SetPlayerObjectMaterial with textures from server DFFs/TXDs.
To Reproduce
AddSimpleModel(-1, 19379, -5001, "myModel1.dff", "myTxd1.txd");
AddSimpleModel(-1, 19379, -5002, "myModel2.dff", "myTxd2.txd");
...
myObject = CreatePlayerObject(playerid, -5001, x, y, z, 0.0, 0.0, 0.0, 300.0);
SetPlayerObjectMaterial(playerid, myObject, 0, -5002, "mytxd2", "myTexture", 0xFFFFFFFF);
Expected behavior I expected to be able to use textures from custom txds the same as i would use them from the game txds.
Release version OMP v1.4.0.2779