Bei allen Support-Fragen wenden Sie sich bitte an unseren Discord-Support-Chat. Erstellen Sie keine Probleme auf GitHub, wenn Sie Hilfe benötigen. Die Probleme dienen ausschließlich der Meldung von Fehlern und neuen Funktionen.
Starten Sie ein Number Maze-Spiel mit einer Rückmeldung über Erfolg oder Misserfolg.
exports [ ' ps-ui ' ]: Maze ( function ( success )
if success then
print ( " success " )
else
print ( " fail " )
end
end , timeLimit ) -- Hack Time Limit in seconds 
Zeigen Sie eine Benachrichtigung mit Text, Typ und Dauer an.
exports [ ' ps-ui ' ]: Notify ( ' Your message ' , ' notification-type ' , duration )
Starten Sie ein Circle-Spiel mit einem Rückruf bei Erfolg oder Misserfolg.
exports [ ' ps-ui ' ]: Circle ( function ( success )
if success then
print ( " success " )
else
print ( " fail " )
end
end , numCircles , time ) -- Number of Circles, Time in milliseconds 
Starten Sie ein Scrambler-Spiel mit einem Rückruf bei Erfolg oder Misserfolg.
exports [ ' ps-ui ' ]: Scrambler ( function ( success )
if success then
print ( " success " )
else
print ( " fail " )
end
end , type , time , mirrored ) -- Type options: alphabet, numeric, alphanumeric, greek, braille, runes; Time in seconds; Mirrored options: 0, 1, 2 
Starten Sie ein VAR-Hack-Spiel mit einem Rückruf für Erfolg oder Misserfolg.
exports [ ' ps-ui ' ]: VarHack ( function ( success )
if success then
print ( " success " )
else
print ( " fail " )
end
end , numBlocks , time ) -- Number of Blocks, Time in seconds 
Starten Sie ein Thermite-Spiel mit einem Rückruf bei Erfolg oder Misserfolg.
exports [ ' ps-ui ' ]: Thermite ( function ( success )
if success then
print ( " success " )
else
print ( " fail " )
end
end , time , gridSize , incorrectBlocks ) -- Time in seconds, Grid Size (5-10), Incorrect Blocks 
Erstellen Sie ein Menü mit Untermenüs und Ereignissen.
exports [ ' ps-ui ' ]: CreateMenu ({
{
id = " examplemenu " , -- has to be unique
header = " Menu Header " ,
text = " Menu Text " ,
icon = " icon-class " ,
color = " color " ,
event = " event-name " ,
args = { arg1 , arg2 },
server = false ,
subMenu = {
{
id = " examplesubmenu " , -- has to be unique
header = ' Submenu Header ' ,
icon = ' icon-class ' ,
color = ' color ' ,
event = " event-name " ,
args = { arg1 , arg2 },
},
},
},
}) Blendet das aktuell angezeigte Menü aus
exports [ ' ps-ui ' ]: HideMenu ()
exports [ ' ps-ui ' ]: StatusShow ( " Title " , " Description " , " icon " ,
{
{ key = " Key1 " , value = " Value1 " },
{ key = " Key2 " , value = " Value2 " },
{ key = " Key3 " , value = " Value3 " }
})
Text mit einer bestimmten Farbe anzeigen
exports [ ' ps-ui ' ]: DisplayText ( " Your text " , " color " )Den aktuell angezeigten Text ausblenden
exports [ ' ps-ui ' ]: HideText ()
Zeigen Sie ein Eingabeformular an und drucken Sie die Eingabewerte aus.
local input = exports [ ' ps-ui ' ]: Input ({
{
id = ' 1 ' ,
label = ' Label ' ,
type = " input-type " ,
icon = " icon-class "
},
-- Add more inputs as needed
})
for k , v in pairs ( input ) do
print ( k , v . id , v . value )
end 
Zeigt ein Bild von einer URL an.
exports [ ' ps-ui ' ]: ShowImage ( " imageURL " )