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_screen_size
  • get_level_name
  • get_level_name_short
  • get_map_group_name
  • get_local_player_index
  • get_player_for_user_id
  • get_view_angles
  • is_connected
  • is_hltv
  • is_paused
  • is_in_game
  • is_playing_demo
  • is_recording_demo
  • is_taking_screenshot
  • is_voice_recording
  • set_view_angles
  • set_clantag
  • get_gamename
  • get_winpath
  • get_gamepath
  • get_roundstart_time
  • get_round_time
  1. documentation
  2. Variables

engine

Functions:

get_screen_size

engine.get_screen_size(): vector

Returns the screen size.

get_level_name

engine.get_level_name(): string

get_level_name_short

engine.get_level_name_short(): string

get_map_group_name

engine.get_map_group_name(): string

Returns the map group.

get_local_player_index

engine.get_local_player_index(): number

Returns the index of the local player.

get_player_for_user_id

engine.get_player_for_user_id(userid: number): entity

Name
Type
Description

userid

number

User id

Returns a pointer to the specified player.

get_view_angles

engine.get_view_angles(): vector

Returns the player view angles.

is_connected

engine.is_connected(): boolean

Returns true, if the player is connected.

is_hltv

engine.is_hltv(): boolean

Returns true, if the is hltv.

is_paused

engine.is_paused(): boolean

Returns true, if the game is paused.

is_in_game

engine.is_in_game(): boolean

Returns true, if the player is currently connected to a game server.

is_playing_demo

engine.is_playing_demo(): boolean

Returns true, if the demo is being played.

is_recording_demo

engine.is_recording_demo(): boolean

Returns true, if the demo is being recorded.

is_taking_screenshot

engine.is_taking_screenshot(): boolean

Returns true, if a screenshot was taken.

is_voice_recording

engine.is_voice_recording(): boolean

Returns true, if you are speaking in voice chat.

set_view_angles

engine.set_view_angles(angles: vector)

Name
Type
Description

angles

vector

Player angles

Sets view angles to the player.

set_clantag

engine.set_clantag(tag: string)

Name
Type
Description

tag

string

Clan tag

Sets your in-game clan tag.

get_gamename

engine.get_gamename(): string

Returns the game name.

get_winpath

engine.get_winpath(type: string)

Name
Type
Description

type

string

Types: appdata

Returns a specific path.

get_gamepath

engine.get_gamepath(): string

Returns the path to the game client folder.

get_roundstart_time

engine.get_roundstart_time(): number

Returns the time before the start of the round.

get_round_time

engine.get_round_time(): number

Returns the time of the round.

PreviousglobalvarsNextutils

Last updated 2 years ago

βš™οΈ
πŸ› οΈ