`alt.LocalObject.all` contains nulls after resource restart
Description of the problem
alt.LocalObject.all getter returns array with nulls (non-destroyed objects before resource was stopped) after resource restart
old image, alt.LocalObject was named alt.Object before
Reproduction steps
- Execute this code
new alt.LocalObject(
'stt_prop_stunt_soccer_ball',
new alt.Vector3(0, 7, 72),
alt.Vector3.zero,
)
alt.log('alt.LocalObject.all:', alt.LocalObject.all)
- Restart resource
Expected behaviour
Objects should be removed from alt.LocalObject.all array after resource restart
Additional context
No response
Operating system
Windows 11
Version
15.0-dev291
Scope
client
Reproduction tested
- [X] I confirm that I have made sure that this issue is also present on the newest dev version
can't reproduce on latest dev using the following code:
new alt.Object('stt_prop_stunt_soccer_ball', new alt.Vector3(0, 7, 72), alt.Vector3.zero)
alt.log('alt.Object.all:', alt.Object.all.map((o) => o instanceof alt.Object))
before release of v15 alt.LocalObject was named alt.Object
@xLuxy is it fixed?
Read my message above.
xshady @.***> schrieb am Di., 30. Juli 2024, 16:49:
@xLuxy https://github.com/xLuxy is it fixed?
— Reply to this email directly, view it on GitHub https://github.com/altmp/altv-js-module/issues/281#issuecomment-2258541177, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQAFNNPXGNYHY7INFX3HAYLZO6RWJAVCNFSM6AAAAABLWI6DCSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJYGU2DCMJXG4 . You are receiving this because you were mentioned.Message ID: @.***>
@xLuxy did you read my message that followed yours? xd
before release of v15 alt.LocalObject was named alt.Object
on your screenshot its alt.Object, this issue is about alt.LocalObject