01Introduction
Wings scripts are written in Lua and run within the Gamesense framework. This documentation covers the APIs available to you when creating custom scripts.
Requirements: - Valid Wings license (Standard or higher) - Basic Lua knowledge - Understanding of CS:GO game mechanics
02Your First Script
1 -- Simple Wings Script Example 2 local function on_paint() 3 -- Draw text on screen 4 renderer.text(100, 100, 255, 255, 255, 255, "", 0, "Hello from Wings!") 5 end 6 7 -- Register callback 8 client.set_event_callback("paint", on_paint) 9 10 -- Log to console 11 client.color_log(0, 255, 100, "[MyScript] Loaded successfully!")
03Script Structure
A typical Wings script follows this structure:
1. Imports - Required libraries (vector, json, etc.) 2. Constants - Fixed values used throughout 3. State - Variables that track script state 4. Functions - Your script logic 5. Callbacks - Event handlers registered with the client 6. UI Elements - Menu options for users
04Submitting Your Script
When you submit a script to the Wings marketplace:
1. Your script is automatically scanned for security issues 2. Malicious patterns (RATs, keyloggers, data exfiltration) are detected 3. Scripts with a security score ≥70 are queued for review 4. Approved scripts become available in the marketplace
What's NOT allowed: - Discord webhooks for data exfiltration - File system write access - External code loading (loadstring from URLs) - Obfuscated/encrypted code - Credential harvesting