Add full client side support
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
reconnectPlayersoption) - 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~~
good idea
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
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