fivem
fivem copied to clipboard
feat(resources/chat): Enable command toggleChat for RedM
allow command toggleChat for RedM users to be able to controll the chat window
an addSuggestion was also added for users to know what states does it have as well.
cfx forum thread of the request https://forum.cfx.re/t/allow-togglechat-for-redm-users/5158193
i added a thread for that reason so it doesnt mess with the rest it only waits for the function to be caled, but you also right it can be done differently yeah
This code needs to be cleaned up, before we can consider it. @Disquse could you tell me why toggleChat
is disabled for RedM?
I guess because RedM doesn't support RegisterKeyMapping
and other input hooks stuff, no idea.
Yeah RegisterKeymapping is not used in RedM. This is an issue for redm users i have to constantly tell them what they need to do to remove chat from always visible and since the command is non existente they have no other choice than to modify the script. @thorium-cfx
This feature is dependent on KeyMapping to be enabled on RedM, will consider this PR once that's added
@thorium-cfx That is why is outside of RDR scope it will only apply to fivem
as to before it wasn't
Closing this pr in reference to #2152 They are both for the same thing which is to allow RedM to use toggleChat command but #2152 has an extra feature a small optimisation and chat suggestion for that command. @Disquse