We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
currently you cannot set statebags to a local entity in RedM like you can in FiveM
able to set it just like in FiveM
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.
Slight inconvenience
RedM
8823/7400
Tested on production and canary same results.
The text was updated successfully, but these errors were encountered:
seems like this isn't an issue because the feature just isn't available for RedM. so I'll just close it.
Sorry, something went wrong.
No branches or pull requests
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
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.
The text was updated successfully, but these errors were encountered: