> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: rage
description: Anti-aim and exploit control
icon: crosshair
---

The `rage` namespace controls anti-aim rotations and exploit charging through its `antiaim` and `exploit` structs.

### struct `antiaim`

## get\_max\_desync

```lua
rage.antiaim:get_max_desync(): number
```

> Returns the maximum amount of desync.

<Schema title="Returns">
  <SchemaField name="desync" type="number">
    The maximum amount of desync.
  </SchemaField>
</Schema>

## get\_rotation

```lua
rage.antiaim:get_rotation([value: boolean]): number
```

> Returns the current anti-aim rotation.

<Schema title="Parameters">
  <SchemaField name="value" type="boolean">
    Optional. If true, fake rotation will be returned.
  </SchemaField>
</Schema>

<Schema title="Returns">
  <SchemaField name="rotation" type="number">
    The current anti-aim rotation.
  </SchemaField>
</Schema>

## get\_target

```lua
rage.antiaim:get_target([return_fr: boolean]): number
```

> Returns the at target yaw rotation or `nil` if not available.

<Schema title="Parameters">
  <SchemaField name="return_fr" type="boolean">
    Optional. If true, freestanding yaw will be returned.
  </SchemaField>
</Schema>

<Schema title="Returns">
  <SchemaField name="target" type="number">
    The at target yaw rotation or `nil` if not available.
  </SchemaField>
</Schema>

## inverter

```lua
rage.antiaim:inverter([value: boolean]): boolean
```

> Gets or sets the state of the anti-aim inverter.

<Schema title="Parameters">
  <SchemaField name="value" type="boolean">
    Optional. Inverter state.
  </SchemaField>
</Schema>

<Schema title="Returns">
  <SchemaField name="state" type="boolean">
    The state of the anti-aim inverter.
  </SchemaField>
</Schema>

## override\_hidden\_pitch

```lua
rage.antiaim:override_hidden_pitch(value: number): number
```

> Overrides the hidden pitch to the desired value.

<Schema title="Parameters">
  <SchemaField name="value" type="number" required>
    Hidden pitch value.
  </SchemaField>
</Schema>

<Schema title="Returns">
  <SchemaField name="pitch" type="number">
    The overridden hidden pitch value.
  </SchemaField>
</Schema>

## override\_hidden\_yaw\_offset

```lua
rage.antiaim:override_hidden_yaw_offset(value: number): number
```

> Overrides the hidden yaw offset to the desired value.

<Schema title="Parameters">
  <SchemaField name="value" type="number" required>
    Hidden yaw offset value.
  </SchemaField>
</Schema>

<Schema title="Returns">
  <SchemaField name="offset" type="number">
    The overridden hidden yaw offset value.
  </SchemaField>
</Schema>

### struct `exploit`

## get

```lua
rage.exploit:get(): number
```

> Returns the exploit charge as a unit interval (value in the range \[0, 1]).

<Schema title="Returns">
  <SchemaField name="charge" type="number">
    The exploit charge as a unit interval (value in the range \[0, 1]).
  </SchemaField>
</Schema>

## allow\_charge

```lua
rage.exploit:allow_charge([value: boolean])
```

> Allows/blocks exploit charge.

<Schema title="Parameters">
  <SchemaField name="value" type="boolean">
    Optional. If true, allows exploit charge. If false, blocks exploit charge. Defaults to true.
  </SchemaField>
</Schema>

## allow\_defensive

```lua
rage.exploit:allow_defensive([value: boolean])
```

> Allows/blocks defensive exploit discharge.

<Schema title="Parameters">
  <SchemaField name="value" type="boolean">
    Optional. If true, allows the cheat to discharge defensive exploit. If false, blocks defensive exploit discharge. Defaults to true.
  </SchemaField>
</Schema>

## force\_teleport

```lua
rage.exploit:force_teleport()
```

## force\_charge

```lua
rage.exploit:force_charge()
```
