mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

Crash in EngineRequestModel/EngineFreeModel with blowVehicle

Open tryangelic opened this issue 6 months ago • 0 comments

Describe the bug

It results in a crash when the vehicle is exploded, destroyed, and finally uses engineFreeModel to deallocate it. Testing on repositories is well done, and this current standard result causes a crash. I used destroyElement, setTimer, and engineFreeModel on an object; the result is no crash.

I tested with engineFreeModel before destroyElement, but it still results in a crash

Steps to reproduce

local localX, localY, localZ = getElementPosition(localPlayer)
local a = createVehicle(400, localX, localY + 5, localZ)
local c = engineRequestModel("vehicle")
setElementModel(a, c)
setTimer(blowVehicle, 3000, 1, a)
setTimer(destroyElement, 5000, 1, a)
setTimer(engineFreeModel, 7000, 1, c)

Version

Client: v1.7-untested-26582 (Windows 10, 64-bit)

Additional context

No response

Relevant log output


Security Policy

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

tryangelic avatar May 10 '26 05:05 tryangelic