altv-issues
altv-issues copied to clipboard
Ability to destroy the VirtualEntityGroup
Description of the problem
Take a look at reproduction steps.
Reproduction steps
const virEntGrp = new alt.VirtualEntityGroup(128);
virEntGrp.destroy();
// [17:49:01][Error] Cannot destroy Virtual Entity Group
Expected behaviour
Should remove the VirtualEntityGroup completely.
Additional context
No response
Operating system
Windows 10
Version
dev/15.0-dev442
Crashdump ID
No response
Reproduction tested
- [X] I confirm that I have made sure that this issue is also present on the newest dev version
Virtual entity group destroy isnt planned atm.
Use case: destroying all baseobjects on resource stop, for scripting hot reload, great example of this: https://github.com/xxshady/altv-esbuild + visual demo