David_Letzelter Posted February 21, 2022 Posted February 21, 2022 Hi, First sorry if my english is bad, I'm french. I would like to change the text size on my gamemode with a command, like this : How to do that ? I first searched on forums and google, but I didn't find much informations, except 2-3 topics, but they don't work with my gamemode because there are not with a command and there are for default chat system. It's a little gamemode, but I don't use default chat system (SetGlobalServerChat is false) : I'm a decent C# developer, but with web langages like JS, css, etc, I don't know everything, I don't know how to do, but 2-3 topics I found are about JS, css, etc, I don't know how it's work. Thanks in advance to anyone who tries to help me.
David_Letzelter Posted February 28, 2022 Author Posted February 28, 2022 Up, and if my topic isn't in good path, can you move it in good path please ?
Kopra Posted March 3, 2022 Posted March 3, 2022 (edited) You will need custom chat for that, then you can manipulate CSS to change font-size. If you want to check how default chat works and make your own, go to rage installation folder > ui Also it may be worth looking at this resource: Edited March 3, 2022 by Kopra
David_Letzelter Posted March 4, 2022 Author Posted March 4, 2022 13 hours ago, Kopra said: You will need custom chat for that, then you can manipulate CSS to change font-size. If you want to check how default chat works and make your own, go to rage installation folder > ui Also it may be worth looking at this resource: Hi, thank for your help, but this resource is in JS, it's don't work with my C# gamemode, I have a error, and maybe other when I will do other commands in C#. Is it possible to individually save chat settings (text size, timestamp, etc) ?
Kopra Posted March 4, 2022 Posted March 4, 2022 It does not work because mp.players.broadcast is server-side api. Even if working with C# you can still use JS resources, you are not limited in any way. This resource can easily be converted in C# because 95% of the code is in CEF. Chat is CEF, basically a web page that you show to a player so you will have to use CSS-JS-HTML manipulation.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now