Guide

Lua Executor

Learn how to use the Susano Lua Executor in FiveM, including running scripts, using Shared Scripts, and Resetting Environment for clean execution.

2 min read Susano team
Lua Executor

1: Lua Executor

Lua Executor allows you to run Lua scripts directly in FiveM. It includes a built-in editor, Shared Scripts tab where you can share scripts with others, and a Reset Environment feature for clean script execution.

!!! You must be extremely careful, as executing code you do not understand can get you banned. It is recommended to have a basic knowledge of Lua.

1.1: Executing a Script

  1. Paste your Lua code into the editor.
  2. Click Execute.
  3. The script will run instantly in the current session.

2: Shared Scripts

Shared Scripts allow you to save scripts and reuse them across sessions without pasting code every time. You can share codes with your friends. Description

2.1: Creating a Shared Script

  1. Open Executor -> Shared Scripts
  2. Write Script name
  3. Click Upload Script

2.2: Running a Shared Script

  1. Select the script from the list or write Invite Code
  2. Click Execute

3: Reset Environment

Reset Environment clears the current Lua runtime state.

3.1: When to Use Reset Environment

  • After testing multiple scripts
  • When variables or functions persist unexpectedly
  • Before re-running updated code

4: Common Issues

Script runs but nothing happens

  • Execute the script again
  • Use Reset Environment
  • Rejoin the server and retry
  • If nothing from above works, the issue is probably with the script.

5: Documentation

Full executor documentation and examples are available here: https://docs.susano.re/