# 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 %}
