API index
Index of named API symbols: functions, callbacks, constants, methods and types, each linked to its reference section.
Use this page to locate a symbol by name, then open the linked section for the signature, return values and errors.
The index lists symbols that have a qualified name. It does not list:
- fields of objects, tables and specs (for example
trace_tfields or theespelement spec); they are on the object's or namespace's page; - value-type methods without a qualified name (
length,dot,lerp, …); see Value types: Methods.
If a name is not here, search the site or read the page of the namespace or object it belongs to.
Callbacks
Registering events.<name> callbacks: render, key, createmove, frame_stage, console and chat hooks, game events, return values and per-frame order. See Callbacks.
events.renderevents.resize_windowevents.keyevents.frame_stageevents.level_initevents.level_shutdownevents.override_viewevents.createmoveevents.console_inputevents.string_cmdevents.player_chatevents.shutdownevents.<event name>
Global functions
print and color_print: writing text to the game console. See Global functions.
timer
Per-script timers: timer.delay, timer.every, timer.cancel, timer.realtime and the frame-aligned scheduling rules. See timer.
notify
notify.show: display a menu notification. See notify.
utils
Random numbers from the engine stream, the license user name, the script file name and self-unload. See utils.
globals
Read-only live game values: realtime, curtime, frametime, framecount, tickcount, tickfraction, tickinterval and maxplayers. See globals.
globals.realtimeglobals.curtimeglobals.frametimeglobals.framecountglobals.tickcountglobals.tickfractionglobals.tickintervalglobals.maxplayers
clipboard
Read and write the Windows clipboard as UTF-8 text. See clipboard.
console
Queue console commands, look up console variables and commands by name, and iterate the console registry. See console.
memory
Raw native access: pattern scans, CreateInterface, exports, and binding virtual or pattern-located functions through FFI. See memory.
memory.patternmemory.interfacememory.exportmemory.bind_virtualmemory.bind_patternmemory.virtual_thunk
panorama
Run JavaScript in Panorama panels with panorama.loadstring and read Panorama globals from Lua. See panorama.
input
Keyboard and mouse state per rendered frame: key and button checks, cursor position, delta, wheel and virtual-key codes. See input.
input.is_key_downinput.is_key_pressedinput.is_key_releasedinput.is_mouse_downinput.is_mouse_pressedinput.mouse_positioninput.mouse_deltainput.wheel
fs
File operations relative to the script's data directory: read, write, append, exists, remove, mkdir, list and path restrictions. See fs.
render
2D and world-space drawing: text, lines, rectangles, circles, polygons, clipping, textures and screen queries, and when drawing is available. See render.
render.screen_sizerender.frame_countrender.frame_timerender.world_to_screenrender.calc_text_sizerender.textrender.linerender.rectrender.rect_outlinerender.rect_filledrender.rect_filled_faderender.circlerender.circle_filledrender.circle_faderender.arcrender.polygonrender.filled_polygonrender.concave_polygonrender.poly_linerender.bezier_cubicrender.circle_3drender.circle_filled_3drender.circle_fade_3drender.push_clip_rectrender.pop_clip_rectrender.setup_texturerender.setup_texture_rgbarender.setup_texture_from_memoryrender.texture
particles
Create and control game particle effects: particles.create, PATTACH_* attachments, control points, paths and effect lifetime. See particles.
particles.createparticles.PATTACH_ABSORIGINparticles.PATTACH_ABSORIGIN_FOLLOWparticles.PATTACH_CUSTOMORIGINparticles.PATTACH_CUSTOMORIGIN_FOLLOWparticles.PATTACH_POINTparticles.PATTACH_POINT_FOLLOWparticles.PATTACH_EYES_FOLLOWparticles.PATTACH_OVERHEAD_FOLLOWparticles.PATTACH_WORLDORIGINparticles.PATTACH_ROOTBONE_FOLLOWparticles.PATTACH_RENDERORIGIN_FOLLOWparticles.PATTACH_CENTER_FOLLOWp:namep:is_validp:control_pointp:pathp:release
esp
Register custom ESP Builder elements: element spec, slots, settings, render and value callbacks, element handles, errors and saved settings. See esp.
esp.register_elementhandle:removectx:rectctx:rect_outlinectx:rect_filled_fadectx:linectx:circlectx:arcctx:polygonctx:poly_linectx:textctx:text_sizectx:texturectx:barctx:project
engine
Game state and level queries, local HUD chat output, sound playback and netvar offsets. See engine.
engine.is_in_gameengine.level_name_shortengine.level_nameengine.get_product_version_stringengine.camera_in_thirdpersonengine.get_net_channelengine.chat_printengine.play_soundengine.get_netvar_offset
trace
World traces through the game's physics query: trace.line, trace.shape and trace.bullet. See trace.
entitylist
Find entities: local pawn and controller, lookups by handle or index, class lists, pawns, controllers and game rules. See entitylist.
entitylist.local_pawnentitylist.local_controllerentitylist.handleentitylist.indexentitylist.listentitylist.game_rulesentitylist.pawnsentitylist.controllers
Value types
The vector, vector2d, vector4d, angle and color FFI value types: constructors, methods, operators, pointers, containers, 64-bit integers and angle maths. See Value types.
Entities
base_entity_t: schema field access, entity methods and entity lifetime. See Entities.
base_entity_te:classnamee:indexe:handlee:is_alivee:is_enemye:origine:anglese:velocitye:hitboxe:weapone:weaponse:eye_positione:controllere:playerslote:useride:pawne:namee:vdatae:item
gameevent
Game event object passed to events.<event name> callbacks; fields are read by key name. See gameevent.
chat_message_t
Mutable HUD chat message passed to the player_chat callback. See chat_message_t.
chat_message_tmsg:get_namemsg:get_messagemsg:get_entity_indexmsg:is_team_chatmsg:get_message_namemsg:get_param3msg:get_param4msg:set_namemsg:set_messagemsg:set_entity_indexmsg:set_team_chatmsg:set_message_namemsg:set_param3msg:set_param4
view_setup
Mutable view setup passed to the override_view callback. See view_setup.
user_cmd_t
Read-only snapshot of the user command passed to the createmove callback. See user_cmd_t.
console.variable
Console variable handle returned by console.<name> and console.variables(): reading and setting values. See console.variable.
console.command
Console command handle returned by console.<name> and console.commands(). See console.command.
panorama.object
Lua wrapper around a JavaScript value from Panorama. See panorama.object.
ray_t
Ray shapes for trace.shape: a line, an offset line, a sphere, a box or a capsule. See ray_t.
trace_filter_t
Trace filter: interaction mask, collision group, entity iteration and an optional should_hit predicate. See trace_filter_t.
trace_t
Result of trace.line and trace.shape. See trace_t.
hitbox_t
The game's hitbox record (CHitBox) returned by e:hitbox(index) and tr.hitbox. See hitbox_t.
rn_collision_attr_t
Collision attributes exposed by trace_t.shape_attributes. See rn_collision_attr_t.
Script UI
Build a script's settings UI: ui.panel, ui.tab, ui.find, ui.section, control builders, node methods, control values, built-in tabs, locales and menu_object_t. See Script UI.
ui.panelui.tabui.findui.find_objectui.sectionui.is_opennode:sectionnode:headernode:context_groupnode:disabled_groupnode:labelnode:separatornode:checkboxnode:slider_intnode:slider_floatnode:combonode:multicombonode:listnode:multilistnode:color_editnode:input_stringnode:input_intnode:input_floatnode:hotkeynode:buttonn:tooltipn:formatn:max_countn:text_sizen:disabledn:visiblen:visible_ifn:disabled_ifn:ordern:removecontrol:getcontrol:setcontrol:on_changelocalesmenu_object_to:geto:get_valueo:seto:set_valueo:get_nameo:get_patho:get_typeo:is_visibleo:is_disabledo:is_valid
