Input

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()

Returns:

  • (number) Range 0-8.

Example Usage:

-- Example code showing how to use the function
local slot = player.input.getSelectedSlot()

silentUse(slot)

Returns:

  • (boolean) Return (true) if successfully.

Example Usage:

-- Example code showing how to use the function
local status = player.input.silentUse(0)

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)

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)

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)

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)

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)

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)

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)

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)

Parameters:

  • enable (boolean).

Returns:

  • (boolean) Return (true) if successfully.

Example Usage:

-- Example code showing how to use the function
player.input.setPressedUse(true)

isPressedSprinting()

Returns:

  • (boolean) Return (true) if pressed.

Example Usage:

-- Example code showing how to use the function
local pressed = player.input.isPressedSprinting()

isPressedJump()

Returns:

  • (boolean) Return (true) if pressed.

Example Usage:

-- Example code showing how to use the function
local pressed = player.input.isPressedJump()

isPressedSneak()

Returns:

  • (boolean) Return (true) if pressed.

Example Usage:

-- Example code showing how to use the function
local pressed = player.input.isPressedSneak()

isPressedForward()

Returns:

  • (boolean) Return (true) if pressed.

Example Usage:

-- Example code showing how to use the function
local pressed = player.input.isPressedForward()

isPressedBack()

Returns:

  • (boolean) Return (true) if pressed.

Example Usage:

-- Example code showing how to use the function
local pressed = player.input.isPressedBack()

isPressedLeft()

Returns:

  • (boolean) Return (true) if pressed.

Example Usage:

-- Example code showing how to use the function
local pressed = player.input.isPressedLeft()

isPressedRight()

Returns:

  • (boolean) Return (true) if pressed.

Example Usage:

-- Example code showing how to use the function
local pressed = player.input.isPressedRight()

isPressedAttack()

Returns:

  • (boolean) Return (true) if pressed.

Example Usage:

-- Example code showing how to use the function
local pressed = player.input.isPressedAttack()

isPressedUse()

Returns:

  • (boolean) Return (true) if pressed.

Example Usage:

-- Example code showing how to use the function
local pressed = player.input.isPressedUse()

Last updated