Skip to main content

RiP-Minigames

RiP-Minigames can be built into any script. Be it a robbery or prison script.

displayMinigame

exports['RiP-Minigames']:displayMinigame(type, time, attempts, callback)

This client function starts a minigame and gives the result back

Arguments

NameTypeOptionalExplenation
typeStringNoMinigame type
timeIntegerNoTime to complete the minigame
attemptsIntegerNoNumber of attempts
callbackFunctionYesCallback function

Minigame Types

  • "powersupply"
  • "calibrate"
  • "pursue"
  • "random" - random game with config arguments (time & attempts)

Example

exports['RiP-Minigames']:displayMinigame('powersupply', 30, 1, function(callback)
if callback then
print("Successful game")
else
print("Game failed")
end
end)