Skip to main content
Scripts may need some customer data or script related data, you can use these macros.

Runtime Variables

AZG_ISPREMIUM
bool
A bool status to check if user is using key or not.
Keyless mode scripts only, will show true otherwise
Sample: true
AZG_SCRIPTNAME
string
The name of the script executed in a string form.Sample: Sample Script
AZG_SCRIPTVERSION
string
The version of your script in a string form.Sample: BETA / V1.1
AZG_KEYEXPIRY
bigint
Customer key expiry in a form of int epoch time.
Will show 0 or nil if user didn’t use key in keyless mode
Sample: 1770456576 / -1 (-1 is LIFETIME)
AZG_KEYFROMADS
bool
A bool status to check if user key comes from ads system.
Will show false if user didn’t use key in keyless mode
Sample: true

Sample Usage

print("Welcome to:".. AZG_SCRIPTNAME .. " V".. AZG_SCRIPTVERSION)
print("You are using Premium: "..tostring(AZG_ISPREMIUM))

local date_time_string

if AZG_KEYEXPIRY == -1 then
    date_time_string = "Lifetime Access"
else
    local epoch_timestamp = AZG_KEYEXPIRY

    local GMT_PLUS_7_OFFSET = 7 * 3600

    local adjusted_timestamp = epoch_timestamp + GMT_PLUS_7_OFFSET

    date_time_string = os.date("%Y-%m-%d %H:%M:%S GMT+7", adjusted_timestamp)
end

print("Your key will expire on: "..date_time_string)
print("Your key is from ads: "..tostring(AZG_KEYFROMADS))