Garry's Mod Wiki

GM:OnScreenSizeChanged

GM:OnScreenSizeChanged( number oldWidth, number oldHeight )

Just Added

This was just added in the latest version (2020.04.29). It might only be available on the Dev Branch right now.

Description

Called when the player's screen resolution of the game changes.

ScrW and ScrH will return the new values when this hook is called.

Arguments

1 number oldWidth
The previous width of the game's window
2 number oldHeight
The previous height of the game's window

Page Links


Special Pages


Wikis

?

Render Time: 40ms

DB GetPage 3
Generate Html 8
SaveChanges (1) 14
Render Body 0
Render Sidebar 13