> For the complete documentation index, see [llms.txt](https://estscripts.gitbook.io/info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://estscripts.gitbook.io/info/other-documentations/minigames/exports-and-examples.md).

# Exports & examples

## Exports & examples

{% tabs %}
{% tab title="Exports" %}
{% code fullWidth="true" %}

```
local success = exports['minigames']:Chopping(15, 30)
local success = exports['minigames']:Lockpick("Lockpick", 3, 30)
local success = exports['minigames']:PinCracker(3, 20)
local success = exports['minigames']:RoofRunning(5, 5, 30)
local success = exports['minigames']:Thermite(20, 7, 7, 30)
local success = exports['minigames']:Terminal(4, 2, 10, 30, 4)
```

{% endcode %}
{% endtab %}

{% tab title="Examples" %}

```lua
1. function Exampleminigame() 
  local success = exports['minigames']:Chopping(15, 30)
  if success then
   ---- Do action on success   
      end
  else
  --- Do action on fail
  end
end

2. function Exampleminigame() 
  local success = exports['minigames']:Lockpick("Lockpick", 3, 30)
  if success then
   ---- Do action on success   
      end
  else
  --- Do action on fail
  end
end

3. function Exampleminigame() 
  local success = exports['minigames']:PinCracker(3, 20)
  if success then
   ---- Do action on success   
      end
  else
  --- Do action on fail
  end
end

4. function Exampleminigame() 
  local success = exports['minigames']:RoofRunning(5, 5, 30)
  if success then
   ---- Do action on success   
      end
  else
  --- Do action on fail
  end
end

5. function Exampleminigame() 
  local success = exports['minigames']:Thermite(20, 7, 7, 30)
  if success then
   ---- Do action on success   
      end
  else
  --- Do action on fail
  end
end

6. function Exampleminigame() 
  local success = exports['minigames']:Terminal(4, 2, 10, 30, 4)
  if success then
   ---- Do action on success   
      end
  else
  --- Do action on fail
  end
end
```

{% endtab %}
{% endtabs %}
