With Lua it works fine. JS what so ever works only on server side and client side is missing.
Why documentation is missleading or the feature not implemented on client side as well ?
And curious what could cause server not showing any errors?
If it’s a client script, of course server would not show any errors.
Why Lua then registers RegisterCommand from client script and JS not ?
And shouldn’t front end or something fail as well? or go through compiler?
Why are you specifying client_scripts(withs) but only a single script?
Because it will be using multiple files later on, doesn’t matter for array do I send one or x amount of strings
That doesn’t matter. Chat execute the same command in the end. And there can’t be issues with chat resource unless you did some changes. But yeah, it works too.
There’s no reason to guess what exactly you did wrong, just send related resource files so we can point mistake out quickly.
Sorry guys , figured all out now… starting from client_scripts.
As watching yt (might got it worse) and it used sendsnuimessage with type: 'ui' while in js you specify type which you will listen for which had to be type: 'message'
Even coding experience gets to do silly mistakes…
Thanks for pointing things out for start and now got it working