Running scripts¶
Scripts are executed through the Asterion console inside the game.
The console¶
- Inject Asterion and open the overlay.
- Switch to the Lua / Console tab.
- Paste or type your script.
- Press Run (or the execute shortcut).
The script runs immediately. There is nothing to install or save to disk — the console is the entry point for everything.
Scripts run once¶
A plain script runs top to bottom and finishes. To keep something running, use
the loop or thread primitives from your game's API — for example, FiveM's
Asterion.Thread.
Locals don't cross the string boundary
Code passed as a string (threads, injection) runs in another context.
Variables from your outer script are not visible inside the [[ ]] block —
read what you need with natives inside the block, or build the string with
the values baked in.
Reusing snippets¶
Keep your working scripts in a text file locally and paste them into the console when you need them. Each game's API reference has a ready-to-use examples page.