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

Blips and objects are not destroyed on resource stop clientside

Open xxshady opened this issue 3 years ago • 1 comments
trafficstars

Description of the problem

If you create blip or object clientside it will not be destroyed when resource stops. WebView is destroyed, same as Checkpoint.

Reproduction steps

const blip = new alt.PointBlip(0, 0, 0) // not destroyed
const obj = new alt.Object("sm_prop_smug_crate_s_jewellery", alt.Player.local.pos, alt.Vector3.zero) // not destroyed
const webview = new alt.WebView("google.com") // will be destroyed

Expected behaviour

All baseobjects should be destroyed on resource stop to keep the consistency of the API.

Additional context

No response

Operating system

Windows 11

Version

13.0-dev12

xxshady avatar Aug 26 '22 19:08 xxshady

Confirmed on 13.0-dev13

litolax avatar Aug 28 '22 14:08 litolax

Needs a change in SDK because currently blips and objects are created without an associated resource

LeonMrBonnie avatar Nov 07 '22 23:11 LeonMrBonnie

Will be fixed in dev/14.0-dev55

C0kkie avatar Feb 27 '23 22:02 C0kkie