Skip to content

Native: removeWorldModel malfunctioning #3942

@ov-anisa

Description

@ov-anisa

Describe the bug

It appears that the removeWorldModel function is not functioning as expected when attempting to remove Level of Detail (LOD) models. However, it works correctly when removing non-LOD models. Further investigation may be necessary to identify the issue with LOD removal.

Steps to reproduce

Execute as below:

  1. crun setElementPosition(localPlayer, -59.2240104675293, -1420.678955078125, 29.0296802520752)
  2. start map_remover

Video: https://files.catbox.moe/e9unlg.mp4

We have identified an inconsistency with the removeWorldModel function that frequently exhibits unpredictable behavior. Additionally, attempts to resolve the issue by removing the camera/player from the stream and teleporting back have not been effective. Furthermore, invoking engineRestreamWorld(true) does not appear to mitigate the problem either.

In addition, while the native function removeAllGameBuildings performs as expected when it comes to the removal of Level of Details (LODs), it does not meet our requirements, as we need to selectively remove only specific portions of the default map.

Version

Client: Multi Theft Auto v1.6-release-22890
Server: MTA:SA Server v1.6-release-22892

Additional context

No response

Relevant log output

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions