altmp / altv-client-js

Official clientside JavaScript runtime for alt:V
6 stars 7 forks source link

Fix dynamic import after resource restart #25

Closed LeonMrBonnie closed 3 years ago

LeonMrBonnie commented 3 years ago

Make use of the cpp sdk function to retrieve all resources for a specified type when it's available.

Yes, my bad. This was supposed to be a draft until then.

vadzz-dev commented 3 years ago

Can you add a check so res is not equal to currently stopping resource. Like importing yourself is not the thing that should ha0pen but you know