globals

Global variables used by csgo

All variables from theglobals table are read-only!

curtime

globals.curtime number

Server time in seconds, in lobby time since game start/disconnect.

realtime

globals.realtime number

Time since the start of the game, in secoonds.

frametime

globals.frametime number

Duration of the last game frame.

framecount

globals.framecount number

Total number of frames.

tickcount

globals.tickcount number

Number of simulation ticks.

tickinterval

globals.tickinterval number

Interval between simulation ticks. tickrate = 1 / globals.tickinterval

max_players

globals.max_players number

Maximum number of players on the server.

is_connected

globals.is_connected boolean

Returns true if client is connected to the server. Doesn't always mean the player is in the game.

is_in_game

globals.is_in_game boolean

Returns true if player is connected and active in game.

choked_commands

globals.choked_commands number

Number of choked commands.

commandack

globals.commandack number

Current command acked by the server.

commandack_prev

globals.commandack_prev number

Last acked command by the server.

last_outgoing_command

globals.last_outgoing_command number

Last command number sented by client.

server_tick

globals.server_tick number

Last recieved server tick.

client_tick

globals.client_tick number

Client tick.

delta_tick

globals.delta_tick number

Last recieved snapshot from the server.

Last updated