Skip to content

Using a weapon model id for engineRequestModel and then replacing it crashes the game (0x00004C95) #4241

Open
@PlatinMTA

Description

@PlatinMTA

Describe the bug

Asking for an "object" id with a parent thats a weapon model and then replacing it will crash the game with offset 0x00004C95

Game will also crash when you try to spawn said allocated model. For some reason it crashes twice (first time, then it crashes again when you try to join again the server for the second time), but that might just be a perk of my server.

Steps to reproduce

local id = engineRequestModel("object", 359)
local txd = engineLoadTXD("file.txd")
engineImportTXD(txd, id)
local dff = engineLoadDFF("file.dff")
engineReplaceModel(dff, id)

Version

Client 1.6-release-23183.0.000

Additional context

No response

Relevant log output

** -- Unhandled exception -- **

Version = 1.6-release-23183.0.000
Time = Mon Jun  2 17:58:37 2025
Module = C:\ProgramData\MTA San Andreas All\1.6\GTA San Andreas\gta_sa.exe
Code = 0xC0000005
Offset = 0x00004C95

EAX=7E144BF2  EBX=00000016  ECX=5A7529A0  EDX=0085BD78  ESI=008EAAF8
EDI=D995EEE8  EBP=7E144BF2  ESP=0177EFB8  EIP=00404C95  FLG=00010297
CS=0023   DS=002B  SS=002B  ES=002B   FS=0053  GS=002B

** -- End of unhandled exception -- **

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