# Using lua scripts

## Installing lua scripts

1. Save the Lua script in the same folder as csgo.exe. The file extension should be ".lua".
2. Go to the "MISC" tab and click the "Lua script manager" button. Here you'll see a list of all installed lua scripts

![](https://i.imgur.com/WuyiCxb.png)

1. Select the script you want to load and click "Load script". If you want it to automatically be loaded whenever you load the cheat, tick "Load on startup"

### Common problems:

#### - A script doesn't show up in the Lua script manager:

* Make sure "File name extensions" is enabled in the windows explorer settings

![](https://i.imgur.com/6cNvMHG.png)

If it's not, turn it on, then make sure all scripts actually end with .lua

#### - A script doesn't load (error sound plays):

This can have many reasons. The script could for example be outdated or a required dependency isn't installed.

Open your console and look for the red text. Copy that and ask the script creator for help with it.

![](https://i.imgur.com/c7IKT2p.png)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gamesensical.gitbook.io/docs/using-the-cheat/using_lua_scripts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
