Skip to content

general

This section of the documentation includes all the tables that interact with CS:GO/TF2 and fantasy.moonlight.

Below are generic functions:

moonlight.log

Parameters

  • string text

Remarks

  • Scripts that use this function can find these logs written in logs\log.txt.

moonlight.warning

Parameters

  • string text

Remarks

  • Scripts that use this function can find these logs written in logs\warning.txt.

moonlight.error

Parameters

  • string text

Remarks

  • Scripts that use this function can find these logs written in logs\error.txt.

moonlight.sleep

Parameters

  • number milliseconds

moonlight.humanizer

Parameters

  • number cmd

Remarks

  • This function will trigger a tick for the humanizer.
  • See humanizer.lua for an example.

moonlight.mouse_driver

Remarks

  • This function will switch your humanizer to Humanizer #1 (Mouse Driver)
  • https://fantasy.cat/forums/index.php?threads/moonlight-humanizer-behavior-guide-maximize-potential-proper-usage-how-it-works.3869/

moonlight.view_angles

Remarks

  • This function will switch your humanizer to Humanizer #2 (View Angles)
  • https://fantasy.cat/forums/index.php?threads/moonlight-humanizer-behavior-guide-maximize-potential-proper-usage-how-it-works.3869/

moonlight.uninitialize

Remarks

  • This function will eject the cheat from the game.

moonlight.get_game

Returns

  • string "CS:GO" or "TF2

Remarks

  • Use the global variable game instead. This function doesn't need to be called anymore.

moonlight.forums

Returns

  • string Your forum username.
  • number Your unread forum conversations.
  • number Your unread forum alerts.
  • number Your UID.

moonlight.reload_pure_mode

Remarks

  • This will reload your pure_mode.txt settings.

moonlight.get_console

Returns

  • table Table of all console/session entries. The value to look use is string.