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
Name | Type | Optional | Explenation |
---|---|---|---|
type | String | No | Minigame type |
time | Integer | No | Time to complete the minigame |
attempts | Integer | No | Number of attempts |
callback | Function | Yes | Callback 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)