RaweTrip
  • Welcome
  • Official Discord
  • Useful information
    • πŸ”ŒFor beginners
    • β™ŸοΈCommon knowledge
    • πŸ“šExamples
      • βš™οΈTab system
      • βš™οΈUI Interaction
      • βš™οΈClantag
      • βš™οΈWireframe smoke
  • documentation
    • ⛓️Common
      • πŸ“žCallbacks list
    • βš™οΈVariables
      • πŸ‘€esp
      • πŸ“œplist
      • πŸ”«weapon
      • ⚑vector
      • 🎨color
      • πŸŽ“cheat
      • πŸ’»ui
      • πŸ™οΈrender
      • πŸšΆβ€β™‚οΈentity
      • 🌎globalvars
      • πŸ› οΈengine
      • πŸ”©utils
      • πŸ–₯️console
      • πŸ”‘base64
      • πŸ“ bit
      • πŸ—ƒοΈfile
      • πŸ“Άhttp
      • βœ‰οΈchat
      • 〽️animate
      • 🧱materials
      • πŸ”§steam
      • ✈️trace
      • πŸ”—interfaces
        • πŸ’‘ieffects
        • 🧬precache
        • πŸ’³model_info
    • πŸ”’Enumerations
      • 🎞️enum_frames
Powered by GitBook
On this page
  • Functions:
  • get_choked_commands
  • get_clipboard
  • set_clipboard
  • get_active_key
  • get_cursor_position
  • mouse_rect
  • get_mouse_scroll
  1. documentation
  2. Variables

utils

PreviousengineNextconsole

Last updated 2 years ago

Functions:

get_choked_commands

utils.get_choked_commands(): number

Returns the number of choked commands.

get_clipboard

utils.get_clipboard(): string

Returns from the clipboard.

set_clipboard

utils.set_clipboard(text: string)

Name
Type
Description

text

string

text

Sets the text to the clipboard.

get_active_key

utils.get_active_key(key: number): boolean

Name
Type
Description

key

number

Key to check

Returns true, if the button is active.

get_cursor_position

utils.get_cursor_position(): vector_2d

Returns the current mouse position.

mouse_rect

utils.mouse_rect(x: number, y: number, width: number, height: number): boolean

Name
Type
Description

x

number

X position

y

number

width

number

height

number

Returns if the mouse is at the specified position.

get_mouse_scroll

utils.get_mouse_scroll(): number

Returns -1.0 if the mouse wheel is spinning down, 1.0 if the mouse wheel is spinning up, and 0.0 if the mouse wheel is not rotating.

βš™οΈ
πŸ”©
Virtual-Key Codes (Winuser.h) - Win32 appsdocsmsft
Logo