multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.41k stars 435 forks source link

Crash after engineRestoreModel #3396

Open szymon020 opened 4 months ago

szymon020 commented 4 months ago

Describe the bug

image

Steps to reproduce

Lua code:

engineImportTXD(engineLoadTXD("models/chnsaw.txd"), 341) engineReplaceModel(engineLoadDFF("models/chnsaw.dff"), 341) engineImportTXD(engineLoadTXD("models/jetpack.txd"), 370) engineReplaceModel(engineLoadDFF("models/jetpack.dff"), 370) engineImportTXD(engineLoadTXD("models/skin311.txd"), 311) engineReplaceModel(engineLoadDFF("models/skin311.dff"), 311) engineImportTXD(engineLoadTXD("models/bandito.txd"), 568) engineReplaceModel(engineLoadDFF("models/bandito.dff"), 568)

engineRestoreModel(311) engineRestoreModel(341) engineRestoreModel(370) engineRestoreModel(568)

Version

Client: v.1.6.0-release-22388 (Windows 11, 64-bit) Server: v.1.6.0-release-22396 x64

Additional context

No response

Relevant log output

No response

Security Policy

Lpsd commented 4 months ago

Please provide more information.

Can you reproduce this issue consistently? Does it only happen after replacing a model with a specific DFF file?

Are you able to provide a basic reproduction resource?

szymon020 commented 4 months ago

Please provide more information.

Can you reproduce this issue consistently? Does it only happen after replacing a model with a specific DFF file?

Are you able to provide a basic reproduction resource?

done