Forum

> > CS2D > Scripts > New client screen resolution after change
Forums overviewCS2D overview Scripts overviewLog in to reply

English New client screen resolution after change

No replies
To the start Previous 1 Next To the start

old New client screen resolution after change

AtomKuh
User Off Offline

Quote
I would like to get the new screen resolution by a player who just changed them in their settings.

The addhook cs2d lua hook clientsetting only returns the old resolution. This means it always returns the resolution that the player joined the server with.

I face the identical problem with the following commands:
local new_screen_width = player(id,"screenw")
local new_screen_height = player(id,"screenh")

This way I also get always the old resolution...

It seems to be a bug... Is there any other way to get the new screen resolution?

> EDIT: It works on a dedicated server... √
edited 4×, last 16.03.23 01:15:03 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview