FAQ
Common problems and their solutions.
Minigame not opening
Section titled โMinigame not openingโProblem: Nothing happens when export function is called.
Solution:
- Make sure
ensure rs_minigamesis in yourserver.cfg - Check if resource loaded successfully:
/refreshand/restart rs_minigames - Check F8 console for errors
UI visible but not working
Section titled โUI visible but not workingโProblem: Minigame appears on screen but clicks/keys donโt work.
Solution: Could be NUI focus issue. In your client script:
exports['rs_minigames']:StartLockpicking('medium', function(success, cancelled) -- NUI focus automatically closes after callbackend)Theme not applying
Section titled โTheme not applyingโProblem: Changed theme in config but it looks the same.
Solution:
- Make sure theme name is spelled correctly in
config.lua - Available themes:
default,dark,blue,purple,red,green,custom,chrome,synthnet
Config.Themes.lockpicking = "synthnet" -- CorrectConfig.Themes.lockpicking = "Synthnet" -- Wrong (uppercase)Language not changing
Section titled โLanguage not changingโProblem: Set Config.Language = 'en' but still showing Turkish.
Solution:
- Restart the server
- Make sure
locales/en.luafile exists
Callback not working
Section titled โCallback not workingโProblem: Callback function not called after minigame ends.
Solution: Make sure callback function is properly defined:
-- CORRECTexports['rs_minigames']:StartLockpicking('medium', function(success, cancelled) if cancelled then print("Cancelled!") elseif success then print("Success!") else print("Failed!") endend)
-- WRONG - no callbackexports['rs_minigames']:StartLockpicking('medium')Difficulty level not found
Section titled โDifficulty level not foundโProblem: Console shows โInvalid difficultyโ error.
Solution: Each minigame has its own difficulty levels:
-- Lockpicking: easy, medium, hard, expertexports['rs_minigames']:StartLockpicking('expert', callback)
-- Circuit: 1, 2, 3 (numbers)exports['rs_minigames']:StartCircuitMinigame(2, 30, callback)
-- Most minigames: easy, medium, hardexports['rs_minigames']:StartWordle('hard', 90, callback)Where is the Bomb Defusal manual?
Section titled โWhere is the Bomb Defusal manual?โProblem: Canโt see the rules in bomb defusal game.
Solution: Manual opens separately:
-- Open manual for second playerexports['rs_minigames']:StartBombManual()
-- Start bomb defusalexports['rs_minigames']:StartBombDefusal('medium', 180, callback)Test commands not working
Section titled โTest commands not workingโProblem: Commands like /testlockpick donโt work.
Solution: Make sure debug mode is enabled:
Config.Debug = trueRestart the server.
Performance issues
Section titled โPerformance issuesโProblem: Minigames are laggy.
Solution:
- Script already uses vanilla JavaScript, optimized
- Check if other NUI scripts are conflicting
- Take performance profile with browser devtools
How to add a new language?
Section titled โHow to add a new language?โ-
Create new file in
locales/folder (e.g.,locales/es.lua) -
Copy contents of
locales/en.lua -
Translate all texts:
Locales['es'] = {common = {success = "ยกรxito!",failed = "Fallido",-- ...},lockpicking = {title = "Abrir cerradura",-- ...}} -
Set language in
config.lua:Config.Language = 'es' -
Add file to
fxmanifest.lua:shared_scripts {'locales/es.lua'}
How to add custom logo?
Section titled โHow to add custom logo?โIn config.lua:
Config.GlobalTheme = { LogoPath = 'nui://rs_minigames/html/mylogo.png', -- ...}Place the logo file in html/ folder.
Support
Section titled โSupportโIf your issue is not resolved: