Input
setSelectedSlot(slot)
setSelectedSlot(slot)Parameters:
slot(number) (0-8 range).
Returns:
(boolean) Return true if successfully.
Example Usage:
-- Example code showing how to use the function
local status = player.input.setSelectedSlot(0)getSelectedSlot()
getSelectedSlot()Returns:
(number) Range 0-8.
Example Usage:
-- Example code showing how to use the function
local slot = player.input.getSelectedSlot()silentUse(slot)
silentUse(slot)Returns:
(boolean) Return true if successfully.
Example Usage:
-- Example code showing how to use the function
local status = player.input.silentUse(0)leftClick()
leftClick()Returns:
(boolean) Return true if successfully.
Example Usage:
-- Example code showing how to use the function
local status = player.input.leftClick()rightClick()
rightClick()Returns:
(boolean) Return true if successfully.
Example Usage:
-- Example code showing how to use the function
local status = player.input.rightClick()setPressedSprinting(enable)
setPressedSprinting(enable)Parameters:
enable(boolean).
Returns:
(boolean) Return true if successfully.
Example Usage:
-- Example code showing how to use the function
player.input.setPressedSprinting(true)setPressedJump(enable)
setPressedJump(enable)Parameters:
enable(boolean).
Returns:
(boolean) Return true if successfully.
Example Usage:
-- Example code showing how to use the function
player.input.setPressedJump(true)setPressedSneak(enable)
setPressedSneak(enable)Parameters:
enable(boolean).
Returns:
(boolean) Return true if successfully.
Example Usage:
-- Example code showing how to use the function
player.input.setPressedSneak(true)setPressedForward(enable)
setPressedForward(enable)Parameters:
enable(boolean).
Returns:
(boolean) Return true if successfully.
Example Usage:
-- Example code showing how to use the function
player.input.setPressedForward(true)setPressedBack(enable)
setPressedBack(enable)Parameters:
enable(boolean).
Returns:
(boolean) Return true if successfully.
Example Usage:
-- Example code showing how to use the function
player.input.setPressedBack(true)setPressedLeft(enable)
setPressedLeft(enable)Parameters:
enable(boolean).
Returns:
(boolean) Return true if successfully.
Example Usage:
-- Example code showing how to use the function
player.input.setPressedLeft(true)setPressedRight(enable)
setPressedRight(enable)Parameters:
enable(boolean).
Returns:
(boolean) Return true if successfully.
Example Usage:
-- Example code showing how to use the function
player.input.setPressedRight(true)setPressedAttack(enable)
setPressedAttack(enable)Parameters:
enable(boolean).
Returns:
(boolean) Return true if successfully.
Example Usage:
-- Example code showing how to use the function
player.input.setPressedAttack(true)setPressedUse(enable)
setPressedUse(enable)Parameters:
enable(boolean).
Returns:
(boolean) Return true if successfully.
Example Usage:
-- Example code showing how to use the function
player.input.setPressedUse(true)isPressedSprinting()
isPressedSprinting()Returns:
(boolean) Return true if pressed.
Example Usage:
-- Example code showing how to use the function
local pressed = player.input.isPressedSprinting()isPressedJump()
isPressedJump()Returns:
(boolean) Return true if pressed.
Example Usage:
-- Example code showing how to use the function
local pressed = player.input.isPressedJump()isPressedSneak()
isPressedSneak()Returns:
(boolean) Return true if pressed.
Example Usage:
-- Example code showing how to use the function
local pressed = player.input.isPressedSneak()isPressedForward()
isPressedForward()Returns:
(boolean) Return true if pressed.
Example Usage:
-- Example code showing how to use the function
local pressed = player.input.isPressedForward()isPressedBack()
isPressedBack()Returns:
(boolean) Return true if pressed.
Example Usage:
-- Example code showing how to use the function
local pressed = player.input.isPressedBack()isPressedLeft()
isPressedLeft()Returns:
(boolean) Return true if pressed.
Example Usage:
-- Example code showing how to use the function
local pressed = player.input.isPressedLeft()isPressedRight()
isPressedRight()Returns:
(boolean) Return true if pressed.
Example Usage:
-- Example code showing how to use the function
local pressed = player.input.isPressedRight()isPressedAttack()
isPressedAttack()Returns:
(boolean) Return true if pressed.
Example Usage:
-- Example code showing how to use the function
local pressed = player.input.isPressedAttack()isPressedUse()
isPressedUse()Returns:
(boolean) Return true if pressed.
Example Usage:
-- Example code showing how to use the function
local pressed = player.input.isPressedUse()Last updated