esbuild-plugin-altv-dev-server icon indicating copy to clipboard operation
esbuild-plugin-altv-dev-server copied to clipboard

Add full client side support

Open xxshady opened this issue 3 years ago • 3 comments

With full support it will be possible to fix problems such as:

  • early player emits from server after resource restart are not received on client (can be avoided now by increasing delay of the reconnectPlayers option)
  • clientside connect/disconnect events
  • clientside alt:V persistent meta is not cleared on resource stop
  • clientside may crash because of too fast hot reloads (probably fixable with sending custom "clientReady" event to server)
  • native call failures: createCamWithParams
  • add "res" command to client f8 console too
  • fix alt:V or gta bugs: https://github.com/altmp/altv-issues/issues/644 ~~https://github.com/altmp/altv-issues/issues/1146 https://github.com/altmp/altv-issues/issues/1174~~

xxshady avatar Mar 16 '22 14:03 xxshady

good idea

uncle-ara avatar Mar 16 '22 20:03 uncle-ara

I think it is better to create new esbuild plugin not only for development that will fix known altv/gta bugs by default and will also have "dev" mode, which will enable all the features that the current esbuild plugin has

xxshady avatar Apr 11 '22 07:04 xxshady

In the process of rewriting plugin i began to think that it was not a good idea to "hook" (monkey patch, if you will) alt:V api as it could lead to side effects or mislead people.

Thats why i won't fix these alt:V api bugs: https://github.com/altmp/altv-issues/issues/1146 https://github.com/altmp/altv-issues/issues/1174

xxshady avatar Jul 23 '22 16:07 xxshady