Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

statebag local entities Issue with RedM #2646

Closed
outsider31000 opened this issue Jul 17, 2024 · 1 comment
Closed

statebag local entities Issue with RedM #2646

outsider31000 opened this issue Jul 17, 2024 · 1 comment
Labels
bug RedM Issues/PRs related to RedM

Comments

@outsider31000
Copy link

What happened?

currently you cannot set statebags to a local entity in RedM like you can in FiveM

Expected result

able to set it just like in FiveM

Reproduction steps

local ped = 0
RegisterCommand("test", function()
    if ped > 0 then
        print(Entity(ped).state.MyHorse)
        DeleteEntity(ped)
        Entity(ped).state.MyHorse = nil
        ped = 0
        return
    end
    RequestModel(`a_c_horse_americanpaint_overo`, false)
    repeat Wait(0) until HasModelLoaded(`a_c_horse_americanpaint_overo`)
    local offset = GetOffsetFromEntityInWorldCoords(PlayerPedId(), 0.0, 2.0, -1.0)
    ped = CreatePed(`a_c_horse_americanpaint_overo`, offset.x, offset.y, offset.z, 0.0, false, false, false, false)
    repeat Wait(0) until DoesEntityExist(ped)
    SetRandomOutfitVariation(ped, true)
    Entity(ped).state:set("MyHorse", "Horse", false)
    print(Entity(ped).state.MyHorse)
end, false)

just run this code and it will print nil.

Importancy

Slight inconvenience

Area(s)

RedM

Specific version(s)

8823/7400

Additional information

Tested on production and canary same results.

@outsider31000 outsider31000 added bug triage Needs a preliminary assessment to determine the urgency and required action labels Jul 17, 2024
@github-actions github-actions bot added the RedM Issues/PRs related to RedM label Jul 17, 2024
@outsider31000
Copy link
Author

seems like this isn't an issue because the feature just isn't available for RedM. so I'll just close it.

@github-actions github-actions bot removed the triage Needs a preliminary assessment to determine the urgency and required action label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug RedM Issues/PRs related to RedM
Projects
None yet
Development

No branches or pull requests

1 participant