altmp / altv-issues

Issues and roadmap for alt:V project
93 stars 17 forks source link

Ability to destroy the VirtualEntityGroup #1931

Open mrgharabaghi opened 12 months ago

mrgharabaghi commented 12 months ago

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

FabianTerhorst commented 12 months ago

Virtual entity group destroy isnt planned atm.

xxshady commented 10 months ago

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