altmp / altv-types

Type definitions for the alt:V JavaScript modules.
https://www.npmjs.com/~vadzz
MIT License
29 stars 73 forks source link

Separate package for AltV Enums to be used in browser/webview clients. #301

Open yannickboy15 opened 4 months ago

yannickboy15 commented 4 months ago

Hey there,

I wanted to drop a feature request to create a new package or add it to the current webview types for the AltV enums. It'd be nice to have things like Vector3, which are shared on AltV also available in the webview types. Right now I have custom converters and such, which is not really nice as those values are shared and should work without a hazzle for a webview.

Would it be possible to have a solution for that discussed? If it's either a package or an include into the webview types.

xxshady commented 3 months ago

It'd be nice to have things like Vector3

why do you need it in webview? you cant create or receive it from clientside there anyway

yannickboy15 commented 3 months ago

It'd be nice to have things like Vector3

why do you need it in webview? you cant create or receive it from clientside there anyway

Does that mean I'm able to include the clientside to the webviews and have functioning types? Wouldn't this conflict/cause issues with possible data given from server side to it? If not, I'll do that instead yea.

xxshady commented 2 months ago

what do you mean?