sv_chat.lua for okokChat - #207
Conversation
This sv_chat.lua file has been modified to support okokChat.
|
Use the built in chatmodes for this sort of thing. You don't need to edit the base resource. See #101 for examples. |
|
Oh wait, I thought you were trying to do an admin chat channel lol. What you are adding can be easily added in your own script using hooks there. There is no need to have this as part of the base resource. |
|
Oof |
|
As mentioned, base resources must be framework agnostic. |
|
You removed functionality from a default resource because it was not useful to you. That's a red flag already. Framework-specific code does not belong here, and no one on the forums will have told you so. This was likely a misinterpretation. We welcome additional default functionality or general improvements. Any change here must be relevant for everyone, not just those who use a subset of frameworks out there. |
|
adding "functionality" doesnt mean hardcoding your own logic in, instead providing a nice way of being able to handle that from other resources |
I'm not sure what causes that to happen, but that does not seem to originate from here.
Modifying a default resource to be compatible with your extension should not be necessary, and is highly discouraged. The built-in ACL system should be used.
This does not include removing existing functionality just because your resource doesn't need it. What they meant is that framework-agnostic changes are accepted, not this.
Convars, built-in ACL system, anything that doesn't depend on external frameworks. |
|
Chat modes/message hooks are already an API that exists and the first reply to this PR of yours mentioned that, as did the post you are quoting. Also, this PR by itself would break stuff for anyone not using 'esx' or 'qbcore' and removes random other stuff unconditionally so it's entirely the opposite of 'making an API to handle stuff if it's not implemented yet'. |
Changed sv_chat.lua join and leave message to okokChat with possibility to choose if only admins can see them.
Removed message sent when typing no command.