Skip to content

Game Crashes when Object pool reaches default max limit RedM #3261

Open
@outsider31000

Description

@outsider31000

What happened?

Game crashes when Object pool reachs the default limit 3000 items

Image

CfxCrashDump_2025_03_19_01_18_49.zip

Expected result

should not crash

Reproduction steps

spawn an object without avoidance flag to test it since that pool also crashes

Importancy

Unknown

Area(s)

RedM

Specific version(s)

1491

Additional information

local props = {}
RegisterCommand("testProp", function()
    RequestModel("alaskanginseng_p", false) -- no avoidance flag on this prop
    repeat Wait(0) until HasModelLoaded("alaskanginseng_p")

    local coords = GetEntityCoords(PlayerPedId())
    for i = 1, 3000 do
        local table = CreateObject("alaskanginseng_p", coords.x, coords.y, coords.z, false, false, false, false)
        props[#props + 1] = table
    end
    print("done")
end, false)

Metadata

Metadata

Assignees

No one assigned

    Labels

    RedMIssues/PRs related to RedMbugtriageNeeds a preliminary assessment to determine the urgency and required action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions