DurtyFree / alt-V-NativeUI

NativeUI for GTA V alt:V Multiplayer mod written in Javascript / TypeScript
https://altv.mp/
Apache License 2.0
48 stars 26 forks source link

NativeUI as dependency in another resource "NativeUI can not invoke without 'new'" #8

Closed Heady20006 closed 3 years ago

Heady20006 commented 3 years ago

Hey, ich tried to exclude the NativeUI resource from some ressources in on my server. Add it as dependency is working great. But if im trying to build my menu with NativeUI an error occurs:

[19:47:58][Error] [V8] Exception at NativeUI:client.js:468 [19:47:58][Error] let point = new NativeUI.Point(50,50); [19:47:58][Error] TypeError: Class constructor Point cannot be invoked without 'new'

https://prnt.sc/vdieoq

Do not know why. I am using 'new'.

DurtyFree commented 3 years ago

Please show full code file