Exports
Here you can learn how to use exports of minigames
Typing Game
-- @param1 difficulty (easy, normal, hard)
-- @param2 duration (second)
local success = exports['rm_minigames']:typingGame("easy", 20)
if success then
print("SUCCESS")
else
print("FAILED")
end
Timed Lockpick
-- @param1 speed (value)
local success = exports['rm_minigames']:timedLockpick(200)
if success then
print("SUCCESS")
else
print("FAILED")
end
Timed Action
-- @param1 locks (count)
local success = exports['rm_minigames']:timedAction(3)
if success then
print("SUCCESS")
else
print("FAILED")
end
Quick Event
-- @param1 difficulty (easy, normal, hard)
local success = exports['rm_minigames']:quickTimeEvent("easy")
if success then
print("SUCCESS")
else
print("FAILED")
end
Combination Lock
-- @param1 difficulty (easy, normal, hard)
local success = exports['rm_minigames']:combinationLock("easy")
if success then
print("SUCCESS")
else
print("FAILED")
end
Button Mashing
-- @param1 decay rate (value)
-- @param2 increment rate (value)
local success = exports['rm_minigames']:buttonMashing(5, 10)
if success then
print("SUCCESS")
else
print("FAILED")
end
Angled Lockpick
-- @param1 difficulty (easy, normal, hard)
local success = exports['rm_minigames']:angledLockpick("easy")
if success then
print("SUCCESS")
else
print("FAILED")
end
Finger Print
-- @param1 time (value)
-- param2 live (count)
local success = exports['rm_minigames']:fingerPrint(200, 5)
if success then
print("SUCCESS")
else
print("FAILED")
end
Hotwire
-- @param1 time (value)
local success = exports['rm_minigames']:hotwireHack(10)
if success then
print("SUCCESS")
else
print("FAILED")
end
Hacker Minigame
-- @param1 lenght (value)
-- @param2 live (count)
local success = exports['rm_minigames']:hackerMinigame(5, 3)
if success then
print("SUCCESS")
else
print("FAILED")
end
Safecrack
-- @param1 difficulty (easy, normal, hard)
local success = exports['rm_minigames']:safeCrack("easy")
if success then
print("SUCCESS")
else
print("FAILED")
end
Last updated