Comment on page
⌚
common
common.get_date(format: string[, unix_time: number]):
string
Name | Type | Description |
---|---|---|
format | string | Date format ( strftime ) |
unix_time | number | Optional. Unix-format time |
Returns the formatted date.
common.get_unixtime():
number
Returns the number of seconds that have elapsed since the unix epoch (1 January 1970 00:00:00)
common.get_timestamp():
number
Returns high precision timestamp in milliseconds.
common.get_system_time():
table
Returns the windows time as a table containing the
year
, month
, day
, hours
, minutes
, and seconds
values.common.get_product_version():
number
Returns the product version of the game client.
common.get_game_directory():
string
Returns the path to the game client folder.
common.get_map_data():
table
Returns a table containing the
name
, shortname
, and group
values.common.get_username():
string
Returns your Neverlose username.
common.get_config_name():
string
Returns the name of the currently loaded config.
common.get_active_scripts():
table
Returns a table of strings containing the names of the loaded scripts.
common.get_mouse_wheel_delta():
number
Returns a value that indicates the amount that the mouse wheel has changed.
common.is_in_thirdperson():
boolean
Returns
true
if the camera is in thirdperson.common.reload_script()
Reloads current script.
common.unload_script()
Unloads current script.
common.force_full_update()
Forces the server to send a full update packet.
common.set_clan_tag(text: string)
Name | Type | Description |
---|---|---|
text | string | New clan tag |
Sets your in-game clan tag.
common.set_name(text: string)
Name | Type | Description |
---|---|---|
text | string | New name |
Sets your in-game name.
common.add_event(text: string[, icon_name: string])
Name | Type | Description |
---|---|---|
text | string | Text to print to into the upper-left panel. |
icon_name | string | Optional. Fontawesome icon name. |
Prints the text into the upper-left neverlose event panel.
common.add_notify(title: string, text: string)
Name | Type | Description |
---|---|---|
title | string | Text to print to into the title. |
body | string | Text to print to into the body of the notification. |
Draws the notification.
common.is_button_down(key: number):
boolean
Name | Type | Description |
---|---|---|
key | number | Key to check |
Returns
true
if the button is down, or nil on failure.common.is_button_released(key: number):
boolean
Name | Type | Description |
---|---|---|
key | number | Key to check |
Returns
true
if the button is released, or nil on failure.
Last modified 3mo ago