English New client screen resolution after change

No replies
Goto Page
To the start Previous 1 Next To the start
Up
AtomKuh
User
Offline Off
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:
Code:
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