Skip to content

engineRequestModel returns the texture names/elements of its parent ID when requested #2630

Open
@MrSol0

Description

@MrSol0

Describe the bug

This bug relates to getting textures of a model generated by engineRequestModel, the issue is that engineGetVisibleTextureNames & engineGetModelTextures & engineGetModelTextureNames return textures of the ParentID of the model instead of the model itself.

Steps to reproduce

1- engineRequestModel with model id for example 579
2- get a new vehicle mod and replace the id generated from step 1, for example if you get model id 3 then engineLoadDFF & engineLoadTXD model 3 with any mod available online.
3- use for example engineGetModelTextureNames("3")
4- you will get textures of parent vehicle model 579 instead of the mod you replaced on model 3.

Version

No response

Additional context

No response

Relevant log output

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.

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