Skip to content

SetPlayerObjectMaterial with custom models/textures #1072

@Dante-1337

Description

@Dante-1337

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions