Jump to content

Recommended Posts

Posted

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) :

06498ae36d50cc1ba7f2e2f4f1b6495f.png

ade87b43669411687f8d895d983d42e0.png

681ae7639b4b3be86cb8511a307b85a7.png

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.
 

Posted (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 by Kopra
Posted
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) ?

 

4e419857fdaf58de7e988f9f9b670c06.jpg

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...