IsAltPressed

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
IsAltPressed

Type: Function
Context: Client
Introduced: v1.0

Description

Check if the client has pressed the Alt key

Syntax

IsAltPressed()

Parameters

  • This function has no parameters.

Return Value

  • Returns true if pressed, otherwise false

Example

AddEvent("OnKeyPress", function(key)
	if IsAltPressed() and key == 'R' then
		AddPlayerChat("You have pressed Alt + R")
	end
end)

See also