Quiz
Library
Updated 2 months ago ·
v1.3.7Multi-question quiz system with pass/fail and retake controls.
lib.registerQuiz (Server)
| Field | Type | Required | Description |
|---|---|---|---|
title | string | yes | Quiz title |
time | number | yes | Quiz duration in seconds |
timeout | number | yes | Cooldown before retake |
passMark | number | yes | Score required to pass |
answerAll | boolean | yes | Require all questions to be answered |
questions | table[] | yes | Quiz questions |
canRetake | boolean | no | Allow players to retake |
secureMode | boolean | no | Hide correct answers from client payload |
Each question supports:
type:single,multiple,text, ornumberquestion: prompt stringoptions: answer options (where applicable)correct: correct answer value
lib.startQuiz (Client)
Returns ok, info where ok is true/false and info is quiz payload or failure reason.
lib.closeQuiz (Client)
lib.getQuiz / lib.deleteQuiz (Server)
Was this page helpful?
This page was last updated on 12 March 2026