Cheat

PrintLog

Parameters: text, color

Cheat.PrintLog(text, [color])

[EN] Prints a log. [RU] Пишет лог.

IsLegitConfigActive

Parameters: weapon_index

function onCreateMove( ) {
    const weapon = Entity.GetProp(Entity.GetWeapon(Entity.GetLocalPlayer()), "CBaseAttributableItem", "m_iItemDefinitionIndex") & 0xFFFF;

    if (Cheat.IsLegitConfigActive(weapon))
        Cheat.Print("Active!\n");
    else
        Cheat.Print("Inactive.\n");
}

Cheat.RegisterCallback("CreateMove", "onCreateMove");

[EN] Used to check if weapon is configured in menu. [RU] Используется для проверки того, настроено ли оружие в меню.

IsRageConfigActive

Parameters: weapon_index

function onCreateMove( ) {
    const weapon = Entity.GetProp(Entity.GetWeapon(Entity.GetLocalPlayer()), "CBaseAttributableItem", "m_iItemDefinitionIndex") & 0xFFFF;

    if (Cheat.IsRageConfigActive(weapon))
        Cheat.Print("Active!\n");
    else
        Cheat.Print("Inactive.\n");
}

Cheat.RegisterCallback("CreateMove", "onCreateMove");

[EN] Used to check if weapon is configured in menu. [RU] Используется для проверки того, настроено ли оружие в меню.

GetUsername

Cheat.GetUsername();

Return values: returns forum username.

[EN] Returns forum username. [RU] Возвращает имя пользователя форума.

PrintChat

Parameters: string

Cheat.PrintChat("printing in chat :-)\n");

[EN] Returns forum username. [RU] Возвращает имя пользователя форума.

RegisterCallback

Parameters: callback, function

Callback: any function/event listed below Function: function to be invoked

Currently available

  • "CreateMove"

    • useful for adjusting antiaim/ragebot settings with a script before antiaim/ragebot runs

  • "Draw"

    • the only place in a script u can call Render functions, is inside a "Draw" callbacks

  • "Unload"

    • called when script is unloaded

  • "Material"

    • called before materials are applied. Material functions (except Create and Destroy) must be called in this callback

  • "ragebot_fire"

    • more information can be found HERE

  • FRAME_START

  • FRAME_RENDER_START

  • FRAME_RENDER_END

  • FRAME_NET_UPDATE_START

  • FRAME_NET_UPDATE_END

  • FRAME_NET_UPDATE_POSTDATAUPDATE_START

  • FRAME_NET_UPDATE_POSTDATAUPDATE_END

  • Other game events

    • list can be found HERE

function test()
{
    Cheat.Print("hi from test function\n");
}

Cheat.RegisterCallback("round_start", "test");
// This function prints the text to the in-game console every time "round_start" event is called.

[EN] Registers a callback within a said function. [RU] Регистрирует обратный вызов в указанной функции.

ExecuteCommand

Parameters: cmd

Cheat.ExecuteCommand( "say hello" );
// This function will say hello in chat when script is loaded.

[EN] Executing commands in in-game console. [RU] Выполнение команд в игровой консоли.

PrintColor

Parameters: [ r, g, b, a ], "Text"

Cheat.PrintColor( [ 255, 0, 0, 255 ], "This is red text" );

[EN] Cheat.PrintColor is used for same purpose(s) as Cheat.Print, in addition you can make your console outputs in different colors. [RU] Cheat.PrintColor используется для тех же целей, что и Cheat.Print, кроме того, вы можете сделать вывод консоли в разных цветах.

Print

Parameters: message

Cheat.Print( 'hello' );

[EN] Used to print out wide ranges of information to your console, as well as simple messages [RU] Используется для вывода на консоль широкого спектра информации, а также простых сообщений.

Last updated