open.mp icon indicating copy to clipboard operation
open.mp copied to clipboard

SetPlayerObjectMaterial with custom models/textures

Open Dante-1337 opened this issue 7 months ago • 0 comments
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

Dante-1337 avatar Apr 07 '25 11:04 Dante-1337