Lua Events/OnResolutionChange

From PZwiki



Event

OnResolutionChange

Description

Triggered when game resolution has changed.

Parameters

  • Integer The old width of the screen.
  • Integer The old height of the screen.
  • Integer The new width of the screen.
  • Integer The new height of the screen.

Examples

local function OnResolutionChange(oldWidth, oldHeight, newWidth, newHeight)
	-- Your code here
end

Events.OnResolutionChange.Add(OnResolutionChange)

See also

No related event.