mtasa-blue
mtasa-blue copied to clipboard
Crash in EngineRequestModel/EngineFreeModel with blowVehicle
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.