The addhook 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