altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

Ability to destroy the VirtualEntityGroup

Open mrgharabaghi opened this issue 2 years ago • 2 comments

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

mrgharabaghi avatar Jul 31 '23 17:07 mrgharabaghi

Virtual entity group destroy isnt planned atm.

FabianTerhorst avatar Jul 31 '23 17:07 FabianTerhorst

Use case: destroying all baseobjects on resource stop, for scripting hot reload, great example of this: https://github.com/xxshady/altv-esbuild + visual demo

xxshady avatar Sep 04 '23 12:09 xxshady